/* JoltQuiz landing page.
   Style: modern dark / cinematic — layered glow on a near-black indigo ground
   (never pure #000, which smears on OLED). Display face Righteous, body Poppins.
   Motion easing is expo-out, cubic-bezier(.16,1,.3,1), everywhere. */

/* ---------- tokens ---------- */
:root {
  --bg: #07060E;
  --bg-2: #0C0A18;
  --surface: #12101F;
  --surface-2: #171429;
  --line: #241F3D;

  --primary: #FFE500;   /* electric yellow */
  --accent: #00E5FF;    /* electric blue  */
  --violet: #7C4DFF;
  --on-primary: #07060E;

  --text: #F4F1FF;
  --muted: #9C95BC;

  --ok: #3DDC84;
  --bad: #FF3B6B;

  --radius: 18px;
  --radius-sm: 12px;
  --maxw: 1160px;

  --space-1: 4px;  --space-2: 8px;  --space-3: 16px;
  --space-4: 24px; --space-5: 32px; --space-6: 48px;
  --space-7: 64px; --space-8: 96px;

  --ease: cubic-bezier(.16, 1, .3, 1);
  --dur: 240ms;

  --font-display: "Righteous", "Impact", system-ui, sans-serif;
  --font-body: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::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: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 8px;
  background: var(--primary);
  color: var(--on-primary);
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 600;
  z-index: 200;
}
.skip:focus { left: 16px; }

.page { position: relative; }

/* ---------- buttons ---------- */
.btn {
  --btn-bg: transparent;
  --btn-fg: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 48px;
  padding: 12px 22px;
  border: 2px solid transparent;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--dur) var(--ease),
              background-color var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease),
              color var(--dur) var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.97); }

.btn-primary {
  --btn-bg: var(--primary);
  --btn-fg: var(--on-primary);
  box-shadow: 0 6px 24px rgba(255, 229, 0, .22);
}
.btn-primary:hover { box-shadow: 0 10px 34px rgba(255, 229, 0, .34); }

.btn-accent {
  --btn-bg: var(--accent);
  --btn-fg: var(--on-primary);
  box-shadow: 0 6px 24px rgba(0, 229, 255, .22);
}

