/* ============================================================
   Quicklead — Core design system
   Dark-first · electric violet
   ============================================================ */

/* ---------- 1. Tokens ---------- */
:root {
  /* Canvas — light. Product UI keeps the dark palette via .on-dark below. */
  --ink-900: #FFFFFF;
  --ink-850: #F7F5FD;
  --ink-800: #F1EDFA;
  --ink-700: #E8E3F6;
  --ink-600: #DAD3F0;
  --ink-500: #C7BDE8;

  /* dark palette, retained for inverted surfaces */
  --dk-900: #17123A;
  --dk-850: #1E1849;
  --dk-800: #251E5C;

  /* Brand — electric violet */
  --violet-50:  #F2EEFF;
  --violet-200: #C9B8FF;
  --violet-300: #A88DFF;
  --violet-400: #8B6BFF;
  --violet-500: #7A4DFF;
  --violet-600: #6A2FF5;
  --violet-700: #5218CC;
  --violet-900: #2A0A6B;

  /* Accents that stay legible on white; .on-dark swaps in the bright versions */
  --acc-violet:  #6A2FF5;
  --acc-cyan:    #0C8496;
  --acc-lime:    #4C7A08;
  --acc-amber:   #A76A05;
  --acc-emerald: #0C8256;
  --acc-rose:    #C22A50;

  /* Support */
  --cyan-400:  #46E5F0;
  --lime-400:  #B6F24A;
  --amber-400: #FFC24B;
  --rose-400:  #FF6B8B;
  --emerald-400: #3DE0A0;

  /* Text */
  --text-hi:  #120D2E;
  --text-mid: #4A4270;
  --text-lo:  #6E6694;
  --text-dim: #928AB2;

  /* Lines & fills */
  --line:      rgba(18,13,46,.10);
  --line-str:  rgba(18,13,46,.17);
  --line-glow: rgba(122,77,255,.45);
  --fill-1:    rgba(18,13,46,.028);
  --fill-2:    rgba(18,13,46,.055);
  --fill-3:    rgba(18,13,46,.095);

  /* Chip plate. Declared as a token so it flips with the palette inside
     .on-dark / .vis / .ftr subtrees instead of staying hardcoded white. */
  --chip-bg: #fff;

  /* Light surfaces (for inverted bands) */
  --paper:      #FBFAFF;
  --paper-2:    #F2F0FA;
  --paper-line: rgba(12,10,22,.09);
  --paper-text: #16122B;
  --paper-mid:  #504A6B;

  /* Type */
  --f-display: 'Instrument Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --f-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --f-mono:    'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  /* Rhythm */
  --r-xs: 8px;  --r-sm: 12px; --r-md: 16px;
  --r-lg: 22px; --r-xl: 28px; --r-2xl: 36px; --r-pill: 999px;

  --shell: 1220px;
  --gut: 24px;

  --sect: clamp(44px, 4.4vw, 70px);

  /* Elevation */
  --sh-1: 0 1px 2px rgba(23,18,58,.06), 0 1px 1px rgba(23,18,58,.04);
  --sh-2: 0 10px 26px -12px rgba(23,18,58,.18);
  --sh-3: 0 26px 60px -24px rgba(23,18,58,.24);
  --sh-glow: 0 0 0 1px var(--line-glow), 0 22px 55px -24px rgba(122,77,255,.35);

  --ease: cubic-bezier(.22,1,.36,1);
  --ease-io: cubic-bezier(.65,.05,.36,1);
}

/* ---------- 1b. Inverted surfaces ----------
   Product screenshots, the footer, the closing CTA, the nav panels and media
   overlays keep the dark palette. Re-declaring the tokens flips those subtrees,
   so every component rule underneath keeps working unchanged. */
.on-dark,
.vis, .frame, .frame-in, .vposter,
.ftr, .cta-band, .lb, .lb-view, .vmodal,
.event-poster, .mega, .drawer, .promo,
.post-thumb, .event-img, .vid-t {
  --ink-900: var(--dk-900);
  --ink-850: var(--dk-850);
  --ink-800: var(--dk-800);
  --text-hi:  #FFFFFF;
  --text-mid: #D5CFF0;
  --text-lo:  #A79ECD;
  --text-dim: #877EAE;
  --line:      rgba(255,255,255,.13);
  --line-str:  rgba(255,255,255,.22);
  --line-glow: rgba(190,168,255,.6);
  --fill-1:    rgba(255,255,255,.05);
  --fill-2:    rgba(255,255,255,.09);
  --fill-3:    rgba(255,255,255,.15);
  --chip-bg:   rgba(255,255,255,.09);
  --acc-violet:  #C9B8FF;
  --acc-cyan:    #46E5F0;
  --acc-lime:    #B6F24A;
  --acc-amber:   #FFC24B;
  --acc-emerald: #3DE0A0;
  --acc-rose:    #FF6B8B;
  color: var(--text-mid);
}
.ftr h2, .ftr h3, .ftr h4, .cta-band h2, .flow-stage h3 { color: var(--text-hi); }

