/* ============================================================
   Simply Monetize — "The Operator Console"
   Dark, engineered, magenta signal accent.
   ============================================================ */

:root {
  /* ---- Colour: dark "operator" base ---- */
  --bg:            #0A0A0F;
  --surface:       #121219;
  --surface-2:     #1A1A24;
  --border:        #26262F;
  --text:          #F5F5F7;
  --text-muted:    #9A9AA8;
  --text-dim:      #6A6A78;

  /* ---- Accent: brand magenta (signal colour) ---- */
  --accent:        #BD08FF;
  --accent-soft:   #BD08FF26; /* ~15% */
  --accent-line:   #BD08FF55;
  --accent-text:   #DDA6FF;   /* readable magenta for small text on dark */

  --good:          #3DDC97;
  --bad:           #6A6A78;

  /* ---- Type ---- */
  --font-display: "Space Grotesk", "Sora", system-ui, sans-serif;
  --font-logo:    "Orbitron", "Space Grotesk", sans-serif;
  --font-body:    "Inter", "Geist", system-ui, sans-serif;

  --h1: clamp(40px, 7vw, 88px);
  --h2: clamp(28px, 4vw, 48px);
  --h3: clamp(20px, 2.4vw, 26px);
  --body: clamp(16px, 1.1vw, 18px);
  --label: 13px;
  --tracking-tight: -0.025em;
  --tracking-label: 0.14em;
  --leading-body: 1.6;

  /* ---- Spacing (8px base) ---- */
  --s-1: 8px;  --s-2: 16px; --s-3: 24px; --s-4: 32px;
  --s-5: 48px; --s-6: 64px; --s-7: 96px; --s-8: 128px;
  --section-y: clamp(52px, 7vw, 96px);
  --container: 1200px;
  --gutter: clamp(20px, 5vw, 64px);

  /* ---- Radius / shadow / motion ---- */
  --radius-sm: 10px;
  --radius:    16px;
  --radius-lg: 24px;
  --shadow:    0 8px 40px rgba(0,0,0,0.45);
  --glow:      0 0 24px var(--accent-soft);
  --ease:      cubic-bezier(0.22, 1, 0.36, 1);
  --dur:       0.5s;
}

/* ---- Light theme: swap base tokens, keep magenta signal ---- */
:root[data-theme="light"] {
  --bg:            #F6F6FB;
  --surface:       #FFFFFF;
  --surface-2:     #F0F0F6;
  --border:        #E4E4EC;
  --text:          #14141C;
  --text-muted:    #54545F;
  --text-dim:      #84848F;

  --accent-soft:   #BD08FF1F;
  --accent-line:   #BD08FF66;
  --accent-text:   #9A06CC;   /* darker magenta for small text on light */
  --bad:           #B6B6C0;

  --shadow:        0 8px 40px rgba(20,20,40,0.10);
  --glow:          0 0 24px var(--accent-soft);
}
:root[data-theme="light"] .bg-radial { opacity: 0.5; }
:root[data-theme="light"] .bg-grain  { opacity: 0.02; }

/* ---------------- Reset / base ---------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--body);
  line-height: var(--leading-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background-color .4s var(--ease), color .4s var(--ease);
}

h1, h2, h3 { margin: 0; font-weight: 600; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

:focus-visible { outline: 2px solid var(--accent-line); outline-offset: 3px; border-radius: 4px; }

/* ---------------- Layout helpers ---------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: 820px; }

.section { padding-block: var(--section-y); }
/* subtle gradient divider between consecutive content sections */
.section + .section { position: relative; }
.section + .section::before {
  content: "";
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: min(var(--container), calc(100% - 2 * var(--gutter)));
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border) 30%, var(--border) 70%, transparent);
}
.section + .section::after {
  content: "";
  position: absolute; top: 0; left: 50%; transform: translate(-50%, -50%);
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent), 0 0 4px var(--accent);
}

.section__head { max-width: 720px; margin-bottom: var(--s-6); }
.section__sub { color: var(--text-muted); margin-top: var(--s-2); }

/* ---------------- Atmosphere ---------------- */
.bg-radial {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(60% 40% at 50% 0%, var(--accent-soft) 0%, transparent 60%);
  opacity: 0.7;
}
.bg-grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
main, .nav, .footer { position: relative; z-index: 1; }

