@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Space+Grotesk:wght@500;700&display=swap");

:root {
  --bg: #04070b;
  --bg-soft: #09111a;
  --panel: rgba(11, 18, 28, 0.9);
  --panel-strong: #0c1521;
  --panel-muted: rgba(10, 16, 25, 0.72);
  --text: #f3f7fb;
  --muted: #8a95a5;
  --accent: #16d7f3;
  --accent-strong: #0fc0da;
  --accent-soft: rgba(22, 215, 243, 0.16);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(22, 215, 243, 0.24);
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.34);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --container: 1180px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Plus Jakarta Sans", "Avenir Next", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top center, rgba(22, 215, 243, 0.08), transparent 34%),
    linear-gradient(180deg, #07111a 0%, rgba(7, 17, 26, 0.2) 120px, transparent 121px),
    linear-gradient(180deg, #020407 0%, #04070b 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(180deg, rgba(255, 255, 255, 0.45), transparent 85%);
  opacity: 0.28;
}

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

img {
  max-width: 100%;
  display: block;
}

button,
input,
textarea,
select {
  font: inherit;
}

.container {
  width: min(calc(100% - 2rem), var(--container));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  background: rgba(2, 5, 9, 0.82);
  backdrop-filter: blur(18px);
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 86px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  font-family: "Space Grotesk", "Plus Jakarta Sans", sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.04em;
}

.brand-mark {
  position: relative;
  width: 2.55rem;
  height: 2.55rem;
  border: 2px solid var(--accent);
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px rgba(22, 215, 243, 0.18);
}

.brand-mark::before,
.brand-mark::after {
  content: "";
  position: absolute;
  border-radius: 4px;
  background: var(--accent);
}

.brand-mark::before {
  top: 0.48rem;
  left: 0.46rem;
  width: 0.4rem;
  height: 0.4rem;
  box-shadow:
    0.62rem 0 0 var(--accent),
    0 0.62rem 0 rgba(22, 215, 243, 0.42),
    0.62rem 0.62rem 0 rgba(22, 215, 243, 0.22);
}

.brand-mark::after {
  right: 0.48rem;
  bottom: 0.48rem;
  width: 0.42rem;
  height: 0.42rem;
  opacity: 0.18;
}

.brand span {
  color: var(--accent);
}

.nav-links {
  display: inline-flex;
  align-items: center;
  gap: 2.1rem;
}

.nav-links a {
  color: var(--muted);
  font-size: 1.05rem;
  font-weight: 600;
  transition: color 160ms ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
}

.hero {
  padding: 6.2rem 0 3rem;
  text-align: center;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 1.05rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-weight: 600;
}

.pill::before {
  content: "";
  width: 0.62rem;
  height: 0.62rem;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(22, 215, 243, 0.08);
}

.hero h1,
.page-hero h1,
.section-title {
  margin: 1.3rem auto 1rem;
  font-family: "Space Grotesk", "Plus Jakarta Sans", sans-serif;
  font-size: clamp(3.2rem, 7vw, 6.35rem);
  line-height: 0.94;
  letter-spacing: -0.06em;
  max-width: 12ch;
}

.hero h1 span,
.page-hero h1 span {
  color: var(--accent);
}

.hero p,
.page-hero p,
.section-copy {
  width: min(100%, 760px);
  margin: 0 auto;
  color: var(--muted);
  font-size: 1.16rem;
  line-height: 1.72;
}

.hero-actions,
.stack-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.button,
.button-secondary,
.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  min-height: 3.6rem;
  padding: 0 1.5rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-weight: 700;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    color 180ms ease;
}

.button {
  color: #041018;
  background: linear-gradient(135deg, var(--accent), #19cce0);
  box-shadow: 0 16px 42px rgba(10, 121, 138, 0.3);
}

.button:hover,
.button-secondary:hover,
.button-link:hover {
  transform: translateY(-1px);
}

.button-secondary {
  color: var(--text);
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.02);
}

.button-link {
  padding: 0;
  min-height: unset;
  color: var(--accent);
  background: transparent;
}

.section {
  padding: 2rem 0 4.5rem;
}

.section + .section {
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.panel {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01)),
    var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.feature-grid,
.lesson-card-grid,
.genre-grid,
.anatomy-grid,
.standards-grid {
  display: grid;
  gap: 1.2rem;
}

