:root {
  --bg: #fbfaf7;
  --surface: #ffffff;
  --surface-soft: #f4f5fb;
  --ink: #071122;
  --muted: #5d6678;
  --line: #e4e7ef;
  --indigo: #2736d9;
  --indigo-dark: #101f9a;
  --violet: #825cf6;
  --shadow: 0 18px 50px rgba(10, 20, 55, .08);
  --radius: 8px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 76% 0%, rgba(130, 92, 246, .08), transparent 34rem),
    linear-gradient(180deg, #ffffff 0%, var(--bg) 38%, #ffffff 100%);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: calc(var(--max) + 48px);
  margin: 0 auto;
  padding: 16px 24px;
  background: rgba(255, 255, 255, .78);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(228, 231, 239, .55);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
  font-weight: 600;
}

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
}

.brand-mark svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.wordmark {
  color: #121a2b;
  font-size: 1.04rem;
  letter-spacing: 0;
}

.wordmark span {
  font-weight: 500;
}

.wordmark strong {
  color: var(--indigo-dark);
  font-weight: 800;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: #394254;
  font-size: .9rem;
  font-weight: 600;
}

.site-nav a {
  transition: color .2s ease;
}

.site-nav a:hover {
  color: var(--indigo);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
}

.nav-toggle span {
  display: block;
  width: 16px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
  border-radius: 99px;
}

.section {
  width: calc(100% - 40px);
  max-width: var(--max);
  margin: 0 auto;
  padding: 92px 0;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(380px, 1.05fr);
  gap: clamp(36px, 5vw, 56px);
  align-items: center;
  min-height: min(820px, calc(100vh - 70px));
  padding-top: 38px;
  padding-bottom: 72px;
}

.hero-copy,
.hero-visual {
  min-width: 0;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--indigo);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
  overflow-wrap: break-word;
}

h1 {
  max-width: 720px;
  margin-bottom: 22px;
  font-size: clamp(3rem, 6.2vw, 5.75rem);
  line-height: .96;
  letter-spacing: 0;
}

h2 {
  max-width: 840px;
  margin-bottom: 20px;
  font-size: clamp(2rem, 4.2vw, 3.9rem);
  line-height: 1.04;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.08rem;
  line-height: 1.2;
}

.hero-text,
.section-heading p,
.insight-panel p,
.research-copy p,
.future-copy p,
.cta-panel p {
  max-width: 690px;
  color: var(--muted);
  font-size: clamp(1rem, 1.35vw, 1.18rem);
  line-height: 1.62;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: var(--radius);
  font-size: .95rem;
  font-weight: 700;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  color: white;
  background: linear-gradient(135deg, var(--indigo-dark), var(--indigo) 58%, var(--violet));
  box-shadow: 0 16px 34px rgba(39, 54, 217, .22);
}

.button.secondary {
  color: #172034;
  background: rgba(255, 255, 255, .76);
  border: 1px solid var(--line);
}

.visual-shell {
  position: relative;
  width: 100%;
  max-width: 100%;
  min-height: 452px;
  padding: 30px;
  border: 1px solid rgba(219, 224, 237, .9);
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(255, 255, 255, .94), rgba(246, 247, 253, .82));
  box-shadow: var(--shadow);
  overflow: hidden;
}

.flow-grid,
.tempo-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(7, 17, 34, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(7, 17, 34, .055) 1px, transparent 1px);
  background-size: 100% 56px, 56px 100%;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.part-card {
  position: relative;
  z-index: 2;
  width: 45%;
  min-height: 72px;
  margin-bottom: 24px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .86);
  box-shadow: 0 12px 34px rgba(10, 20, 55, .06);
}

.part-card span,
.ensemble-line span,
.layer-label,
.performance-line span {
  display: block;
  margin-bottom: 11px;
  color: #313a4d;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.part-card.intermediate {
  margin-left: 7%;
}

.mini-staff {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  height: 26px;
  border-top: 1px solid #dfe4ef;
  border-bottom: 1px solid #dfe4ef;
}

.mini-staff i {
  display: block;
  width: 22px;
  height: 8px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--indigo), var(--violet));
}

.intermediate .mini-staff i:nth-child(even),
.advanced .mini-staff i:nth-child(3n) {
  width: 12px;
}

.advanced .mini-staff i {
  width: 10px;
}

.converge-lines {
  position: absolute;
  inset: 80px 22px auto auto;
  z-index: 1;
  width: 72%;
  height: 280px;
  fill: none;
  stroke: rgba(39, 54, 217, .25);
  stroke-width: 2;
}