/* ---------------- Typography utilities ---------------- */
.label {
  font-family: var(--font-display);
  font-size: var(--label);
  text-transform: uppercase;
  letter-spacing: var(--tracking-label);
  color: var(--accent);
  font-weight: 600;
}
.h2 {
  font-family: var(--font-display);
  font-size: var(--h2);
  letter-spacing: var(--tracking-tight);
  line-height: 1.1;
}

/* ---------------- Brand ---------------- */
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand__logo {
  height: 34px; width: 46px;
  flex: none;
  display: block;
  /* Logo.png has a baked dark background — use it as a luminance mask so only
     the bright SM letters paint, in the current theme's text colour. */
  background-color: var(--text);
  -webkit-mask-image: url("assets/Logo.png");
  mask-image: url("assets/Logo.png");
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
  mask-mode: luminance;
}
.brand__mark {
  width: 22px; height: 22px; border-radius: 6px;
  background: linear-gradient(135deg, var(--accent), #7a05a8);
  box-shadow: var(--glow);
  flex: none;
}
.brand__name {
  font-family: var(--font-logo);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  border-radius: var(--radius-sm);
  padding: 14px 28px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .2s var(--ease), box-shadow .3s var(--ease),
              background-color .25s var(--ease), border-color .25s var(--ease);
  will-change: transform;
}
.btn--primary {
  background: var(--accent);
  color: #FFFFFF;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.btn--primary:hover { box-shadow: var(--glow); transform: translateY(-2px); }
.btn--primary:active { transform: scale(.98); }

.btn--secondary {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}
.btn--secondary:hover { border-color: var(--accent-line); background: var(--surface-2); }
.btn--secondary:active { transform: scale(.98); }

/* ---------------- Nav ---------------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color .3s var(--ease), border-color .3s var(--ease), backdrop-filter .3s var(--ease);
}
.nav.is-scrolled {
  background: color-mix(in srgb, var(--surface) 80%, transparent);
  border-bottom-color: var(--border);
  backdrop-filter: blur(12px);
}
.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.nav__links { display: flex; gap: var(--s-3); margin-inline: clamp(16px, 2vw, 32px); white-space: nowrap; }
.nav__links a {
  font-size: 14px; color: var(--text-muted);
  transition: color .2s var(--ease);
}
.nav__links a:hover { color: var(--text); }
.nav__cta { padding: 10px 20px; white-space: nowrap; }

.nav__actions { display: flex; align-items: center; gap: var(--s-2); }

/* Theme toggle */
.theme-toggle {
  display: inline-flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 14px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  cursor: pointer;
  transition: color .2s var(--ease), border-color .2s var(--ease), background-color .2s var(--ease);
}
.theme-toggle:hover { color: var(--accent); border-color: var(--accent-line); }
.theme-toggle svg { width: 18px; height: 18px; flex: none; }
.theme-toggle__moon { display: none; }
:root[data-theme="light"] .theme-toggle__sun  { display: none; }
:root[data-theme="light"] .theme-toggle__moon { display: block; }

.theme-toggle__label {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.theme-toggle__label .tm { color: var(--text-dim); transition: color .2s var(--ease); }
.theme-toggle__label .tm-sep { color: var(--text-dim); opacity: .5; margin: 0 1px; }
:root[data-theme="light"] .theme-toggle__label [data-mode="light"] { color: var(--text); }
:root[data-theme="dark"]  .theme-toggle__label [data-mode="dark"]  { color: var(--text); }

@media (max-width: 420px) {
  .theme-toggle__label { display: none; }
  .theme-toggle { padding: 0; width: 40px; justify-content: center; }
}

.nav__toggle {
  display: none;
  flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 8px;
}
.nav__toggle span {
  width: 24px; height: 2px; background: var(--text); border-radius: 2px;
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu overlay */
.mobile-menu {
  position: fixed; inset: 0; z-index: 49;
  background: color-mix(in srgb, var(--bg) 96%, transparent);
  backdrop-filter: blur(16px);
  display: grid; place-items: center;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu nav { display: flex; flex-direction: column; gap: var(--s-4); text-align: center; }
.mobile-menu a { font-family: var(--font-display); font-size: 22px; }
.mobile-menu .btn { margin-top: var(--s-2); }

/* ---------------- Hero ---------------- */
.hero { padding-block: clamp(80px, 14vw, 180px) var(--section-y); text-align: center; }
.hero__inner { display: flex; flex-direction: column; align-items: center; }
.hero .label { margin-bottom: var(--s-3); }
.hero__title {
  font-family: var(--font-logo);
  text-transform: uppercase;
  font-size: var(--h1);
  line-height: 1.02;
  letter-spacing: -0.04em;   /* Orbitron caution: tighter than display */
  font-weight: 800;
  max-width: 14ch;
}
.hero__title-sm { font-size: 0.82em; }
.hero__sub {
  margin-top: var(--s-4);
  color: var(--text-muted);
  max-width: 56ch;
  font-size: clamp(16px, 1.4vw, 19px);
}
.hero__cta { margin-top: var(--s-5); }

/* Audience chips */
.chips { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-5); justify-content: center; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 14px;
  color: var(--text-muted);
}
.chip::before {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}

/* ---------------- Stats ---------------- */
.stats { padding-block: var(--s-4); }
.stats__row {
  width: min(var(--container), calc(100% - 40px));
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}
.stat {
  text-align: center;
  padding: var(--s-5) var(--s-3);
  border-left: 1px solid var(--border);
}
.stat:first-child { border-left: none; }
.stat__num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(32px, 5vw, 56px);
  letter-spacing: -0.02em;
  text-shadow: 0 0 24px var(--accent-soft);
  white-space: nowrap;
}
.stat__label {
  margin-top: var(--s-2);
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: var(--tracking-label);
  color: var(--text-muted);
}

/* ---------------- Comparison ---------------- */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); }
.compare__col {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--s-5);
  background: var(--surface);
}
.compare__col--accent {
  background: var(--surface-2);
  border-color: var(--accent-line);
  box-shadow: var(--glow);
}
.compare__title { font-family: var(--font-display); font-size: var(--h3); }
.compare__col--muted .compare__title { color: var(--text); }
.compare__tag {
  margin-top: 6px; margin-bottom: var(--s-4);
  font-size: 13px; color: var(--text-dim);
}
.compare__list { display: flex; flex-direction: column; gap: var(--s-3); }
.compare__list li { display: flex; align-items: flex-start; gap: 12px; }
.compare__col--muted .compare__list li { color: var(--text); }
.mark {
  flex: none; width: 20px; height: 20px; border-radius: 50%;
  display: inline-grid; place-items: center;
  font-size: 12px; font-weight: 700; margin-top: 2px;
}
.mark--good { background: color-mix(in srgb, var(--good) 18%, transparent); color: var(--good); }
.mark--bad {
  background: color-mix(in srgb, #FF4D5E 16%, transparent);
  color: #FF4D5E;
}

/* ---------------- Service cards ---------------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-3);
}
/* Service section: a touch wider so the cards read more horizontal */
#services > .container { padding-inline: 28px; }
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--s-4) var(--s-4);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform .35s var(--ease), border-color .3s var(--ease), box-shadow .35s var(--ease);
}
.card:hover { border-color: var(--accent-line); transform: translateY(-4px); box-shadow: var(--shadow); }
/* Order: title -> icon -> body -> payoff (matches reference) */
.card__title {
  order: 1;
  font-family: var(--font-display);
  font-size: var(--h3);
  line-height: 1.2;
  margin-bottom: var(--s-3);
  /* reserve 2 lines so the icon below lines up across every card */
  min-height: 2.4em;
  display: flex;
  align-items: center;
  justify-content: center;
}
.card__icon {
  order: 2;
  width: auto; height: auto;
  background: none; border: none;
  margin: 0 auto var(--s-2);
  color: var(--accent);
  transition: transform .35s var(--ease);
}
.card:hover .card__icon { transform: scale(1.08); }
.card__icon svg { width: 54px; height: 54px; }
.card__icon img { width: 60px; height: 60px; object-fit: contain; display: block; }
.card__body { order: 3; color: var(--text-muted); flex-grow: 1; }
.card__payoff {
  order: 4;
  align-self: stretch;
  margin-top: var(--s-3);
  padding: 12px 18px;
  border: 1px solid var(--accent-line);
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--text);
  font-style: normal;
  font-weight: 500;
  font-size: 13px;
  line-height: 1.4;
  display: flex; align-items: center; justify-content: center;
  min-height: 52px;
}

