@font-face {
  font-family: "Familjen Grotesk";
  src: url("/assets/fonts/familjen-grotesk-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("/assets/fonts/ibm-plex-mono-400-latin.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
:root {
  --bg: #050608;
  --panel: #0f1118;
  --panel-hi: #181c26;
  --ink: #f5f5f7;
  --secondary: #a4a8b5;
  --muted: #767b89;
  --line: rgba(255, 255, 255, 0.09);
  --line-hi: rgba(255, 255, 255, 0.22);
  --indigo: #7b96ff;
  --ivory: #f3efe4;
  --crimson: #ef5350;
  --font-sans: "Familjen Grotesk", -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Hiragino Sans GB", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --wrap: min(1180px, calc(100vw - 48px));
  color-scheme: dark;
  accent-color: var(--indigo);
  scrollbar-color: rgba(255, 255, 255, 0.22) #050608;
}
*, *::before, *::after { box-sizing: border-box; }
::selection { background: rgba(123, 150, 255, 0.28); color: #ffffff; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font-sans); font-size: 16px; line-height: 1.65;
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 4px; }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--indigo); outline-offset: 3px; border-radius: 8px;
}
.skip {
  position: absolute; left: 16px; top: -100px; z-index: 200;
  background: #ffffff; color: #050608; padding: 10px 18px; border-radius: 999px;
  text-decoration: none; font-weight: 600;
}
.skip:focus { top: 14px; }
.wrap { width: var(--wrap); margin-inline: auto; }

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(5, 6, 8, 0.8);
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 62px; padding: 6px 0; flex-wrap: wrap;
}
.brand {
  display: inline-flex; align-items: center; gap: 11px;
  text-decoration: none; font-weight: 600; font-size: 16px; letter-spacing: -0.015em;
  min-height: 44px;
}
.brand img { width: 32px; height: 32px; border-radius: 8px; display: block; }
.nav-links { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.nav-links a {
  text-decoration: none; font-size: 14px; font-weight: 500; color: var(--secondary);
  padding: 8px 13px; border-radius: 999px; min-height: 44px; display: inline-flex; align-items: center;
  transition: color 0.18s ease, background 0.18s ease;
}
.nav-links a:hover { color: #ffffff; background: rgba(255, 255, 255, 0.08); }
.nav-pill { border: 1px solid var(--line); margin-left: 4px; }

h1 {
  margin: 0 0 18px; font-size: clamp(36px, 4.8vw, 58px); font-weight: 600;
  line-height: 1.08; letter-spacing: -0.032em; text-wrap: balance;
}
h2 {
  margin: 0 0 14px; font-size: clamp(26px, 3vw, 40px); font-weight: 600;
  line-height: 1.14; letter-spacing: -0.028em; text-wrap: balance;
}
h3 { margin: 0 0 8px; font-size: 20px; font-weight: 600; letter-spacing: -0.02em; }
.lead { margin: 0 0 26px; font-size: 17.5px; line-height: 1.62; color: var(--secondary); max-width: 46ch; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 0 22px; border-radius: 999px;
  font-size: 14.5px; font-weight: 500; text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: opacity 0.18s ease, background 0.18s ease, transform 0.18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: #ffffff; color: #050608; }
.btn--primary:hover { opacity: 0.9; }
.btn--secondary { background: rgba(255, 255, 255, 0.09); color: #ffffff; }
.btn--secondary:hover { background: rgba(255, 255, 255, 0.16); }

/* Hero Concert Stage */
.hero {
  padding: clamp(44px, 6vw, 76px) 0 clamp(64px, 7vw, 96px);
  background: radial-gradient(circle at 74% 38%, rgba(123, 150, 255, 0.22), transparent 56%), var(--bg);
  border-bottom: 1px solid var(--line);
}
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(32px, 5vw, 68px); align-items: center;
}
.trust-line { margin: 16px 0 0; font-size: 13.5px; color: var(--muted); }

/* Auto-playing Sliding Phone Stage */
.stage-wrap {
  border-radius: 30px; background: var(--panel);
  padding: clamp(24px, 3.2vw, 38px) clamp(24px, 3.2vw, 38px) 20px;
  overflow: hidden;
}
.stage-viewport { overflow: hidden; width: 100%; touch-action: pan-y; }
.stage-track {
  display: flex; transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1); will-change: transform;
}
@media (prefers-reduced-motion: reduce) { .stage-track { transition: none; } }
.slide { flex: 0 0 100%; min-width: 100%; display: grid; gap: 18px; justify-items: center; text-align: center; }
.phone-frame {
  width: 245px; aspect-ratio: 9 / 19.5; border-radius: 38px; padding: 8px; background: #262932;
  box-shadow: 0 32px 72px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.phone-frame img {
  width: 100%; height: 100%; object-fit: contain; background: #07080a; border-radius: 30px; display: block;
}
.slide p { margin: 0; font-size: 14.5px; color: var(--secondary); max-width: 40ch; }
.stage-controls {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line);
}
.progress-track { flex: 1 1 auto; height: 2px; background: rgba(255, 255, 255, 0.12); border-radius: 999px; overflow: hidden; }
.progress-fill { height: 100%; width: 0%; background: #ffffff; }
.stage-nav { display: flex; align-items: center; gap: 8px; }
.stage-ctrl {
  appearance: none; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.05);
  color: var(--ink); font-family: inherit; font-size: 13px; font-weight: 500;
  min-width: 40px; min-height: 40px; padding: 0 12px; border-radius: 999px; cursor: pointer;
}
.stage-ctrl:hover { background: rgba(255, 255, 255, 0.14); }

/* Interactive Piano Feedback Demo Hook */
.band { padding: clamp(56px, 7vw, 88px) 0; border-bottom: 1px solid var(--line); }
.band--panel { background: #0a0c11; }
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 20px;
  margin-bottom: 32px; flex-wrap: wrap;
}
.section-head p { max-width: 50ch; color: var(--secondary); margin: 0; }

.demo-box {
  background: var(--panel); border-radius: 26px; padding: clamp(24px, 3.6vw, 40px);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 32px; align-items: center;
}
.demo-controls { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.demo-pill {
  appearance: none; border: 1px solid var(--line-hi); background: var(--panel-hi);
  color: var(--ink); font-family: inherit; font-size: 14px; font-weight: 500;
  min-height: 44px; padding: 0 18px; border-radius: 999px; cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease;
}
.demo-pill[aria-pressed="true"] { background: #ffffff; color: #050608; border-color: #ffffff; }
.demo-score {
  background: var(--ivory); color: #1a1b1f; border-radius: 18px; padding: 20px;
  display: grid; gap: 16px;
}
.staff-measures { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.measure {
  border-radius: 10px; padding: 14px 10px; text-align: center;
  border: 1.5px solid rgba(26, 27, 31, 0.14); font-family: var(--font-mono); font-size: 12.5px;
  transition: background 0.25s ease, border-color 0.25s ease;
}
.measure.is-active { background: rgba(65, 114, 240, 0.16); border-color: #3b66df; font-weight: 600; }
.measure.is-error { background: rgba(239, 83, 80, 0.18); border-color: #d32f2f; color: #9a1b1b; font-weight: 600; }
.piano-keys { display: grid; grid-template-columns: repeat(8, 1fr); gap: 4px; height: 74px; }
.pkey {
  background: #ffffff; border: 1px solid rgba(0, 0, 0, 0.18); border-radius: 0 0 7px 7px;
  display: flex; align-items: flex-end; justify-content: center; padding-bottom: 6px;
  font-family: var(--font-mono); font-size: 11px; color: #666;
  transition: background 0.2s ease, color 0.2s ease;
}
.pkey.is-hit { background: #4a78f2; color: #ffffff; border-color: #345fd4; }
.pkey.is-wrong { background: #e53935; color: #ffffff; border-color: #b71c1c; }
.demo-status { font-size: 13.5px; color: #474a54; margin: 0; }

.pillar-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.pillar { padding: 24px 0 0; border-top: 1px solid var(--line); }
.pillar p { margin: 0; color: var(--secondary); font-size: 15px; }

/* Responsive Table */
.table-wrapper {
  overflow: auto; max-inline-size: 100%;
  border: 1px solid var(--line); border-radius: 18px;
  background: var(--panel); container-type: inline-size;
}
.table-wrapper table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14.5px; text-align: left; font-variant-numeric: tabular-nums; }
.table-wrapper caption { text-align: left; padding: 16px 18px; font-weight: 500; font-size: 14px; color: var(--secondary); border-bottom: 1px solid var(--line); }
.table-wrapper thead { position: sticky; inset-block-start: 0; z-index: 1; background: var(--panel-hi); }
.table-wrapper th, .table-wrapper td { padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table-wrapper tbody tr:last-child th, .table-wrapper tbody tr:last-child td { border-bottom: none; }
.table-wrapper tbody th { position: sticky; inset-inline-start: 0; background: var(--panel); font-weight: 600; color: #ffffff; }
.table-wrapper td { color: var(--secondary); }
@container (width < 600px) {
  .table-wrapper table, .table-wrapper caption, .table-wrapper thead, .table-wrapper tbody, .table-wrapper tr, .table-wrapper th, .table-wrapper td { display: block; }
  .table-wrapper thead { display: none; }
  .table-wrapper tr { border-bottom: 1px solid var(--line); padding: 8px 0; }
  .table-wrapper tbody th { position: sticky; inset-block-start: 0; z-index: 2; background: var(--panel-hi); border-bottom: 1px solid var(--line); }
  .table-wrapper td { border-bottom: none; padding: 8px 16px; }
  .table-wrapper td::before { content: attr(data-label) ": "; font-weight: 600; color: var(--ink); }
}

/* Accordion */
.accordion { display: grid; gap: 10px; max-width: 74ch; }
.accordion details { background: var(--panel); border-radius: 12px; padding: 0 20px; }
.accordion summary {
  list-style: none; display: flex; align-items: center; gap: 12px;
  padding: 18px 0; font-weight: 500; cursor: pointer; min-height: 52px; color: var(--ink);
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::before {
  content: ""; inline-size: 9px; block-size: 9px; flex-shrink: 0;
  border-right: 1.8px solid currentColor; border-bottom: 1.8px solid currentColor;
  transform: rotate(-45deg);
}
.accordion details[open] > summary::before { transform: rotate(45deg); }
@media (prefers-reduced-motion: no-preference) { .accordion summary::before { transition: transform 0.2s ease; } }
.accordion details::details-content { interpolate-size: allow-keywords; overflow: clip; contain: layout; }
.accordion details:not([open])::details-content { block-size: 0; }
@media (prefers-reduced-motion: no-preference) {
  .accordion details::details-content {
    transition: block-size 0.25s ease, content-visibility 0.25s ease, display 0.25s ease;
    transition-behavior: allow-discrete;
  }
}
.accordion .faq-body { padding: 0 0 18px 21px; color: var(--secondary); font-size: 15px; }
.accordion .faq-body p { margin: 0; }

.site-footer { padding: 40px 0 56px; font-size: 13.5px; color: var(--muted); }
.footer-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 28px; align-items: center; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-links a { text-decoration: none; color: var(--secondary); }
.footer-links a:hover { color: #ffffff; }

@media (max-width: 920px) {
  .hero-grid, .demo-box, .pillar-grid { grid-template-columns: 1fr; }
}
