/* ═══════════════════════════════════════════════════════════════════════════
   FILLAI — MODERN LAYER (loaded after style.css)
   Dark "aurora" redesign: contained hero, big display type, glass depth,
   scroll choreography hooks. Scoped to index.html. Non-destructive overrides.
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
  --display: "Space Grotesk", "Outfit", system-ui, sans-serif;
  --elec: #aaff3a;
  --ease-spring: cubic-bezier(.22,1,.36,1);
  --ease-out: cubic-bezier(.16,1,.3,1);
}

/* ── Aurora canvas: a fixed, slow-breathing emerald glow behind everything ── */
body::before {
  background:
    radial-gradient(40% 50% at 18% 12%, rgba(46,230,110,.20) 0%, transparent 70%),
    radial-gradient(38% 44% at 86% 8%,  rgba(170,255,58,.12) 0%, transparent 70%),
    radial-gradient(50% 60% at 50% 108%, rgba(22,154,83,.20) 0%, transparent 70%) !important;
  filter: blur(28px) !important;
  animation: m-aurora 18s ease-in-out infinite alternate;
}
@keyframes m-aurora {
  0%   { transform: translate3d(-1%, -1%, 0) scale(1);   opacity:.9 }
  100% { transform: translate3d(2%, 1.5%, 0) scale(1.08); opacity:1 }
}

/* ═══ HERO ════════════════════════════════════════════════════════════════ */

.hero {
  min-height: clamp(600px, 90vh, 880px) !important;
  display: flex !important;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--nav-h) + 48px) 0 64px !important;
  overflow: clip;
}

/* Kill the full-bleed robot wash — it now lives in a contained card. */
.hero .hero-keyvisual,
.hero .hero-beam,
.hero .hero-mockup { display: none !important; }

/* Keep ambient bg but calm it right down so text reads on near-black. */
.hero .hero-bg { opacity: 1; }
.hero .hero-bg::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(3,9,5,.55) 0%, rgba(3,9,5,.82) 60%, var(--bg) 100%);
  z-index: 1;
}
.hero .orb { opacity: .5 !important; }
.hero .grid-mesh { opacity: .35; }

/* Two-column layout */
.hero-inner {
  position: relative; z-index: 3;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  align-items: center;
  gap: clamp(24px, 4vw, 72px);
  width: 100%;
}
.hero-content { text-align: left !important; max-width: 640px; }

/* ── Display typography ── */
.hero-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; border-radius: 999px;
  background: rgba(46,230,110,.08);
  border: 1px solid rgba(46,230,110,.22);
  color: var(--txt2); font-size: 13px; font-weight: 500;
  backdrop-filter: var(--glass);
  margin: 0 0 24px !important;
}
.hero-pill .pill-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--pri); box-shadow: 0 0 12px var(--pri); }

