:root {
  --bg: #040E13;
  --surface: #0D1B24;
  --surface-raised: #122733;
  --outline: #263C49;
  --muted: #A9BED2;
  --orange: #FF6A0A;
  --orange-dark: #D6560A;
  --complete: #32C75D;
  --danger: #FF5A5F;
  --text: #F4F8FB;
  --radius: 14px;
  --max-width: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.5;
}

a { color: inherit; }

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

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

/* Nav */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(4, 14, 19, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--outline);
}
.site-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05rem;
}
.brand img { width: 34px; height: 34px; border-radius: 8px; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.95rem;
}
.nav-links a:hover { color: var(--text); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, opacity 0.15s ease;
}
.btn:active { transform: scale(0.98); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
.btn-primary { background: var(--orange); color: #1a0a00; }
.btn-primary:hover:not(:disabled) { background: var(--orange-dark); }
.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: var(--outline);
}
.btn-outline:hover:not(:disabled) { border-color: var(--muted); }
.btn-block { width: 100%; }
.btn-sm { padding: 8px 16px; font-size: 0.85rem; }

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 96px 0 72px;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(180deg, rgba(4,14,19,0.55) 0%, rgba(4,14,19,0.96) 85%), url('../assets/hero.png');
  background-size: cover;
  background-position: center 30%;
  z-index: -1;
}
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1.08;
  margin: 0 0 18px;
  max-width: 720px;
}
.hero .accent { color: var(--orange); }
.hero p {
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 560px;
  margin: 0 0 32px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* Sections */
section { padding: 72px 0; }
.section-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  color: var(--orange);
  font-weight: 700;
  margin: 0 0 10px;
}
.section-title { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 0 0 14px; }
.section-lead { color: var(--muted); max-width: 640px; margin: 0 0 40px; }

/* About / coach */
.coach-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 32px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--outline);
  border-radius: var(--radius);
  padding: 32px;
}
.coach-card .avatar {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 999px;
  object-fit: cover;
  border: 3px solid var(--orange);
}
.coach-card h3 { margin: 0 0 6px; font-size: 1.3rem; }
.coach-card .role { color: var(--orange); font-weight: 600; margin: 0 0 14px; font-size: 0.9rem; }
.coach-card p { color: var(--muted); margin: 0; }

/* Program cards */
.programs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.program-card {
  background: var(--surface);
  border: 1px solid var(--outline);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
}
.program-card.featured { border-color: var(--orange); position: relative; }
.program-card.featured::before {
  content: "Most popular";
  position: absolute;
  top: -12px;
  left: 24px;
  background: var(--orange);
  color: #1a0a00;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
}
.program-card h3 { margin: 0 0 4px; font-size: 1.15rem; }
.program-card .price { font-size: 1.9rem; font-weight: 700; margin: 10px 0 4px; }
.program-card .price span { font-size: 0.95rem; color: var(--muted); font-weight: 500; }
.program-card .desc { color: var(--muted); font-size: 0.92rem; margin: 0 0 18px; flex-grow: 1; }
.program-card ul { list-style: none; margin: 0 0 22px; padding: 0; }
.program-card li {
  display: flex;
  gap: 8px;
  color: var(--muted);
  font-size: 0.88rem;
  margin-bottom: 8px;
}
.program-card li::before { content: "✓"; color: var(--complete); font-weight: 700; }
.bundle-note {
  margin-top: 36px;
  padding: 18px 22px;
  background: var(--surface-raised);
  border: 1px dashed var(--outline);
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 0.92rem;
}
.bundle-note strong { color: var(--text); }

/* Footer */
.site-footer {
  border-top: 1px solid var(--outline);
  padding: 40px 0;
  color: var(--muted);
  font-size: 0.88rem;
}
.site-footer .container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

/* Forms (registration flow) */
.auth-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 16px;
}
.panel {
  width: 100%;
  max-width: 460px;
  background: var(--surface);
  border: 1px solid var(--outline);
  border-radius: var(--radius);
  padding: 36px;
}
.panel-wide { max-width: 760px; }
.panel h2 { margin: 0 0 6px; }
.panel .sub { color: var(--muted); margin: 0 0 28px; font-size: 0.92rem; }
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 6px;
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: 11px 14px;
  border-radius: 10px;
  border: 1px solid var(--outline);
  background: var(--bg);
  color: var(--text);
  font-size: 0.95rem;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--orange);
}
.field-row { display: flex; gap: 14px; }
.field-row .field { flex: 1; }
.form-footnote { font-size: 0.85rem; color: var(--muted); margin-top: 18px; text-align: center; }
.form-footnote a { color: var(--orange); text-decoration: none; font-weight: 600; }
.alert {
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 0.88rem;
  margin-bottom: 18px;
}
.alert-error { background: rgba(255, 90, 95, 0.12); border: 1px solid var(--danger); color: #FFC9CB; }
.alert-success { background: rgba(50, 199, 93, 0.12); border: 1px solid var(--complete); color: #BFF2CF; }
.alert-info { background: rgba(255, 255, 255, 0.06); border: 1px solid var(--border); color: var(--muted); }
.hidden { display: none !important; }

/* Athlete list in registration */
.athlete-card {
  border: 1px solid var(--outline);
  border-radius: 12px;
  padding: 18px;
  margin-bottom: 14px;
  background: var(--surface-raised);
}
.athlete-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}
.athlete-card-head h4 { margin: 0; font-size: 1rem; }
.athlete-card .status { font-size: 0.82rem; color: var(--muted); }
.athlete-card .status-success { color: #BFF2CF; font-weight: 600; }
.program-pick {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
  margin-top: 12px;
}
.program-pick label {
  display: block;
  border: 1px solid var(--outline);
  border-radius: 10px;
  padding: 12px;
  cursor: pointer;
  font-size: 0.85rem;
}
.program-pick input { margin-right: 8px; }
.program-pick label:has(input:checked) { border-color: var(--orange); background: rgba(255,106,10,0.08); }

.step-indicator {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-bottom: 28px;
}
.step-dot {
  width: 8px; height: 8px; border-radius: 999px;
  background: var(--outline);
}
.step-dot.active { background: var(--orange); width: 22px; }

.center { text-align: center; }
.mt-24 { margin-top: 24px; }
.spinner {
  width: 18px; height: 18px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 720px) {
  .nav-links { display: none; }
  .coach-card { grid-template-columns: 1fr; text-align: center; }
  .coach-card .avatar { width: 140px; margin: 0 auto; }
  .field-row { flex-direction: column; gap: 0; }
}

/* Photo carousel */
.carousel {
  position: relative;
}
.carousel-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 16px;
  border-radius: var(--radius);
  scrollbar-width: none;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--outline);
  aspect-ratio: 16 / 9;
  background: var(--surface);
}
.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid var(--outline);
  background: rgba(4, 14, 19, 0.75);
  color: var(--text);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.carousel-arrow:hover { background: rgba(4, 14, 19, 0.92); border-color: var(--muted); }
.carousel-prev { left: 12px; }
.carousel-next { right: 12px; }
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}
.carousel-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  border: none;
  background: var(--outline);
  cursor: pointer;
  padding: 0;
  transition: background 0.15s ease, transform 0.15s ease;
}
.carousel-dot.active { background: var(--orange); transform: scale(1.2); }
@media (max-width: 640px) {
  .carousel-arrow { width: 36px; height: 36px; font-size: 0.85rem; }
}
