:root {
  --gold: #C9A84C;
  --gold-light: #E8C97A;
  --gold-dim: rgba(201,168,76,0.13);
  --navy: #0E1F38;
  --navy-mid: #132947;
  --navy-light: #1A3459;
  --cream: #F4F0E6;
  --cream-dim: rgba(244,240,230,0.65);
  --cream-faint: rgba(244,240,230,0.12);
  --mono: 'DM Mono', monospace;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Syne', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--navy);
  color: var(--cream);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.7;
  overflow-x: hidden;
}

/* NAV */
nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.2rem 4rem;
  background: rgba(14,31,56,0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(201,168,76,0.18);
}
.nav-logo {
  font-family: var(--sans); font-weight: 800;
  font-size: 0.82rem; letter-spacing: 0.18em;
  color: var(--gold); text-transform: uppercase;
}
.nav-links { display: flex; gap: 2.5rem; list-style: none; }
.nav-links a {
  font-family: var(--mono); font-size: 0.72rem;
  letter-spacing: 0.12em; color: var(--cream-dim);
  text-decoration: none; text-transform: uppercase;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--gold); }
.nav-cta {
  font-family: var(--mono); font-size: 0.72rem;
  letter-spacing: 0.12em; text-transform: uppercase;
  background: var(--gold); color: var(--navy);
  padding: 0.55rem 1.4rem; text-decoration: none;
  font-weight: 500; transition: background 0.2s;
}
.nav-cta:hover { background: var(--gold-light); }

/* HERO */
.hero {
  min-height: 100vh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 8rem 4rem 5rem;
  position: relative; overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 55% 50% at 85% 50%, rgba(201,168,76,0.08) 0%, transparent 65%),
    radial-gradient(ellipse 40% 60% at 5% 80%, rgba(26,52,89,0.6) 0%, transparent 60%);
  pointer-events: none;
}
.hero-tag {
  font-family: var(--mono); font-size: 0.7rem;
  letter-spacing: 0.25em; color: var(--gold);
  text-transform: uppercase; margin-bottom: 2.5rem;
  display: flex; align-items: center; gap: 1rem;
  animation: fadeUp 0.7s ease both;
}
.hero-tag::before {
  content: ''; display: block; width: 3rem; height: 1px; background: var(--gold);
}
.hero h1 {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(3rem, 7vw, 7rem); line-height: 1.0;
  letter-spacing: -0.01em; max-width: 14ch;
  margin-bottom: 2rem; animation: fadeUp 0.9s ease both;
}
.hero h1 em { font-style: italic; color: var(--gold); }
.hero-sub {
  font-family: var(--mono); font-size: 0.82rem;
  color: var(--cream-dim); letter-spacing: 0.05em;
  max-width: 52ch; margin-bottom: 3.5rem; line-height: 1.9;
  animation: fadeUp 0.9s 0.15s ease both;
}
.hero-actions {
  display: flex; gap: 1.5rem; align-items: center;
  animation: fadeUp 0.9s 0.3s ease both;
}
.btn-primary {
  font-family: var(--mono); font-size: 0.78rem;
  letter-spacing: 0.12em; text-transform: uppercase;
  background: var(--gold); color: var(--navy);
  padding: 1rem 2.5rem; text-decoration: none;
  font-weight: 500; transition: all 0.2s; display: inline-block;
}
.btn-primary:hover { background: var(--gold-light); transform: translateY(-1px); }
.btn-ghost {
  font-family: var(--mono); font-size: 0.78rem;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--cream-dim); text-decoration: none;
  border-bottom: 1px solid rgba(244,240,230,0.35); padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}
.btn-ghost:hover { color: var(--cream); border-color: var(--cream); }
.hero-credential {
  position: absolute; right: 4rem; bottom: 4rem;
  text-align: right; opacity: 0.45;
}
.hero-credential span {
  font-family: var(--mono); font-size: 0.65rem;
  letter-spacing: 0.15em; color: var(--gold);
  text-transform: uppercase; display: block;
}
.hero-credential strong {
  font-family: var(--serif); font-size: 1.6rem;
  font-weight: 300; color: var(--cream); letter-spacing: 0.05em;
}

/* STATS */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid rgba(201,168,76,0.12);
}
.stat {
  padding: 2.5rem 3rem;
  border-right: 1px solid rgba(201,168,76,0.12);
}
.stat:last-child { border-right: none; }
.stat-num {
  font-family: var(--serif); font-size: 3.2rem;
  font-weight: 300; color: var(--gold); line-height: 1; margin-bottom: 0.4rem;
}
.stat-label {
  font-family: var(--mono); font-size: 0.68rem;
  letter-spacing: 0.15em; color: var(--cream-dim); text-transform: uppercase;
}

