/* ---------- Tokens (Zone7 design system) ---------- */
:root {
  --spark: #FFD84A;
  --amber: #F09A1A;
  --arc: #3FA3E0;
  --surge: #5FD4F5;
  --fusion: #7B4BD8;
  --apex: #E046D8;

  --night: #0A1030;
  --navy: #111A45;
  --line: #26316B;
  --mist: #8E9BD0;
  --frost: #EAF0FF;

  --g-spark: linear-gradient(135deg, #FFE27A, #F09A1A);
  --g-charge: linear-gradient(135deg, #5FD4F5, #3FA3E0 55%, #1E4FB0);
  --g-apex: linear-gradient(120deg, #3FA3E0, #7B4BD8 50%, #E046D8);

  --f-display: "Saira Condensed", "Arial Narrow", sans-serif;
  --f-body: "IBM Plex Sans", system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, monospace;

  --gutter: 20px;
  --radius: 16px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--night);
  color: var(--frost);
  font: 400 16px/1.55 var(--f-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Background ---------- */
.bg { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.glow { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .45; }
.glow--arc {
  width: 460px; height: 460px; bottom: -120px; left: -200px;
  background: radial-gradient(circle, #3FA3E0 0%, transparent 70%);
  opacity: .5;
  animation: drift 18s ease-in-out infinite alternate-reverse;
}
.grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(142,155,208,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(142,155,208,.06) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 20%, transparent 75%);
}
@keyframes drift { to { transform: translate(-40px, 50px) scale(1.1); } }

/* ---------- Nav ---------- */
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: max(14px, env(safe-area-inset-top)) var(--gutter) 0;
  width: 100%; max-width: 1180px; margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--frost); }
.brand__word {
  font: 800 28px/1 var(--f-display);
  letter-spacing: .04em;
  font-style: italic;
}
.brand__seven {
  background: var(--g-spark); -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-right: 3px;
}

.dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--surge);
  box-shadow: 0 0 0 0 rgba(95,212,245,.6); animation: ping 2s infinite;
  flex: none;
}
@keyframes ping { 70%, 100% { box-shadow: 0 0 0 8px rgba(95,212,245,0); } }

/* ---------- Hero ---------- */
.hero {
  width: 100%; max-width: 1180px; margin: 0 auto;
  padding: 32px var(--gutter) 24px;
  flex: 1 0 auto;
  display: flex; flex-direction: column; justify-content: center;
}
.hero > * { animation: rise .8s var(--ease) both; }
.hero > :nth-child(2) { animation-delay: .08s; }
.hero > :nth-child(3) { animation-delay: .16s; }
.hero > :nth-child(4) { animation-delay: .24s; }
.hero > :nth-child(5) { animation-delay: .32s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }

.headline {
  margin: 0;
  font: 800 clamp(46px, 13.5vw, 108px)/.92 var(--f-display);
  text-transform: uppercase;
  letter-spacing: -.005em;
  text-wrap: balance;
}
.headline em { font-style: italic; padding-right: .06em; }
.g-charge, .g-spark {
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 24px rgba(240,154,26,.45));
}
.g-charge { background-image: var(--g-charge); filter: drop-shadow(0 0 24px rgba(63,163,224,.45)); }
.g-spark { background-image: var(--g-spark); }

.lede {
  margin: 22px 0 0; max-width: 560px;
  font-size: 17px; color: var(--mist);
}

.cta { display: flex; flex-direction: column; gap: 12px; margin-top: 30px; }


/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 0 28px;
  border: 0; border-radius: 14px; cursor: pointer;
  font: 700 16px/1 var(--f-body); letter-spacing: .01em; text-decoration: none;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(.97); }
.btn:focus-visible { outline: 2px solid var(--surge); outline-offset: 3px; }
.btn svg { width: 18px; height: 18px; fill: currentColor; }