/* ---------- 2. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html {
  /* clip, not hidden: overflow-x:hidden here makes html a scroll container,
     which silently kills position:sticky on the header */
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}
body {
  background:
    radial-gradient(1200px 640px at 50% -10%, rgba(122,77,255,.10), transparent 62%),
    radial-gradient(900px 560px at 96% 6%, rgba(70,229,240,.06), transparent 60%),
    var(--ink-900);
  background-attachment: fixed;
  color: var(--text-mid);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.65;
  font-feature-settings: 'cv02','cv03','cv04','ss01';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul, ol { padding: 0; list-style: none; }
table { border-collapse: collapse; width: 100%; }
:focus-visible { outline: 2px solid var(--violet-400); outline-offset: 3px; border-radius: 4px; }
::selection { background: rgba(122,77,255,.22); color: var(--text-hi); }

h1, h2, h3, h4, h5 {
  font-family: var(--f-display);
  color: var(--text-hi);
  font-weight: 640;
  line-height: 1.1;
  letter-spacing: -.024em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 6vw, 4.35rem); letter-spacing: -.038em; }
h2 { font-size: clamp(1.85rem, 3.9vw, 3rem); letter-spacing: -.032em; }
h3 { font-size: clamp(1.25rem, 2.1vw, 1.6rem); }
h4 { font-size: 1.08rem; }
p  { text-wrap: pretty; }

/* ---------- 3. Layout ---------- */
.shell { width: 100%; max-width: var(--shell); margin-inline: auto; padding-inline: var(--gut); }
.shell-narrow { max-width: 820px; }
.shell-wide { max-width: 1400px; }
.sect { padding-block: var(--sect); position: relative; }
/* two plain sections in a row otherwise stack two full paddings and read as a gap */
.sect + .sect:not(.prose-band):not(.cta-band) { padding-top: calc(var(--sect) * .35); }
.sect-sm + .sect-sm:not(.prose-band):not(.cta-band) { padding-top: 0; }
.sect-sm + .sect:not(.prose-band):not(.cta-band) { padding-top: calc(var(--sect) * .4); }
.sect + .sect-sm:not(.prose-band):not(.cta-band) { padding-top: 0; }
.sect-sm { padding-block: clamp(38px, 4vw, 58px); }
.stack > * + * { margin-top: var(--sp, 20px); }
.grid { display: grid; gap: 22px; }
.g2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
.row { display: flex; gap: 14px; flex-wrap: wrap; }
.row-c { justify-content: center; }
.center { text-align: center; }
.mx-auto { margin-inline: auto; }

@media (max-width: 980px) { .g4 { grid-template-columns: repeat(2, minmax(0,1fr)); } .g3 { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 720px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } }

/* ---------- 4. Atmosphere ---------- */
.aurora {
  position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0;
  /* fade the glow out at the container edge, otherwise overflow:hidden
     clips the blur into a hard horizontal seam between sections */
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 14%, #000 62%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 14%, #000 62%, transparent 100%);
}
.aurora::before, .aurora::after {
  content: ''; position: absolute; border-radius: 50%; filter: blur(90px);
}
.aurora::before {
  width: 46vw; height: 46vw; min-width: 380px; min-height: 380px;
  top: -18%; left: -8%;
  background: radial-gradient(circle, rgba(122,77,255,.16) 0%, transparent 70%);
}
.aurora::after {
  width: 40vw; height: 40vw; min-width: 320px; min-height: 320px;
  bottom: -22%; right: -6%;
  background: radial-gradient(circle, rgba(70,229,240,.13) 0%, transparent 70%);
}
.aurora-soft::before { opacity: .55; }
.aurora-soft::after { opacity: .5; }

/* subtle film grain, keeps big flat areas from banding */
.grain::after {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: .2;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.045'/%3E%3C/svg%3E");
}
.rel { position: relative; z-index: 1; }

