/* ---------- Design tokens ---------- */
:root {
  --bg: #0a0a0a;
  --bg-alt: #121212;
  --surface: #161616;
  --surface-2: #1e1e1e;
  --border: #2a2a2a;
  --text: #f5f5f4;
  --text-dim: #a8a8a6;
  --text-faint: #6f6f6d;
  --orange: #ff5a1f;
  --orange-2: #ff8a3d;
  --orange-dim: #7a2c0f;
  --font-display: "Bebas Neue", "Arial Narrow", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --radius: 10px;
  --container: 1140px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 {
  font-family: var(--font-display);
  letter-spacing: 0.5px;
  line-height: 1.05;
  margin: 0;
}

a { color: inherit; text-decoration: none; }

/* subtle grain overlay for texture */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(135deg, var(--orange), var(--orange-2));
  color: #0a0a0a;
  box-shadow: 0 8px 24px -8px rgba(255, 90, 31, 0.6);
}
.btn-primary:hover { box-shadow: 0 12px 28px -6px rgba(255, 90, 31, 0.75); }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover { border-color: var(--orange); color: var(--orange-2); }
.btn-outline {
  background: transparent;
  color: var(--orange-2);
  border-color: var(--orange-dim);
  width: 100%;
}
.btn-outline:hover { border-color: var(--orange); background: rgba(255, 90, 31, 0.08); }
.btn-lg { padding: 16px 34px; font-size: 1.05rem; }
.btn-nav { display: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 10, 10, 0.75);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
}
.logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 1px;
}
.logo span { color: var(--orange); }
.nav {
  display: none;
  gap: 32px;
}
.nav a {
  color: var(--text-dim);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.15s ease;
}
.nav a:hover { color: var(--orange-2); }

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav.open {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  padding: 8px 24px 20px;
}
.nav.open a {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 100px 0 80px;
  background-size: cover;
  background-position: center 20%;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(180deg, rgba(10,10,10,0.75) 0%, rgba(10,10,10,0.55) 40%, var(--bg) 96%),
    linear-gradient(90deg, rgba(10,10,10,0.6), rgba(10,10,10,0.3));
}
.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  z-index: 0;
  opacity: 0.35;
}
.hero-glow-1 {
  width: 500px; height: 500px;
  background: var(--orange);
  top: -200px; right: -150px;
}
.hero-glow-2 {
  width: 400px; height: 400px;
  background: #ff2d55;
  bottom: -180px; left: -120px;
  opacity: 0.2;
}
.hero-glow-3 {
  width: 450px; height: 450px;
  background: var(--orange);
  top: -150px; left: 50%;
  transform: translateX(-50%);
  opacity: 0.18;
}
.hero-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
}
.eyebrow {
  color: var(--orange-2);
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin: 0 0 18px;
}
.hero h1 {
  font-size: clamp(2.6rem, 6.5vw, 4.6rem);
  margin-bottom: 22px;
}
.accent { color: var(--orange); }
.hero-sub {
  color: var(--text-dim);
  font-size: 1.15rem;
  max-width: 560px;
  margin: 0 auto 36px;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin-bottom: 64px;
}
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}
.stat { display: flex; flex-direction: column; align-items: center; }
.stat-num {
  font-family: var(--font-display);
  font-size: 2.4rem;
  color: var(--orange-2);
}
.stat-label {
  color: var(--text-faint);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ---------- Sections ---------- */
.section { padding: 90px 0; }
.section-alt { background: var(--bg-alt); }
.section-eyebrow {
  color: var(--orange-2);
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin: 0 0 12px;
  text-align: center;
}
.section-title {
  font-size: clamp(2rem, 4.5vw, 2.8rem);
  text-align: center;
  margin-bottom: 16px;
}
.section-sub {
  color: var(--text-dim);
  text-align: center;
  max-width: 540px;
  margin: 0 auto 48px;
  font-size: 1.05rem;
}

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

/* ---------- Feature grid ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 24px;
  margin-top: 48px;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 26px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.feature-card:hover {
  border-color: var(--orange-dim);
  transform: translateY(-4px);
}
.feature-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: rgba(255, 90, 31, 0.12);
  color: var(--orange-2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.feature-icon svg { width: 24px; height: 24px; }
.feature-card h3 {
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.feature-card p {
  color: var(--text-dim);
  font-size: 0.95rem;
  margin: 0;
}

/* ---------- Coach ---------- */
.coach-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}
.coach-photo img {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: top center;
}
.coach-copy p {
  color: var(--text-dim);
  font-size: 1.05rem;
  line-height: 1.6;
}

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 48px;
}
.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 1 / 1;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 16px 14px 12px;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.85) 100%);
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 600;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.gallery-item:hover .gallery-caption { opacity: 1; transform: translateY(0); }

