@font-face {
  font-family: "League Spartan";
  src: url("/assets/LeagueSpartan-Bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  --bg: #17101f;
  --bg-soft: #1f1530;
  --cream: #f4ead9;
  --ink: #17101f;
  --text: #e9e2f2;
  --muted: #a99cc0;
  --line: rgba(233, 226, 242, 0.14);
  --violet: #7c5cbf;
  --fuchsia: #b465d8;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Poppins", system-ui, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: "League Spartan", system-ui, sans-serif;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
}

/* Ambient orbs */
.orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
}
.orb-a {
  width: 44vw; height: 44vw;
  min-width: 320px; min-height: 320px;
  top: -12vw; right: -10vw;
  background: radial-gradient(circle, rgba(124, 92, 191, 0.55), transparent 70%);
  animation: drift-a 26s ease-in-out infinite alternate;
}
.orb-b {
  width: 36vw; height: 36vw;
  min-width: 260px; min-height: 260px;
  bottom: -14vw; left: -8vw;
  background: radial-gradient(circle, rgba(180, 101, 216, 0.35), transparent 70%);
  animation: drift-b 32s ease-in-out infinite alternate;
}
@keyframes drift-a { to { transform: translate(-6vw, 5vh) scale(1.08); } }
@keyframes drift-b { to { transform: translate(5vw, -4vh) scale(1.05); } }
@media (prefers-reduced-motion: reduce) {
  .orb { animation: none; }
  * { transition: none !important; }
}

header.top {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px clamp(20px, 5vw, 56px);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-family: "League Spartan", sans-serif;
  font-size: 1.15rem;
}
.top-store {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 16px;
  transition: color 0.3s, border-color 0.3s;
}
.top-store:hover { color: var(--cream); border-color: var(--cream); }

main { position: relative; z-index: 1; }

.stage {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(28px, 6vw, 90px);
  padding: clamp(28px, 6vh, 72px) clamp(20px, 5vw, 56px);
  min-height: 66vh;
  flex-wrap: wrap;
}
.hidden { display: none !important; }

.hero-copy { max-width: 560px; }
h1 { font-size: clamp(2.4rem, 5.4vw, 3.9rem); }
.lede { color: var(--muted); font-size: 1.06rem; max-width: 48ch; }

.cta {
  display: inline-block;
  background: var(--cream);
  color: var(--ink);
  border: none;
  border-radius: 999px;
  padding: 16px 34px;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 1.02rem;
  cursor: pointer;
  text-decoration: none;
  margin-top: 18px;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  box-shadow: 0 6px 32px rgba(244, 234, 217, 0.16);
}
.cta:hover { transform: translateY(-2px); box-shadow: 0 10px 40px rgba(244, 234, 217, 0.24); }
.cta-sub { color: var(--muted); font-size: 0.85rem; margin-top: 10px; }

.store-row { display: flex; gap: 12px; margin-top: 26px; flex-wrap: wrap; }
.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 18px;
  font-size: 0.92rem;
  transition: border-color 0.3s, background 0.3s;
}
.store-btn:hover { border-color: var(--violet); background: rgba(124, 92, 191, 0.12); }

/* Phone mockup */
.phone { flex-shrink: 0; }
.phone-frame {
  width: clamp(220px, 24vw, 300px);
  border-radius: 40px;
  border: 8px solid #2a2138;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5), 0 0 120px rgba(124, 92, 191, 0.18);
  background: var(--bg-soft);
}
.phone-frame img { display: block; width: 100%; height: auto; }
.phone-small .phone-frame { width: clamp(180px, 18vw, 240px); }

/* Quiz */
.quiz-shell { width: min(560px, 100%); }
.progress {
  height: 4px;
  background: var(--line);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 28px;
}
.progress-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--violet), var(--fuchsia));
  border-radius: 999px;
  transition: width 0.5s ease;
}
.quiz-step-label {
  color: var(--muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin: 0 0 6px;
}
#quiz-question { font-size: clamp(1.5rem, 3.4vw, 2.1rem); }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--cream);
  outline-offset: 3px;
}
.options { display: grid; gap: 12px; margin-top: 22px; }
.option {
  text-align: left;
  background: rgba(31, 21, 48, 0.66);
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--text);
  font-family: "Poppins", sans-serif;
  font-size: 0.98rem;
  padding: 16px 20px;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  transition: border-color 0.25s, background 0.25s, transform 0.25s;
}
.option-selected {
  border-color: var(--fuchsia);
  background: rgba(180, 101, 216, 0.16);
}
.option-selected::after {
  content: " ✓";
  color: var(--fuchsia);
}
.option:hover {
  border-color: var(--violet);
  background: rgba(124, 92, 191, 0.14);
  transform: translateX(3px);
}
.quiz-back {
  margin-top: 26px;
  background: none;
  border: none;
  color: var(--muted);
  font-family: "Poppins", sans-serif;
  font-size: 0.88rem;
  cursor: pointer;
}
.quiz-back:hover { color: var(--text); }

/* Result */
.result-shell { max-width: 560px; }
.result-eyebrow {
  color: var(--fuchsia);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin: 0 0 6px;
}
#result-title { font-size: clamp(1.9rem, 4vw, 2.8rem); }
.result-body { color: var(--muted); }
.result-points {
  list-style: none;
  padding: 0;
  margin: 20px 0 8px;
  display: grid;
  gap: 10px;
}
.result-points li {
  padding: 12px 16px 12px 40px;
  background: rgba(31, 21, 48, 0.66);
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 0.94rem;
  position: relative;
}
.result-points li::before {
  content: "✦";
  position: absolute;
  left: 16px;
  color: var(--fuchsia);
}
.handoff { margin-top: 10px; }
.handoff-title { font-weight: 600; margin: 18px 0 12px; }
.qr {
  border-radius: 12px;
  display: block;
  margin-bottom: 16px;
}

/* How it works */
.how {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px clamp(20px, 5vw, 56px) 64px;
}
.how h2 { font-size: 1.5rem; }
.how ol { padding-left: 20px; display: grid; gap: 10px; color: var(--muted); }
.how strong { color: var(--text); }

footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--line);
  padding: 28px clamp(20px, 5vw, 56px) 44px;
  color: var(--muted);
  font-size: 0.88rem;
  max-width: 780px;
}
footer .fine { font-size: 0.78rem; }
footer a { color: var(--muted); }
footer a:hover { color: var(--cream); }
