/* ═══ UPNAC Homepage — Ultra Premium Range ═══ */

.page-home {
  background: #f8fafc;
}

.page-home .site-header:not(.scrolled) {
  background: rgba(3, 7, 18, 0.55);
}

.page-home .hero-ultra::before {
  display: none;
}

/* ─── Cinematic Hero ─── */
.hero-ultra {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  isolation: isolate;
  overflow: hidden;
}

.hero-mesh {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse 90% 60% at 20% 20%, rgba(255, 153, 51, 0.14), transparent 50%),
    radial-gradient(ellipse 70% 50% at 80% 30%, rgba(59, 130, 246, 0.35), transparent 55%),
    radial-gradient(ellipse 60% 40% at 50% 100%, rgba(34, 211, 238, 0.2), transparent 50%),
    radial-gradient(ellipse 40% 30% at 60% 50%, rgba(99, 102, 241, 0.25), transparent);
  animation: meshShift 18s ease-in-out infinite alternate;
}

@keyframes meshShift {
  0% { opacity: 0.85; transform: scale(1); }
  100% { opacity: 1; transform: scale(1.05); }
}

.hero-grain {
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  pointer-events: none;
}

.hero-ultra-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-ultra-bg-layer {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.4s cubic-bezier(0.4, 0, 0.2, 1);
  background:
    linear-gradient(115deg, rgba(3, 7, 18, 0.92) 0%, rgba(10, 15, 28, 0.78) 42%, rgba(37, 99, 235, 0.25) 100%),
    var(--bg-image) center/cover no-repeat;
}

.hero-ultra-bg-layer.active {
  opacity: 1;
}

.hero-ultra .hero-dev-layer {
  z-index: 3;
}

.hero-ultra-grid {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.5rem;
  align-items: center;
  padding: calc(var(--header-h) + var(--topbar-h) + 2rem) 0 5rem;
  min-height: calc(100vh - 80px);
  min-height: calc(100dvh - 80px);
}

.hero-slider-ultra {
  position: relative;
  min-height: 420px;
}

.hero-slider-ultra .hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  min-height: auto;
  background: none;
  display: block;
  pointer-events: none;
  z-index: 0;
  transition: opacity 1s ease;
}

.hero-slider-ultra .hero-slide.active {
  opacity: 1;
  position: relative;
  pointer-events: auto;
  z-index: 2;
}

.hero-content-ultra {
  padding: 0;
  max-width: 640px;
}

.hero-kicker {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}

.hero-kicker-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22d3ee;
  box-shadow: 0 0 16px #22d3ee;
  animation: pulseDot 2s infinite;
}

.hero-kicker-line {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan-400);
}

.badge-ultra {
  background: linear-gradient(135deg, rgba(255, 153, 51, 0.25), rgba(59, 130, 246, 0.2));
  border: 1px solid rgba(255, 153, 51, 0.45);
  color: #fde68a;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.hero-title-ultra {
  font-size: clamp(2.4rem, 5.5vw, 4rem) !important;
  line-height: 1.05 !important;
  margin: 0.75rem 0 1.25rem !important;
  background: linear-gradient(135deg, #fff 0%, #e2e8f0 40%, #93c5fd 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  filter: drop-shadow(0 2px 24px rgba(59, 130, 246, 0.25));
}

.hero-title-line {
  display: block;
}

.hero-trust-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.75rem;
}

.hero-trust-pills span {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--slate-400);
  backdrop-filter: blur(8px);
}

.hero-dots-ultra {
  margin-top: 2rem;
  justify-content: flex-start;
}

.hero-dots-ultra button {
  width: 40px;
  height: 4px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.2);
}

.hero-dots-ultra button.active {
  background: var(--gradient-brand);
  width: 56px;
}

/* Floating visual stack */
.hero-ultra-visual {
  position: relative;
  height: 480px;
  display: none;
}

@media (min-width: 992px) {
  .hero-ultra-visual {
    display: block;
  }
}

.hero-float-stack {
  position: absolute;
  inset: 0;
  perspective: 1200px;
}

.hero-float-card {
  position: absolute;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  transition: transform 0.15s ease-out;
}

.hero-float-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-float-card-1 {
  width: 58%;
  top: 5%;
  right: 0;
  z-index: 3;
  animation: floatCard1 7s ease-in-out infinite;
}

.hero-float-card-2 {
  width: 48%;
  bottom: 18%;
  left: 0;
  z-index: 2;
  animation: floatCard2 8s ease-in-out infinite;
}