/* SECTIONS */
section { padding: 7rem 4rem; }
.section-tag {
  font-family: var(--mono); font-size: 0.68rem;
  letter-spacing: 0.22em; color: var(--gold);
  text-transform: uppercase; margin-bottom: 1.5rem;
  display: flex; align-items: center; gap: 0.8rem;
}
.section-tag::before { content: '//'; opacity: 0.45; }
h2 {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(2.2rem, 4vw, 3.8rem); line-height: 1.1; margin-bottom: 1.5rem;
}
h2 em { font-style: italic; color: var(--gold); }

/* ABOUT */
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 6rem; align-items: start; margin-top: 4rem;
}
.about-left p { color: var(--cream-dim); margin-bottom: 1.5rem; font-size: 1.05rem; }
.credential-box {
  border: 1px solid rgba(201,168,76,0.35);
  padding: 2rem 2.5rem; background: var(--gold-dim); margin-top: 2.5rem;
}
.cred-title {
  font-family: var(--mono); font-size: 0.65rem;
  letter-spacing: 0.2em; color: var(--gold);
  text-transform: uppercase; margin-bottom: 0.8rem;
}
.cred-text {
  font-family: var(--serif); font-size: 1.3rem;
  font-weight: 300; line-height: 1.5; color: var(--cream);
}
.cred-id {
  font-family: var(--mono); font-size: 0.72rem;
  color: var(--gold); margin-top: 0.8rem; opacity: 0.8;
}
.about-right .pillar {
  padding: 1.8rem 0; border-bottom: 1px solid rgba(201,168,76,0.12);
}
.about-right .pillar:first-child { border-top: 1px solid rgba(201,168,76,0.12); }
.pillar-num {
  font-family: var(--mono); font-size: 0.65rem;
  color: var(--gold); letter-spacing: 0.15em; margin-bottom: 0.5rem;
}
.pillar h3 {
  font-family: var(--sans); font-weight: 700;
  font-size: 1rem; margin-bottom: 0.4rem; letter-spacing: 0.03em;
}
.pillar p {
  font-family: var(--mono); font-size: 0.75rem;
  color: var(--cream-dim); line-height: 1.7;
}

/* CURRICULUM */
.curriculum-bg { background: var(--navy-mid); }
.curriculum-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 1px; background: rgba(201,168,76,0.1);
  margin-top: 4rem; border: 1px solid rgba(201,168,76,0.1);
}
.week-card {
  background: var(--navy-mid); padding: 2.2rem 2.5rem; transition: background 0.2s;
}
.week-card:hover { background: rgba(201,168,76,0.05); }
.week-num {
  font-family: var(--mono); font-size: 0.62rem;
  letter-spacing: 0.2em; color: var(--gold);
  text-transform: uppercase; margin-bottom: 0.8rem;
}
.week-card h3 {
  font-family: var(--sans); font-weight: 700;
  font-size: 1rem; margin-bottom: 0.8rem; letter-spacing: 0.02em;
}
.week-card ul { list-style: none; padding: 0; }
.week-card ul li {
  font-family: var(--mono); font-size: 0.72rem;
  color: var(--cream-dim); line-height: 1.9;
  padding-left: 1rem; position: relative;
}
.week-card ul li::before {
  content: '→'; position: absolute; left: 0; color: var(--gold); opacity: 0.6;
}
.week-card.highlight {
  background: rgba(201,168,76,0.07); border-left: 2px solid var(--gold);
}
.week-card.highlight:hover { background: rgba(201,168,76,0.1); }

/* TRACKS */
.tracks {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 2rem; margin-top: 4rem;
}
.track-card {
  border: 1px solid rgba(201,168,76,0.25); padding: 2.5rem;
  background: rgba(26,52,89,0.4);
}
.track-icon { font-size: 2rem; margin-bottom: 1rem; }
.track-card h3 {
  font-family: var(--sans); font-weight: 700;
  font-size: 1.2rem; margin-bottom: 0.8rem; color: var(--gold);
}
.track-card p {
  font-family: var(--mono); font-size: 0.75rem;
  color: var(--cream-dim); line-height: 1.8;
}

