:root {
  color-scheme: light;
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-2: #eef4f6;
  --text: #0f172a;
  --muted: #475569;
  --line: rgba(15, 23, 42, 0.12);
  --accent: #0f766e;
  --accent-soft: #ccfbf1;
  --accent-bright: #2dd4bf;
  --ink-on-accent: #ffffff;
  --shadow: 0 20px 60px rgba(15, 23, 42, 0.08);
  --display: "Sora", ui-sans-serif, system-ui, sans-serif;
  --text-font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0f172a;
  --surface: #162033;
  --surface-2: #1c2940;
  --text: #f1f5f9;
  --muted: #a5b4c8;
  --line: rgba(241, 245, 249, 0.12);
  --accent: #2dd4bf;
  --accent-soft: rgba(45, 212, 191, 0.14);
  --ink-on-accent: #042f2e;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: var(--text-font);
  font-weight: 400;
  line-height: 1.6;
}
a { color: inherit; }
img, svg { max-width: 100%; }
:focus-visible { outline: 3px solid var(--accent-bright); outline-offset: 3px; border-radius: 6px; }
.skip-link { position: absolute; left: -999px; }
.skip-link:focus { left: 1rem; top: 1rem; z-index: 20; background: var(--surface); padding: .75rem 1rem; }
.container { width: min(1180px, calc(100% - 2rem)); margin-inline: auto; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 5; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(16px); }
.nav { min-height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.wordmark { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; font-family: var(--display); font-weight: 700; font-size: 1.2rem; letter-spacing: -.01em; }
.wordmark svg { width: 34px; height: 30px; }
.nav-links, .nav-actions { display: flex; align-items: center; gap: .9rem; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: .94rem; }
.nav-links a:hover { color: var(--text); }
.control { min-height: 40px; display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; padding: .4rem .85rem; color: var(--text); background: var(--surface); font: inherit; font-size: .9rem; text-decoration: none; cursor: pointer; }

/* Buttons */
.button { display: inline-flex; align-items: center; min-height: 46px; border: 1px solid var(--line); border-radius: 999px; padding: .7rem 1.2rem; color: var(--text); background: var(--surface); font-weight: 600; text-decoration: none; }
.button.primary { border-color: transparent; color: var(--ink-on-accent); background: var(--accent); }
.button.primary:hover { filter: brightness(1.08); }

/* Type */
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 700; line-height: 1.08; letter-spacing: -.03em; }
h1 { font-size: clamp(2.5rem, 6.5vw, 5rem); max-width: 14ch; }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
h3 { font-size: 1.2rem; font-weight: 600; letter-spacing: -.01em; }
.eyebrow { display: inline-block; color: var(--accent); font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.lede, .section-copy { color: var(--muted); }
.lede { max-width: 58ch; margin: 1.3rem 0 0; font-size: clamp(1.05rem, 2vw, 1.25rem); }

/* Hero */
.hero { padding: clamp(4rem, 9vw, 7.5rem) 0 clamp(3rem, 6vw, 5rem); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.dance { width: 100%; height: auto; color: var(--accent); }
.dance .cell { fill: var(--surface); stroke: var(--line); stroke-width: 2; }
.dance .cell.on { fill: var(--accent-soft); stroke: var(--accent); }
.dance .path { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 6 9; }

/* Sections */
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section.alt { background: var(--surface-2); border-block: 1px solid var(--line); }
.section-head { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: end; margin-bottom: 2.5rem; }
.section-head p { margin: 0; }

/* Course areas */
.courses { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; list-style: none; margin: 0; padding: 0; }
.course { min-width: 0; padding: 1.5rem; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: var(--shadow); }
.course p { margin: .6rem 0 1.2rem; color: var(--muted); }
.course .tag { display: inline-block; padding: .25rem .65rem; border-radius: 999px; font-size: .78rem; font-weight: 600; color: var(--accent); background: var(--accent-soft); }
.progress { display: flex; gap: 4px; margin-bottom: 1.2rem; }
.progress span { width: 22px; height: 19px; background: var(--line); clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%); }
.progress span.on { background: var(--accent); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; counter-reset: step; list-style: none; margin: 0; padding: 0; }
.steps li { min-width: 0; padding: 1.5rem; border-top: 3px solid var(--accent); background: var(--surface); border-radius: 0 0 16px 16px; }
.steps .num { display: block; margin-bottom: .8rem; font-family: var(--display); font-weight: 600; color: var(--accent); font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; }
.steps p { margin: .5rem 0 0; color: var(--muted); }

/* Formats */
.formats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.format { min-width: 0; padding: 1.5rem; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.format p { margin: .5rem 0 0; color: var(--muted); }

/* CTA */
.cta { display: grid; grid-template-columns: 1.2fr .8fr; gap: 2rem; align-items: center; padding: clamp(1.8rem, 5vw, 3.5rem); border-radius: 24px; color: #f1f5f9; background: #0f172a; }
.cta .section-copy { color: #cbd5e1; }
.cta .eyebrow { color: #2dd4bf; }
.cta .button.primary { color: #042f2e; background: #2dd4bf; }
.cta-actions { display: flex; flex-direction: column; gap: .75rem; align-items: flex-start; }
.cta-actions small { color: #cbd5e1; }
.cta a:not(.button) { color: #99f6e4; }

/* Brand footer */
.site-footer { padding: 1.5rem 0 2rem; color: var(--muted); font-size: .92rem; }
.footer-grid { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }

@media (max-width: 860px) {
  .nav-links { display: none; }
  .hero-grid, .section-head, .cta { grid-template-columns: 1fr; }
  .courses, .steps, .formats { grid-template-columns: 1fr; }
  .dance { max-width: 360px; }
}

@media (min-width: 861px) and (max-width: 1060px) {
  .courses { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