.hero-title {
  font-family: var(--display) !important;
  font-weight: 700 !important;
  font-size: clamp(2.7rem, 6vw, 5rem) !important;
  line-height: .98 !important;
  letter-spacing: -.03em !important;
  margin: 0 0 22px !important;
}
.hero-title .gradient-text,
.hero-title .hero-cycle {
  background: linear-gradient(110deg, #ffffff 0%, #b9ffd0 30%, var(--pri) 58%, var(--elec) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.hero-cycle-wrap { display: inline-block; }

.hero-sub {
  font-size: clamp(1rem, 1.4vw, 1.18rem) !important;
  line-height: 1.6 !important;
  color: var(--txt2) !important;
  max-width: 540px; margin: 0 0 32px !important;
}
.hero-sub strong { color: var(--txt); }

/* ── CTAs: one clear primary + ghost secondary, magnetic-ready ── */
.hero-cta { gap: 14px !important; margin-bottom: 28px !important; }
.btn-primary-lg {
  background: linear-gradient(135deg, var(--pri) 0%, #15c95f 100%) !important;
  color: #04140a !important; font-weight: 700 !important;
  padding: 16px 30px !important; border-radius: 14px !important;
  box-shadow: 0 10px 30px -8px var(--pri-glow), inset 0 1px 0 rgba(255,255,255,.4) !important;
  transition: transform .35s var(--ease-spring), box-shadow .35s var(--ease-spring) !important;
  will-change: transform;
}
.btn-primary-lg:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 18px 44px -10px var(--pri-glow), inset 0 1px 0 rgba(255,255,255,.5) !important; }
.btn-outline-lg {
  background: rgba(255,255,255,.03) !important;
  border: 1px solid var(--bdr-h) !important;
  color: var(--txt) !important; font-weight: 600 !important;
  padding: 16px 26px !important; border-radius: 14px !important;
  backdrop-filter: var(--glass);
  transition: transform .35s var(--ease-spring), border-color .3s, background .3s !important;
}
.btn-outline-lg:hover { transform: translateY(-3px); border-color: var(--pri) !important; background: rgba(46,230,110,.08) !important; }

/* Tighten the secondary conversion clutter so the hero breathes */
.hero-dl-row { gap: 12px !important; margin-bottom: 18px !important; }
.hero-dl-row .btn-dl { background: rgba(255,255,255,.03) !important; border: 1px solid var(--bdr) !important; border-radius: 14px !important; }
.store-badges { margin-top: 14px; opacity: .92; }

/* ═══ HERO VISUAL CARD ════════════════════════════════════════════════════ */
.hero-visual {
  position: relative; z-index: 3;
  display: flex; align-items: center; justify-content: center;
  min-height: 460px;
}
.hv-card {
  position: relative;
  width: min(100%, 460px);
  aspect-ratio: 4 / 5;
  border-radius: 28px;
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(46,230,110,.16) 0%, transparent 60%),
    linear-gradient(180deg, rgba(12,28,18,.9) 0%, rgba(4,12,8,.96) 100%);
  border: 1px solid var(--bdr-h);
  box-shadow:
    0 40px 120px -30px rgba(0,0,0,.8),
    0 0 0 1px rgba(46,230,110,.06),
    inset 0 1px 0 rgba(255,255,255,.06);
  overflow: hidden;
  isolation: isolate;
}
/* soft emerald aura behind the subject */
.hv-glow {
  position: absolute; inset: -20% -10% auto -10%; height: 80%;
  background: radial-gradient(60% 60% at 50% 40%, rgba(46,230,110,.45) 0%, transparent 70%);
  filter: blur(40px); z-index: 0;
  animation: m-aurora 9s ease-in-out infinite alternate;
}
/* rotating conic energy ring */
.hv-ring {
  position: absolute; left: 50%; top: 52%; width: 118%; aspect-ratio: 1;
  transform: translate(-50%,-50%);
  background: conic-gradient(from 0deg, transparent 0 62%, rgba(170,255,58,.5) 78%, rgba(46,230,110,.7) 86%, transparent 95%);
  border-radius: 50%;
  -webkit-mask: radial-gradient(circle, transparent 56%, #000 57%, #000 60%, transparent 61%);
          mask: radial-gradient(circle, transparent 56%, #000 57%, #000 60%, transparent 61%);
  opacity: .55; z-index: 0;
  animation: m-spin 14s linear infinite;
}
@keyframes m-spin { to { transform: translate(-50%,-50%) rotate(360deg); } }
.hv-robot {
  position: absolute; inset: 0; z-index: 1;
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 28%;
  -webkit-mask-image: linear-gradient(180deg, #000 78%, transparent 100%);
          mask-image: linear-gradient(180deg, #000 78%, transparent 100%);
}
.hv-robot--fallback { z-index: 0; } /* shown only if the video can't load */

/* Floating glass status chips */
.hv-chip {
  position: absolute; z-index: 2;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 14px; border-radius: 12px;
  font-size: 13px; font-weight: 600; color: var(--txt);
  background: rgba(8,20,13,.72);
  border: 1px solid var(--bdr-h);
  backdrop-filter: blur(14px) saturate(160%);
  box-shadow: 0 14px 40px -12px rgba(0,0,0,.7);
  white-space: nowrap;
  animation: m-float 6s ease-in-out infinite;
}
.hv-chip .hv-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--pri); box-shadow: 0 0 10px var(--pri); }
.hv-chip-1 { top: 5%; left: 5%; animation-delay: 0s; }
.hv-chip-2 { top: 40%; right: 5%; animation-delay: -2s; }
.hv-chip-3 { bottom: 6%; left: 5%; animation-delay: -4s; }
@keyframes m-float {
  0%,100% { transform: translateY(0); }
  50%     { transform: translateY(-12px); }
}

/* ═══ STATS STRIP (full-width glass bar) ═══════════════════════════════════ */
.hero-stats-wrap { position: relative; z-index: 3; margin-top: clamp(36px, 6vh, 72px); }
.hero-stats {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr);
  gap: 0 !important;
  padding: 26px 18px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(12,28,18,.6), rgba(4,12,8,.6));
  border: 1px solid var(--bdr);
  backdrop-filter: var(--glass);
}
.hero-stats .stat-sep { display: none; }
.hero-stats .stat-item { text-align: center; border-right: 1px solid var(--bdr); }
.hero-stats .stat-item:last-child { border-right: none; }
.hero-stats .stat-num {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  background: var(--grad-t); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-stats .stat-lbl { color: var(--muted); font-size: 13px; margin-top: 4px; }

/* ═══ SECTION RHYTHM + CARDS ═══════════════════════════════════════════════ */
.section { padding: clamp(72px, 10vh, 130px) 0 !important; }
.section-eyebrow {
  display: inline-block; text-transform: uppercase; letter-spacing: .18em;
  font-size: 12px; font-weight: 700; color: var(--pri); margin-bottom: 14px;
}
.section-title, .section h2 {
  font-family: var(--display) !important;
  font-weight: 700 !important;
  font-size: clamp(2rem, 4vw, 3.2rem) !important;
  line-height: 1.04 !important; letter-spacing: -.025em !important;
}
.section-sub, .section-subtitle {
  color: var(--txt2) !important; font-size: clamp(1rem,1.3vw,1.12rem) !important;
  max-width: 620px; margin-left: auto; margin-right: auto;
}

/* glassy card depth + spring hover for the common card classes */
.feature-card, .pricing-card, .spotlight-card, .integ-card,
.compare-card, .step-card, .payment-card, .faq-item, .hld-card {
  background: linear-gradient(180deg, rgba(12,28,18,.55), rgba(5,14,9,.7)) !important;
  border: 1px solid var(--bdr) !important;
  border-radius: 18px !important;
  transition: transform .4s var(--ease-spring), border-color .3s, box-shadow .4s !important;
  will-change: transform;
}
.feature-card:hover, .pricing-card:hover, .spotlight-card:hover, .integ-card:hover, .hld-card:hover {
  transform: translateY(-6px) !important;
  border-color: var(--bdr-h) !important;
  box-shadow: 0 30px 70px -28px rgba(0,0,0,.7), 0 0 0 1px rgba(46,230,110,.1) !important;
}
.pricing-card.featured {
  border-color: rgba(46,230,110,.4) !important;
  box-shadow: 0 30px 90px -30px var(--pri-glow), inset 0 1px 0 rgba(255,255,255,.06) !important;
}

/* browser showcase frame: contained, floating, glow */
.bs-frame {
  border-radius: 20px !important; overflow: hidden;
  border: 1px solid var(--bdr-h) !important;
  box-shadow: 0 50px 120px -40px rgba(0,0,0,.85), 0 0 80px -40px var(--pri-glow) !important;
}

/* ═══ SCROLL CHOREOGRAPHY (initial states; GSAP animates to visible) ═══════ */
.m-anim { opacity: 0; transform: translateY(34px); }
html.m-ready .m-anim { will-change: transform, opacity; }
/* If JS/GSAP fails, never leave content hidden. */
html:not(.m-ready) .m-anim { opacity: 1; transform: none; }

/* ═══ RESPONSIVE ═══════════════════════════════════════════════════════════ */
@media (max-width: 920px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-content { margin: 0 auto; text-align: center !important; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-cta { justify-content: center; }
  .hero-visual { order: -1; min-height: 360px; }
  .hv-card { width: min(86%, 380px); }
  .hv-chip-1 { left: 2%; } .hv-chip-2 { right: 2%; } .hv-chip-3 { left: 4%; }
}
@media (max-width: 560px) {
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 18px 0 !important; }
  .hero-stats .stat-item:nth-child(2) { border-right: none; }
  .hero-title { font-size: clamp(2.3rem, 11vw, 3.2rem) !important; }
  .hv-chip { font-size: 11px; padding: 7px 11px; }
}

/* ═══ LIGHT THEME POLISH ═══════════════════════════════════════════════════
   Pattern: a DARK cinematic hero on an otherwise clean/light site, calmer
   aurora, and light-glass cards (the default overrides above are tuned for
   the dark canvas and would look muddy on white). ───────────────────────── */

/* Calmer, near-white aurora in light mode */
[data-theme="light"] body::before {
  background:
    radial-gradient(42% 52% at 16% 10%, rgba(13,138,73,.10) 0%, transparent 72%),
    radial-gradient(40% 46% at 88% 6%,  rgba(13,138,73,.06) 0%, transparent 72%),
    radial-gradient(54% 64% at 50% 110%, rgba(13,138,73,.08) 0%, transparent 72%) !important;
  filter: blur(30px) !important;
}

/* Keep the hero dark + legible even in light theme (premium dark hero band) */
[data-theme="light"] .hero { background: #04100a; }
[data-theme="light"] .hero .hero-bg::after {
  background: linear-gradient(180deg, rgba(3,9,5,.5) 0%, rgba(3,9,5,.86) 55%, #04100a 100%);
}
[data-theme="light"] .hero-content .hero-title { color: #f6fff8; }
[data-theme="light"] .hero-content .hero-sub { color: #b9d8c2 !important; }
[data-theme="light"] .hero-content .hero-sub strong { color: #f6fff8; }
[data-theme="light"] .hero-content .hero-pill { color: #cfeede; background: rgba(46,230,110,.10); border-color: rgba(46,230,110,.26); }
[data-theme="light"] .hero-content .hero-footnote,
[data-theme="light"] .hero-content .store-badges { color: #9fc2ad; }
[data-theme="light"] .btn-outline-lg { color: #f6fff8 !important; border-color: rgba(220,255,235,.28) !important; background: rgba(255,255,255,.05) !important; }
[data-theme="light"] .hero-stats { background: linear-gradient(180deg, rgba(12,28,18,.7), rgba(4,12,8,.7)); border-color: rgba(178,255,211,.14); }
[data-theme="light"] .hero-stats .stat-lbl { color: #9fc2ad; }

/* Light-glass cards (instead of the dark glass used on the dark canvas) */
[data-theme="light"] .feature-card,
[data-theme="light"] .pricing-card,
[data-theme="light"] .spotlight-card,
[data-theme="light"] .integ-card,
[data-theme="light"] .compare-card,
[data-theme="light"] .step-card,
[data-theme="light"] .payment-card,
[data-theme="light"] .faq-item,
[data-theme="light"] .hld-card {
  background: linear-gradient(180deg, rgba(255,255,255,.92), rgba(244,255,247,.84)) !important;
  border: 1px solid rgba(4,51,27,.10) !important;
}
[data-theme="light"] .feature-card:hover,
[data-theme="light"] .pricing-card:hover,
[data-theme="light"] .spotlight-card:hover,
[data-theme="light"] .integ-card:hover,
[data-theme="light"] .hld-card:hover {
  border-color: rgba(13,138,73,.3) !important;
  box-shadow: 0 28px 64px -30px rgba(8,44,20,.28), 0 0 0 1px rgba(13,138,73,.08) !important;
}

/* ═══ DASHBOARD ════════════════════════════════════════════════════════════
   Glass header, icon-tile stat cards, segmented tabs. Dark + light. ─────── */
.dash-wrap { padding-top: 24px; }
.dash-container { max-width: 1100px; }

/* Header */
.dash-header {
  background: linear-gradient(135deg, rgba(46,230,110,.08) 0%, rgba(12,28,18,.7) 36%, rgba(5,14,9,.8) 100%) !important;
  border: 1px solid var(--bdr-h) !important;
  border-radius: 20px !important;
  padding: 22px 26px !important;
  box-shadow: 0 24px 60px -30px rgba(0,0,0,.7), inset 0 1px 0 rgba(255,255,255,.05) !important;
}
.dash-avatar, .dash-avatar-fallback {
  border: 2px solid rgba(46,230,110,.4) !important;
  box-shadow: 0 0 0 4px rgba(46,230,110,.10), 0 6px 18px -6px rgba(0,0,0,.6) !important;
}
.dash-name { font-family: var(--display) !important; font-size: 20px !important; letter-spacing: -.01em; }
.dash-email { color: var(--muted) !important; }
.sub-badge {
  background: linear-gradient(135deg, var(--pri), var(--pri2)) !important;
  color: #04140a !important; font-weight: 800 !important; letter-spacing: .08em;
  border: none !important; padding: 6px 14px !important; border-radius: 999px !important;
  box-shadow: 0 6px 18px -6px var(--pri-glow);
}

/* Segmented tabs */
.dash-tabs {
  display: inline-flex !important; flex-wrap: wrap; gap: 4px !important;
  padding: 6px !important; margin: 22px 0 !important;
  background: var(--surf) !important; border: 1px solid var(--bdr) !important;
  border-radius: 14px !important; -webkit-backdrop-filter: var(--glass); backdrop-filter: var(--glass);
}
.dash-tab {
  border: none !important; border-radius: 10px !important;
  padding: 9px 18px !important; font-size: 14px !important; font-weight: 600 !important;
  color: var(--txt2) !important; background: transparent !important;
  white-space: nowrap !important;
  transition: background .18s, color .18s, transform .18s !important;
}
.dash-tab:hover { background: var(--pri-dim) !important; color: var(--txt) !important; }
.dash-tab.active {
  background: linear-gradient(135deg, var(--pri), var(--pri2)) !important;
  color: #04140a !important; box-shadow: 0 6px 16px -6px var(--pri-glow) !important;
}

/* Panel: let the cards be the surface, drop the heavy empty wrapper */
.dash-panel { background: transparent !important; border: none !important; padding: 0 !important; box-shadow: none !important; }

/* Stat cards */
.overview-cards { display: grid !important; grid-template-columns: repeat(3, 1fr); gap: 16px !important; }
.ov-card {
  display: flex !important; align-items: center; gap: 14px;
  padding: 20px !important; border-radius: 16px !important;
  background: linear-gradient(180deg, rgba(12,28,18,.6), rgba(5,14,9,.72)) !important;
  border: 1px solid var(--bdr) !important;
  transition: transform .35s cubic-bezier(.22,1,.36,1), border-color .25s, box-shadow .35s !important;
}
.ov-card:hover {
  transform: translateY(-4px);
  border-color: var(--bdr-h) !important;
  box-shadow: 0 24px 50px -28px rgba(0,0,0,.7), 0 0 0 1px rgba(46,230,110,.1) !important;
}
.ov-icon {
  width: 46px; height: 46px; flex-shrink: 0;
  display: grid; place-items: center; font-size: 22px;
  border-radius: 13px; background: var(--pri-dim);
  border: 1px solid rgba(46,230,110,.22);
}
.ov-label { text-transform: uppercase !important; letter-spacing: .1em; font-size: 11px !important; font-weight: 700 !important; color: var(--muted) !important; }
.ov-value { font-family: var(--display) !important; font-size: 22px !important; font-weight: 700 !important; color: var(--txt) !important; margin-top: 2px; }

/* Upgrade banner */
.upgrade-banner {
  background: linear-gradient(135deg, rgba(46,230,110,.14), rgba(12,28,18,.6)) !important;
  border: 1px solid rgba(46,230,110,.3) !important; border-radius: 16px !important;
  padding: 18px 22px !important; margin-top: 18px;
}

/* Light theme dashboard */
[data-theme="light"] .dash-header {
  background: linear-gradient(135deg, rgba(13,138,73,.08), rgba(255,255,255,.92) 40%) !important;
  border-color: rgba(4,51,27,.1) !important;
  box-shadow: 0 24px 60px -34px rgba(8,44,20,.22) !important;
}
[data-theme="light"] .dash-tabs { background: rgba(255,255,255,.8) !important; border-color: rgba(4,51,27,.1) !important; }
[data-theme="light"] .ov-card {
  background: linear-gradient(180deg, rgba(255,255,255,.94), rgba(244,255,247,.86)) !important;
  border-color: rgba(4,51,27,.1) !important;
}
[data-theme="light"] .dash-tab.active, [data-theme="light"] .sub-badge { color: #fff !important; }

@media (max-width: 720px) {
  .overview-cards { grid-template-columns: 1fr; }
  .dash-tabs { display: flex !important; overflow-x: auto; }
}

/* ═══ REDUCED MOTION ═══════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  body::before, .hv-glow, .hv-ring, .hv-chip { animation: none !important; }
  .m-anim { opacity: 1 !important; transform: none !important; }
}
