/* Only Trainers Know - site styles
   Palette locked to the video brand. Do not drift. */

:root {
  --bg-deep: #080b1a;
  --bg-mid: #1b2555;
  --ink: #f3f6ff;
  --crimson: #ff4d5e;
  --crimson-soft: #ffb3ba;
  --green: #4fe08a;
  --slate: #93a3cc;
  --panel: rgba(255, 255, 255, 0.04);
  --panel-line: rgba(147, 163, 204, 0.18);
  --display: "Anton", "Impact", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg-deep);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Ambient arena glow, same feel as the video background */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(90vw 70vh at 50% 8%, var(--bg-mid) 0%, rgba(27, 37, 85, 0.35) 42%, transparent 72%),
    radial-gradient(60vw 50vh at 85% 85%, rgba(255, 77, 94, 0.11) 0%, transparent 65%),
    var(--bg-deep);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(147, 163, 204, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(147, 163, 204, 0.06) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(70vw 70vh at 50% 30%, #000 0%, transparent 75%);
}

.wrap { width: min(var(--wrap), 92vw); margin-inline: auto; }

a { color: var(--crimson-soft); }

/* ---------- type ---------- */

h1, h2, h3, .display {
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  line-height: 0.94;
  letter-spacing: 0.01em;
  margin: 0;
}

.kicker {
  font-family: var(--body);
  font-weight: 900;
  font-size: 0.72rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--crimson);
  margin: 0 0 14px;
}

.lede { color: var(--slate); font-size: 1.05rem; max-width: 58ch; }

/* ---------- nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(8, 11, 26, 0.78);
  border-bottom: 1px solid var(--panel-line);
}

.nav-in {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 66px;
}

.brand {
  font-family: var(--body);
  font-weight: 900;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--crimson);
  text-decoration: none;
  margin-right: auto;
  white-space: nowrap;
}

.nav-links { display: flex; gap: 26px; align-items: center; }

.nav-links a {
  color: var(--slate);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.16s ease;
}

.nav-links a:hover { color: var(--ink); }

@media (max-width: 720px) { .nav-links a:not(.btn) { display: none; } }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--body);
  font-weight: 800;
  font-size: 0.84rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.14s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.btn-primary {
  background: var(--crimson);
  color: #12030a;
  box-shadow: 0 12px 40px -14px rgba(255, 77, 94, 0.9);
}

.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 46px -12px rgba(255, 77, 94, 1); }

.btn-ghost { background: transparent; color: var(--ink); border-color: var(--panel-line); }
.btn-ghost:hover { border-color: var(--crimson); color: var(--crimson-soft); transform: translateY(-2px); }

.btn-sm { padding: 10px 18px; font-size: 0.74rem; }

/* ---------- hero ---------- */

.hero { padding: clamp(52px, 7vw, 84px) 0 clamp(48px, 7vw, 88px); }

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }

.hero h1 {
  font-size: clamp(2.9rem, 6.4vw, 5.2rem);
  margin-bottom: 22px;
  max-width: 14ch;
}

.hero h1 .line2 { color: var(--crimson); display: block; }

.hero .lede { font-size: clamp(1.02rem, 2.2vw, 1.2rem); margin-bottom: 32px; }

.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-stats {
  display: flex;
  gap: 34px;
  margin-top: 40px;
  padding-top: 26px;
  border-top: 1px solid var(--panel-line);
  flex-wrap: wrap;
}

.stat b {
  display: block;
  font-family: var(--display);
  font-size: 1.9rem;
  color: var(--ink);
  line-height: 1;
}

.stat span {
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--slate);
  font-weight: 700;
}

/* phone mock */

