:root {
  --bg: #171614;
  --bg-soft: #1c1916;
  --bg-card: #1f1c19;
  --cream: #efe0c8;
  --cream-dim: rgba(239, 224, 200, 0.62);
  --cream-faint: rgba(239, 224, 200, 0.38);
  --cream-ghost: rgba(239, 224, 200, 0.045);
  --gold: #c9a66b;
  --gold-bright: #ddc08a;
  --gold-glow: rgba(201, 166, 107, 0.28);
  --border: rgba(239, 224, 200, 0.12);
  --border-strong: rgba(239, 224, 200, 0.22);
  --border-gold: rgba(201, 166, 107, 0.3);

  --font: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;

  --radius: 6px;
  --radius-sm: 4px;
  --container: 1160px;
}

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

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--cream);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

h1, h2, h3 {
  font-family: var(--font);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0;
}

p { margin: 0; }
a { color: inherit; text-decoration: none; }

.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
  position: relative;
}

/* ---------- Reveal-on-scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-1 { transition-delay: 0.08s; }
.reveal-2 { transition-delay: 0.16s; }
.reveal-3 { transition-delay: 0.24s; }
.reveal-4 { transition-delay: 0.32s; }

/* ---------- Ghost background text ---------- */
.ghost-text {
  position: absolute;
  top: -0.3em;
  left: -0.02em;
  font-size: clamp(90px, 13vw, 200px);
  font-weight: 800;
  color: var(--cream-ghost);
  letter-spacing: -0.04em;
  line-height: 1;
  pointer-events: none;
  user-select: none;
  z-index: 0;
  white-space: nowrap;
}

/* ---------- Glow orb ---------- */
.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(50px);
  pointer-events: none;
  z-index: 0;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(23, 22, 20, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-logo {
  height: 30px;
  width: auto;
  display: block;
  align-self: center;
}

nav.main-nav {
  display: flex;
  align-items: center;
  gap: 36px;
}

nav.main-nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--cream-dim);
  transition: color 0.2s ease;
  position: relative;
  padding-bottom: 4px;
}

nav.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -22px;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

nav.main-nav a:hover { color: var(--cream); }
nav.main-nav a:hover::after,
nav.main-nav a.active::after { transform: scaleX(1); }
nav.main-nav a.active { color: var(--cream); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  width: 40px;
  height: 40px;
  color: var(--cream);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.25s ease;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--gold);
  color: #171614;
}
.btn-primary:hover {
  background: var(--gold-bright);
  box-shadow: 0 8px 28px var(--gold-glow);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--cream);
  border-color: var(--border-strong);
}
.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold-bright);
  transform: translateY(-1px);
}

.header-cta { display: flex; align-items: center; gap: 14px; }

/* ---------- Hero ---------- */
.hero {
  padding: 120px 0 100px;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 24px;
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--gold);
}

.hero h1 {
  font-size: clamp(44px, 6vw, 76px);
  color: var(--cream);
  margin-bottom: 26px;
}
.hero h1 span.accent {
  color: var(--gold);
}

.hero-sub {
  font-size: 18px;
  font-weight: 400;
  color: var(--cream-dim);
  max-width: 46ch;
  margin-bottom: 40px;
  letter-spacing: -0.01em;
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* Signature visual: weekly schedule panel */
.schedule-visual {
  position: relative;
  max-width: 400px;
  margin-left: auto;
  z-index: 1;
}

.schedule-panel {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  position: relative;
}

.schedule-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
}
.schedule-head .label {
  font-size: 13px;
  color: var(--cream);
  font-weight: 600;
}
.schedule-head .count {
  font-size: 11px;
  color: var(--cream-faint);
}

.schedule-days {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-bottom: 10px;
}
.schedule-days span {
  font-size: 10px;
  color: var(--cream-faint);
  text-align: center;
  font-weight: 500;
}

.schedule-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}