/* faint grid backdrop */
.gridlines::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    linear-gradient(to right, rgba(18,13,46,.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(18,13,46,.045) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: radial-gradient(ellipse 75% 60% at 50% 40%, #000 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 75% 60% at 50% 40%, #000 30%, transparent 78%);
}

/* ---------- 5. Typographic accents ---------- */
.eyebrow {
  font-family: var(--f-mono);
  font-size: 11.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--violet-600);
  display: inline-flex; align-items: center; gap: 9px;
  margin-bottom: 12px;
}
.eyebrow::before {
  content: ''; width: 22px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--violet-400));
}
.eyebrow-c::before { display: none; }
.lede { font-size: clamp(1.02rem, 1.5vw, 1.18rem); color: var(--text-mid); line-height: 1.7; max-width: 62ch; }
.lede-c { margin-inline: auto; }
.grad-text {
  background: linear-gradient(104deg, var(--violet-600) 8%, var(--violet-400) 44%, #2FBBD0 96%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hl { color: var(--violet-600); }
.hl-u {
  position: relative; color: var(--text-hi);
  background-image: linear-gradient(90deg, var(--violet-500), var(--cyan-400));
  background-repeat: no-repeat; background-size: 100% 3px; background-position: 0 92%;
  padding-bottom: 2px;
}
.mono-mini { font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-lo); }

/* ---------- 6. Buttons ---------- */
.btn {
  --btn-bg: var(--fill-2);
  --btn-fg: var(--text-hi);
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 22px;
  border-radius: var(--r-sm);
  background: var(--btn-bg); color: var(--btn-fg);
  font-family: var(--f-display); font-weight: 600; font-size: 15px; letter-spacing: -.012em;
  line-height: 1; white-space: nowrap;
  border: 1px solid var(--line-str);
  transition: transform .28s var(--ease), box-shadow .28s var(--ease), background .2s, border-color .2s, opacity .2s;
  position: relative; overflow: hidden;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn i, .btn svg { font-size: .95em; }

.btn-primary {
  --btn-bg: linear-gradient(135deg, var(--violet-500) 0%, var(--violet-600) 55%, #4A18B8 100%);
  --btn-fg: #fff;
  background-color: var(--violet-600);
  border-color: transparent;
  box-shadow: 0 1px 0 rgba(255,255,255,.22) inset, 0 10px 30px -12px rgba(122,77,255,.85);
}
.btn-primary::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.28) 50%, transparent 70%);
  transform: translateX(-130%); transition: transform .7s var(--ease);
}
.btn-primary:hover::after { transform: translateX(130%); }
.btn-primary:hover { box-shadow: 0 1px 0 rgba(255,255,255,.22) inset, 0 18px 44px -14px rgba(122,77,255,1); }