.btn-outline { border-color: var(--line); --btn-fg: var(--text); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

.btn-ghost { --btn-fg: var(--muted); }
.btn-ghost:hover { --btn-fg: var(--text); }

.btn-lg { min-height: 56px; padding: 16px 30px; font-size: 17px; }

/* ---------- header ---------- */
.site-head {
  position: sticky;
  top: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: var(--space-4);
  max-width: var(--maxw);
  margin: 0 auto;
  padding: var(--space-3) var(--space-4);
  background: rgba(7, 6, 14, .72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
/* full-bleed blur strip behind the centred header */
.site-head::before {
  content: "";
  position: absolute;
  inset: 0 calc(50% - 50vw);
  background: inherit;
  backdrop-filter: inherit;
  border-bottom: 1px solid var(--line);
  z-index: -1;
}

.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { width: 40px; height: 40px; }
.brand-name {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: .01em;
  color: var(--text);
}

.site-nav { display: flex; gap: var(--space-4); margin-left: auto; }
.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: color var(--dur) var(--ease);
}
.site-nav a:hover { color: var(--text); }

.head-actions { display: flex; gap: var(--space-2); }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  color: var(--text);
  padding: 10px;
  cursor: pointer;
  margin-left: auto;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
}
.mobile-nav[hidden] { display: none; }
.mobile-nav a {
  color: var(--text);
  text-decoration: none;
  padding: 12px 4px;
  font-weight: 500;
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  min-height: min(92vh, 900px);
  display: flex;
  align-items: center;
  padding: var(--space-8) var(--space-4) var(--space-7);
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: url("/static/brand/hero-bg.webp") center/cover no-repeat;
  opacity: .55;
  z-index: -3;
  transform: scale(1.04);
}

.hero-veil {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(900px 500px at 50% 42%, rgba(7, 6, 14, .30) 0%, rgba(7, 6, 14, .88) 68%),
    linear-gradient(180deg, rgba(7, 6, 14, .55) 0%, rgba(7, 6, 14, .2) 35%, var(--bg) 96%);
}

.qmarks { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.qmark {
  position: absolute;
  font-family: var(--font-display);
  line-height: 1;
  will-change: transform, opacity;
  user-select: none;
}

.bolts {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  opacity: 0;
}

.flash {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(60% 50% at 50% 30%, rgba(160, 235, 255, .85), rgba(124, 77, 255, .25) 55%, transparent 78%);
  opacity: 0;
  mix-blend-mode: screen;
}

.hero-inner {
  position: relative;
  max-width: var(--maxw);
  margin: 0 auto;
  width: 100%;
  text-align: center;
}

.title-wrap {
  position: relative;
  display: inline-block;
  padding: clamp(14px, 3vw, 30px) clamp(20px, 5vw, 58px);
  margin: 0 auto var(--space-4);
}

.bubble {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
  opacity: 0;
}

.title {
  position: relative;
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(3.2rem, 13vw, 9.5rem);
  line-height: .95;
  letter-spacing: .005em;
  color: var(--primary);
  text-shadow:
    0 0 18px rgba(255, 229, 0, .30),
    0 0 60px rgba(255, 229, 0, .14);
}
/* SplitText wraps each glyph; the jolt animates these */
.title .char {
  display: inline-block;
  will-change: transform, opacity;
}

.sub {
  max-width: 62ch;
  margin: 0 auto var(--space-5);
  color: var(--muted);
  font-size: clamp(1rem, 1.6vw, 1.2rem);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  justify-content: center;
  margin-bottom: var(--space-6);
}
.cta-row-center { margin-bottom: 0; }

/* join box */
.joinbox {
  max-width: 460px;
  margin: 0 auto var(--space-6);
  padding: var(--space-4);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(18, 16, 31, .78);
  backdrop-filter: blur(10px);
  text-align: left;
}
.joinbox > label {
  display: block;
  margin-bottom: var(--space-2);
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}
.joinbox-row { display: flex; gap: var(--space-2); }
.joinbox input {
  flex: 1;
  min-width: 0;
  min-height: 48px;
  padding: 12px 16px;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: .18em;
  text-transform: uppercase;
  transition: border-color var(--dur) var(--ease);
}
.joinbox input::placeholder { color: #4B4468; letter-spacing: .18em; }
.joinbox input:focus { border-color: var(--accent); outline: none; }
.joinbox.is-bad input { border-color: var(--bad); }
.hint { margin: var(--space-2) 0 0; font-size: 13px; color: var(--muted); }
.hint.is-bad { color: var(--bad); }

.trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-3) var(--space-6);
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 14px;
}
.trust strong {
  display: block;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 400;
  color: var(--accent);
  line-height: 1.1;
}

/* ---------- bands ---------- */
.band {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: var(--space-8) var(--space-4);
}
.band-alt {
  max-width: none;
  background: linear-gradient(180deg, transparent, var(--bg-2) 12%, var(--bg-2) 88%, transparent);
}
.band-alt > * { max-width: var(--maxw); margin-inline: auto; }

.h2 {
  margin: 0 0 var(--space-3);
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.9rem, 4.4vw, 3rem);
  line-height: 1.1;
  text-align: center;
}
.lede {
  max-width: 60ch;
  margin: 0 auto var(--space-7);
  text-align: center;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.12rem);
}

/* steps */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-5);
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.step {
  position: relative;
  padding: var(--space-5);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.step-n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  margin-bottom: var(--space-3);
  border-radius: 50%;
  background: var(--primary);
  color: var(--on-primary);
  font-family: var(--font-display);
  font-size: 20px;
}
.step h3, .card h3 {
  margin: 0 0 var(--space-2);
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.3rem;
}
.step p, .card p { margin: 0; color: var(--muted); font-size: 15px; }

.inline-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: var(--space-3);
  color: var(--accent);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
}
.inline-link:hover { text-decoration: underline; }

/* feature grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: var(--space-4);
}
.card {
  padding: var(--space-5);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.card:hover { transform: translateY(-4px); border-color: rgba(0, 229, 255, .45); }
.ico {
  width: 30px; height: 30px;
  margin-bottom: var(--space-3);
  color: var(--accent);
}

/* split / mock */
.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--space-7);
  align-items: center;
}
.split-copy .h2, .split-copy .lede { text-align: left; margin-inline: 0; }

.ticks { margin: 0 0 var(--space-5); padding: 0; list-style: none; }
.ticks li {
  position: relative;
  padding-left: 30px;
  margin-bottom: var(--space-2);
  color: var(--muted);
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 0; top: .55em;
  width: 14px; height: 8px;
  border-left: 2.5px solid var(--ok);
  border-bottom: 2.5px solid var(--ok);
  transform: rotate(-45deg);
}

