:root {
  --bg: #04080f;
  --ink: #ffffff;
  --muted: #94a3b8;
  --faint: #475569;
  --gold: #f5a623;
  --gold-soft: #ffc866;
  --ember: #ff6b35;
  --sky: #0ea5e9;
  --glass: rgba(255, 255, 255, 0.06);
  --glass-strong: rgba(255, 255, 255, 0.11);
  --line: rgba(255, 255, 255, 0.1);
  --err: #ff6b6b;
  --ok: #22c55e;
  color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }

body {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Sora', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  overflow-x: hidden;
  position: relative;
}

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- background ---------- */
.aurora { position: fixed; inset: 0; overflow: hidden; z-index: 0; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.55; will-change: transform; }
.blob-gold { width: 52vmax; height: 52vmax; left: -14vmax; top: -18vmax; background: radial-gradient(circle, var(--gold), transparent 68%); animation: driftA 22s ease-in-out infinite alternate; }
.blob-ember { width: 46vmax; height: 46vmax; right: -16vmax; top: 16vh; background: radial-gradient(circle, var(--ember), transparent 66%); opacity: 0.36; animation: driftB 26s ease-in-out infinite alternate; }
.blob-sky { width: 44vmax; height: 44vmax; left: 18vw; bottom: -26vmax; background: radial-gradient(circle, var(--sky), transparent 66%); opacity: 0.3; animation: driftC 30s ease-in-out infinite alternate; }

@keyframes driftA { to { transform: translate3d(9vmax, 7vmax, 0) scale(1.12); } }
@keyframes driftB { to { transform: translate3d(-8vmax, -6vmax, 0) scale(0.92); } }
@keyframes driftC { to { transform: translate3d(-7vmax, -9vmax, 0) scale(1.1); } }