/* ---------------- Timeline ---------------- */
.timeline { position: relative; }
.timeline::before {
  content: ""; position: absolute; left: 11px; top: 8px; bottom: 8px;
  width: 2px; background: var(--accent-line);
}
.step {
  position: relative;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) minmax(0, 1.05fr);
  column-gap: var(--s-5);
  align-items: center;
  padding-bottom: var(--s-3);
  /* uniform row height so different image sizes don't make uneven gaps */
  min-height: 380px;
}
.step__node { grid-column: 1; }
.step__content {
  grid-column: 2;
  /* uniform text-block height so the gaps between steps are even */
  min-height: 165px;
  display: flex; flex-direction: column; justify-content: center;
}
.step:last-child { padding-bottom: 0; }
.step__node {
  flex: none; width: 24px; height: 24px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 5px var(--accent-soft), var(--glow);
  margin-top: 4px; z-index: 1;
}
.step__label {
  font-family: var(--font-display);
  text-transform: uppercase; letter-spacing: var(--tracking-label);
  font-size: var(--label); color: var(--accent); font-weight: 600;
}
.step__title { font-family: var(--font-display); font-size: var(--h3); margin: 4px 0 var(--s-2); }
.step__body { color: var(--text-muted); }

/* Per-step image slot (right column) */
.step__media {
  grid-column: 3;
  margin: 0;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  overflow: hidden;
  display: grid;
  place-items: center;
}
.step__media img { display: block; width: auto; max-width: 100%; max-height: 348px; object-fit: contain; }
/* When a real image is present, drop the placeholder frame and let it float */
.step__media:has(img) {
  aspect-ratio: auto;
  border: none;
  background: none;
  overflow: visible;
}