.feature-grid,
.lesson-card-grid,
.genre-grid,
.standards-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.feature-card,
.lesson-card,
.genre-card,
.anatomy-card,
.standard-card {
  padding: 1.4rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0.015));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.feature-icon,
.genre-icon {
  display: inline-flex;
  width: 3.6rem;
  height: 3.6rem;
  align-items: center;
  justify-content: center;
  border-radius: 1rem;
  background: rgba(22, 215, 243, 0.12);
  color: var(--accent);
  font-size: 1.4rem;
  margin-bottom: 1.1rem;
}

.feature-card h3,
.lesson-card h3,
.genre-card h3,
.anatomy-card h3,
.standard-card h3 {
  margin: 0 0 0.65rem;
  font-size: 1.48rem;
  letter-spacing: -0.04em;
}

.feature-card p,
.lesson-card p,
.genre-card p,
.anatomy-card p,
.standard-card p,
.body-copy p,
.body-copy li {
  margin: 0;
  color: var(--muted);
  line-height: 1.72;
}

.section-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.6rem;
}

.section-header h2 {
  margin: 0;
  font-size: clamp(2rem, 3.2vw, 3rem);
  letter-spacing: -0.05em;
}

.section-header p {
  margin: 0;
  max-width: 620px;
}

.chip-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin: 1.4rem 0 0;
}

.chip,
.tag {
  display: inline-flex;
  align-items: center;
  min-height: 2.2rem;
  padding: 0 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
}

.tag {
  background: rgba(22, 215, 243, 0.08);
  border-color: rgba(22, 215, 243, 0.14);
  color: #b9f8ff;
}

.page-hero {
  padding: 4rem 0 1rem;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
}

.breadcrumbs a:hover {
  color: var(--text);
}

.page-hero h1 {
  margin-left: 0;
  margin-right: 0;
}

.page-hero p {
  margin-left: 0;
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  gap: 1.25rem;
  align-items: end;
}