/* PRICING */
.pricing-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem; margin-top: 4rem;
}
.price-card {
  border: 1px solid rgba(201,168,76,0.2); padding: 2.8rem 2.5rem;
  position: relative; background: var(--navy-mid); transition: all 0.25s;
}
.price-card:hover { border-color: var(--gold); transform: translateY(-4px); }
.price-card.featured { border-color: var(--gold); background: var(--gold-dim); }
.price-badge {
  position: absolute; top: -1px; left: 50%; transform: translateX(-50%);
  font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.18em;
  text-transform: uppercase; background: var(--gold);
  color: var(--navy); padding: 0.3rem 1rem; white-space: nowrap;
}
.price-tier {
  font-family: var(--mono); font-size: 0.68rem;
  letter-spacing: 0.15em; color: var(--gold);
  text-transform: uppercase; margin-bottom: 1rem;
}
.price-amount {
  font-family: var(--serif); font-size: 2.8rem;
  font-weight: 300; line-height: 1; margin-bottom: 0.3rem;
}
.price-period {
  font-family: var(--mono); font-size: 0.68rem;
  color: var(--cream-dim); margin-bottom: 2rem;
}
.price-features { list-style: none; margin-bottom: 2rem; }
.price-features li {
  font-family: var(--mono); font-size: 0.72rem;
  color: var(--cream-dim); padding: 0.5rem 0;
  border-bottom: 1px solid rgba(201,168,76,0.08);
  display: flex; align-items: flex-start; gap: 0.6rem;
}
.price-features li::before { content: '✓'; color: var(--gold); flex-shrink: 0; }
.price-cta {
  display: block; text-align: center; font-family: var(--mono);
  font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase;
  text-decoration: none; padding: 0.9rem;
  border: 1px solid var(--gold); color: var(--gold); transition: all 0.2s;
}
.price-card.featured .price-cta { background: var(--gold); color: var(--navy); }
.price-cta:hover { background: var(--gold); color: var(--navy); }