/* Step 1 reads a touch bigger */
/* Step 3 & Step 5 a little smaller (rows stay uniform via .step min-height) */
.timeline .step:nth-child(3) .step__media img,
.timeline .step:nth-child(5) .step__media img { max-height: 312px; }
/* nudge Step 5 image slightly down */
.timeline .step:nth-child(5) .step__media { position: relative; top: 28px; }

/* Step 4 — funnel image + "Powered By Whop" credit + Whop logo */
.step__media--branded {
  display: flex; flex-direction: column; align-items: center; gap: var(--s-2);
}
.whop-credit {
  display: flex; flex-direction: row; align-items: center; justify-content: center; gap: 12px;
  /* pull the credit up into the funnel image's empty bottom space */
  margin-top: -120px;
}
.whop-credit__text {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
}
.whop-credit__sub {
  font-size: 16px; letter-spacing: 0.01em;
  color: var(--text-muted); font-family: var(--font-display); font-weight: 500;
}
.whop-credit__trust {
  font-size: 11px; text-transform: uppercase; letter-spacing: var(--tracking-label);
  color: var(--text-dim); font-family: var(--font-display); font-weight: 600;
}
/* Whop.png is a small transparent logo on a large canvas — crop to the logo region. */
.whop-credit__logo {
  display: block;
  flex: none;
  width: 64px; height: 44px;
  background-image: url("assets/Whop.png");
  background-repeat: no-repeat;
  background-size: 390px auto;
  background-position: -146px -226px;
}
.step__media-ph {
  font-family: var(--font-display);
  font-size: var(--label);
  text-transform: uppercase;
  letter-spacing: var(--tracking-label);
  color: var(--text-dim);
}

@media (max-width: 768px) {
  .step { grid-template-columns: 24px minmax(0, 1fr); align-items: start; min-height: 0; }
  .step__content { grid-column: 2; grid-row: 1; min-height: 0; }
  .step__media { grid-column: 2; grid-row: 2; margin-top: var(--s-3); aspect-ratio: 16 / 9; }
}

/* ---------------- Partnership CTA panel ---------------- */
.cta-panel {
  background: var(--surface);
  border: 1px solid var(--accent-line);
  border-radius: var(--radius-lg);
  padding: clamp(32px, 6vw, 72px);
  box-shadow: var(--glow);
  text-align: center;
  max-width: 880px; margin-inline: auto;
}
.cta-panel__body { color: var(--text-muted); max-width: 64ch; margin: var(--s-4) auto 0; }
.cta-panel__body--secondary { margin-top: var(--s-4); }
.cta-panel__bold { margin-top: var(--s-4); font-weight: 600; color: var(--text); font-size: 1.1em; }
.cta-panel__actions { display: flex; flex-wrap: wrap; gap: var(--s-2); justify-content: center; margin-top: var(--s-5); }
.cta-panel__micro { margin-top: var(--s-3); font-size: 13px; color: var(--text-dim); }