.grid {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: 0.5;
  background-image: radial-gradient(rgba(255, 255, 255, 0.16) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(ellipse at 50% 38%, #000 0%, transparent 68%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 38%, #000 0%, transparent 68%);
}

.grain {
  position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: 0.07; mix-blend-mode: overlay;
  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='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- layout ---------- */
.top, .stage, .foot { position: relative; z-index: 2; }

.top {
  display: flex; align-items: center; justify-content: space-between;
  padding: max(20px, env(safe-area-inset-top)) clamp(20px, 5vw, 56px) 0;
}

.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 20px; letter-spacing: -0.02em; }
.bolt-sm { width: 22px; height: 22px; fill: var(--gold); filter: drop-shadow(0 0 10px rgba(245, 166, 35, 0.7)); }

.pill {
  font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold-soft);
  padding: 8px 14px; border-radius: 999px; background: var(--glass); border: 1px solid var(--line);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}

.stage {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 28px clamp(20px, 5vw, 56px) 20px; gap: 0;
}

/* ---------- orb ---------- */
.orb { position: relative; width: 112px; height: 112px; display: grid; place-items: center; margin-bottom: 30px; animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.core {
  position: relative; z-index: 2; width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 32% 26%, #ffe2a6, var(--gold) 46%, #c97a0a 100%);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.25) inset, 0 12px 40px rgba(245, 166, 35, 0.55), 0 0 90px rgba(245, 166, 35, 0.4);
  animation: float 5s ease-in-out infinite;
}
.core svg { width: 40px; height: 40px; fill: #1a1004; transform: translateY(-1px); }
.ring { position: absolute; inset: 0; margin: auto; width: 84px; height: 84px; border-radius: 50%; border: 1.5px solid rgba(245, 166, 35, 0.7); opacity: 0; animation: ripple 3.6s cubic-bezier(0.2, 0.6, 0.3, 1) infinite; }
.r2 { animation-delay: 1.2s; }
.r3 { animation-delay: 2.4s; }

@keyframes ripple { 0% { transform: scale(1); opacity: 0.7; } 100% { transform: scale(2.7); opacity: 0; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@keyframes rise { from { opacity: 0; transform: translateY(18px) scale(0.94); } to { opacity: 1; transform: none; } }

/* ---------- headline ---------- */
.headline {
  position: relative; z-index: 3;
  font-weight: 800; letter-spacing: -0.045em; line-height: 1.02;
  font-size: clamp(42px, 9.4vw, 104px);
  background: linear-gradient(180deg, #fff 30%, #b6c3d6 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.headline .line { display: block; opacity: 0; transform: translateY(26px); animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) forwards; }
.headline .line:nth-child(1) { animation-delay: 0.12s; }
.headline .line:nth-child(2) { animation-delay: 0.26s; }
.headline em {
  font-style: normal;
  background: linear-gradient(100deg, #ffd27a 0%, var(--gold) 38%, var(--ember) 62%, #ffd27a 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shimmer 5s linear infinite;
  filter: drop-shadow(0 0 28px rgba(245, 166, 35, 0.35));
}
@keyframes shimmer { to { background-position: -220% 0; } }

.sub { margin-top: 20px; font-size: clamp(16px, 2.3vw, 21px); color: var(--muted); font-weight: 400; opacity: 0; animation: rise 0.9s 0.4s cubic-bezier(0.2, 0.7, 0.2, 1) forwards; }

/* ---------- join ---------- */
.join { width: 100%; max-width: 560px; margin-top: 38px; opacity: 0; animation: rise 0.9s 0.55s cubic-bezier(0.2, 0.7, 0.2, 1) forwards; }

.pick-label { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); margin-bottom: 12px; font-weight: 600; }

.picks { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }

.pick {
  position: relative; display: flex; align-items: center; gap: 12px; text-align: left; cursor: pointer; font: inherit; color: var(--ink);
  padding: 14px 16px; border-radius: 18px; background: var(--glass); border: 1px solid var(--line);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}
.pick:hover { transform: translateY(-2px); background: var(--glass-strong); }
.pick:focus-visible, .cta:focus-visible, .share:focus-visible, .form input:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.pick-icon { flex: none; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: rgba(245, 166, 35, 0.12); }
.pick-icon svg { width: 22px; height: 22px; fill: none; stroke: var(--gold); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.pick-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pick-text strong { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
.pick-text small { font-size: 12.5px; color: var(--muted); line-height: 1.3; }

.tick { position: absolute; top: 10px; right: 10px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: var(--gold); opacity: 0; transform: scale(0.4); transition: opacity 0.2s ease, transform 0.3s cubic-bezier(0.3, 1.6, 0.5, 1); }
.tick svg { width: 12px; height: 12px; fill: none; stroke: #1a1004; stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }

.pick[aria-pressed='true'] { border-color: rgba(245, 166, 35, 0.75); background: rgba(245, 166, 35, 0.1); box-shadow: 0 0 0 1px rgba(245, 166, 35, 0.35) inset, 0 10px 40px rgba(245, 166, 35, 0.18); }
.pick[aria-pressed='true'] .tick { opacity: 1; transform: scale(1); }

.form {
  display: flex; gap: 8px; padding: 7px; border-radius: 22px; background: var(--glass); border: 1px solid var(--line);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.45);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.form:focus-within { border-color: rgba(245, 166, 35, 0.6); box-shadow: 0 20px 70px rgba(0, 0, 0, 0.45), 0 0 0 4px rgba(245, 166, 35, 0.12); }
.form.shake { animation: shake 0.4s; }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }

.form input[type='email'] { flex: 1; min-width: 0; background: transparent; border: 0; outline: 0; color: var(--ink); font: inherit; font-size: 16px; padding: 0 16px; height: 52px; }
.form input::placeholder { color: var(--faint); }

.cta {
  position: relative; overflow: hidden; flex: none; height: 52px; padding: 0 26px; border: 0; border-radius: 16px; cursor: pointer;
  font: inherit; font-size: 15px; font-weight: 800; letter-spacing: -0.01em; color: #1a1004;
  background: linear-gradient(135deg, #ffd27a, var(--gold) 55%, #ef8a0f);
  box-shadow: 0 8px 30px rgba(245, 166, 35, 0.45), 0 1px 0 rgba(255, 255, 255, 0.5) inset;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}
.cta::after { content: ''; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.55) 50%, transparent 65%); transform: translateX(-120%); }
.cta:hover { transform: translateY(-2px); box-shadow: 0 14px 40px rgba(245, 166, 35, 0.55), 0 1px 0 rgba(255, 255, 255, 0.5) inset; }
.cta:hover::after { transform: translateX(120%); transition: transform 0.8s ease; }
.cta:active { transform: translateY(0) scale(0.98); }
.cta[disabled] { cursor: progress; filter: saturate(0.7); }
.spinner { display: none; width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(26, 16, 4, 0.25); border-top-color: #1a1004; animation: spin 0.7s linear infinite; }
.cta.loading .cta-label { display: none; }
.cta.loading .spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

.note { margin-top: 14px; font-size: 13px; color: var(--faint); min-height: 18px; }
.note.error { color: var(--err); }

/* ---------- done ---------- */
.done { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 8px 0; animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.done[hidden] { display: none; }
.done h2 { font-size: clamp(26px, 4vw, 34px); font-weight: 800; letter-spacing: -0.03em; }
.done p { color: var(--muted); font-size: 16px; }
.check { width: 74px; height: 74px; border-radius: 50%; display: grid; place-items: center; background: rgba(34, 197, 94, 0.14); border: 1.5px solid rgba(34, 197, 94, 0.6); box-shadow: 0 0 60px rgba(34, 197, 94, 0.3); margin-bottom: 6px; }
.check svg { width: 34px; height: 34px; fill: none; stroke: var(--ok); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 30; stroke-dashoffset: 30; animation: draw 0.6s 0.2s ease forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.share { margin-top: 10px; font: inherit; font-size: 14px; font-weight: 600; color: var(--ink); cursor: pointer; padding: 12px 22px; border-radius: 999px; background: var(--glass); border: 1px solid var(--line); transition: background 0.2s ease, transform 0.2s ease; }
.share:hover { background: var(--glass-strong); transform: translateY(-2px); }

/* ---------- footer ---------- */
.foot { display: flex; justify-content: space-between; align-items: center; padding: 18px clamp(20px, 5vw, 56px) max(22px, env(safe-area-inset-bottom)); font-size: 13px; color: var(--faint); }
.foot a { color: var(--muted); text-decoration: none; }
.foot a:hover { color: var(--ink); }

/* ---------- confetti ---------- */
.burst { position: fixed; left: 50%; top: 50%; z-index: 5; pointer-events: none; }
.burst i { position: absolute; width: 8px; height: 14px; border-radius: 2px; opacity: 0; animation: pop 1.3s cubic-bezier(0.1, 0.8, 0.3, 1) forwards; }
@keyframes pop { 0% { opacity: 1; transform: translate(0, 0) rotate(0); } 100% { opacity: 0; transform: translate(var(--x), var(--y)) rotate(var(--r)); } }

/* ---------- small screens ---------- */
@media (max-width: 560px) {
  .picks { grid-template-columns: 1fr; gap: 10px; }
  .form { flex-direction: column; padding: 8px; }
  .form input[type='email'] { height: 50px; text-align: center; background: rgba(255, 255, 255, 0.06); border-radius: 14px; }
  .cta { width: 100%; }
  .orb { width: 96px; height: 96px; margin-bottom: 24px; }
  .core { width: 72px; height: 72px; }
  .ring { width: 72px; height: 72px; }
  .core svg { width: 34px; height: 34px; }
  .join { margin-top: 30px; }
  .pill { font-size: 11px; padding: 7px 12px; }
}

@media (max-height: 640px) and (min-width: 561px) {
  .orb { display: none; }
}

/* ---------- privacy page ---------- */
.doc { position: relative; z-index: 2; max-width: 680px; margin: 0 auto; padding: 40px 24px 80px; line-height: 1.7; color: var(--muted); }
.doc h1 { font-size: clamp(30px, 6vw, 44px); letter-spacing: -0.04em; color: var(--ink); margin-bottom: 8px; }
.doc h2 { font-size: 18px; color: var(--ink); margin: 34px 0 8px; letter-spacing: -0.01em; }
.doc p, .doc li { font-size: 16px; }
.doc ul { padding-left: 20px; margin-top: 6px; }
.doc a { color: var(--gold-soft); }
.doc .back { display: inline-block; margin-bottom: 28px; text-decoration: none; font-size: 14px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .headline .line, .sub, .join, .orb { opacity: 1; transform: none; }
}