.btn--primary {
  color: var(--night);
  background: linear-gradient(120deg, #FFE27A, #FFD84A 35%, #F09A1A);
  background-size: 160% 100%;
  box-shadow: 0 10px 32px -8px rgba(240,154,26,.7), inset 0 1px 0 rgba(255,255,255,.5);
  overflow: hidden;
}
.btn--primary::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%);
  transform: translateX(-120%);
  animation: sheen 4.5s ease-in-out infinite 1.2s;
}
@keyframes sheen { 0%, 60% { transform: translateX(-120%); } 85%, 100% { transform: translateX(120%); } }
.btn--primary:hover { background-position: 100% 0; box-shadow: 0 14px 40px -8px rgba(255,216,74,.8), inset 0 1px 0 rgba(255,255,255,.5); }

.btn--ghost {
  color: var(--frost);
  background: rgba(10,16,48,.7);
  box-shadow: inset 0 0 0 1.5px rgba(63,163,224,.85), 0 0 24px -6px rgba(63,163,224,.7);
  backdrop-filter: blur(8px);
}
.btn--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--surge), 0 0 30px -4px rgba(95,212,245,.6); }

.btn--block { width: 100%; }
.btn--small {
  min-height: 38px; padding: 0 16px; border-radius: 10px; font-size: 14px;
  background: var(--frost); color: var(--night);
}