/* ---------------- FAQ ---------------- */
.faq { border-top: 1px solid var(--border); }
.faq__item { border-bottom: 1px solid var(--border); }
.faq__q {
  width: 100%; background: none; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-3);
  padding: var(--s-4) 0;
  font-family: var(--font-display); font-weight: 500; font-size: clamp(16px, 2vw, 19px);
  color: var(--text); text-align: left;
}
.faq__icon {
  flex: none; position: relative; width: 18px; height: 18px;
}
.faq__icon::before, .faq__icon::after {
  content: ""; position: absolute; background: var(--accent);
  left: 50%; top: 50%; transform: translate(-50%, -50%);
}
.faq__icon::before { width: 14px; height: 2px; }
.faq__icon::after { width: 2px; height: 14px; transition: transform .3s var(--ease); }
.faq__q[aria-expanded="true"] .faq__icon::after { transform: translate(-50%, -50%) scaleY(0); }
.faq__a {
  overflow: hidden; height: 0;
  transition: height .35s var(--ease);
  color: var(--text-muted);
}
.faq__a p { padding-bottom: var(--s-4); max-width: 64ch; }

/* ---------------- Footer ---------------- */
.footer { border-top: 1px solid var(--border); padding-block: var(--s-6) var(--s-4); margin-top: var(--section-y); }
.footer__inner {
  display: flex; flex-wrap: wrap; gap: var(--s-5);
  justify-content: space-between; align-items: flex-start;
}
.footer__tag { color: var(--text-dim); margin-top: var(--s-2); font-size: 14px; }
.footer__nav { display: flex; flex-direction: column; gap: var(--s-2); }
.footer__nav a, .footer__social a { color: var(--text-muted); font-size: 14px; transition: color .2s var(--ease); }
.footer__nav a:hover, .footer__social a:hover { color: var(--text); }
.footer__social { display: flex; flex-direction: column; gap: var(--s-2); }
.footer__bottom {
  margin-top: var(--s-6); padding-top: var(--s-4);
  border-top: 1px solid var(--border);
  color: var(--text-dim); font-size: 13px;
}

/* ---------------- Reveal motion ---------------- */
@media (prefers-reduced-motion: no-preference) {
  [data-reveal] {
    opacity: 0; transform: translateY(24px);
    transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
  }
  [data-reveal].is-in { opacity: 1; transform: none; }
  /* hero stagger */
  .reveal { transition-delay: var(--reveal-delay, 0ms); }
}