.mock {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .5);
}
.mock-bar {
  display: flex; gap: 7px;
  padding: 12px 16px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.mock-bar span { width: 11px; height: 11px; border-radius: 50%; background: var(--line); }
.mock-body { padding: var(--space-5); }
.mock-round { margin: 0 0 var(--space-2); color: var(--accent); font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.mock-q { margin: 0 0 var(--space-4); font-family: var(--font-display); font-size: 1.35rem; line-height: 1.25; }
.mock-answers { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2); margin-bottom: var(--space-4); }
.mock-a {
  padding: 14px;
  border: 2px solid var(--line);
  border-radius: var(--radius-sm);
  text-align: center;
  font-weight: 600;
  color: var(--muted);
}
.mock-a.is-right { border-color: var(--ok); color: var(--ok); background: rgba(61, 220, 132, .08); }
.mock-timer { height: 8px; border-radius: 99px; background: var(--line); overflow: hidden; margin-bottom: var(--space-2); }
.mock-timer i { display: block; height: 100%; width: 62%; border-radius: 99px; background: linear-gradient(90deg, var(--accent), var(--primary)); }
.mock-count { margin: 0; font-size: 13px; color: var(--muted); }

.cta-band { text-align: center; }

/* ---------- footer ---------- */
.site-foot {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: var(--space-6) var(--space-4) var(--space-7);
  border-top: 1px solid var(--line);
  display: grid;
  gap: var(--space-4);
  justify-items: center;
  text-align: center;
}
.foot-brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 18px; }
.foot-nav { display: flex; flex-wrap: wrap; gap: var(--space-4); justify-content: center; }
.foot-nav a { color: var(--muted); text-decoration: none; font-size: 14px; }
.foot-nav a:hover { color: var(--text); }
.foot-note { margin: 0; color: #6E6890; font-size: 13px; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .site-nav, .head-actions { display: none; }
  .nav-toggle { display: block; }
  .mobile-nav:not([hidden]) { display: flex; }
  .hero { min-height: auto; padding-top: var(--space-7); }
  .split-copy .h2, .split-copy .lede { text-align: center; margin-inline: auto; }
}

@media (max-width: 520px) {
  .band { padding: var(--space-7) var(--space-3); }
  .hero { padding-inline: var(--space-3); }
  .trust { gap: var(--space-3) var(--space-4); }
  .mock-answers { grid-template-columns: 1fr; }
}

/* ---------- theme showcase ---------- */
/* The phone reads its colours from --pd-* variables, which the cycler swaps for a
   real built-in theme's tokens every couple of seconds. Nothing is hard-coded, so
   what the visitor sees is genuinely what those packs look like. */
.themes-band {
  --pd-bg: #07060E;
  --pd-surface: #141024;
  --pd-primary: #FFE500;
  --pd-accent: #00E5FF;
  --pd-text: #F4F1FF;
  --pd-muted: #9C95BC;
  --pd-correct: #3DDC84;
  --pd-heading: "Righteous", system-ui, sans-serif;
  --pd-radius: 18px;
}

.themes-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 320px);
  gap: var(--space-8);
  align-items: center;
}
.themes-copy .h2, .themes-copy .lede { text-align: left; margin-inline: 0; }
.themes-copy .lede { margin-bottom: var(--space-5); }

.theme-list {
  display: flex; flex-wrap: wrap; gap: 8px;
  list-style: none; margin: 0 0 var(--space-5); padding: 0;
}
.theme-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px 7px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-size: 13px;
  color: var(--muted);
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.theme-chip.is-on { border-color: var(--accent); color: var(--text); }
.theme-chip i {
  width: 16px; height: 16px; border-radius: 50%; display: block;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .14);
}

/* --- the phone --- */
.phone-demo { display: grid; justify-items: center; gap: var(--space-3); }

.phone {
  position: relative;
  width: min(300px, 78vw);
  aspect-ratio: 9 / 19;
  padding: 12px;
  border-radius: 42px;
  background: linear-gradient(160deg, #2A2740, #14121F);
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, .06),
    0 30px 70px rgba(0, 0, 0, .55);
}
.phone-notch {
  position: absolute;
  top: 12px; left: 50%;
  transform: translateX(-50%);
  width: 42%; height: 22px;
  border-radius: 0 0 14px 14px;
  background: #14121F;
  z-index: 3;
}

.phone-screen {
  position: relative;
  height: 100%;
  border-radius: 32px;
  overflow: hidden;
  background: #07060E;
}
.phone-screen iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.phone-caption {
  margin: 0;
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--muted);
  letter-spacing: .02em;
}
.phone-caption span { color: var(--accent); }

@media (max-width: 900px) {
  .themes-grid { grid-template-columns: 1fr; gap: var(--space-6); }
  .themes-copy .h2, .themes-copy .lede { text-align: center; margin-inline: auto; }
  .theme-list { justify-content: center; }
  .themes-copy > .btn { display: flex; margin-inline: auto; width: fit-content; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .qmarks, .bolts, .flash { display: none; }
}
