:root {
  color-scheme: light;
  --bg: #f7f8f5;
  --ink: #18211d;
  --muted: #607067;
  --line: rgba(24, 33, 29, 0.14);
  --panel: #ffffff;
  --panel-2: #eef2ed;
  --accent: #2f7d57;
  --accent-dark: #225d42;
  --gold: #b8863c;
  --charcoal: #202625;
  --shadow: 0 28px 80px rgba(24, 33, 29, 0.13);
  font-family:
    "Outfit",
    "Geist",
    "Avenir Next",
    "Segoe UI",
    system-ui,
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  letter-spacing: 0;
}

body::before {
  position: fixed;
  inset: 0;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(90deg, rgba(24, 33, 29, 0.035) 1px, transparent 1px),
    linear-gradient(rgba(24, 33, 29, 0.025) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, black, transparent 70%);
}

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

svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  padding: 18px clamp(18px, 4vw, 56px);
  background: rgba(247, 248, 245, 0.84);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand,
.header-nav,
.hero-actions,
.signal-row,
.button,
.status-grid,
.mixer-row,
.site-footer {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 760;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: white;
  background: var(--charcoal);
  border-radius: 8px;
}

.brand-mark svg {
  width: 21px;
  height: 21px;
}

.header-nav {
  justify-content: center;
  gap: 28px;
  color: var(--muted);
  font-size: 14px;
}

.header-nav a,
.header-action {
  transition: color 180ms ease, transform 180ms ease;
}

.header-nav a:hover,
.header-action:hover {
  color: var(--ink);
}

.header-action {
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.62);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
  align-items: center;
  gap: clamp(32px, 6vw, 88px);
  min-height: calc(100dvh - 72px);
  padding: clamp(44px, 6vw, 86px) clamp(18px, 5vw, 72px) 36px;
}

.hero-copy {
  max-width: 720px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 780;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 24px;
  font-size: clamp(42px, 6.1vw, 86px);
  line-height: 0.95;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(30px, 4.2vw, 58px);
  line-height: 1;
  letter-spacing: 0;
}

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

.hero-lede,
.section-copy p,
.contact-section p,
.roadmap p,
.feature-list p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.68;
}

.hero-lede {
  max-width: 650px;
  margin-bottom: 30px;
  font-size: 19px;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 30px;
}

.button {
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 13px 17px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 760;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.button:active,
.header-action:active {
  transform: translateY(1px) scale(0.99);
}

.button svg {
  width: 18px;
  height: 18px;
}

.button.primary {
  color: white;
  background: var(--accent);
  box-shadow: 0 12px 28px rgba(47, 125, 87, 0.24);
}

.button.primary:hover {
  background: var(--accent-dark);
}

.button.secondary {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
  border-color: var(--line);
}

.signal-row {
  flex-wrap: wrap;
  gap: 10px;
}

.signal-row span {
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-size: 13px;
  background: rgba(255, 255, 255, 0.52);
}

.signal-row strong {
  color: var(--ink);
}

.hero-visual {
  position: relative;
  min-width: 0;
}

.hero-visual::after {
  position: absolute;
  right: 2%;
  bottom: -20px;
  left: 12%;
  height: 40px;
  content: "";
  background: rgba(24, 33, 29, 0.16);
  border-radius: 50%;
  filter: blur(24px);
}

.hero-visual img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  max-height: 720px;
  object-fit: contain;
  filter: drop-shadow(0 30px 70px rgba(24, 33, 29, 0.2));
}

.band-status,
.feature-section,
.musicxml-section,
.offline-section,
.roadmap-section,
.contact-section {
  width: min(1320px, calc(100% - 36px));
  margin: 0 auto;
}