.ensemble-line {
  position: absolute;
  right: 30px;
  bottom: 50%;
  z-index: 3;
  width: 43%;
  min-height: 110px;
  padding: 18px;
  border: 1px solid rgba(39, 54, 217, .2);
  border-radius: var(--radius);
  background: linear-gradient(150deg, #fff, #f3f4ff);
  box-shadow: 0 18px 44px rgba(39, 54, 217, .1);
  transform: translateY(50%);
}

.line-bars {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 7px;
  align-items: end;
  height: 38px;
}

.line-bars b {
  display: block;
  height: 22px;
  border-radius: 99px 99px 6px 6px;
  background: linear-gradient(180deg, var(--violet), var(--indigo));
}

.line-bars b:nth-child(2),
.line-bars b:nth-child(5) {
  height: 34px;
}

.section-heading {
  margin-bottom: 42px;
}

.problem-grid,
.steps,
.audience-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.soft-card,
.step,
.audience-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .78);
  box-shadow: 0 12px 34px rgba(10, 20, 55, .045);
}

.soft-card {
  min-height: 220px;
  padding: 24px;
  display: flex;
  flex-direction: column;
}

.card-index {
  display: inline-flex;
  margin-bottom: auto;
  padding-bottom: 42px;
  color: var(--indigo);
  font-size: .82rem;
  font-weight: 800;
}

.soft-card p,
.step p {
  color: var(--muted);
}

.outcome {
  margin-top: 20px;
  padding: 20px 24px;
  border: 1px solid rgba(39, 54, 217, .18);
  border-radius: var(--radius);
  color: #14204a;
  background: linear-gradient(135deg, rgba(39, 54, 217, .08), rgba(130, 92, 246, .07));
  font-size: clamp(1.2rem, 2.6vw, 2rem);
  font-weight: 800;
}

.insight {
  width: 100%;
  max-width: none;
  padding: 100px max(20px, calc((100vw - var(--max)) / 2));
  background: #080e20;
}

.insight-panel {
  color: white;
}

.insight-panel .eyebrow {
  color: #a99bff;
}

.insight-panel h2 {
  max-width: 1050px;
}

.insight-panel p {
  color: #c8d0e2;
}

.arrangement-visual {
  position: relative;
  width: 100%;
  max-width: 100%;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, .9);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.arrangement-visual .tempo-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  background-image: none;
  opacity: .82;
  mask-image: none;
}

.tempo-grid span {
  border-left: 1px solid rgba(39, 54, 217, .12);
}

.layer {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 155px 1fr;
  gap: 20px;
  align-items: center;
  min-height: 92px;
  border-bottom: 1px solid #edf0f6;
}

.notes {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 10px;
  align-items: center;
  min-width: 0;
}

.notes b {
  display: block;
  height: 12px;
  min-width: 12px;
  border-radius: 99px;
  background: #17224a;
}

.layer-beginner .notes b {
  grid-column: span 2;
  height: 16px;
  background: linear-gradient(90deg, #4053ea, #7160ef);
}

.layer-intermediate .notes b {
  background: linear-gradient(90deg, #2538d8, #7055ee);
}

.layer-advanced .notes b {
  height: 9px;
  background: linear-gradient(90deg, #0f1d8e, #6e48e8);
}

.notes .w1 {
  grid-column: span 1;
}

.notes .w2 {
  grid-column: span 2;
}

.performance-line {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 155px 1fr;
  gap: 20px;
  align-items: center;
  margin-top: 28px;
  padding: 20px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(39, 54, 217, .09), rgba(130, 92, 246, .1));
}

.performance-line span {
  margin-bottom: 0;
  color: #18224a;
}

.performance-line div {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 10px;
  min-width: 0;
}

.performance-line i {
  height: 7px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--indigo-dark), var(--violet));
}

.principles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 18px;
}

.principles span {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: #24304b;
  background: rgba(255, 255, 255, .68);
  font-weight: 800;
}

.step {
  min-height: 246px;
  padding: 26px;
  display: flex;
  flex-direction: column;
}

.step span {
  display: grid;
  width: 42px;
  height: 42px;
  margin-bottom: auto;
  padding-bottom: 0;
  place-items: center;
  border-radius: 999px;
  color: white;
  background: linear-gradient(135deg, var(--indigo), var(--violet));
  font-weight: 800;
}

.audience-grid {
  grid-template-columns: repeat(6, 1fr);
}