/* SCHEDULE */
.schedule-table {
  width: 100%; border-collapse: collapse; margin-top: 3rem;
  font-family: var(--mono); font-size: 0.75rem;
}
.schedule-table th {
  text-align: left; padding: 1rem 1.5rem;
  background: var(--gold-dim); color: var(--gold);
  letter-spacing: 0.12em; text-transform: uppercase;
  border-bottom: 1px solid rgba(201,168,76,0.3);
}
.schedule-table td {
  padding: 1.1rem 1.5rem;
  border-bottom: 1px solid rgba(201,168,76,0.08);
  color: var(--cream-dim); vertical-align: top;
}
.schedule-table tr:hover td { background: rgba(201,168,76,0.04); }
.cohort-badge {
  display: inline-block; font-size: 0.6rem;
  letter-spacing: 0.1em; text-transform: uppercase; padding: 0.2rem 0.6rem;
}
.open    { background: rgba(50,180,50,0.12); color: #5ece5e; border: 1px solid rgba(50,180,50,0.3); }
.filling { background: rgba(201,168,76,0.12); color: var(--gold); border: 1px solid rgba(201,168,76,0.3); }
.planned { background: rgba(244,240,230,0.05); color: var(--cream-dim); border: 1px solid rgba(244,240,230,0.1); }

/* FORM */
.cta-section {
  background: var(--gold-dim);
  border-top: 1px solid rgba(201,168,76,0.3);
  border-bottom: 1px solid rgba(201,168,76,0.3);
  text-align: center; padding: 6rem 4rem;
}
.cta-section h2 { max-width: 18ch; margin: 1.5rem auto 1rem; }
.cta-section p {
  font-family: var(--mono); font-size: 0.8rem;
  color: var(--cream-dim); margin-bottom: 2.5rem;
}
.form-wrapper { max-width: 560px; margin: 0 auto; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem; }
.form-group { margin-bottom: 1rem; }
input, select, textarea {
  width: 100%; background: rgba(14,31,56,0.6);
  border: 1px solid rgba(201,168,76,0.3); color: var(--cream);
  font-family: var(--mono); font-size: 0.78rem;
  padding: 0.85rem 1rem; outline: none;
  transition: border-color 0.2s; appearance: none;
}
input:focus, select:focus, textarea:focus { border-color: var(--gold); }
input::placeholder { color: rgba(244,240,230,0.3); }
select option { background: var(--navy-mid); }
textarea { resize: vertical; min-height: 80px; }
.submit-btn {
  width: 100%; background: var(--gold); color: var(--navy);
  border: none; font-family: var(--mono); font-size: 0.82rem;
  letter-spacing: 0.15em; text-transform: uppercase;
  padding: 1.1rem; cursor: pointer; font-weight: 500;
  transition: background 0.2s; margin-top: 0.5rem;
}
.submit-btn:hover    { background: var(--gold-light); }
.submit-btn:disabled { opacity: 0.6; cursor: not-allowed; }

/* FORM VALIDATION */
.form-group.has-error input,
.form-group.has-error select,
.form-group.has-error textarea {
  border-color: #e05a5a;
}
.field-error {
  display: block;
  font-family: var(--mono); font-size: 0.65rem;
  color: #e05a5a; margin-top: 0.35rem;
  text-align: left; min-height: 1em;
}
.form-error-banner {
  font-family: var(--mono); font-size: 0.72rem;
  color: #e05a5a;
  border: 1px solid rgba(224,90,90,0.35);
  background: rgba(224,90,90,0.07);
  padding: 0.85rem 1rem; margin-bottom: 1rem;
  text-align: left;
}

/* FORM SUCCESS MESSAGE */
.form-success {
  display: none;
  border: 1px solid rgba(201,168,76,0.5);
  background: rgba(201,168,76,0.08);
  padding: 2rem 2.5rem;
  text-align: center;
}
.form-success.visible { display: block; }
.form-success-title {
  font-family: var(--sans); font-weight: 700;
  font-size: 1.1rem; color: var(--gold);
  letter-spacing: 0.05em; margin-bottom: 0.6rem;
}
.form-success-msg {
  font-family: var(--mono); font-size: 0.75rem;
  color: var(--cream-dim); line-height: 1.8;
}

/* FOOTER */
footer {
  padding: 3rem 4rem; display: flex;
  justify-content: space-between; align-items: center;
  border-top: 1px solid rgba(201,168,76,0.12);
  background: var(--navy-mid);
}
.footer-logo {
  font-family: var(--sans); font-weight: 800; font-size: 0.8rem;
  letter-spacing: 0.2em; color: var(--gold); text-transform: uppercase;
}
.footer-links { display: flex; gap: 2rem; list-style: none; }
.footer-links a {
  font-family: var(--mono); font-size: 0.65rem;
  letter-spacing: 0.1em; color: var(--cream-dim);
  text-decoration: none; text-transform: uppercase; transition: color 0.2s;
}
.footer-links a:hover { color: var(--gold); }
.footer-copy {
  font-family: var(--mono); font-size: 0.65rem;
  color: rgba(244,240,230,0.25); letter-spacing: 0.08em;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Hamburger button (hidden on desktop) ──────────────────────────────── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
  flex-shrink: 0;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--cream);
  border-radius: 1px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile CTA inside nav drawer — hidden on desktop */
.nav-mobile-cta { display: none; }

/* Table scroll wrapper */
.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* ── Tablet: 768px – 1023px ──────────────────────────────────────────── */
@media (max-width: 1023px) {
  /* Nav: show hamburger, hide desktop links and CTA */
  nav {
    padding: 1rem 2rem;
    flex-wrap: wrap;
    align-items: center;
  }
  .nav-hamburger { display: flex; }
  .nav-cta { display: none; }

  .nav-links {
    display: none;
    flex-direction: column;
    flex-basis: 100%;
    gap: 0;
    padding: 0.5rem 0 1.25rem;
    margin-top: 0.75rem;
    border-top: 1px solid rgba(201,168,76,0.12);
  }
  .nav-links.open { display: flex; }
  .nav-links li { border-bottom: 1px solid rgba(201,168,76,0.08); }
  .nav-links a {
    display: block;
    padding: 0.9rem 0;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
  }

  /* Mobile CTA item at bottom of drawer */
  .nav-mobile-cta {
    display: list-item;
    border-bottom: none !important;
    margin-top: 0.75rem;
  }
  .nav-mobile-cta a {
    background: var(--gold);
    color: var(--navy) !important;
    text-align: center;
    padding: 0.85rem !important;
    font-weight: 500;
    transition: background 0.2s;
  }
  .nav-mobile-cta a:hover { background: var(--gold-light); color: var(--navy) !important; }

  /* Sections */
  section { padding: 5rem 2.5rem; }
  .cta-section { padding: 5rem 2.5rem; }

  /* Tighten about-grid gap */
  .about-grid { gap: 3rem; }

  /* Pricing: 1 col (3 cols at ~768px gives ~210px/card — too cramped) */
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 440px;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-credential { display: none; }
}

/* ── Mobile: ≤ 767px ──────────────────────────────────────────────────── */
@media (max-width: 767px) {
  nav { padding: 1rem 1.25rem; }

  /* Hero */
  .hero { padding: 6rem 1.25rem 3.5rem; }
  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  .btn-primary { width: 100%; text-align: center; }

  /* Stats: 2×2 grid with correct borders */
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat { padding: 1.5rem; }
  .stat:nth-child(even) { border-right: none; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid rgba(201,168,76,0.12); }

  /* Sections */
  section { padding: 3.5rem 1.25rem; }
  .cta-section { padding: 3.5rem 1.25rem; }

  /* All multi-col grids → single column */
  .about-grid,
  .curriculum-grid,
  .tracks,
  .pricing-grid { grid-template-columns: 1fr; }
  .about-grid { gap: 2.5rem; }
  .pricing-grid { max-width: 100%; }

  /* Form */
  .form-row { grid-template-columns: 1fr; }

  /* Footer */
  footer {
    flex-direction: column;
    gap: 1.2rem;
    text-align: center;
    padding: 2.5rem 1.25rem;
  }
  .footer-links { flex-wrap: wrap; justify-content: center; }
}