.slot {
  border-radius: var(--radius-sm);
  padding: 9px 7px;
  min-height: 44px;
}
.slot.empty { background: transparent; }
.slot.open {
  background: rgba(239, 224, 200, 0.06);
}
.slot.open p {
  font-size: 10px;
  color: var(--cream-faint);
  font-weight: 500;
  margin: 0;
}
.slot.booked {
  background: rgba(201, 166, 107, 0.55);
  opacity: 0;
  animation: fillIn 0.5s ease forwards;
}
.slot.booked.strong { background: rgba(201, 166, 107, 0.92); }

.slot .class-name {
  font-size: 10.5px;
  color: #171614;
  font-weight: 700;
  margin: 0;
}
.slot .class-meta {
  font-size: 8.5px;
  color: rgba(23, 22, 20, 0.62);
  font-weight: 400;
  margin: 3px 0 0;
}

@keyframes fillIn {
  from { transform: scale(0.4); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* ---------- Sections ---------- */
section { padding: 96px 0; position: relative; }
.section-border-top { border-top: 1px solid var(--border); }

.section-head {
  max-width: 640px;
  margin-bottom: 56px;
  position: relative;
  z-index: 1;
}

.section-head .eyebrow { margin-bottom: 16px; }

.section-head h2 {
  font-size: clamp(30px, 3.8vw, 46px);
  color: var(--cream);
  margin-bottom: 18px;
}

.section-head p {
  color: var(--cream-dim);
  font-size: 17px;
  font-weight: 400;
}

/* ---------- Feature row (no cards) ---------- */
.feature-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  position: relative;
  z-index: 1;
}
.feature-row-item {
  padding: 0 24px;
  border-left: 1px solid var(--border);
}
.feature-row-item:first-child { border-left: none; padding-left: 0; }

.feature-icon {
  width: 20px;
  height: 20px;
  color: var(--gold);
  margin-bottom: 18px;
}

.feature-row-item h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--cream);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.feature-row-item p {
  color: var(--cream-dim);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.6;
}

.audience-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
  position: relative;
  z-index: 1;
}
.tag {
  border: 1px solid var(--border-strong);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13px;
  color: var(--cream-dim);
  font-weight: 500;
}

/* ---------- Services cards ---------- */
.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  position: relative;
  z-index: 1;
}

.service-card {
  background: rgba(239, 224, 200, 0.05);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.service-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-4px);
}

.service-card .card-ghost {
  position: absolute;
  top: -6px;
  left: 8px;
  font-size: 76px;
  font-weight: 800;
  color: rgba(239, 224, 200, 0.045);
  letter-spacing: -0.03em;
  z-index: 0;
  white-space: nowrap;
  pointer-events: none;
}

.service-card .card-glow {
  position: absolute;
  top: -50px;
  right: -50px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, var(--gold-glow), transparent 70%);
  border-radius: 50%;
  filter: blur(30px);
  z-index: 0;
  pointer-events: none;
  opacity: 0.5;
}

.service-card.advanced {
  border-color: var(--border-gold);
}
.service-card.advanced .card-glow { opacity: 0.8; }

.service-card > * { position: relative; z-index: 1; }

.service-tier-label {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 18px;
}

.service-card h3 {
  font-size: 26px;
  color: var(--cream);
  margin-bottom: 12px;
  font-weight: 800;
}

.service-for {
  font-size: 14px;
  font-weight: 400;
  color: var(--cream-faint);
  margin-bottom: 24px;
}

.service-features {
  list-style: none;
  margin: 0 0 32px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-grow: 1;
}
.service-features li {
  display: flex;
  gap: 10px;
  font-size: 15px;
  font-weight: 400;
  color: var(--cream-dim);
}
.service-features li svg { flex-shrink: 0; margin-top: 3px; color: var(--gold); }

.service-price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  margin-bottom: 24px;
}

.service-price { font-size: 26px; font-weight: 800; color: var(--cream); }
.service-price span { font-size: 13px; font-weight: 400; color: var(--cream-faint); display: block; margin-top: 4px; }

/* ---------- How it works ---------- */
.steps-list {
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
}

.step-row {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 32px;
  padding: 36px 0;
  border-top: 1px solid var(--border);
  align-items: start;
}
.step-row:last-child { border-bottom: 1px solid var(--border); }

.step-num {
  font-size: 32px;
  font-weight: 800;
  color: var(--gold);
  letter-spacing: -0.02em;
}