.hero-float-card-3 {
  width: 42%;
  top: 38%;
  left: 22%;
  z-index: 1;
  animation: floatCard3 9s ease-in-out infinite;
  opacity: 0.92;
}

@keyframes floatCard1 {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-14px) rotate(1deg); }
}
@keyframes floatCard2 {
  0%, 100% { transform: translateY(0) rotate(4deg); }
  50% { transform: translateY(10px) rotate(-2deg); }
}
@keyframes floatCard3 {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-8px) scale(1.02); }
}

.hero-live-card {
  position: absolute;
  bottom: 0;
  right: 0;
  left: 10%;
  padding: 1.15rem 1.35rem;
  background: rgba(15, 23, 42, 0.88);
  border: 1px solid rgba(34, 211, 238, 0.35);
  border-radius: 16px;
  backdrop-filter: blur(20px);
  z-index: 5;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.hero-live-pulse {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  margin-right: 6px;
  animation: pulseDot 1.5s infinite;
  vertical-align: middle;
}

.hero-live-card strong {
  display: block;
  color: #fff;
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}

.hero-live-card p {
  margin: 0 0 0.65rem;
  font-size: 0.78rem;
  color: var(--slate-400);
}

.hero-live-metrics {
  display: flex;
  gap: 1.25rem;
}

.hero-live-metrics span {
  font-size: 0.72rem;
  color: var(--slate-400);
}

.hero-live-metrics em {
  font-style: normal;
  font-weight: 800;
  color: var(--cyan-400);
  font-size: 1rem;
  display: block;
}

.hero-scroll-ultra {
  z-index: 5;
  bottom: 2rem;
}

/* Stats dock — glass floating */
.home-stats-dock {
  position: relative;
  z-index: 10;
  margin-top: -4rem;
  padding-bottom: 2rem;
}

.home-stats-dock-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr) auto;
  gap: 0;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(24px) saturate(180%);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 32px 80px rgba(3, 7, 18, 0.18), 0 0 0 1px rgba(59, 130, 246, 0.08);
  overflow: hidden;
}

.home-stats-dock .stat-strong {
  padding: 1.75rem 1.25rem;
  text-align: center;
  border-right: 1px solid var(--slate-200);
  background: transparent;
}

.home-stats-dock .stat-strong:last-of-type {
  border-right: none;
}

.home-stats-cta {
  align-self: center;
  margin: 1rem 1.25rem;
  white-space: nowrap;
  border-radius: 12px;
}

/* Bento grid */
.home-bento-section {
  padding: clamp(4rem, 9vw, 6rem) 0;
  background: linear-gradient(180deg, #fff 0%, #f0f7ff 100%);
}

.section-head-center {
  text-align: center;
  max-width: 720px;
  margin-inline: auto;
}

.home-bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: repeat(2, minmax(200px, auto));
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.home-bento-tile {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.home-bento-tile-1 {
  grid-column: span 7;
  grid-row: span 2;
}

.home-bento-tile-2 {
  grid-column: span 5;
}

.home-bento-tile-3 {
  grid-column: span 3;
}

.home-bento-tile-4 {
  grid-column: span 2;
}

.home-bento-media {
  position: relative;
  flex: 1;
  min-height: 180px;
  overflow: hidden;
}

.home-bento-tile-1 .home-bento-media {
  min-height: 320px;
}

.home-bento-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.home-bento-tile:hover .home-bento-media img {
  transform: scale(1.08);
}

.home-bento-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 30%, rgba(255, 255, 255, 0.15) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 0.8s;
  pointer-events: none;
}

.home-bento-tile:hover .home-bento-shine {
  transform: translateX(100%);
}

.home-bento-body {
  padding: 1.25rem 1.35rem 1.5rem;
  background: #fff;
  border-top: 3px solid transparent;
  border-image: linear-gradient(90deg, #ff9933, #fff, #138808) 1;
}

.home-bento-num {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--blue-600);
  letter-spacing: 0.1em;
}

.home-bento-body h3 {
  margin: 0.35rem 0 0.5rem;
  font-size: 1.15rem;
  color: var(--navy-900);
}

.home-bento-body p {
  margin: 0 0 0.75rem;
  font-size: 0.88rem;
  color: var(--slate-500);
  line-height: 1.5;
}

.home-bento-tile .link-arrow {
  color: var(--blue-600);
  font-weight: 600;
  font-size: 0.88rem;
}

/* Power statement */
.home-power-statement {
  position: relative;
  padding: clamp(5rem, 12vw, 8rem) 0;
  overflow: hidden;
  background: var(--navy-950);
}

.home-power-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(59, 130, 246, 0.3), transparent),
    radial-gradient(ellipse 50% 40% at 100% 100%, rgba(255, 153, 51, 0.15), transparent);
}

