:root {
  color-scheme: dark;
  --ink-950: #050712;
  --ink-900: #090d1c;
  --ink-850: #0d1226;
  --ink-800: #121a32;
  --ink-700: #1a2544;
  --line: rgba(211, 226, 255, 0.14);
  --line-strong: rgba(211, 226, 255, 0.24);
  --text: #f5f8ff;
  --text-soft: #b7c2dc;
  --text-dim: #8491ad;
  --cyan: #54e6ff;
  --cyan-deep: #2b9cff;
  --pink: #ff5ca8;
  --violet: #aa78ff;
  --gold: #ffd769;
  --green: #64e6a5;
  --danger: #ff7f89;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
  --radius-lg: 28px;
  --radius-md: 18px;
  --content: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 14% -5%, rgba(84, 230, 255, 0.12), transparent 28rem),
    radial-gradient(circle at 92% 24%, rgba(255, 92, 168, 0.1), transparent 31rem),
    linear-gradient(180deg, var(--ink-950), var(--ink-900) 48%, #080b18);
  color: var(--text);
  font-family: ui-rounded, "SF Pro Rounded", "Avenir Next", Avenir, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--text);
  color: var(--ink-950);
  font-weight: 900;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: relative;
  z-index: 10;
  width: min(calc(100% - 32px), var(--content));
  margin: 0 auto;
  padding: 22px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 950;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(84, 230, 255, 0.38);
  border-radius: 11px;
  background: linear-gradient(145deg, rgba(84, 230, 255, 0.18), rgba(170, 120, 255, 0.14));
  box-shadow: 0 0 24px rgba(84, 230, 255, 0.14);
}