/* ---------------- Responsive ---------------- */
@media (max-width: 1024px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1140px) {
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: flex; }
}
@media (max-width: 640px) {
  .stats__row { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
  .stat:nth-child(odd) { border-left: none; }
  .compare { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
}

/* ============================================================
   Premium enhancements: aurora · gradient text · glass ·
   hero revenue visual · marquee · richer motion
   ============================================================ */

/* --- Gradient text --- */
.gradient-text {
  background: linear-gradient(100deg, #FFFFFF 0%, #E7B6FF 45%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
/* Light theme: keep the headline in the purple family (W matches E), still readable */
:root[data-theme="light"] .gradient-text {
  background-image: linear-gradient(100deg, #3D0B5C 0%, #9A06CC 50%, #BD08FF 100%);
}

/* Inline word highlight (section headings) — vivid magenta across the whole phrase */
.hl {
  background-image: linear-gradient(100deg, #BD08FF 0%, #A206D4 50%, #7E1CC4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  font-weight: 800;
}

/* Centered section header (FAQs) */
.section__head--center { margin-inline: auto; text-align: center; max-width: none; }
.faq__heading { font-size: clamp(40px, 6vw, 64px); }

/* "How It Works" label — white (theme text) and slightly bigger */
#how .section__head .label { color: var(--text); font-size: 16px; }
:root[data-theme="light"] .hl {
  background-image: linear-gradient(100deg, #B411E8 0%, #9A06CC 50%, #7A1FD0 100%);
}
/* Light theme: invert to a dark SM, multiply to drop the (now light) background */
/* logo colour follows --text via the mask above; no per-theme override needed */

/* --- Animated aurora glows --- */
.bg-radial { overflow: hidden; }
.bg-radial::before,
.bg-radial::after {
  content: "";
  position: absolute;
  width: 60vw; height: 60vw;
  border-radius: 50%;
  filter: blur(90px);
  will-change: transform;
}
.bg-radial::before {
  top: -18vw; left: -10vw; opacity: .55;
  background: radial-gradient(circle, var(--accent) 0%, transparent 65%);
}
.bg-radial::after {
  top: -8vw; right: -12vw; opacity: .4;
  background: radial-gradient(circle, #6A2BFF 0%, transparent 65%);
}
:root[data-theme="light"] .bg-radial::before { opacity: .26; }
:root[data-theme="light"] .bg-radial::after  { opacity: .2; }
@media (prefers-reduced-motion: no-preference) {
  .bg-radial::before { animation: aurora1 22s var(--ease) infinite alternate; }
  .bg-radial::after  { animation: aurora2 26s var(--ease) infinite alternate; }
}
@keyframes aurora1 { from { transform: translate(0,0) scale(1); } to { transform: translate(16vw, 7vw) scale(1.25); } }
@keyframes aurora2 { from { transform: translate(0,0) scale(1.1); } to { transform: translate(-13vw, 11vw) scale(.9); } }

/* --- Glassmorphism on key surfaces --- */
.stats__row,
.card,
.cta-panel {
  background: color-mix(in srgb, var(--surface) 72%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.compare__col--accent {
  background: color-mix(in srgb, var(--surface-2) 70%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

/* --- Card hover glow-beam + purple gradient highlight --- */
.card { position: relative; overflow: hidden; }
.card > * { position: relative; z-index: 1; }
.card::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(120deg, rgba(189,8,255,0.36) 0%, rgba(162,6,212,0.20) 50%, rgba(126,28,196,0.06) 100%);
  opacity: 0; transition: opacity .4s var(--ease);
}
.card:hover::before { opacity: 1; }
.card:hover { box-shadow: 0 12px 50px rgba(0,0,0,.45), 0 0 28px var(--accent-soft); }

/* --- Comparison columns: purple gradient highlight on hover --- */
.compare__col { position: relative; overflow: hidden; transition: transform .35s var(--ease), border-color .3s var(--ease), box-shadow .35s var(--ease); }
.compare__col > * { position: relative; z-index: 1; }
.compare__col::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(120deg, rgba(189,8,255,0.38) 0%, rgba(162,6,212,0.22) 50%, rgba(126,28,196,0.06) 100%);
  opacity: 0; transition: opacity .4s var(--ease);
}
.compare__col:hover { border-color: var(--accent-line); transform: translateY(-4px); box-shadow: var(--shadow), 0 0 34px var(--accent-soft); }
.compare__col:hover::before { opacity: 1; }

/* --- Staggered card reveals --- */
@media (prefers-reduced-motion: no-preference) {
  .cards .card:nth-child(3n+2) { transition-delay: 80ms; }
  .cards .card:nth-child(3n+3) { transition-delay: 160ms; }
}

/* --- Hero revenue visual --- */
.hero-viz {
  width: 100%; max-width: 520px;
  margin: var(--s-6) auto 0;
  padding: var(--s-4);
  text-align: left;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--surface) 70%, transparent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow), 0 0 40px var(--accent-soft);
}
.hero-viz__head { display: flex; align-items: center; justify-content: space-between; gap: var(--s-2); }
.hero-viz__label {
  font-size: var(--label); text-transform: uppercase; letter-spacing: var(--tracking-label);
  color: var(--text-dim); font-family: var(--font-display); font-weight: 600;
}
.hero-viz__badge {
  font-size: 12px; font-weight: 600; color: var(--good);
  background: color-mix(in srgb, var(--good) 16%, transparent);
  padding: 3px 9px; border-radius: 999px; white-space: nowrap;
}
.hero-viz__num {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(28px, 4vw, 40px); letter-spacing: -0.02em;
  margin: 6px 0 var(--s-3);
  text-shadow: 0 0 24px var(--accent-soft);
}
.hero-viz__chart { display: block; width: 100%; height: 110px; }
.hero-viz__line { stroke-dasharray: 760; stroke-dashoffset: 760; }
.hero-viz__area { opacity: 0; transition: opacity 1.2s var(--ease) .3s; }
[data-reveal].is-in .hero-viz__area { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  [data-reveal].is-in .hero-viz__line { animation: drawLine 1.7s var(--ease) forwards; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-viz__line { stroke-dashoffset: 0; }
  .hero-viz__area { opacity: 1; }
}
@keyframes drawLine { to { stroke-dashoffset: 0; } }

/* --- Marquee strip --- */
.marquee {
  max-width: var(--container);
  margin-inline: auto;
  overflow: hidden;
  border-block: 1px solid var(--border);
  padding: var(--s-3) 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track {
  display: inline-flex; align-items: center; gap: var(--s-3);
  white-space: nowrap; will-change: transform;
}
.marquee__track span {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(15px, 2vw, 20px); color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.02em;
}
.marquee__track i { color: var(--accent); font-style: normal; }
@media (prefers-reduced-motion: no-preference) {
  .marquee__track { animation: marquee 34s linear infinite; }
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============================================================
   Book A Call page
   ============================================================ */
.booking { padding-block: clamp(48px, 8vw, 104px); }
.booking__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.booking__title {
  font-family: var(--font-display);
  font-size: clamp(34px, 4.4vw, 52px);
  line-height: 1.08;
  letter-spacing: var(--tracking-tight);
}
.booking__desc { color: var(--text-muted); margin-top: var(--s-4); max-width: 50ch; }
.booking__note { color: var(--text-muted); margin-top: var(--s-3); }
.booking__cover {
  font-family: var(--font-display);
  font-size: clamp(18px, 2vw, 22px);
  margin-top: var(--s-5);
  color: var(--accent-text);
}
.booking__list { margin-top: var(--s-3); display: flex; flex-direction: column; gap: var(--s-2); }
.booking__list li { position: relative; padding-left: 22px; color: var(--text-muted); }
.booking__list li::before {
  content: ""; position: absolute; left: 4px; top: 9px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
}
.booking__closing { margin-top: var(--s-4); color: var(--accent-text); font-weight: 500; }

.booking__form {
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(20px, 3vw, 36px);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow), 0 0 50px var(--accent-soft);
}
.bookform__head {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-size: 18px; font-weight: 600;
  padding-bottom: var(--s-3); margin-bottom: var(--s-4);
  border-bottom: 1px solid var(--border);
}
.bookform__head strong { font-weight: 700; }
.field { margin-bottom: var(--s-3); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3); }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 7px; color: var(--text); }
.field input, .field textarea {
  width: 100%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field input::placeholder, .field textarea::placeholder { color: var(--text-dim); }
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent-line);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.field textarea { resize: vertical; min-height: 110px; }
.bookform__submit { width: 100%; margin-top: var(--s-2); }
.bookform__micro { text-align: center; color: var(--text-dim); font-size: 13px; margin-top: var(--s-3); }
.bookform__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

@media (max-width: 820px) {
  .booking__grid { grid-template-columns: 1fr; }
}

/* Book A Call page-specific tweaks */
.page-book .bg-radial::before { opacity: .30; }   /* darker background behind the intro */
.page-book .bg-radial::after  { opacity: .20; }
.page-book .booking__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.18fr); } /* form a touch wider */
.page-book .booking { padding-bottom: var(--s-5); } /* less space below the form */
.page-book .footer { margin-top: 0; }               /* close the gap above the footer */
@media (max-width: 820px) {
  .page-book .booking__grid { grid-template-columns: 1fr; }
}

/* ============================================================
   Thank You page
   ============================================================ */
.thanks { min-height: 68vh; display: grid; place-items: center; }
.thanks__inner { max-width: 640px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.thanks__icon {
  width: 88px; height: 88px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  box-shadow: var(--glow);
  color: var(--accent);
  margin-bottom: var(--s-4);
}
.thanks__icon svg { width: 42px; height: 42px; }
.thanks__title {
  font-family: var(--font-display);
  font-size: clamp(36px, 6vw, 64px);
  letter-spacing: var(--tracking-tight);
  line-height: 1.05;
}
.thanks__sub { color: var(--text-muted); margin-top: var(--s-3); font-size: clamp(16px, 1.4vw, 18px); max-width: 50ch; }
.thanks__actions { display: flex; flex-wrap: wrap; gap: var(--s-2); justify-content: center; margin-top: var(--s-5); }
@media (prefers-reduced-motion: no-preference) {
  .thanks__icon { animation: thanksPop .55s var(--ease) both; }
  .thanks__title, .thanks__sub, .thanks__actions { animation: thanksRise .6s var(--ease) both; }
  .thanks__title { animation-delay: .08s; }
  .thanks__sub { animation-delay: .16s; }
  .thanks__actions { animation-delay: .24s; }
}
@keyframes thanksPop { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: scale(1); } }
@keyframes thanksRise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