.home-power-inner {
  position: relative;
  text-align: center;
  max-width: 900px;
  margin-inline: auto;
}

.home-power-inner h2 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  color: #fff;
  margin: 0.75rem 0 1.25rem;
  line-height: 1.12;
  background: linear-gradient(135deg, #fff, #93c5fd);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.home-power-inner p {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--slate-400);
  max-width: 640px;
  margin: 0 auto 2rem;
}

.home-power-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

/* Client marquee */
.home-client-marquee {
  background: var(--navy-900);
  padding: 1.5rem 0 1.25rem;
  border-block: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.home-client-head p {
  text-align: center;
  color: var(--slate-400);
  font-size: 0.9rem;
  margin: 0 0 1rem;
}

.home-client-track {
  display: flex;
  gap: 1rem;
  width: max-content;
  animation: clientScroll 35s linear infinite;
}

.home-client-chip {
  flex-shrink: 0;
  padding: 0.55rem 1.25rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  color: #e2e8f0;
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
}

@keyframes clientScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Mega CTA */
.home-mega-cta {
  position: relative;
  padding: clamp(5rem, 10vw, 7rem) 0;
  overflow: hidden;
}

.home-mega-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(3, 7, 18, 0.94), rgba(37, 99, 235, 0.75)),
    var(--mega-bg) center/cover no-repeat;
}

.home-mega-inner {
  position: relative;
  text-align: center;
  max-width: 720px;
  margin-inline: auto;
  color: #fff;
}

.home-mega-badge {
  display: inline-block;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  background: rgba(255, 153, 51, 0.2);
  border: 1px solid rgba(255, 153, 51, 0.5);
  color: #fde68a;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.home-mega-inner h2 {
  font-size: clamp(2rem, 4.5vw, 2.75rem);
  color: #fff;
  margin: 0 0 1rem;
}

.home-mega-inner p {
  color: var(--slate-400);
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.home-mega-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.home-mega-trust {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  font-size: 0.88rem;
  color: var(--slate-400);
}

/* Section glow dividers */
.home-section-glow {
  height: 1px;
  max-width:  min(600px, 80%);
  margin: 0 auto;
  background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.5), rgba(34, 211, 238, 0.5), transparent);
  box-shadow: 0 0 40px rgba(59, 130, 246, 0.3);
}

.home-section-glow--warm {
  background: linear-gradient(90deg, transparent, #ff9933, #138808, transparent);
}

/* Homepage section polish */
.page-home .section {
  position: relative;
}

.page-home .section-head h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.35rem);
}

.page-home .cta-section {
  display: none;
}

.page-home .stats-strong {
  display: none;
}

.page-home .trust-bar {
  display: none;
}

.page-home .section-dark .testimonial-card,
.page-home .section-dark .testimonial-card-pro {
  background: rgba(15, 23, 42, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.page-home .testimonial-card::before {
  content: '"';
  position: absolute;
  top: 1rem;
  left: 1.5rem;
  font-size: 4rem;
  line-height: 1;
  color: rgba(59, 130, 246, 0.2);
  font-family: Georgia, serif;
}

.page-home .testimonials-grid .testimonial-card {
  position: relative;
}

/* Magnetic btn hint */
.btn-magnetic {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

@media (max-width: 991px) {
  .hero-ultra-grid {
    grid-template-columns: 1fr;
    padding-bottom: 3rem;
    min-height: auto;
  }
  .hero-slider-ultra {
    min-height: 380px;
  }
  .home-stats-dock-inner {
    grid-template-columns: repeat(2, 1fr);
  }
  .home-stats-cta {
    grid-column: span 2;
    margin: 0.5rem 1rem 1rem;
    width: calc(100% - 2rem);
    text-align: center;
  }
  .home-bento-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }
  .home-bento-tile-1,
  .home-bento-tile-2,
  .home-bento-tile-3,
  .home-bento-tile-4 {
    grid-column: span 1;
    grid-row: span 1;
  }
}

@media (max-width: 576px) {
  .home-stats-dock {
    margin-top: -2rem;
  }
  .home-stats-dock .stat-strong {
    padding: 1.25rem 0.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-mesh,
  .hero-float-card,
  .home-client-track,
  .home-bento-shine {
    animation: none !important;
  }
}