.brand-mark::before {
  content: "";
  width: 18px;
  height: 9px;
  border-left: 2px solid var(--cyan);
  border-bottom: 2px solid var(--cyan);
  transform: skewY(-32deg) rotate(-6deg);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-nav a {
  padding: 9px 12px;
  border-radius: 999px;
  color: var(--text-soft);
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
}

.shell {
  width: min(calc(100% - 32px), var(--content));
  margin: 0 auto;
}

.hero {
  min-height: min(760px, calc(100vh - 90px));
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(340px, 0.98fr);
  align-items: center;
  gap: clamp(42px, 7vw, 88px);
  padding: 64px 0 96px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 18px;
  color: var(--cyan);
  font-size: 0.77rem;
  font-weight: 950;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
  box-shadow: 10px 0 16px currentColor;
}

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

h1 {
  max-width: 11ch;
  margin-bottom: 22px;
  font-size: clamp(3.4rem, 7.5vw, 6.8rem);
  line-height: 0.91;
  letter-spacing: -0.065em;
  text-wrap: balance;
}

.gradient-text {
  color: transparent;
  background: linear-gradient(100deg, var(--cyan), #a4f2ff 45%, var(--violet) 92%);
  background-clip: text;
  -webkit-background-clip: text;
}

.lede {
  max-width: 54ch;
  margin-bottom: 30px;
  color: var(--text-soft);
  font-size: clamp(1.05rem, 2vw, 1.24rem);
  line-height: 1.65;
}

.action-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 19px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--text);
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.button:hover {
  border-color: rgba(84, 230, 255, 0.5);
  background: rgba(84, 230, 255, 0.08);
  transform: translateY(-2px);
}

.button.primary {
  border-color: transparent;
  background: linear-gradient(125deg, var(--cyan), #5db8ff);
  color: #03101a;
  box-shadow: 0 14px 38px rgba(84, 230, 255, 0.23);
}

.button.primary:hover {
  background: linear-gradient(125deg, #7cedff, #76c5ff);
}

.button.small {
  min-height: 42px;
  padding: 9px 14px;
  font-size: 0.9rem;
}

.release-note {
  margin: 18px 0 0;
  color: var(--text-dim);
  font-size: 0.84rem;
  font-weight: 750;
}

.hero-stage {
  position: relative;
  min-height: 570px;
  display: grid;
  place-items: center;
  isolation: isolate;
}

.hero-stage::before {
  content: "";
  position: absolute;
  inset: 8% -8%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(84, 230, 255, 0.17), rgba(170, 120, 255, 0.06) 42%, transparent 68%);
  filter: blur(16px);
}

.device-card {
  width: min(100%, 430px);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 38px;
  background: linear-gradient(180deg, rgba(18, 26, 50, 0.97), rgba(7, 10, 22, 0.98));
  box-shadow: var(--shadow), inset 0 1px rgba(255, 255, 255, 0.05);
  transform: rotate(2deg);
}

.device-top {
  padding: 25px 25px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text-soft);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.live-pill {
  padding: 6px 9px;
  border: 1px solid rgba(100, 230, 165, 0.35);
  border-radius: 999px;
  color: var(--green);
  background: rgba(100, 230, 165, 0.07);
}

.note-field {
  height: 330px;
  position: relative;
  overflow: hidden;
  margin: 0 14px;
  border: 1px solid var(--line);
  border-radius: 22px 22px 10px 10px;
  background:
    linear-gradient(90deg, transparent 19.5%, var(--line) 20%, transparent 20.5%, transparent 39.5%, var(--line) 40%, transparent 40.5%, transparent 59.5%, var(--line) 60%, transparent 60.5%, transparent 79.5%, var(--line) 80%, transparent 80.5%),
    linear-gradient(180deg, rgba(84, 230, 255, 0.035), transparent 72%);
}

.note {
  position: absolute;
  width: 14%;
  min-height: 58px;
  border-radius: 11px;
  background: linear-gradient(180deg, #a9f4ff, var(--cyan));
  box-shadow: 0 0 24px rgba(84, 230, 255, 0.4);
}

.note::after {
  content: attr(data-note);
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #07111e;
  font-size: 0.8rem;
  font-weight: 950;
}

.note.one { left: 3%; top: 50px; height: 92px; }
.note.two { left: 23%; top: 148px; height: 64px; background: linear-gradient(180deg, #ffd0e5, var(--pink)); box-shadow: 0 0 24px rgba(255, 92, 168, 0.36); }
.note.three { left: 43%; top: 88px; height: 124px; background: linear-gradient(180deg, #ddccff, var(--violet)); box-shadow: 0 0 24px rgba(170, 120, 255, 0.36); }
.note.four { left: 63%; top: 212px; height: 64px; background: linear-gradient(180deg, #fff0b0, var(--gold)); box-shadow: 0 0 24px rgba(255, 215, 105, 0.32); }
.note.five { left: 83%; top: 130px; height: 100px; }

.hit-line {
  position: absolute;
  right: 0;
  bottom: 24px;
  left: 0;
  height: 2px;
  background: var(--cyan);
  box-shadow: 0 0 18px var(--cyan);
}

.piano-keys {
  height: 124px;
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 2px;
  padding: 8px 14px 14px;
}

.piano-keys span {
  position: relative;
  border-radius: 0 0 8px 8px;
  background: linear-gradient(180deg, #eef3fc, #b8c1d5);
}

.piano-keys span:nth-child(2)::before,
.piano-keys span:nth-child(3)::before,
.piano-keys span:nth-child(5)::before,
.piano-keys span:nth-child(6)::before,
.piano-keys span:nth-child(7)::before {
  content: "";
  position: absolute;
  z-index: 2;
  top: 0;
  left: -24%;
  width: 48%;
  height: 62%;
  border-radius: 0 0 6px 6px;
  background: #12162a;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}

.stage-score {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 0 22px 24px;
  color: var(--text-soft);
  font-size: 0.82rem;
  font-weight: 850;
}

.stage-score strong {
  color: var(--gold);
}

.section {
  padding: 94px 0;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 38px;
}

.section-heading h2,
.page-title {
  margin-bottom: 16px;
  font-size: clamp(2.15rem, 5vw, 4rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.section-heading p,
.page-intro {
  color: var(--text-soft);
  font-size: 1.08rem;
  line-height: 1.68;
}

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

.feature-card {
  min-height: 240px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: linear-gradient(155deg, rgba(18, 26, 50, 0.86), rgba(10, 14, 29, 0.78));
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.03);
}

.feature-icon {
  width: 42px;
  height: 42px;
  margin-bottom: 28px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(84, 230, 255, 0.26);
  border-radius: 13px;
  color: var(--cyan);
  background: rgba(84, 230, 255, 0.07);
  font-weight: 950;
}

.feature-card:nth-child(2) .feature-icon { color: var(--pink); border-color: rgba(255, 92, 168, 0.25); background: rgba(255, 92, 168, 0.07); }
.feature-card:nth-child(3) .feature-icon { color: var(--gold); border-color: rgba(255, 215, 105, 0.25); background: rgba(255, 215, 105, 0.07); }
.feature-card:nth-child(4) .feature-icon { color: var(--violet); border-color: rgba(170, 120, 255, 0.25); background: rgba(170, 120, 255, 0.07); }

.feature-card h3 {
  margin-bottom: 9px;
  font-size: 1.16rem;
}

.feature-card p {
  margin-bottom: 0;
  color: var(--text-soft);
  line-height: 1.6;
}

.feature-card.wide {
  grid-column: span 2;
}

.privacy-banner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;
  padding: 28px;
  border: 1px solid rgba(100, 230, 165, 0.23);
  border-radius: var(--radius-lg);
  background: linear-gradient(120deg, rgba(100, 230, 165, 0.08), rgba(84, 230, 255, 0.035));
}

.privacy-lock {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 17px;
  background: rgba(100, 230, 165, 0.11);
  color: var(--green);
  font-size: 1.3rem;
  font-weight: 950;
}

.privacy-banner h2 {
  margin-bottom: 5px;
  font-size: 1.25rem;
}

.privacy-banner p {
  margin-bottom: 0;
  color: var(--text-soft);
  line-height: 1.55;
}

.page-shell {
  width: min(calc(100% - 32px), 820px);
  margin: 0 auto;
  padding: 72px 0 110px;
}

.page-header {
  padding-bottom: 38px;
  border-bottom: 1px solid var(--line);
}

.page-title {
  max-width: 13ch;
}

.meta-line {
  margin-bottom: 0;
  color: var(--text-dim);
  font-size: 0.87rem;
  font-weight: 800;
}

.prose {
  padding-top: 38px;
}

.prose h2 {
  margin: 48px 0 13px;
  font-size: 1.42rem;
  letter-spacing: -0.025em;
}

.prose h3 {
  margin: 30px 0 9px;
  font-size: 1.05rem;
}

.prose p,
.prose li {
  color: var(--text-soft);
  font-size: 1rem;
  line-height: 1.72;
}

.prose ul,
.prose ol {
  padding-left: 1.35rem;
}

.prose li + li {
  margin-top: 8px;
}

.prose strong {
  color: var(--text);
}

.callout {
  margin: 32px 0;
  padding: 20px 22px;
  border: 1px solid rgba(84, 230, 255, 0.23);
  border-radius: 16px;
  background: rgba(84, 230, 255, 0.055);
}

.callout p:last-child {
  margin-bottom: 0;
}

.faq-list {
  display: grid;
  gap: 12px;
  margin-top: 34px;
}

.faq-list details {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(18, 26, 50, 0.58);
}

.faq-list summary {
  padding: 19px 22px;
  color: var(--text);
  font-weight: 900;
  cursor: pointer;
}

.faq-list details p,
.faq-list details ul {
  margin: 0;
  padding: 0 22px 20px;
}

.faq-list details ul {
  padding-left: 42px;
}

.player-shell {
  width: min(calc(100% - 24px), 1060px);
  margin: 0 auto;
  padding: 38px 0 90px;
}

.player-header {
  max-width: 760px;
  margin: 0 auto 28px;
  text-align: center;
}

.player-header h1 {
  max-width: none;
  margin-bottom: 10px;
  font-size: clamp(2.35rem, 6vw, 4.7rem);
  line-height: 1;
}

.song-byline {
  min-height: 1.5em;
  margin-bottom: 15px;
  color: var(--text-soft);
  font-weight: 750;
}

.badge-row {
  min-height: 27px;
  display: flex;
  justify-content: center;
  gap: 7px;
  flex-wrap: wrap;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 27px;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.035);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.badge.gold {
  border-color: rgba(255, 215, 105, 0.3);
  color: var(--gold);
}

.player-card {
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: rgba(9, 13, 28, 0.9);
  box-shadow: var(--shadow);
}

.canvas-wrap {
  position: relative;
  padding: 12px 12px 0;
}

#stage {
  width: 100%;
  max-height: min(64vh, 690px);
  display: block;
  border: 1px solid var(--line);
  border-radius: 19px 19px 10px 10px;
  background: var(--ink-950);
}

.empty-overlay {
  position: absolute;
  inset: 12px 12px 0;
  display: grid;
  place-items: center;
  padding: 30px;
  border-radius: 19px 19px 10px 10px;
  background: linear-gradient(180deg, rgba(5, 7, 18, 0.4), rgba(5, 7, 18, 0.78));
  text-align: center;
}

.empty-overlay[hidden] {
  display: none;
}

.empty-copy {
  max-width: 390px;
}

.empty-note {
  width: 66px;
  height: 66px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(84, 230, 255, 0.38);
  border-radius: 20px;
  background: rgba(84, 230, 255, 0.08);
  color: var(--cyan);
  font-size: 1.65rem;
  font-weight: 950;
  box-shadow: 0 0 30px rgba(84, 230, 255, 0.14);
}

.empty-copy h2 {
  margin-bottom: 8px;
  font-size: 1.3rem;
}

.empty-copy p {
  margin-bottom: 20px;
  color: var(--text-soft);
  line-height: 1.6;
}

.player-controls {
  padding: 18px;
}

.timeline-row {
  display: grid;
  grid-template-columns: 45px minmax(0, 1fr) 45px;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  color: var(--text-dim);
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
}

#timeline {
  width: 100%;
  height: 22px;
  margin: 0;
  accent-color: var(--cyan);
  cursor: pointer;
}

.control-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.control-group {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
}

.status {
  min-height: 1.4em;
  margin: 14px 0 0;
  color: var(--text-dim);
  font-size: 0.84rem;
  text-align: center;
}

.status.error {
  color: var(--danger);
}

.license-line {
  max-width: 700px;
  margin: 18px auto 0;
  color: var(--text-dim);
  font-size: 0.82rem;
  line-height: 1.58;
  text-align: center;
}

.license-line strong {
  color: var(--gold);
}

.drop-active .player-card {
  border-color: var(--cyan);
  box-shadow: var(--shadow), 0 0 0 4px rgba(84, 230, 255, 0.12);
}

.site-footer {
  width: min(calc(100% - 32px), var(--content));
  margin: 0 auto;
  padding: 34px 0 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
  color: var(--text-dim);
  font-size: 0.82rem;
}

.footer-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

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

[hidden] {
  display: none !important;
}

@media (max-width: 840px) {
  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding-top: 46px;
  }

  .hero-copy {
    text-align: center;
  }

  h1,
  .lede {
    margin-right: auto;
    margin-left: auto;
  }

  .action-row {
    justify-content: center;
  }

  .hero-stage {
    min-height: 500px;
  }

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

  .feature-card.wide {
    grid-column: auto;
  }

  .privacy-banner {
    grid-template-columns: auto 1fr;
  }

  .privacy-banner .button {
    grid-column: 1 / -1;
  }
}

@media (max-width: 620px) {
  .site-header {
    align-items: flex-start;
  }

  .site-nav {
    display: grid;
    grid-template-columns: repeat(2, auto);
    justify-content: end;
  }

  .site-nav a {
    padding: 7px 9px;
    font-size: 0.78rem;
  }

  .brand {
    font-size: 0.79rem;
    letter-spacing: 0.11em;
  }

  .brand-mark {
    width: 30px;
    height: 30px;
  }

  .hero {
    padding-bottom: 68px;
  }

  .hero-stage {
    min-height: 440px;
  }

  .device-card {
    border-radius: 28px;
    transform: none;
  }

  .note-field {
    height: 260px;
  }

  .piano-keys {
    height: 104px;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .feature-card {
    min-height: 0;
  }

  .section {
    padding: 68px 0;
  }

  .privacy-banner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .privacy-lock {
    margin: 0 auto;
  }

  .page-shell {
    padding-top: 46px;
  }

  .control-row {
    align-items: stretch;
    flex-direction: column;
  }

  .control-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .control-group .button {
    width: 100%;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media print {
  :root {
    color-scheme: light;
  }

  body {
    background: #fff;
    color: #111;
  }

  .site-header,
  .site-footer,
  .button {
    display: none;
  }

  .page-shell {
    width: 100%;
    padding: 0;
  }

  .prose p,
  .prose li,
  .page-intro,
  .meta-line {
    color: #333;
  }
}