/* ---------- Rank marquee ---------- */
.ranks { padding: 8px 0 8px; }
.marquee {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee__track {
  display: flex; gap: 14px; width: max-content;
  margin: 0; padding: 18px 0 40px; list-style: none;
  animation: scroll 38s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes scroll { to { transform: translateX(calc(-50% - 7px)); } }

.rank {
  position: relative; flex: none;
  width: 128px; height: 150px; border-radius: 18px;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
  padding-bottom: 14px;
  background:
    radial-gradient(120% 80% at 50% 0%, color-mix(in srgb, var(--c1) 55%, transparent), transparent 70%),
    linear-gradient(180deg, color-mix(in srgb, var(--c2) 85%, #0A1030), #0D1438 92%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.18),
    inset 0 0 0 1px rgba(255,255,255,.07),
    0 14px 24px -16px color-mix(in srgb, var(--c1) 80%, transparent);
  transition: transform .3s var(--ease);
}
.rank::after { /* glass reflection */
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: linear-gradient(160deg, rgba(255,255,255,.14), transparent 40%);
  pointer-events: none;
}
.rank img {
  position: absolute; top: 6px; left: 50%;
  width: 104px; height: 104px; transform: translateX(-50%);
  filter: drop-shadow(0 8px 14px rgba(0,0,0,.45));
  animation: bob 4s ease-in-out infinite;
}
.rank:nth-child(odd) img { animation-delay: -1.6s; }
.rank span {
  position: relative; z-index: 1;
  font: 700 11px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase;
  color: #fff; text-shadow: 0 1px 6px rgba(0,0,0,.6);
}
.rank--apex {
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(224,70,216,.55), transparent 70%),
    linear-gradient(180deg, #3A2A8C, #0D1438 92%);
}
.rank--apex::before { /* holo border */
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px;
  background: linear-gradient(120deg, #5FD4F5, #7B4BD8, #E046D8, #FFD84A, #5FD4F5);
  background-size: 300% 300%; animation: holo 6s linear infinite;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
@keyframes bob { 50% { transform: translate(-50%, -2px); } }
@keyframes holo { to { background-position: 300% 0; } }

/* ---------- Footer ---------- */
.foot {
  display: flex; justify-content: space-between;
  width: 100%; max-width: 1180px; margin: 0 auto;
  padding: 0 var(--gutter) max(18px, env(safe-area-inset-bottom));
  font: 500 12px/1 var(--f-mono); color: var(--mist); letter-spacing: .04em;
}
.foot a { color: var(--mist); text-decoration: none; }
.foot a:hover { color: var(--frost); }

/* ---------- Sheet / dialog ---------- */
.sheet {
  --pad: 24px;
  position: fixed; inset: auto 0 0 0;
  width: 100%; max-width: 100%; max-height: 92svh;
  margin: 0; padding: 12px var(--pad) max(28px, env(safe-area-inset-bottom));
  border: 0; border-radius: 26px 26px 0 0;
  color: var(--frost);
  background: linear-gradient(180deg, #141E52, var(--navy));
  box-shadow: 0 -1px 0 rgba(255,255,255,.12), 0 -30px 80px -20px rgba(0,0,0,.6);
  overflow-y: auto; overscroll-behavior: contain;
}
.sheet[open] { animation: sheet-up .45s var(--ease); }
.sheet::backdrop { background: rgba(5,8,26,.72); backdrop-filter: blur(6px); animation: fade .3s; }
@keyframes sheet-up { from { transform: translateY(100%); } }
@keyframes fade { from { opacity: 0; } }

.sheet__grip { width: 42px; height: 5px; border-radius: 3px; background: var(--line); margin: 0 auto 18px; }
.sheet__close {
  position: absolute; top: 14px; right: 14px;
  width: 36px; height: 36px; border: 0; border-radius: 50%;
  background: rgba(255,255,255,.07); color: var(--mist);
  font-size: 22px; line-height: 1; cursor: pointer;
}
.sheet__close:hover { color: var(--frost); background: rgba(255,255,255,.12); }

.step { display: none; }
.step.is-active { display: block; animation: rise .45s var(--ease); }

.sheet__title {
  margin: 0; font: 800 38px/1 var(--f-display); text-transform: uppercase; letter-spacing: .005em;
}
.sheet__text { margin: 12px 0 22px; color: var(--mist); }
.sheet__text b { color: var(--frost); font-weight: 600; word-break: break-all; }

.mailform input {
  width: 100%; height: 58px; padding: 0 18px;
  border: 1.5px solid var(--line); border-radius: 14px;
  background: rgba(10,16,48,.75); color: var(--frost);
  font: 500 17px var(--f-body); /* ≥16px avoids iOS zoom */
  transition: border-color .2s, box-shadow .2s;
}
.mailform input::placeholder { color: #5A6699; }
.mailform input:focus { outline: 0; border-color: var(--arc); box-shadow: 0 0 0 4px rgba(63,163,224,.25); }
.mailform input[aria-invalid="true"] { border-color: #FF5C7A; }
.mailform__error { min-height: 20px; margin: 8px 2px 10px; font-size: 13px; color: #FF7A93; }

/* success */
.success { position: relative; width: 120px; margin: 4px auto 14px; }
.success img { animation: pop .6s var(--ease) both; filter: drop-shadow(0 0 24px rgba(255,216,74,.7)); }
.success__check {
  position: absolute; right: -4px; bottom: 6px;
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--g-charge); box-shadow: 0 0 0 4px var(--navy), 0 0 20px rgba(95,212,245,.7);
  animation: pop .5s var(--ease) .25s both;
}
.success__check svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 24; stroke-dashoffset: 24; animation: draw .4s ease-out .55s forwards; }
@keyframes pop { from { transform: scale(.4); opacity: 0; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
[data-step="done"] { text-align: center; }

.upsell {
  display: flex; align-items: center; gap: 12px; text-align: left;
  padding: 12px 14px 12px 8px; border-radius: 16px;
  background: rgba(10,16,48,.6);
  box-shadow: inset 0 0 0 1px rgba(240,154,26,.5);
}
.upsell img { width: 56px; height: 56px; flex: none; }
.upsell div { flex: 1; font-size: 13px; color: var(--mist); line-height: 1.35; }
.upsell b { display: block; color: var(--frost); font-size: 15px; margin-bottom: 2px; }

/* founder's pass */
.pass { display: flex; align-items: flex-end; gap: 8px; margin-bottom: 22px; }
.pass__info { flex: 1; min-width: 0; }
.pass__info .perks { margin-bottom: 0; }
.pass__badge { position: relative; width: 112px; flex: none; }
.pass__badge img { display: block; width: 100%; height: auto; }
.pass__badge img { animation: bob-y 3.2s ease-in-out infinite; filter: drop-shadow(0 8px 16px rgba(0,0,0,.5)); }
@keyframes bob-y { 50% { transform: translateY(-6px); } }

.perks { list-style: none; margin: 18px 0 22px; padding: 0; display: grid; gap: 12px; }
.perks li { display: flex; gap: 12px; align-items: flex-start; color: var(--mist); font-size: 15px; line-height: 1.4; }
.perks b { color: var(--frost); font-weight: 600; }
.perks i {
  flex: none; width: 22px; height: 22px; margin-top: 1px; border-radius: 7px;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M13 2 4 14h7l-1 8 9-12h-7l1-8z'/%3E%3C/svg%3E") center/16px no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M13 2 4 14h7l-1 8 9-12h-7l1-8z'/%3E%3C/svg%3E") center/16px no-repeat;
  background: var(--spark);
}
.fineprint { margin: 14px 0 0; text-align: center; font-size: 12px; color: var(--mist); }
.fineprint b { color: var(--frost); font-weight: 500; word-break: break-all; }

/* ---------- Badge peek (press & hold) ---------- */
.rank { cursor: pointer; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent; }
.rank img { pointer-events: none; -webkit-user-drag: none; }
.rank.is-peeked img { visibility: hidden; }
.marquee.is-held .marquee__track { animation-play-state: paused; }

.peek {
  position: fixed; inset: 0; z-index: 100;
  display: none; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  pointer-events: none;
}
.peek.is-visible { display: flex; }
.peek__bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(50% 40% at 50% 46%, color-mix(in srgb, var(--c1) 45%, transparent), transparent 70%),
    rgba(10, 16, 48, .55);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
  opacity: 0; transition: opacity .35s var(--ease);
}
.peek img {
  position: relative;
  width: min(72vw, 56vh, 420px); height: auto; aspect-ratio: 1;
  filter: drop-shadow(0 24px 40px rgba(0,0,0,.55)) drop-shadow(0 0 40px color-mix(in srgb, var(--c1) 50%, transparent));
  will-change: transform;
}
.peek__name {
  position: relative;
  font: 800 clamp(28px, 7vw, 44px)/1 var(--f-display); letter-spacing: .06em; text-transform: uppercase;
  color: #fff; text-shadow: 0 2px 20px color-mix(in srgb, var(--c1) 70%, transparent);
  opacity: 0; transform: translateY(10px);
  transition: opacity .25s var(--ease), transform .35s var(--ease);
}
.peek.is-open .peek__bg { opacity: 1; }
.peek.is-open .peek__name { opacity: 1; transform: none; transition-delay: .12s; }

/* ---------- ≥ 640px ---------- */
@media (min-width: 640px) {
  :root { --gutter: 32px; }
  .cta { flex-direction: row; }
  .btn { min-width: 200px; }
  .rank { width: 150px; height: 172px; }
  .rank img { width: 124px; height: 124px; }
  .marquee__track { gap: 18px; }
  @keyframes scroll { to { transform: translateX(calc(-50% - 9px)); } }

  .sheet {
    inset: 0; margin: auto; width: min(460px, calc(100% - 32px)); height: fit-content;
    border-radius: 26px; padding: 12px 32px 32px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 0 0 1px var(--line), 0 40px 100px -20px rgba(0,0,0,.7), 0 0 80px -30px rgba(240,154,26,.5);
  }
  .sheet[open] { animation: sheet-in .4s var(--ease); }
  .sheet__grip { visibility: hidden; margin-bottom: 8px; }
  @keyframes sheet-in { from { opacity: 0; transform: translateY(24px) scale(.97); } }
}

@media (min-width: 1024px) {
  .hero { padding-top: 64px; }
  .lede { font-size: 19px; max-width: 640px; }
  .headline { max-width: 1000px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .marquee { overflow-x: auto; }
}