.phone {
  position: relative;
  aspect-ratio: 9 / 16;
  max-height: min(560px, 62vh);
  margin-inline: auto;
  width: min(320px, 78vw);
  border-radius: 34px;
  border: 1px solid var(--panel-line);
  background:
    radial-gradient(70% 50% at 50% 28%, rgba(27, 37, 85, 0.95) 0%, transparent 70%),
    linear-gradient(180deg, #0a0e21 0%, #06091a 100%);
  box-shadow: 0 50px 120px -40px rgba(0, 0, 0, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 34px 22px;
  overflow: hidden;
}

.phone .p-brand {
  font-weight: 900;
  font-size: 0.6rem;
  letter-spacing: 0.26em;
  color: var(--crimson);
  text-transform: uppercase;
}

.phone .p-mode {
  font-weight: 700;
  font-size: 0.56rem;
  letter-spacing: 0.24em;
  color: var(--slate);
  text-transform: uppercase;
  margin-top: 6px;
}

.p-dots { display: flex; gap: 7px; margin-top: 16px; }
.p-dots i { width: 18px; height: 3px; border-radius: 2px; background: rgba(147, 163, 204, 0.35); }
.p-dots i.on { background: var(--crimson); }

.phone .p-q {
  font-family: var(--display);
  text-transform: uppercase;
  font-size: 1.5rem;
  line-height: 1.02;
  text-align: center;
  margin-top: 38px;
}

.p-ring {
  margin-top: auto;
  margin-bottom: 40px;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  border: 4px solid rgba(147, 163, 204, 0.25);
  border-top-color: var(--crimson);
  border-right-color: var(--crimson);
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-size: 2.2rem;
  color: var(--crimson);
  animation: spin 3s linear infinite;
}

.p-ring span { animation: spin-back 3s linear infinite; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes spin-back { to { transform: rotate(-360deg); } }

@media (prefers-reduced-motion: reduce) {
  .p-ring, .p-ring span { animation: none; }
}

/* ---------- sections ---------- */

section { padding: clamp(56px, 8vw, 104px) 0; }

.sec-head { max-width: 62ch; margin-bottom: clamp(30px, 4vw, 54px); }
.sec-head h2 { font-size: clamp(2.1rem, 5vw, 3.4rem); margin-bottom: 16px; }

.rule { width: 64px; height: 4px; background: var(--crimson); border: 0; margin: 0 0 22px; }

/* ---------- quiz ---------- */

#quiz { border-top: 1px solid var(--panel-line); border-bottom: 1px solid var(--panel-line); }

.quiz-card {
  background: var(--panel);
  border: 1px solid var(--panel-line);
  border-radius: 22px;
  padding: clamp(24px, 4vw, 44px);
  max-width: 760px;
  margin-inline: auto;
  min-height: 430px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.quiz-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 6px;
}

.quiz-top .score { color: var(--green); }

.timer-track { height: 4px; border-radius: 3px; background: rgba(147, 163, 204, 0.2); overflow: hidden; margin-bottom: 30px; }
.timer-fill { height: 100%; width: 100%; background: var(--crimson); transform-origin: left; }

.quiz-q {
  font-family: var(--display);
  text-transform: uppercase;
  font-size: clamp(1.6rem, 4.4vw, 2.5rem);
  line-height: 1.02;
  text-align: center;
  margin: 6px 0 26px;
}

.opts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: auto; }

@media (max-width: 620px) { .opts { grid-template-columns: 1fr; } }

.opt {
  appearance: none;
  text-align: left;
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid var(--panel-line);
  background: rgba(8, 11, 26, 0.55);
  color: var(--ink);
  font-family: var(--body);
  font-size: 0.98rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.14s ease, background 0.14s ease, transform 0.1s ease;
}

.opt:hover:not(:disabled) { border-color: var(--crimson); transform: translateY(-2px); }
.opt:disabled { cursor: default; }
.opt.correct { border-color: var(--green); background: rgba(79, 224, 138, 0.14); color: var(--green); }
.opt.wrong { border-color: var(--crimson); background: rgba(255, 77, 94, 0.13); color: var(--crimson-soft); }

.quiz-centre { margin: auto 0; text-align: center; }
.quiz-centre h3 { font-size: clamp(2rem, 5.5vw, 3.2rem); margin-bottom: 14px; }
.quiz-centre p { color: var(--slate); max-width: 46ch; margin: 0 auto 26px; }

.big-score {
  font-family: var(--display);
  font-size: clamp(4rem, 14vw, 7rem);
  color: var(--green);
  line-height: 0.9;
}

.big-score small { color: var(--slate); font-size: 0.3em; }

.verdict { font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--crimson); font-size: 0.8rem; margin-bottom: 18px; }

.quiz-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.hidden { display: none !important; }

/* ---------- modes ---------- */

.modes { display: grid; grid-template-columns: repeat(auto-fit, minmax(238px, 1fr)); gap: 18px; }

.mode {
  border: 1px solid var(--panel-line);
  background: var(--panel);
  border-radius: 18px;
  padding: 26px;
  position: relative;
  transition: border-color 0.16s ease, transform 0.16s ease;
}

.mode:hover { border-color: var(--crimson); transform: translateY(-4px); }
.mode h3 { font-size: 1.5rem; margin-bottom: 10px; }
.mode p { color: var(--slate); font-size: 0.93rem; margin: 0; }

.tag {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
}

.tag.live { background: rgba(79, 224, 138, 0.15); color: var(--green); }
.tag.soon { background: rgba(147, 163, 204, 0.14); color: var(--slate); }

/* ---------- video ---------- */

.video-frame {
  max-width: 380px;
  margin-inline: auto;
  aspect-ratio: 9 / 16;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--panel-line);
  background: #05070f;
  box-shadow: 0 40px 100px -40px rgba(0, 0, 0, 0.9);
}

.video-frame iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- faq ---------- */

.faq { max-width: 780px; }

.faq details {
  border-bottom: 1px solid var(--panel-line);
  padding: 20px 0;
}

.faq summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 1.02rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  font-family: var(--display);
  color: var(--crimson);
  font-size: 1.5rem;
  line-height: 1;
  transition: transform 0.18s ease;
}

.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--slate); margin: 12px 0 0; }

/* ---------- final cta ---------- */

.final {
  text-align: center;
  border-top: 1px solid var(--panel-line);
}

.final h2 { font-size: clamp(2.4rem, 7vw, 4.6rem); margin-bottom: 18px; }
.final p { color: var(--slate); max-width: 48ch; margin: 0 auto 30px; }

/* ---------- footer ---------- */

footer {
  border-top: 1px solid var(--panel-line);
  padding: 40px 0 56px;
  font-size: 0.82rem;
  color: var(--slate);
}

.foot-in { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: center; }

.disclaimer { margin-top: 22px; font-size: 0.74rem; line-height: 1.6; color: rgba(147, 163, 204, 0.72); max-width: 78ch; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}
