/* ================================================================
   CoachFitOS — Shared Design System
   ================================================================ */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --black: #0a0a0a;
  --black-light: #111111;
  --black-mid: #141414;
  --white: #f5f5f0;
  --orange: #ff5c1a;
  --orange-dark: #cc3d00;
  --orange-glow: rgba(255, 92, 26, 0.15);
  --grey: #1a1a1a;
  --text-muted: rgba(245, 245, 240, 0.5);
  --text-dim: rgba(245, 245, 240, 0.3);
  --text-bright: rgba(245, 245, 240, 0.75);
  --border-subtle: rgba(255, 92, 26, 0.12);
  --border-faint: rgba(255, 255, 255, 0.04);
}

html { scroll-behavior: smooth; background: var(--black); }

body {
  background: var(--black);
  color: var(--white);
  font-family: 'Barlow', sans-serif;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  opacity: 0.3;
  pointer-events: none;
  z-index: 100;
}

/* ================================================================
   NAVIGATION
   ================================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 14px 6vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-faint);
}

.logo-mark {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-img {
  height: 34px;
  width: auto;
  display: block;
}

.logo-text {
  font-family: 'Barlow', sans-serif;
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: 0.02em;
  color: var(--white);
}
.logo-text span { color: var(--orange); }

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

.nav-link {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  padding: 7px 14px;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}
.nav-link:hover,
.nav-link.active {
  color: var(--white);
  background: rgba(255,255,255,0.05);
}
.nav-link.active { color: var(--orange); }

.nav-cta {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--black);
  background: var(--orange);
  text-decoration: none;
  padding: 8px 18px;
  border-radius: 6px;
  margin-left: 8px;
  transition: background 0.2s, transform 0.2s;
}
.nav-cta:hover {
  background: var(--orange-dark);
  transform: translateY(-1px);
}

/* ── Nav Dropdown ── */
.nav-dropdown { position: relative; }
.nav-dropdown-toggle {
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--text-muted);
  text-decoration: none; padding: 7px 14px; border-radius: 6px;
  transition: color 0.2s, background 0.2s; cursor: pointer;
  background: none; border: none; display: flex; align-items: center; gap: 4px;
  font-family: inherit;
}
.nav-dropdown-toggle:hover { color: var(--white); background: rgba(255,255,255,0.05); }
.nav-dropdown-toggle svg { width: 10px; height: 10px; fill: currentColor; transition: transform 0.2s; }
.nav-dropdown:hover .nav-dropdown-toggle svg { transform: rotate(180deg); }
.nav-dropdown-menu {
  position: absolute; top: 100%; left: 0; min-width: 220px;
  background: rgba(17,17,17,0.97); backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle); border-radius: 10px;
  padding: 8px 0; opacity: 0; visibility: hidden;
  transform: translateY(8px); transition: all 0.2s ease;
  box-shadow: 0 12px 40px rgba(0,0,0,0.5);
}
.nav-dropdown:hover .nav-dropdown-menu { opacity: 1; visibility: visible; transform: translateY(4px); }
.nav-dropdown-item {
  display: block; padding: 10px 18px; font-size: 0.78rem; font-weight: 500;
  color: var(--text-bright); text-decoration: none; letter-spacing: 0.02em;
  transition: background 0.15s, color 0.15s;
}
.nav-dropdown-item:hover { background: rgba(255,92,26,0.08); color: var(--orange); }
.nav-dropdown-item small { display: block; font-size: 0.66rem; color: var(--text-dim); margin-top: 2px; font-weight: 400; }

.nav-badge {
  background: rgba(255, 92, 26, 0.08);
  border: 1px solid rgba(255, 92, 26, 0.2);
  color: var(--orange);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
}

/* ================================================================
   PAGE HEADER (inner pages hero)
   ================================================================ */