/* ---------- Game ---------- */
.btn-sm { padding: 8px 18px; font-size: 0.85rem; }

.game-wrap { margin-top: 48px; }

.game-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 480px;
  margin: 0 auto 14px;
}
.game-score {
  color: var(--text-dim);
  font-weight: 600;
  font-size: 0.95rem;
}
.game-score strong {
  color: var(--orange-2);
  font-family: var(--font-display);
  font-size: 1.3rem;
  margin-left: 2px;
}

.game-canvas-wrap {
  position: relative;
  width: 100%;
  max-width: 480px;
  aspect-ratio: 1 / 1;
  margin: 0 auto;
  border: 2px solid var(--orange);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-alt);
  touch-action: none;
  box-shadow: 0 0 0 1px rgba(255, 90, 31, 0.25);
}
#gameCanvas { width: 100%; height: 100%; display: block; }

.game-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 24px;
  text-align: center;
  background: rgba(10, 10, 10, 0.88);
}
.game-overlay.hidden { display: none; }
.game-overlay-title {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--orange-2);
  margin: 0;
  letter-spacing: 0.5px;
}
.game-overlay-text {
  color: var(--text-dim);
  margin: 0;
  max-width: 320px;
  font-size: 0.95rem;
}
.game-overlay-fact {
  display: block;
  color: var(--text);
  font-size: 1.15rem;
  font-weight: 700;
  max-width: 340px;
  line-height: 1.4;
}

.game-controls {
  display: grid;
  grid-template-columns: repeat(3, 56px);
  grid-template-rows: repeat(2, 56px);
  gap: 10px;
  justify-content: center;
  margin: 24px auto 0;
}
.game-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  user-select: none;
  touch-action: manipulation;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}
.game-btn:hover { border-color: var(--orange-dim); }
.game-btn:active { transform: scale(0.92); background: var(--surface-2); border-color: var(--orange); }
.game-btn.up { grid-column: 2; grid-row: 1; }
.game-btn.left { grid-column: 1; grid-row: 2; }
.game-btn.down { grid-column: 2; grid-row: 2; }
.game-btn.right { grid-column: 3; grid-row: 2; }

/* ---------- Pricing ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 48px;
  align-items: stretch;
}
.price-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  text-align: center;
}
.price-card-featured {
  background: var(--surface-2);
  border-color: var(--orange);
  box-shadow: 0 20px 50px -20px rgba(255, 90, 31, 0.4);
}
.badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--orange);
  color: #0a0a0a;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 999px;
}
.price-card h3 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.2rem;
}
.price {
  font-family: var(--font-display);
  font-size: 2.6rem;
  color: var(--orange-2);
  margin: 0;
}
.price span { color: var(--text); }
.price-note {
  margin: -12px 0 0;
  color: var(--text-faint);
  font-size: 0.85rem;
  font-style: italic;
}
.price-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  color: var(--text-dim);
  font-size: 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-grow: 1;
  text-align: left;
}
.price-card ul li {
  padding-left: 22px;
  position: relative;
}
.price-card ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--orange);
  font-weight: 700;
}

/* ---------- Merch ---------- */
.merch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-top: 48px;
}
.merch-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.merch-card:hover { border-color: var(--orange-dim); transform: translateY(-4px); }
.merch-placeholder {
  position: relative;
  aspect-ratio: 1 / 1;
  border: 1px dashed var(--border);
  border-radius: calc(var(--radius) - 2px);
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.merch-placeholder-icon { font-size: 2.6rem; opacity: 0.6; filter: grayscale(0.4); }
.merch-placeholder-tag {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--orange);
  color: #0a0a0a;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 999px;
}
.merch-card h3 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.02rem;
  margin-bottom: 8px;
}
.merch-price {
  color: var(--text-faint);
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin: 0;
}
.merch-cta { text-align: center; margin-top: 40px; }