.btn-ghost { --btn-bg: #fff; --btn-fg: var(--text-hi); border-color: var(--line-str); box-shadow: var(--sh-1); }
.btn-ghost:hover { --btn-bg: #fff; border-color: var(--text-lo); box-shadow: var(--sh-2); }
.on-dark .btn-ghost, .cta-band .btn-ghost, .ftr .btn-ghost { --btn-bg: transparent; --btn-fg: #fff; }

.btn-light { --btn-bg: #fff; --btn-fg: #241C5C; border-color: transparent; box-shadow: 0 10px 30px -14px rgba(0,0,0,.9); }
.btn-light:hover { --btn-bg: #F2EEFF; }

.btn-lg { padding: 16px 28px; font-size: 16px; border-radius: var(--r-md); }
.btn-sm { padding: 9px 15px; font-size: 13.5px; border-radius: 10px; }
.btn-block { width: 100%; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--f-display); font-weight: 600; font-size: 14.5px;
  color: var(--violet-600);
  transition: gap .25s var(--ease), color .2s;
}
.link-arrow:hover { gap: 12px; color: var(--violet-700); }

/* ---------- 7. Chips & pills ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px 7px 11px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: var(--chip-bg);
  font-size: 13px; color: var(--text-mid);
  backdrop-filter: blur(10px);
}
.chip-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--lime-400); box-shadow: 0 0 0 3px rgba(182,242,74,.16); flex: none; }
.chip strong { color: var(--text-hi); font-weight: 600; }
.tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px; border-radius: 7px;
  font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .07em; text-transform: uppercase;
  background: var(--fill-1); color: var(--text-lo); border: 1px solid var(--line);
}
.tag-new { background: rgba(122,77,255,.10); color: var(--acc-violet); border-color: rgba(122,77,255,.28); }
.tag-hot { background: rgba(194,42,80,.10); color: var(--acc-rose); border-color: rgba(194,42,80,.25); }
.tag-ok  { background: rgba(12,130,86,.10); color: var(--acc-emerald); border-color: rgba(12,130,86,.24); }

/* ---------- 8. Cards ---------- */
.card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px;
  box-shadow: var(--sh-1);
  transition: border-color .3s var(--ease), transform .38s var(--ease), background .3s;
}
.card-hover:hover { border-color: var(--line-glow); transform: translateY(-4px); box-shadow: var(--sh-2); }
.card-glass { backdrop-filter: blur(18px); background: rgba(255,255,255,.72); }
.card-solid { background: var(--ink-800); }
.card h3 { margin-bottom: 10px; }
.card p { font-size: 15px; color: var(--text-lo); line-height: 1.68; }

/* icon tile */
.itile {
  width: 44px; height: 44px; border-radius: 13px;
  display: grid; place-items: center;
  background: linear-gradient(140deg, rgba(122,77,255,.16), rgba(122,77,255,.06));
  border: 1px solid rgba(122,77,255,.22);
  color: var(--acc-violet); font-size: 17px;
  margin-bottom: 18px; flex: none;
}
.itile-cyan { background: linear-gradient(140deg, rgba(12,132,150,.14), rgba(12,132,150,.05)); border-color: rgba(12,132,150,.22); color: var(--acc-cyan); }
.itile-lime { background: linear-gradient(140deg, rgba(76,122,8,.13), rgba(76,122,8,.05)); border-color: rgba(76,122,8,.2); color: var(--acc-lime); }
.itile-amber{ background: linear-gradient(140deg, rgba(167,106,5,.14), rgba(167,106,5,.05)); border-color: rgba(167,106,5,.22); color: var(--acc-amber); }

/* ---------- 9. Stat row ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.stats > div { background: #fff; padding: 26px 22px; }
.stat-n { font-family: var(--f-display); font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 680; color: var(--violet-600); letter-spacing: -.035em; line-height: 1; }
.stat-n span { color: var(--violet-600); }
.stat-l { font-size: 13.5px; color: var(--text-lo); margin-top: 9px; }
@media (max-width: 820px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* ---------- 10. Promo bar ---------- */
.promo {
  position: relative; z-index: 910; overflow: hidden;
  background-color: var(--violet-700);
  background-image: linear-gradient(96deg, var(--violet-700) 0%, var(--violet-600) 30%, #7B2BD6 58%, #B0308F 80%, var(--violet-600) 100%);
  background-size: 220% 100%;
  animation: promoShift 14s linear infinite;
  color: #fff;
}
@keyframes promoShift { to { background-position: -220% 0; } }
.promo-in {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  padding: 10px 46px 10px var(--gut); min-height: 44px;
  font-size: 13.5px; text-align: center; flex-wrap: wrap;
}
.promo strong { font-weight: 650; }
.promo s { opacity: .55; }
.promo-code {
  font-family: var(--f-mono); font-size: 12px; letter-spacing: .08em;
  background: rgba(0,0,0,.32); border: 1px solid rgba(255,255,255,.22);
  padding: 4px 9px; border-radius: 7px;
}
.promo-cta {
  background: #1B1450; color: #fff; font-family: var(--f-display); font-weight: 600;
  font-size: 13px; padding: 7px 15px; border-radius: var(--r-pill); white-space: nowrap;
  transition: transform .25s var(--ease), background .2s;
}
.promo-cta:hover { transform: translateY(-1px); background: #120C3A; }
.promo-x {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  color: rgba(255,255,255,.75); font-size: 13px; transition: background .2s, color .2s;
}
.promo-x:hover { background: rgba(0,0,0,.25); color: #fff; }
body.promo-off .promo { display: none; }
@media (max-width: 720px) { .promo-in { font-size: 12.5px; gap: 10px; } .promo-hide-sm { display: none; } }

/* ---------- 10b. Header — floating pill ---------- */
/* header height (top padding + pill). Heroes pull up under it by this much,
   so their backdrop runs behind the transparent header instead of starting
   at its bottom edge as a visible seam. */
:root { --hdr-h: 80px; }
@media (max-width: 1060px) { :root { --hdr-h: 76px; } }
.hero, .phero { margin-top: calc(-1 * var(--hdr-h)); }
.hero { padding-top: calc(clamp(44px, 5vw, 72px) + var(--hdr-h)) !important; }
.phero { padding-top: calc(clamp(48px, 6vw, 78px) + var(--hdr-h)) !important; }

.hdr {
  position: sticky; top: 0; z-index: 900;
  padding: 16px var(--gut) 0;
  transition: padding .35s var(--ease);
}
.hdr-in {
  position: relative;                 /* anchors the dropdowns, so they cannot clip */
  max-width: var(--shell); margin-inline: auto;
  display: flex; align-items: center; gap: 8px;
  height: 64px; padding: 0 8px 0 22px;
  border-radius: var(--r-pill);
  background: rgba(255,255,255,.88);
  border: 1px solid var(--line);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  box-shadow: 0 1px 0 #fff inset, 0 12px 34px -18px rgba(23,18,58,.3);
  transition: background .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.hdr.is-stuck { padding-top: 10px; }
.hdr.is-stuck .hdr-in {
  background: rgba(255,255,255,.96);
  box-shadow: 0 1px 0 #fff inset, 0 16px 44px -20px rgba(23,18,58,.34);
  border-color: var(--line-str);
}

.brand { display: inline-flex; align-items: center; flex: none; margin-right: 16px; }
.brand-logo { height: 30px; width: auto; display: block; }
/* the wordmark artwork is white, so darken it on the light header */
.hdr .brand-logo { filter: brightness(0); }
.ftr .brand-logo { height: 32px; }
@media (max-width: 480px) { .brand-logo { height: 26px; } }

.nav { display: flex; align-items: center; gap: 2px; margin-right: auto; }
.nav-item { position: static; }
.nav-link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 14px; border-radius: var(--r-pill);
  font-family: var(--f-display); font-size: 14.5px; font-weight: 550; color: var(--text-mid);
  letter-spacing: -.008em;
  transition: color .2s, background .2s;
}
.nav-link:hover, .nav-item.open > .nav-link { color: var(--text-hi); background: var(--fill-2); }
.nav-link .caret { font-size: 9px; opacity: .6; transition: transform .28s var(--ease); }
.nav-item.open .caret { transform: rotate(180deg); }
.nav-link.is-active { color: var(--acc-violet); }

/* mega panel */
.mega {
  position: absolute; top: calc(100% + 14px);
  left: 50%; margin-inline: auto;
  width: max-content; max-width: min(940px, calc(100vw - 40px));
  background: rgba(44,35,104,.97);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid var(--line-str);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-3);
  padding: 18px;
  opacity: 0; visibility: hidden; pointer-events: none;
  transform: translate(-50%, 10px) scale(.985); transform-origin: top center;
  transition: opacity .24s var(--ease), transform .28s var(--ease), visibility .28s;
  max-height: calc(100vh - 130px); overflow-y: auto;
}
.nav-item.open > .mega { opacity: 1; visibility: visible; pointer-events: auto; transform: translate(-50%, 0) scale(1); }
/* keeps the pointer inside the item while it crosses the gap to the panel */
.mega::before { content: ''; position: absolute; top: -16px; left: 0; right: 0; height: 16px; }

.mega-cols { display: flex; gap: 18px; min-width: 0; }
.mega-main { display: grid; gap: 3px; }
.mega-2 { grid-template-columns: repeat(2, minmax(0, 262px)); }
.mega-1 { grid-template-columns: minmax(0, 296px); }
.mega-a { display: flex; gap: 13px; padding: 11px 13px; border-radius: 14px; transition: background .2s; }
.mega-a > span:last-child { min-width: 0; }
.mega-a:hover { background: var(--fill-2); }
.mega-i {
  width: 36px; height: 36px; border-radius: 11px; flex: none;
  display: grid; place-items: center; font-size: 14px;
  background: linear-gradient(140deg, rgba(122,77,255,.26), rgba(122,77,255,.06));
  border: 1px solid rgba(138,107,255,.24); color: var(--violet-200);
}
.mega-t { font-family: var(--f-display); font-size: 14.5px; font-weight: 620; color: var(--text-hi); display: flex; align-items: center; gap: 7px; letter-spacing: -.012em; }
.mega-d { display: block; font-size: 12.5px; color: var(--text-lo); line-height: 1.48; margin-top: 3px; }
.mega-side {
  width: 268px; flex: 0 1 268px; min-width: 0; padding: 18px; border-radius: var(--r-lg);
  background: linear-gradient(165deg, rgba(122,77,255,.15), rgba(70,229,240,.05));
  border: 1px solid var(--line);
}
.mega-side .ftr-h { margin-bottom: 14px; }
.mega-card {
  display: block; padding: 16px; border-radius: var(--r-md);
  background: rgba(0,0,0,.25); border: 1px solid var(--line);
  transition: border-color .25s, transform .25s var(--ease);
}
.mega-card:hover { border-color: var(--line-glow); transform: translateY(-2px); }
.mega-card .tag { margin-bottom: 11px; }
.mega-card h4 { font-size: 15px; line-height: 1.35; letter-spacing: -.018em; }
.mega-side > p { font-size: 12.5px; color: var(--text-lo); margin-top: 14px; line-height: 1.55; }
.mega-foot {
  margin-top: 14px; padding: 14px 16px; border-radius: var(--r-md);
  background: linear-gradient(120deg, rgba(122,77,255,.16), rgba(70,229,240,.06));
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.mega-foot p { font-size: 13px; color: var(--text-mid); }

.hdr-cta { display: flex; align-items: center; gap: 8px; flex: none; }
.hdr-login { font-family: var(--f-display); font-size: 14.5px; font-weight: 550; color: var(--text-mid); padding: 9px 12px; transition: color .2s; }
.hdr-login:hover { color: var(--text-hi); }
.burger { display: none; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-str); color: var(--text-hi); place-items: center; }

@media (max-width: 1180px) { .nav-link { padding: 9px 11px; font-size: 14px; } .hdr-in { padding-left: 18px; } }
@media (max-width: 1060px) {
  .nav, .hdr-login, .hdr-cta .btn-ghost { display: none; }
  .burger { display: grid; }
  .hdr-cta { margin-left: auto; }
  .hdr-in { height: 60px; padding-right: 9px; }
}

/* mobile drawer */
.drawer {
  position: fixed; inset: 0; z-index: 950;
  background: linear-gradient(180deg, #342B80, #2A2264);
  transform: translateX(100%);
  transition: transform .42s var(--ease);
  overflow-y: auto; padding: 18px var(--gut) 48px;
  display: flex; flex-direction: column;
}
.drawer.open { transform: translateX(0); }
.drawer-top { display: flex; align-items: center; justify-content: space-between; height: 56px; margin-bottom: 14px; }
.drawer-x { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-str); color: var(--text-hi); display: grid; place-items: center; }
.drawer-grp { border-bottom: 1px solid var(--line); }
.drawer-h {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 16px 4px; font-family: var(--f-display); font-weight: 600; font-size: 16.5px; color: var(--text-hi);
}
.drawer-h i { font-size: 11px; color: var(--text-lo); transition: transform .3s var(--ease); }
.drawer-grp.open .drawer-h i { transform: rotate(180deg); }
.drawer-body { display: grid; overflow: hidden; max-height: 0; transition: max-height .45s var(--ease); }
.drawer-grp.open .drawer-body { max-height: 760px; }
.drawer-body a { padding: 11px 4px 11px 16px; font-size: 14.5px; color: var(--text-mid); border-left: 1px solid var(--line); margin-left: 4px; }
.drawer-body a:last-child { padding-bottom: 18px; }
.drawer-body a:hover { color: var(--violet-300); }
.drawer-flat { display: block; padding: 16px 4px; font-family: var(--f-display); font-weight: 600; font-size: 16.5px; color: var(--text-hi); border-bottom: 1px solid var(--line); }
.drawer-cta { margin-top: 26px; display: grid; gap: 10px; }

/* ---------- 11. Footer ---------- */
.ftr { border-top: 0; background-color: #161038; background-image: linear-gradient(180deg, #191243, #120E31); position: relative; }
.ftr-in { padding-block: 52px 0; position: relative; z-index: 1; }
.ftr-grid { display: grid; grid-template-columns: 1.45fr repeat(4, 1fr); gap: 40px 28px; }
.ftr-about p { font-size: 14px; color: var(--text-lo); margin-top: 16px; max-width: 30ch; }
.ftr-social { display: flex; gap: 9px; margin-top: 20px; }
.ftr-social a {
  width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center;
  border: 1px solid var(--line); color: var(--text-lo); font-size: 14px;
  transition: all .25s var(--ease);
}
.ftr-social a:hover { color: var(--violet-200); border-color: var(--line-glow); background: var(--fill-2); transform: translateY(-2px); }
.ftr-h { font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 16px; }
.ftr-col a { display: block; font-size: 14px; color: var(--text-lo); padding: 5px 0; transition: color .2s, transform .2s var(--ease); }
.ftr-col a:hover { color: var(--violet-200); transform: translateX(3px); }
.ftr-badges { display: flex; gap: 9px; flex-wrap: wrap; margin-top: 22px; }
.ftr-badge { font-family: var(--f-mono); font-size: 10px; letter-spacing: .08em; padding: 5px 9px; border-radius: 6px; border: 1px solid var(--line); color: var(--text-dim); }
.ftr-bot {
  margin-top: 38px; padding: 24px 0 30px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  font-size: 12.5px; color: var(--text-dim);
}
.ftr-note { font-size: 12px; color: var(--text-dim); line-height: 1.6; margin-top: 26px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--fill-1); }
/* oversized watermark wordmark */
/* the wordmark sits below everything in normal flow, so it never sits behind
   the footer copy. Uses the real logo artwork, so it cannot drift from the brand. */
.ftr-mark {
  display: block; padding-top: 22px; margin-top: 4px;
  border-top: 1px solid rgba(255,255,255,.07);
  text-align: center; line-height: 0;
}
.ftr-mark img {
  width: min(920px, 100%); height: auto; display: inline-block;
  opacity: .12; pointer-events: none; user-select: none;
}
@media (max-width: 640px) { .ftr-mark { padding-top: 16px; } .ftr-mark img { opacity: .14; } }
@media (max-width: 1040px) { .ftr-grid { grid-template-columns: 1fr 1fr 1fr; } .ftr-about { grid-column: 1 / -1; } }
@media (max-width: 640px) { .ftr-grid { grid-template-columns: 1fr 1fr; } }

/* ---------- 12. Shared sections ---------- */
.sect-head { max-width: 720px; margin-bottom: 32px; }
.sect-head-c { margin-inline: auto; text-align: center; }
.sect-head h2 + p { margin-top: 12px; }

/* marquee */
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 56px; width: max-content; animation: mq 42s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes mq { to { transform: translateX(-50%); } }
.mq-item { display: inline-flex; align-items: center; gap: 10px; font-family: var(--f-display); font-weight: 600; font-size: 15px; color: var(--text-dim); white-space: nowrap; }

/* accordion */
.acc { border-top: 1px solid var(--line); }
.acc-i { border-bottom: 1px solid var(--line); }
.acc-h {
  width: 100%; display: flex; align-items: flex-start; justify-content: space-between; gap: 22px;
  padding: 24px 4px; text-align: left;
  font-family: var(--f-display); font-weight: 600; font-size: clamp(15.5px, 1.6vw, 17.5px); color: var(--text-hi);
  letter-spacing: -.018em;
  transition: color .2s;
}
.acc-h:hover { color: var(--violet-600); }
.acc-ic {
  width: 26px; height: 26px; border-radius: 8px; flex: none; display: grid; place-items: center;
  border: 1px solid var(--line); background: #fff; font-size: 11px; color: var(--text-lo);
  transition: transform .34s var(--ease), background .25s, color .25s, border-color .25s;
}
.acc-i.open .acc-ic { transform: rotate(45deg); background: var(--violet-600); border-color: transparent; color: #fff; }
.acc-b { max-height: 0; overflow: hidden; transition: max-height .42s var(--ease); }
.acc-i.open .acc-b { max-height: 720px; }
.acc-b-in { padding: 0 60px 26px 4px; font-size: 15px; color: var(--text-lo); line-height: 1.75; }
.acc-b-in a { color: var(--violet-600); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 640px) { .acc-b-in { padding-right: 8px; } }

/* CTA band */
.cta-band { position: relative; overflow: hidden; border-block: 0; background-color: #1E1749; background-image: linear-gradient(150deg, #241C5E 0%, #191243 55%, #2A1F6B 100%); }
.cta-inner { padding-block: clamp(48px, 5.5vw, 76px); text-align: center; position: relative; z-index: 1; }
.cta-inner h2 { max-width: 17ch; margin-inline: auto; }
.cta-inner .lede { margin: 20px auto 34px; }
.cta-fine { margin-top: 20px; font-size: 12.5px; color: var(--text-dim); }
.cta-band::before {
  content: ''; position: absolute; z-index: 0; left: 50%; top: 50%; transform: translate(-50%,-50%);
  width: 900px; height: 460px; filter: blur(80px);
  background: radial-gradient(ellipse, rgba(138,107,255,.45) 0%, transparent 70%);
}

/* logo/trust strip */
.trust { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: center; }
.trust-i { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-lo); }
.trust-i i { color: var(--violet-400); }
.avatars { display: flex; }
.avatars span {
  width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--f-display); font-size: 11px; font-weight: 650; color: #fff;
  border: 2px solid var(--ink-900); margin-left: -9px;
}
.avatars span:first-child { margin-left: 0; }

/* star rating */
.stars { color: var(--acc-amber); font-size: 13px; letter-spacing: 1px; }

/* ---------- 13. Reveal animation ---------- */
.rv { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.rv.in { opacity: 1; transform: none; }
.rv-d1 { transition-delay: .07s; } .rv-d2 { transition-delay: .14s; }
.rv-d3 { transition-delay: .21s; } .rv-d4 { transition-delay: .28s; }
.rv-d5 { transition-delay: .35s; } .rv-d6 { transition-delay: .42s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
  .rv { opacity: 1; transform: none; }
}

/* ---------- 14. Utilities ---------- */
.sr {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 16px; top: -60px; z-index: 999;
  padding: 11px 18px; border-radius: 10px; background: var(--violet-600); color: #fff;
  font-weight: 600; transition: top .25s var(--ease);
}
.skip:focus { top: 16px; }
.divider { height: 1px; background: linear-gradient(90deg, transparent, var(--line-str), transparent); }
.nowrap { white-space: nowrap; }
.mt-0{margin-top:0}.mt-1{margin-top:8px}.mt-2{margin-top:16px}.mt-3{margin-top:24px}.mt-4{margin-top:32px}.mt-5{margin-top:44px}
.mb-0{margin-bottom:0}.mb-2{margin-bottom:16px}.mb-3{margin-bottom:24px}.mb-4{margin-bottom:32px}

/* on narrower desktops drop the featured column before anything can clip */
@media (max-width: 1240px) {
  .mega-side { display: none; }
  .mega { max-width: min(620px, calc(100vw - 40px)); }
}

/* ---------- cookie consent banner ---------- */
.ckb { position: fixed; left: 0; right: 0; bottom: 0; z-index: 950; padding: 0 var(--gut) 18px; pointer-events: none; opacity: 0; transform: translateY(16px); transition: opacity .35s var(--ease), transform .35s var(--ease); }
.ckb.on { opacity: 1; transform: none; pointer-events: auto; }
.ckb-in { max-width: 860px; margin-inline: auto; background: rgba(255,255,255,.97); border: 1px solid var(--line-str); border-radius: var(--r-xl); padding: 20px 22px; box-shadow: 0 30px 70px -30px rgba(23,18,58,.5); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.ckb-h { display: flex; gap: 14px; align-items: flex-start; }
.ckb-i { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: rgba(122,77,255,.12); color: var(--acc-violet); font-size: 15px; flex: none; }
.ckb h2 { font-family: var(--f-display); font-size: 1.02rem; font-weight: 640; color: var(--text-hi); letter-spacing: -.01em; }
.ckb p { font-size: 13.5px; line-height: 1.6; color: var(--text-mid); margin-top: 4px; }
.ckb p a { color: var(--acc-violet); text-decoration: underline; text-underline-offset: 2px; }
.ckb-prefs { display: grid; gap: 8px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.ckb-opt { display: grid; grid-template-columns: 18px 1fr; gap: 12px; align-items: start; padding: 10px 12px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--ink-850); cursor: pointer; }
.ckb-opt input { margin-top: 3px; accent-color: var(--violet-600); width: 16px; height: 16px; }
.ckb-opt b { display: block; font-family: var(--f-display); font-size: 13.5px; font-weight: 620; color: var(--text-hi); }
.ckb-opt em { display: block; font-style: normal; font-size: 12.5px; color: var(--text-lo); margin-top: 2px; line-height: 1.5; }
.ckb-a { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.ckb-a .btn { padding: 10px 16px; font-size: 14px; }
@media (max-width: 560px) { .ckb { padding-bottom: 10px; } .ckb-in { padding: 16px; } .ckb-a .btn { flex: 1 1 100%; justify-content: center; } }
@media (prefers-reduced-motion: reduce) { .ckb { transition: none; } }
/* form consent checkbox */
.consent { display: grid; grid-template-columns: 18px 1fr; gap: 10px; align-items: start; font-size: 13px; color: var(--text-lo); line-height: 1.55; margin-top: 4px; }
.consent input { margin-top: 3px; width: 16px; height: 16px; accent-color: var(--violet-600); }
.consent a { color: var(--acc-violet); text-decoration: underline; text-underline-offset: 2px; }

.ckb-in { position: relative; }
.ckb-x { position: absolute; top: 10px; right: 10px; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); background: var(--ink-850); color: var(--text-lo); display: grid; place-items: center; cursor: pointer; font-size: 13px; transition: color .2s, border-color .2s; }
.ckb-x:hover { color: var(--text-hi); border-color: var(--line-str); }
.ckb-h { padding-right: 36px; }
