/* ========================================
   COACH GYM FUNNEL — SpaceX-Inspired Design
   Dark, Bold, Cinematic Aesthetic
   ======================================== */

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --black: #000000;
  --spectral-white: #f0f0fa;
  --ghost-bg: rgba(240, 240, 250, 0.1);
  --ghost-border: rgba(240, 240, 250, 0.35);
  --overlay: rgba(0, 0, 0, 0.55);
  --overlay-heavy: rgba(0, 0, 0, 0.7);
  --accent: #e03e2d;
  --accent-hover: #ff4f3f;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', Arial, Verdana, sans-serif;
  background: var(--black);
  color: var(--spectral-white);
  overflow-x: hidden;
  line-height: 1.5;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  text-transform: uppercase;
  letter-spacing: 0.96px;
  font-weight: 700;
  line-height: 1.05;
}

p {
  letter-spacing: 0.3px;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
  margin-bottom: 1rem;
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.25rem 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background 0.3s ease;
}

.nav-logo {
  font-size: 1.25rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--spectral-white);
  text-decoration: none;
}

.nav-logo span {
  color: var(--accent);
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.17px;
  color: var(--spectral-white);
  text-decoration: none;
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

.nav-links a:hover {
  opacity: 1;
}

.nav-cta {
  background: var(--accent) !important;
  color: var(--spectral-white) !important;
  padding: 0.5rem 1.25rem;
  border-radius: 32px;
  opacity: 1 !important;
}

.nav-cta:hover {
  background: var(--accent-hover) !important;
}

/* --- Hero Section --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-image: url('https://images.unsplash.com/photo-1534438327276-14e5300c3a48?w=1920&q=80');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--overlay-heavy);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 2rem;
}

.hero-content h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  margin-bottom: 1.25rem;
  line-height: 1.05;
}

.hero-content h1 span {
  color: var(--accent);
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  opacity: 0.85;
  margin-bottom: 2.5rem;
  line-height: 1.6;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* --- Buttons --- */
.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: var(--spectral-white);
  padding: 1rem 2.5rem;
  border: none;
  border-radius: 32px;
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.17px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
}

.btn-ghost {
  display: inline-block;
  background: var(--ghost-bg);
  color: var(--spectral-white);
  padding: 1rem 2.5rem;
  border: 1px solid var(--ghost-border);
  border-radius: 32px;
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.17px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
}

.btn-ghost:hover {
  background: rgba(240, 240, 250, 0.2);
  transform: translateY(-2px);
}

/* --- Full-viewport sections --- */
.section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 6rem 2.5rem;
}

.section-bg {
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.section-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--overlay-heavy);
}

.section-inner {
  position: relative;
  z-index: 2;
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
}

/* --- Pain Points Section --- */
.pain-section {
  background: #0a0a0a;
}

.pain-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.pain-card {
  background: rgba(240, 240, 250, 0.03);
  border: 1px solid rgba(240, 240, 250, 0.08);
  border-radius: 4px;
  padding: 2.5rem 2rem;
  transition: border-color 0.2s ease;
}

.pain-card:hover {
  border-color: var(--accent);
}

.pain-icon {
  font-size: 2rem;
  margin-bottom: 1.25rem;
}

.pain-card h3 {
  font-size: 1.125rem;
  margin-bottom: 0.75rem;
  letter-spacing: 1px;
}

.pain-card p {
  font-size: 0.9375rem;
  opacity: 0.75;
  line-height: 1.6;
  text-transform: none;
}

/* --- Results / Stats Section --- */
.stats-section {
  background-image: url('https://images.unsplash.com/photo-1517836357463-d25dfeac3438?w=1920&q=80');
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
  text-align: center;
  margin-top: 3rem;
}

.stat-item h2 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.stat-item p {
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  opacity: 0.8;
}

/* --- Program Section --- */
.program-section {
  background: var(--black);
}

.program-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.program-card {
  background: rgba(240, 240, 250, 0.03);
  border: 1px solid rgba(240, 240, 250, 0.08);
  border-radius: 4px;
  padding: 3rem 2rem;
  text-align: center;
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.program-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}

.program-card.featured {
  border-color: var(--accent);
  background: rgba(224, 62, 45, 0.05);
}