/* ---------- Workouts ---------- */
.workout-tabs {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 40px;
  margin-bottom: 32px;
}
.workout-tab {
  padding: 11px 24px;
  border-radius: 999px;
  border: 2px solid var(--border);
  background: transparent;
  color: var(--text-dim);
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}
.workout-tab:hover { border-color: var(--orange-dim); color: var(--text); }
.workout-tab.active {
  border-color: var(--orange);
  background: var(--orange);
  color: #0a0a0a;
}

.workout-panel { display: none; }
.workout-panel.active { display: block; }

.workout-list {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.workout-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 22px;
}
.workout-item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-weight: 700;
  position: relative;
  padding-right: 24px;
}
.workout-item summary::-webkit-details-marker { display: none; }
.workout-item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  color: var(--orange);
  font-size: 1.3rem;
  line-height: 1;
}
.workout-item[open] summary::after { content: "\2212"; }
.workout-name { color: var(--text); }
.workout-meta {
  color: var(--orange-2);
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  white-space: nowrap;
}
.workout-item p {
  color: var(--text-dim);
  margin: 14px 0 0;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ---------- Testimonials ---------- */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 48px;
}
.testimonial {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--orange);
  border-radius: var(--radius);
  padding: 28px;
  margin: 0;
}
.testimonial p {
  font-size: 1.02rem;
  color: var(--text);
  margin: 0 0 16px;
}
.testimonial cite {
  color: var(--text-faint);
  font-style: normal;
  font-size: 0.88rem;
}

/* ---------- Signup ---------- */
.signup-section {
  position: relative;
  overflow: hidden;
  text-align: center;
}
.signup-inner { position: relative; z-index: 2; }
.signup-form {
  max-width: 480px;
  margin: 0 auto;
}
.form-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.form-row input[type="email"] {
  flex: 1 1 240px;
  padding: 15px 20px;
  border-radius: 999px;
  border: 2px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 1rem;
  font-family: var(--font-body);
  outline: none;
  transition: border-color 0.2s ease;
}
.form-row input[type="email"]:focus { border-color: var(--orange); }
.form-note {
  color: var(--text-faint);
  font-size: 0.82rem;
  margin: 14px 0 0;
}
.form-message {
  margin: 16px 0 0;
  font-weight: 600;
  min-height: 1.2em;
}
.form-message.success { color: #4ade80; }
.form-message.error { color: #f87171; }

/* ---------- FAQ ---------- */
.faq-list {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
}
.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  list-style: none;
  position: relative;
  padding-right: 24px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 0;
  color: var(--orange);
  font-size: 1.3rem;
  line-height: 1;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item p {
  color: var(--text-dim);
  margin: 14px 0 0;
  font-size: 0.95rem;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}
.footer-inner p {
  color: var(--text-faint);
  font-size: 0.85rem;
  margin: 0;
}

/* ---------- Responsive ---------- */
@media (min-width: 760px) {
  .nav { display: flex; }
  .btn-nav { display: inline-flex; }
  .nav-toggle { display: none; }
  .footer-inner { flex-direction: row; justify-content: space-between; }
  .coach-inner { grid-template-columns: 340px 1fr; gap: 56px; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}