.page-header {
  padding: 140px 6vw 72px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(255,92,26,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.page-eyebrow {
  font-size: 0.65rem; font-weight: 700;
  letter-spacing: 0.35em; text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 16px;
  display: block;
}
.page-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2.8rem, 6vw, 5.2rem);
  line-height: 1;
  letter-spacing: 0.03em;
  color: var(--white);
  margin-bottom: 18px;
}
.page-title .accent { color: var(--orange); }
.page-desc {
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.75;
  color: var(--text-bright);
  max-width: 600px;
  margin: 0 auto;
}

/* ================================================================
   SHARED SECTION STYLES
   ================================================================ */
section {
  position: relative;
  z-index: 5;
}
.section-wrap {
  padding: 72px 6vw;
}
.section-wrap--alt {
  background: var(--black-light);
  border-top: 1px solid var(--border-faint);
  border-bottom: 1px solid var(--border-faint);
}
.section-header {
  text-align: center;
  margin-bottom: 52px;
}
.section-eyebrow {
  font-size: 0.65rem; font-weight: 700;
  letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--orange); margin-bottom: 14px;
}
.section-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  line-height: 1.05; letter-spacing: 0.03em;
  color: var(--white);
}
.section-subtitle {
  margin-top: 14px;
  font-size: 0.95rem; font-weight: 400;
  line-height: 1.65; color: var(--text-muted);
  max-width: 540px;
  margin-left: auto; margin-right: auto;
}
.max-w { max-width: 1120px; margin: 0 auto; }

/* ================================================================
   BUTTONS
   ================================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'Barlow', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 14px 28px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}
.btn-primary {
  background: var(--orange);
  color: var(--black);
  box-shadow: 0 0 0 0 rgba(255,92,26,0.4);
}
.btn-primary:hover {
  background: var(--orange-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255,92,26,0.3);
}
.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.12);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.2);
  transform: translateY(-2px);
}

/* ================================================================
   CARDS
   ================================================================ */