.band-status {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 36px;
  padding: 30px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.band-status h2 {
  max-width: 740px;
  margin-bottom: 0;
  font-size: clamp(28px, 3vw, 42px);
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.status-cell {
  min-height: 104px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.68);
}

.status-label {
  display: block;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.status-cell strong {
  font-size: 24px;
}

.feature-section {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(32px, 6vw, 76px);
  padding: 112px 0 84px;
}

.section-copy {
  max-width: 680px;
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.feature-list article {
  min-height: 230px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.66);
  box-shadow: 0 16px 50px rgba(24, 33, 29, 0.05);
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 22px;
  color: var(--accent-dark);
  background: #e3eee6;
  border-radius: 8px;
}

.feature-icon svg {
  width: 23px;
  height: 23px;
}

.musicxml-section {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  align-items: center;
  gap: clamp(30px, 5vw, 78px);
  padding: 80px 0;
}

.notation-panel {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 12px;
  background: linear-gradient(145deg, #252d2b, #121716);
  box-shadow: var(--shadow);
}

.notation-toolbar {
  display: flex;
  justify-content: space-between;
  padding: 18px 20px;
  color: rgba(255, 255, 255, 0.78);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 13px;
  font-weight: 760;
}

.staff-lines {
  position: absolute;
  inset: 108px 46px auto;
  display: grid;
  gap: 20px;
}

.staff-lines span {
  height: 2px;
  background: rgba(255, 255, 255, 0.42);
}

.note {
  position: absolute;
  width: 34px;
  height: 25px;
  background: #f5f0e6;
  border-radius: 50%;
  transform: rotate(-18deg);
}

.note::after {
  position: absolute;
  right: -4px;
  bottom: 10px;
  width: 2px;
  height: 72px;
  content: "";
  background: #f5f0e6;
}

.note-a {
  top: 174px;
  left: 24%;
}

.note-b {
  top: 138px;
  left: 48%;
}

.note-c {
  top: 213px;
  left: 70%;
}

.playhead {
  position: absolute;
  top: 78px;
  bottom: 92px;
  left: 38%;
  width: 3px;
  background: var(--gold);
  border-radius: 999px;
  animation: playhead 4.8s cubic-bezier(0.16, 1, 0.3, 1) infinite;
}

@keyframes playhead {
  0%,
  100% {
    transform: translateX(-34px);
    opacity: 0.7;
  }
  50% {
    transform: translateX(160px);
    opacity: 1;
  }
}

.mixer-row {
  position: absolute;
  right: 18px;
  bottom: 18px;
  left: 18px;
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto;
  gap: 10px;
  padding: 14px;
  color: rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  backdrop-filter: blur(12px);
}

.mixer-row strong {
  color: #dfeee4;
}

.offline-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(28px, 5vw, 70px);
  padding: 70px 0 110px;
}

.connection-map {
  position: relative;
  min-height: 430px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background:
    radial-gradient(circle at 28% 38%, rgba(47, 125, 87, 0.18), transparent 28%),
    radial-gradient(circle at 68% 65%, rgba(184, 134, 60, 0.16), transparent 30%),
    rgba(255, 255, 255, 0.64);
  overflow: hidden;
}

.node {
  position: absolute;
  display: grid;
  place-items: center;
  min-width: 116px;
  height: 48px;
  padding: 0 18px;
  color: var(--ink);
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 760;
  box-shadow: 0 15px 34px rgba(24, 33, 29, 0.11);
}

.leader {
  top: 48px;
  left: 44px;
  color: white;
  background: var(--accent);
}

.cloud {
  top: 190px;
  left: 50%;
  transform: translateX(-50%);
}

.player-a {
  right: 54px;
  top: 72px;
}

.player-b {
  right: 88px;
  bottom: 72px;
}

.player-c {
  left: 66px;
  bottom: 56px;
}

.line {
  position: absolute;
  height: 2px;
  transform-origin: left center;
  background: linear-gradient(90deg, rgba(47, 125, 87, 0), rgba(47, 125, 87, 0.7), rgba(47, 125, 87, 0));
}

.line-a {
  top: 122px;
  left: 170px;
  width: 310px;
  transform: rotate(4deg);
}

.line-b {
  top: 236px;
  left: 170px;
  width: 390px;
  transform: rotate(22deg);
}

.line-c {
  bottom: 116px;
  left: 170px;
  width: 390px;
  transform: rotate(-20deg);
}

.roadmap-section {
  padding: 82px 0;
  border-top: 1px solid var(--line);
}

.roadmap {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr 1fr 0.8fr;
  gap: 1px;
  margin-top: 34px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.roadmap div {
  min-height: 210px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.72);
}

.roadmap span {
  display: block;
  margin-bottom: 46px;
  color: var(--accent-dark);
  font-family: "JetBrains Mono", "SFMono-Regular", ui-monospace, monospace;
  font-size: 13px;
  font-weight: 800;
}

.roadmap strong {
  display: block;
  margin-bottom: 12px;
  font-size: 20px;
}

.contact-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 52px;
  padding: 42px;
  color: white;
  background: var(--charcoal);
  border-radius: 12px;
}

.contact-section .section-kicker,
.contact-section p {
  color: rgba(255, 255, 255, 0.68);
}

.contact-section h2 {
  margin-bottom: 10px;
}

.site-footer {
  justify-content: space-between;
  padding: 26px clamp(18px, 5vw, 72px);
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 14px;
}

#runtime-status[data-state="ok"] {
  color: var(--accent-dark);
}

#runtime-status[data-state="error"] {
  color: #9f3a2d;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .header-nav {
    display: none;
  }

  .hero,
  .band-status,
  .feature-section,
  .musicxml-section,
  .offline-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 54px;
  }

  .hero-visual {
    max-width: 760px;
  }

  .roadmap {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

  .header-action {
    display: none;
  }

  .hero {
    padding: 34px 16px 28px;
  }

  h1 {
    font-size: 43px;
    line-height: 1;
  }

  h2 {
    font-size: 32px;
    line-height: 1.05;
  }

  .hero-lede,
  .section-copy p,
  .contact-section p,
  .roadmap p,
  .feature-list p {
    font-size: 16px;
  }

  .band-status,
  .feature-section,
  .musicxml-section,
  .offline-section,
  .roadmap-section,
  .contact-section {
    width: calc(100% - 28px);
  }

  .band-status,
  .contact-section {
    padding: 24px 0;
  }

  .feature-list,
  .status-grid,
  .roadmap {
    grid-template-columns: 1fr;
  }

  .feature-section {
    padding-top: 76px;
  }

  .notation-panel,
  .connection-map {
    min-height: 360px;
  }

  .mixer-row {
    grid-template-columns: 1fr auto;
  }

  .node {
    min-width: 100px;
    height: 42px;
    font-size: 13px;
  }

  .contact-section {
    display: block;
    padding: 28px;
  }

  .contact-section .button {
    margin-top: 22px;
  }

  .site-footer {
    display: grid;
    gap: 8px;
  }
}