.step-row h3 { font-size: 21px; font-weight: 700; color: var(--cream); margin-bottom: 8px; }
.step-row p { color: var(--cream-dim); font-size: 15.5px; font-weight: 400; max-width: 52ch; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 64px;
  position: relative;
  z-index: 1;
}

.contact-info { position: relative; }
.contact-info h2 { font-size: clamp(30px, 3.8vw, 42px); margin-bottom: 18px; position: relative; z-index: 1; }
.contact-info .eyebrow, .contact-info p, .contact-info .contact-detail { position: relative; z-index: 1; }
.contact-info p { color: var(--cream-dim); font-size: 16px; font-weight: 400; margin-bottom: 32px; }

.contact-detail {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  color: var(--cream);
  padding: 14px 0;
  border-top: 1px solid var(--border);
}
.contact-detail svg { color: var(--gold); }

.form-card {
  background: rgba(239, 224, 200, 0.04);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 18px;
}

.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.field label { font-size: 13px; color: var(--cream-dim); font-weight: 500; }
.field input,
.field textarea {
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 13px 14px;
  color: var(--cream);
  font-family: var(--font);
  font-size: 14.5px;
  resize: vertical;
  transition: border-color 0.2s ease;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold);
}
.field input::placeholder,
.field textarea::placeholder { color: var(--cream-faint); }

.form-status {
  margin-top: 16px;
  font-size: 14px;
  min-height: 20px;
}
.form-status.success { color: #8fbf8f; }
.form-status.error { color: #e08a8a; }

.form-card button[type="submit"] {
  width: 100%;
  justify-content: center;
  margin-top: 4px;
}
.form-card button[disabled] { opacity: 0.6; cursor: not-allowed; }

/* ---------- Footer CTA ---------- */
.cta-band {
  text-align: center;
  padding: 100px 0;
  position: relative;
}
.cta-band h2 {
  font-size: clamp(30px, 4.2vw, 48px);
  margin-bottom: 28px;
  max-width: 20ch;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 1;
}
.cta-band .btn { margin: 0 auto; }
.cta-band-actions { display: flex; justify-content: center; position: relative; z-index: 1; }

/* ---------- Footer ---------- */
footer.site-footer {
  border-top: 1px solid var(--border);
  padding: 56px 0 40px;
}
footer.site-footer .wrap {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.footer-logo {
  height: 42px;
  width: auto;
  display: block;
  align-self: flex-start;
}
.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--cream-faint);
}
.footer-row nav { display: flex; gap: 24px; }
.footer-row a { transition: color 0.2s ease; }
.footer-row a:hover { color: var(--cream-dim); }

/* ---------- Focus visibility ---------- */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .footer-row { flex-direction: column; gap: 16px; text-align: center; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .schedule-visual { max-width: 340px; margin: 0 auto; }
  .feature-row { grid-template-columns: 1fr 1fr; gap: 32px; }
  .feature-row-item { border-left: none; padding-left: 0; border-top: 1px solid var(--border); padding-top: 24px; }
  .feature-row-item:first-child,
  .feature-row-item:nth-child(2) { border-top: none; padding-top: 0; }
  .services-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .ghost-text { font-size: clamp(70px, 18vw, 140px); }

  nav.main-nav {
    position: fixed;
    top: 76px; left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    padding: 24px 32px;
    gap: 20px;
    transform: translateY(-120%);
    transition: transform 0.25s ease;
  }
  nav.main-nav.open { transform: translateY(0); }
  nav.main-nav a::after { display: none; }
  .nav-toggle { display: flex; }
  .header-cta .btn-ghost { display: none; }
}

@media (max-width: 640px) {
  .feature-row { grid-template-columns: 1fr; }
  .feature-row-item { border-top: 1px solid var(--border) !important; padding-top: 24px !important; }
  .feature-row-item:first-child { border-top: none !important; padding-top: 0 !important; }
}

@media (max-width: 520px) {
  .wrap { padding: 0 20px; }
  .hero { padding: 88px 0 64px; }
  section { padding: 64px 0; }
  .service-card, .form-card { padding: 28px; }
}