.card {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 28px 24px;
  transition: border-color 0.25s, background 0.25s, transform 0.25s;
}
.card:hover {
  border-color: rgba(255,92,26,0.3);
  background: rgba(255,92,26,0.03);
  transform: translateY(-2px);
}
.card-icon {
  width: 38px; height: 38px;
  background: var(--orange-glow);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.card-icon svg { width: 18px; height: 18px; fill: var(--orange); }
.card-title {
  font-family: 'Barlow', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}
.card-desc {
  font-size: 0.85rem;
  line-height: 1.65;
  color: var(--text-muted);
}

/* ================================================================
   WAITLIST FORM
   ================================================================ */
.waitlist-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 620px;
  width: 100%;
}
.waitlist-row {
  display: flex;
  gap: 10px;
}
.waitlist-input,
.waitlist-select {
  flex: 1;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 7px;
  padding: 13px 16px;
  font-family: 'Barlow', sans-serif;
  font-size: 0.88rem;
  color: var(--white);
  outline: none;
  transition: border-color 0.2s;
  appearance: none;
  -webkit-appearance: none;
}
.waitlist-input::placeholder { color: rgba(245,245,240,0.3); }
.waitlist-input:focus,
.waitlist-select:focus { border-color: rgba(255,92,26,0.5); }
.waitlist-select option { background: #1a1a1a; color: var(--white); }

.waitlist-btn {
  width: 100%;
  padding: 15px;
  background: var(--orange);
  color: var(--black);
  font-family: 'Barlow', sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: none;
  border-radius: 7px;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.waitlist-btn:hover {
  background: var(--orange-dark);
  transform: translateY(-1px);
}
.waitlist-note {
  font-size: 0.72rem;
  color: var(--text-dim);
  text-align: center;
  letter-spacing: 0.05em;
}
.waitlist-success {
  display: none;
  text-align: center;
  padding: 28px 20px;
  background: rgba(255,92,26,0.06);
  border: 1px solid rgba(255,92,26,0.2);
  border-radius: 10px;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--white);
}
.waitlist-success .success-icon {
  display: block;
  font-size: 1.8rem;
  margin-bottom: 10px;
}
.success-sub {
  display: block;
  margin-top: 8px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ================================================================
   CTA SECTION
   ================================================================ */
.cta-section {
  padding: 80px 6vw;
  text-align: center;
  border-top: 1px solid var(--border-faint);
}
.cta-section .section-title { margin-bottom: 14px; }
.cta-section .section-subtitle { margin-bottom: 36px; }
.cta-section .waitlist-form { margin: 0 auto; }

/* ================================================================
   FOOTER
   ================================================================ */
.footer {
  background: var(--black-light);
  border-top: 1px solid var(--border-faint);
  padding: 48px 6vw 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand .logo-text { font-size: 1.2rem; margin-bottom: 12px; display: block; }
.footer-brand p {
  font-size: 0.82rem;
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 260px;
}
.footer-col h4 {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 16px;
}
.footer-col a {
  display: block;
  font-size: 0.82rem;
  color: var(--text-muted);
  text-decoration: none;
  margin-bottom: 9px;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid var(--border-faint);
}
.footer-copy {
  font-size: 0.75rem;
  color: var(--text-dim);
}
.footer-badge {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--orange);
  background: rgba(255,92,26,0.08);
  border: 1px solid rgba(255,92,26,0.2);
  padding: 5px 12px;
  border-radius: 999px;
}

/* ================================================================
   MOBILE NAV — Hamburger button
   ================================================================ */
.nav-ham {
  display: none;           /* hidden on desktop, shown via @media below */
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  transition: background 0.2s;
}
.nav-ham:hover { background: rgba(255,255,255,0.09); }
.nav-ham span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.25s cubic-bezier(0.16,1,0.3,1),
              opacity   0.2s,
              width     0.2s;
  transform-origin: center;
}
.nav-ham.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-ham.open span:nth-child(2) { opacity: 0; width: 0; }
.nav-ham.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ================================================================
   MOBILE NAV — Full-width slide-down drawer
   ================================================================ */
.mobile-nav {
  position: fixed;
  left: 0; right: 0;
  z-index: 49;              /* just under .nav's 50 */
  background: rgba(10,10,10,0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  transform: translateY(-10px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.28s cubic-bezier(0.16,1,0.3,1),
              opacity   0.22s;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.mobile-nav.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-nav-inner {
  display: flex;
  flex-direction: column;
  padding: 14px 5vw 24px;
  gap: 3px;
}
.mobile-nav-link {
  font-family: 'Barlow', sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  padding: 14px 16px;
  border-radius: 8px;
  border-left: 2px solid transparent;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}
.mobile-nav-link:hover { color: var(--white); background: rgba(255,255,255,0.04); }
.mobile-nav-link.active { color: var(--orange); border-left-color: var(--orange); background: rgba(255,92,26,0.04); }
.mobile-nav-divider {
  height: 1px;
  background: var(--border-faint);
  margin: 8px 0;
}
.mobile-nav-cta {
  display: block;
  text-align: center;
  font-family: 'Barlow', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--black);
  background: var(--orange);
  text-decoration: none;
  padding: 14px 20px;
  border-radius: 7px;
  margin-top: 8px;
  transition: background 0.2s;
}
.mobile-nav-cta:hover { background: var(--orange-dark); }


.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.16,1,0.3,1),
              transform 0.7s cubic-bezier(0.16,1,0.3,1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-stagger > .reveal:nth-child(1) { transition-delay: 0s; }
.reveal-stagger > .reveal:nth-child(2) { transition-delay: 0.07s; }
.reveal-stagger > .reveal:nth-child(3) { transition-delay: 0.14s; }
.reveal-stagger > .reveal:nth-child(4) { transition-delay: 0.21s; }
.reveal-stagger > .reveal:nth-child(5) { transition-delay: 0.28s; }
.reveal-stagger > .reveal:nth-child(6) { transition-delay: 0.35s; }

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-cta   { display: none; }
  .nav-badge { display: none; }
  .nav-ham   { display: flex; }   /* show hamburger */
  /* Shrink the logo so it doesn't crowd the hamburger */
  .logo-img  { height: 26px; }
  .logo-text { font-size: 1.1rem !important; }
  .logo-mark { gap: 8px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
  .waitlist-row { flex-direction: column; }
  .page-header { padding: 110px 6vw 56px; }
}