.audience-card {
  min-height: 124px;
  padding: 20px;
  display: flex;
  align-items: flex-end;
  color: #172034;
  font-weight: 800;
}

.research {
  width: 100%;
  max-width: none;
  padding: 100px max(20px, calc((100vw - var(--max)) / 2));
  background: linear-gradient(180deg, #f4f6fb, #ffffff);
}

.research-copy {
  max-width: 820px;
}

.future-layout {
  display: grid;
  grid-template-columns: .7fr 1.3fr;
  gap: 48px;
  align-items: center;
}

.future-line {
  display: grid;
  gap: 18px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow);
}

.future-line span {
  height: 46px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(39, 54, 217, .18), rgba(130, 92, 246, .34));
}

.future-line span:nth-child(2) {
  width: 82%;
}

.future-line span:nth-child(3) {
  width: 68%;
}

.final-cta {
  padding-top: 70px;
}

.cta-panel {
  padding: clamp(34px, 7vw, 72px);
  border-radius: 12px;
  color: white;
  background:
    linear-gradient(135deg, rgba(8, 14, 32, .96), rgba(17, 29, 102, .96)),
    radial-gradient(circle at 88% 0%, rgba(130, 92, 246, .6), transparent 28rem);
  box-shadow: 0 22px 70px rgba(8, 14, 32, .24);
}

.cta-panel .eyebrow {
  color: #b9b0ff;
}

.cta-panel h2 {
  max-width: 850px;
}

.cta-panel p {
  color: #d4d9e6;
}

.cta-panel .button.secondary {
  color: white;
  background: rgba(255, 255, 255, .08);
  border-color: rgba(255, 255, 255, .18);
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 24px;
  align-items: center;
  width: calc(100% - 40px);
  max-width: var(--max);
  margin: 0 auto;
  padding: 38px 0 48px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .92rem;
}

.site-footer p {
  margin: 0;
}

.site-footer .brand {
  color: var(--ink);
}

.reveal,
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

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

  .reveal,
  .button {
    transition: none;
  }
}

@media (max-width: 980px) {
  .hero,
  .future-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 0;
    padding-top: 46px;
  }

  .hero-visual {
    max-width: 720px;
    width: 100%;
  }

  .problem-grid,
  .steps {
    grid-template-columns: 1fr;
  }

  .audience-grid,
  .principles {
    grid-template-columns: repeat(2, 1fr);
  }

  .audience-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 760px) {
  .site-header {
    width: 100%;
    padding: 14px 20px;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 68px;
    right: 20px;
    display: grid;
    min-width: 220px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 255, 255, .96);
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity .2s ease, transform .2s ease;
  }

  .site-header.nav-open .site-nav {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .section {
    width: calc(100% - 32px);
    max-width: var(--max);
    padding: 68px 0;
  }

  .hero {
    padding-top: 36px;
    padding-bottom: 54px;
    gap: 38px;
    overflow: hidden;
  }

  h1 {
    font-size: clamp(2.55rem, 11vw, 3.55rem);
    line-height: 1;
  }

  h2 {
    font-size: clamp(2rem, 9.4vw, 3.1rem);
    line-height: 1.06;
  }

  .visual-shell {
    min-height: 0;
    padding: 20px;
    width: 100%;
  }

  .part-card,
  .part-card.intermediate {
    width: 100%;
    margin-left: 0;
  }

  .converge-lines {
    display: none;
  }

  .ensemble-line {
    position: relative;
    right: auto;
    bottom: auto;
    width: 100%;
    margin-top: 16px;
    transform: none;
    overflow: hidden;
  }

  .line-bars {
    min-width: 0;
  }

  .arrangement-visual {
    padding: 20px;
  }

  .layer,
  .performance-line {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 16px 0;
  }

  .performance-line {
    padding: 18px;
  }

  .principles,
  .audience-grid {
    grid-template-columns: 1fr;
  }

  .audience-card {
    min-height: 92px;
  }

  .site-footer {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

@media (max-width: 560px) {
  .site-header {
    padding-inline: 16px;
  }

  .section {
    width: calc(100% - 28px);
  }

  .wordmark {
    font-size: 1rem;
  }

  .actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
  }

  .part-card,
  .ensemble-line {
    padding: 16px;
  }

  .notes,
  .performance-line div {
    gap: 6px;
  }

  .mini-staff {
    gap: 7px;
  }

  .hero-text,
  .section-heading p,
  .insight-panel p,
  .research-copy p,
  .future-copy p,
  .cta-panel p {
    font-size: 1rem;
  }
}