.program-card .price {
  font-size: 2.5rem;
  font-weight: 700;
  margin: 1.5rem 0;
}

.program-card .price span {
  font-size: 1rem;
  opacity: 0.6;
}

.program-card ul {
  list-style: none;
  margin: 1.5rem 0 2rem;
  text-align: left;
}

.program-card ul li {
  padding: 0.625rem 0;
  border-bottom: 1px solid rgba(240, 240, 250, 0.06);
  font-size: 0.9375rem;
  opacity: 0.85;
}

.program-card ul li::before {
  content: '\2713';
  color: var(--accent);
  margin-right: 0.75rem;
  font-weight: 700;
}

/* --- Testimonials Section --- */
.testimonials-section {
  background-image: url('https://images.unsplash.com/photo-1571019614242-c5c5dee9f50b?w=1920&q=80');
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.testimonial-card {
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(240, 240, 250, 0.1);
  border-radius: 4px;
  padding: 2.5rem 2rem;
  backdrop-filter: blur(8px);
}

.testimonial-card blockquote {
  font-size: 1rem;
  line-height: 1.7;
  font-style: italic;
  opacity: 0.9;
  margin-bottom: 1.5rem;
  text-transform: none;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.125rem;
}

.testimonial-name {
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.testimonial-meta {
  font-size: 0.75rem;
  opacity: 0.6;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* --- CTA / Opt-in Section --- */
.cta-section {
  background-image: url('https://images.unsplash.com/photo-1549060279-7e168fcee0c2?w=1920&q=80');
  text-align: center;
}

.cta-section h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  margin-bottom: 1.25rem;
}

.cta-section h2 span {
  color: var(--accent);
}

.cta-subtitle {
  font-size: 1.125rem;
  opacity: 0.8;
  margin-bottom: 2.5rem;
  max-width: 550px;
  margin-left: auto;
  margin-right: auto;
}

.opt-in-form {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 550px;
  margin: 0 auto;
}

.opt-in-form input {
  flex: 1;
  min-width: 220px;
  padding: 1rem 1.5rem;
  background: rgba(240, 240, 250, 0.08);
  border: 1px solid var(--ghost-border);
  border-radius: 32px;
  color: var(--spectral-white);
  font-size: 0.9375rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s ease;
}

.opt-in-form input::placeholder {
  color: rgba(240, 240, 250, 0.4);
  text-transform: uppercase;
  font-size: 0.8125rem;
  letter-spacing: 1px;
}

.opt-in-form input:focus {
  border-color: var(--accent);
}

.opt-in-form button {
  white-space: nowrap;
}

/* --- Footer --- */
.footer {
  padding: 3rem 2.5rem;
  text-align: center;
  border-top: 1px solid rgba(240, 240, 250, 0.06);
}

.footer p {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.4;
}

/* --- Thank You Page --- */
.thankyou-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--black);
}

.thankyou-content {
  max-width: 650px;
  padding: 2rem;
}

.thankyou-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  margin: 0 auto 2rem;
}

.thankyou-content h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1.25rem;
}

.thankyou-content p {
  font-size: 1.0625rem;
  opacity: 0.8;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  text-transform: none;
}

.next-steps {
  margin-top: 3rem;
  text-align: left;
}

.next-steps h3 {
  font-size: 1rem;
  letter-spacing: 1.5px;
  margin-bottom: 1.5rem;
}

.step-item {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.step-number {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
}

.step-text h4 {
  font-size: 0.875rem;
  letter-spacing: 1px;
  margin-bottom: 0.25rem;
}

.step-text p {
  font-size: 0.875rem;
  opacity: 0.65;
  margin-bottom: 0;
}

/* --- Mobile Hamburger --- */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--spectral-white);
  font-size: 1.5rem;
  cursor: pointer;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .nav {
    padding: 1rem 1.5rem;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(0, 0, 0, 0.95);
    padding: 1.5rem;
    gap: 1rem;
    backdrop-filter: blur(12px);
  }

  .nav-links.active {
    display: flex;
  }

  .nav-toggle {
    display: block;
  }

  .section {
    padding: 4rem 1.5rem;
  }

  .pain-grid,
  .program-grid,
  .testimonial-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  .opt-in-form {
    flex-direction: column;
  }

  .opt-in-form input {
    min-width: 100%;
  }
}

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