.hero-sidebar {
  padding: 1.3rem;
  background: var(--panel-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.hero-sidebar h2,
.body-copy h2 {
  margin: 0 0 0.8rem;
  font-size: 1.3rem;
  letter-spacing: -0.04em;
}

.author-block {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 0.75rem;
  align-items: center;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.author-block img {
  width: 46px;
  height: 46px;
  border-radius: 999px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.author-block strong {
  display: block;
  font-size: 0.94rem;
  letter-spacing: -0.03em;
}

.inline-link {
  color: var(--accent);
}

.inline-link:hover {
  color: #dffcff;
}

.author-block span {
  display: block;
  margin-top: 0.2rem;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.body-copy {
  display: grid;
  gap: 1.2rem;
}

.body-copy ul {
  padding-left: 1.1rem;
  margin: 0;
  display: grid;
  gap: 0.55rem;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 1.25rem;
}

.companion-card {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.02);
}

.companion-card .eyebrow,
.lesson-card .eyebrow,
.genre-card .eyebrow {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  font-weight: 800;
}

.sequencer-shell {
  --track-rail-width: 220px;
  --step-cell-width: 48px;
  padding: 1.05rem;
}

.sequencer-frame {
  display: grid;
  gap: 0.8rem;
}

.sequencer-toolbar {
  display: grid;
  gap: 0.65rem;
}

.sequencer-toolbar-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.sequencer-slider-row {
  display: flex;
  align-items: stretch;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.transport-group {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
  min-width: 0;
  flex: 1 1 auto;
}

.transport-button,
.mini-button,
.mute-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.55rem;
  padding: 0 0.92rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font-weight: 800;
  letter-spacing: -0.02em;
  cursor: pointer;
}

.transport-button.is-primary,
.mini-button.is-active {
  border-color: rgba(22, 215, 243, 0.35);
  background: rgba(22, 215, 243, 0.14);
  color: #dffcff;
}

.transport-button[disabled],
.mini-button[disabled],
.mute-button[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
}

.export-menu {
  position: relative;
}

.export-menu summary {
  list-style: none;
}

.export-menu summary::-webkit-details-marker {
  display: none;
}

.export-trigger {
  min-width: 8.25rem;
}

.export-menu-panel {
  position: absolute;
  top: calc(100% + 0.45rem);
  left: 0;
  display: grid;
  gap: 0.3rem;
  min-width: 10.5rem;
  padding: 0.35rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(8, 14, 22, 0.98);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition:
    opacity 150ms ease,
    transform 150ms ease;
  z-index: 10;
}

.export-menu:hover .export-menu-panel,
.export-menu:focus-within .export-menu-panel,
.export-menu[open] .export-menu-panel {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.export-menu[open] .export-trigger,
.export-menu:hover .export-trigger {
  border-color: rgba(22, 215, 243, 0.35);
  background: rgba(22, 215, 243, 0.14);
  color: #dffcff;
}

.export-option {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 2.3rem;
  padding: 0 0.78rem;
  border-radius: 10px;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.025);
  color: var(--text);
  font-weight: 700;
  letter-spacing: -0.02em;
  cursor: pointer;
}

.export-option:hover {
  border-color: rgba(22, 215, 243, 0.3);
  background: rgba(22, 215, 243, 0.12);
}

.control-group {
  display: grid;
  width: 200px;
  max-width: 240px;
  grid-template-columns: auto 72px auto;
  align-items: center;
  column-gap: 0.5rem;
  min-width: 0;
  min-height: 2.62rem;
  padding: 0.5rem 0.58rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
  justify-self: start;
  flex: 0 0 auto;
}

.control-group label {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
  line-height: 1;
}

.control-group output {
  min-width: 2.4rem;
  text-align: right;
  color: var(--text);
  font-size: 0.76rem;
  font-weight: 800;
  white-space: nowrap;
}

.control-group input[type="range"] {
  width: 100%;
  accent-color: var(--accent);
  min-width: 0;
}

.sequencer-status {
  margin-left: auto;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 700;
  white-space: nowrap;
}

.sequencer-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.sequencer-meta .hint {
  color: var(--muted);
  font-size: 0.88rem;
  margin-left: auto;
}

.sequencer-board {
  display: grid;
  gap: 0.55rem;
  overflow-x: auto;
  padding-bottom: 0.2rem;
}

.ruler-grid,
.track-steps {
  display: grid;
  grid-template-columns: repeat(var(--columns), var(--step-cell-width));
  gap: 0.26rem;
  width: max-content;
  justify-content: start;
}

.ruler-grid {
  margin-left: calc(var(--track-rail-width) + 0.5rem);
}

.ruler-step {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 1.35rem;
  border-radius: 0.55rem;
  font-size: 0.63rem;
  font-weight: 800;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.035);
}

.ruler-step.is-bar-start,
.track-step.is-bar-start {
  box-shadow: inset 2px 0 0 rgba(22, 215, 243, 0.28);
}

.ruler-step.is-beat-start,
.track-step.is-beat-start {
  border-color: rgba(255, 255, 255, 0.08);
}

.track-list {
  display: grid;
  gap: 0.22rem;
}

.track-row {
  display: grid;
  grid-template-columns: var(--track-rail-width) max-content;
  gap: 0.5rem;
  align-items: stretch;
}

.track-label {
  display: grid;
  min-width: 0;
  overflow: hidden;
  grid-template-columns: auto auto 88px;
  grid-template-areas:
    "name mute vol";
  gap: 0.2rem 0.45rem;
  align-items: center;
  padding: 0.42rem 0.55rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.022);
}

.track-name {
  grid-area: name;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  height: 2rem;
  padding: 0 0.34rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(243, 247, 251, 0.86);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
  white-space: nowrap;
  justify-self: start;
}

.track-sub {
  display: none;
}

.mute-button {
  grid-area: mute;
  min-height: 1.9rem;
  padding: 0 0.68rem;
  font-size: 0.78rem;
  font-weight: 700;
}

.mute-button.is-muted {
  color: var(--muted);
  background: rgba(255, 255, 255, 0.02);
}

.track-volume-wrap {
  grid-area: vol;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.22rem 0.35rem;
  min-width: 0;
  width: 88px;
}

.track-volume-wrap input[type="range"] {
  width: 100%;
  min-width: 0;
  margin: 0;
}

.track-volume-wrap span {
  color: var(--muted);
  font-size: 0.7rem;
  text-align: right;
}

.track-steps {
  min-width: 0;
  align-self: stretch;
  align-items: stretch;
  grid-auto-rows: 1fr;
}

.track-step {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 0;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 0.66rem;
  background: rgba(255, 255, 255, 0.028);
  cursor: pointer;
  overflow: hidden;
  transition:
    transform 120ms ease,
    border-color 120ms ease,
    background 120ms ease,
    box-shadow 120ms ease;
}

.track-step:hover {
  transform: translateY(-1px);
  border-color: rgba(22, 215, 243, 0.18);
}

.track-step.is-active {
  background: rgba(22, 215, 243, var(--step-alpha, 0.62));
  border-color: rgba(22, 215, 243, 0.42);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.track-step.is-playing {
  box-shadow:
    0 0 0 2px rgba(22, 215, 243, 0.16),
    0 0 0 4px rgba(22, 215, 243, 0.06);
}

.track-step.is-muted {
  opacity: 0.45;
}

.track-step::after {
  content: attr(data-level);
  position: absolute;
  inset: auto 0.28rem 0.2rem auto;
  color: rgba(255, 255, 255, 0.46);
  font-size: 0.52rem;
  font-weight: 800;
}

.sequencer-note {
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer {
  padding: 2rem 0 3.5rem;
  color: var(--muted);
}

.site-footer .footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 1.6rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-links a:hover {
  color: var(--accent);
}

.empty-state {
  padding: 1rem;
  border: 1px solid rgba(255, 111, 111, 0.22);
  border-radius: var(--radius-md);
  color: #ffc7c7;
  background: rgba(120, 12, 12, 0.14);
}

@media (max-width: 1100px) {
  .hero-layout,
  .two-column,
  .feature-grid,
  .lesson-card-grid,
  .genre-grid,
  .standards-grid,
  .anatomy-grid {
    grid-template-columns: 1fr;
  }

  .sequencer-toolbar-top {
    align-items: flex-start;
  }

  .sequencer-status {
    margin-left: 0;
  }
}

@media (max-width: 900px) {
  .sequencer-shell {
    --step-cell-width: 44px;
  }

  .ruler-grid {
    margin-left: 0;
  }

  .track-row {
    grid-template-columns: 1fr;
    align-items: center;
  }

  .track-label {
    grid-template-columns: 1fr auto 88px;
  }
}

@media (max-width: 760px) {
  .sequencer-shell {
    --step-cell-width: 40px;
  }

  .nav-row {
    min-height: 74px;
    flex-direction: column;
    justify-content: center;
    padding: 1rem 0;
  }

  .nav-links {
    gap: 1.2rem;
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero {
    padding-top: 4rem;
  }

  .hero h1,
  .page-hero h1 {
    font-size: clamp(2.8rem, 13vw, 4rem);
  }

  .hero p,
  .page-hero p {
    font-size: 1.08rem;
  }

  .sequencer-shell {
    padding: 0.82rem;
  }

  .sequencer-frame {
    gap: 0.65rem;
  }

  .sequencer-toolbar {
    gap: 0.55rem;
  }

  .transport-group {
    width: 100%;
  }

  .sequencer-status {
    width: 100%;
  }

  .sequencer-slider-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
  }

  .control-group {
    width: 100%;
    max-width: none;
    min-height: 2.7rem;
    padding: 0.58rem 0.72rem;
    grid-template-columns: auto minmax(110px, 1fr) auto;
  }

  .sequencer-meta .hint {
    margin-left: 0;
    width: 100%;
  }

  .ruler-grid {
    display: none;
  }

  .track-label {
    grid-template-columns: 1fr auto 84px;
    padding: 0.54rem 0.66rem;
  }

  .track-steps,
  .ruler-grid {
    gap: 0.35rem;
  }

  .track-step {
    min-height: 1.68rem;
    border-radius: 0.58rem;
  }

  .track-name {
    min-width: 1.85rem;
    height: 1.85rem;
    font-size: 0.66rem;
  }

  .track-step::after {
    font-size: 0.45rem;
  }

  .chip-row {
    gap: 0.45rem;
    margin-top: 0.9rem;
  }

  .chip,
  .tag {
    min-height: 1.95rem;
    padding: 0 0.72rem;
    font-size: 0.8rem;
  }
}

@media (max-width: 560px) {
  .sequencer-slider-row {
    grid-template-columns: 1fr;
  }

  .control-group {
    min-height: 2.6rem;
    grid-template-columns: auto minmax(96px, 1fr) auto;
  }
}
