/* KeySync: dark stage, brass + steel on near-black.
   Mirrors the app's design tokens. Piano + falling-notes motif. */

:root {
  --bg: #0b0b10;
  --surface: #14141c;
  --surface-2: #1b1b26;
  --line: #26262f;
  --line-strong: #3a3a48;
  --ink: #f2f0ea;
  --ink-dim: #b9b7ae;
  --ink-faint: #7d7c74;
  --brass: #e6b45c;
  --brass-deep: #c08f36;
  --steel: #79a9d6;
  --radius: 16px;
  --display: "Fraunces", Georgia, serif;
  --body: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--brass); color: #171106; }

.wrap { width: min(1060px, 100% - 3rem); margin-inline: auto; }

a { color: var(--steel); }

/* ---------- top bar ---------- */
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem 0;
}
.back { text-decoration: none; color: var(--ink-faint); font-size: 0.95rem; font-weight: 500; }
.back:hover { color: var(--ink); }
.brandmark { display: flex; align-items: center; gap: 0.55rem; font-weight: 700; letter-spacing: 0.01em; }
.key-dot {
  width: 14px; height: 22px; border-radius: 3px; flex: none;
  background: linear-gradient(180deg, #fdfcf8 0 62%, var(--bg) 62% 100%);
  border: 1px solid var(--line-strong);
  box-shadow: inset -5px 0 0 #171106;
}

/* ---------- hero ---------- */
.hero { padding: 3rem 0 4rem; }
.hero-copy { max-width: 720px; margin: 0 auto; text-align: center; }

.eyebrow {
  display: inline-block;
  font-size: 0.82rem; font-weight: 600;
  letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--brass); background: #e6b45c14;
  border: 1px solid #e6b45c3d; border-radius: 999px;
  padding: 0.42rem 0.85rem; margin-bottom: 1.4rem;
}

h1 {
  font-family: var(--display);
  font-size: clamp(2.6rem, 5.5vw, 4.1rem);
  font-weight: 700; letter-spacing: -0.01em; line-height: 1.05;
  margin-bottom: 1.2rem;
}
h1 em { font-style: italic; color: var(--brass); }

.sub { font-size: 1.13rem; color: var(--ink-dim); max-width: 36rem; margin: 0 auto 2rem; }

.cta-row { display: flex; flex-wrap: wrap; gap: 0.8rem; align-items: center; justify-content: center; }
.btn {
  display: inline-block;
  background: var(--brass); color: #171106;
  font-weight: 700; font-size: 1.02rem; text-decoration: none;
  padding: 0.95rem 1.9rem; border-radius: 999px;
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn:hover { background: var(--brass-deep); color: #fff; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line-strong); }
.btn-ghost:hover { border-color: var(--steel); color: var(--steel); background: transparent; }

.stats {
  display: flex; gap: 2.4rem; justify-content: center; flex-wrap: wrap;
  margin-top: 2.4rem; text-align: center;
}
.stats strong { display: block; font-family: var(--display); font-size: 1.7rem; font-weight: 700; color: var(--brass); line-height: 1.15; }
.stats span { color: var(--ink-faint); font-size: 0.92rem; }

/* ---------- stage: falling notes + keyboard ---------- */
.stage {
  max-width: 780px; margin: 3.2rem auto 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.4rem 1.1rem;
  box-shadow: 0 32px 64px -32px rgba(0, 0, 0, 0.8);
}
.lanes {
  position: relative;
  height: 190px;
  border-bottom: 2px solid var(--line-strong);
  background:
    repeating-linear-gradient(90deg, transparent 0, transparent calc(100% / 14 - 1px), #ffffff10 calc(100% / 14 - 1px), #ffffff10 calc(100% / 14));
}
.note {
  position: absolute;
  border-radius: 5px;
  transform: translateX(-50%);
}
.note.brass { background: linear-gradient(180deg, var(--brass), var(--brass-deep)); box-shadow: 0 0 18px #e6b45c55; }
.note.steel { background: linear-gradient(180deg, var(--steel), #4d7ca8); box-shadow: 0 0 18px #79a9d655; }
.hit-line {
  position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--brass), transparent);
}

.keys { position: relative; display: flex; height: 108px; margin-top: 0; }
.wk {
  flex: 1;
  background: linear-gradient(180deg, #e9e6dc, #fdfcf8);
  border: 1px solid #0b0b10;
  border-top: none;
  border-radius: 0 0 5px 5px;
}
.bk {
  position: absolute; top: 0;
  width: 6.4%; height: 60%;
  transform: translateX(-50%);
  background: linear-gradient(180deg, #26262e, #0e0e13);
  border: 1px solid #000;
  border-top: none;
  border-radius: 0 0 4px 4px;
  z-index: 2;
}
.legend {
  display: flex; align-items: center; gap: 0.5rem;
  margin-top: 1rem; font-size: 0.88rem; color: var(--ink-faint);
}
.legend .sw { width: 11px; height: 11px; border-radius: 3px; display: inline-block; margin-left: 0.8rem; }
.legend .sw:first-child { margin-left: 0; }
.legend .sw.brass { background: var(--brass); }
.legend .sw.steel { background: var(--steel); }
.legend .mic { margin-left: auto; color: var(--brass); }

/* ---------- sections ---------- */
.section { padding: 4.5rem 0; }
.section.deep { background: var(--surface); border-block: 1px solid var(--line); }
.section h2 {
  font-family: var(--display);
  font-size: clamp(1.9rem, 3.5vw, 2.6rem);
  font-weight: 700; line-height: 1.15;
  text-align: center; margin-bottom: 0.8rem;
}
.lede { text-align: center; color: var(--ink-dim); max-width: 38rem; margin: 0 auto 2.8rem; }

.features { display: grid; gap: 1.25rem; max-width: 780px; margin: 0 auto; }
.feature {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.9rem;
}
.section.deep .feature { background: var(--surface-2); }
.feature .tag {
  font-size: 0.8rem; font-weight: 700;
  letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--steel); margin-bottom: 0.5rem;
}
.feature h3 { font-family: var(--display); font-size: 1.35rem; font-weight: 700; margin-bottom: 0.5rem; }
.feature p { color: var(--ink-dim); }
.feature ul { list-style: none; margin-top: 0.9rem; display: grid; gap: 0.45rem; }
.feature ul li { position: relative; padding-left: 1.6em; color: var(--ink-dim); }
.feature ul li::before {
  content: ""; position: absolute; left: 0; top: 0.28em;
  width: 1em; height: 1em; border-radius: 50%;
  background: #e6b45c1f
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e6b45c' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E")
    center / 0.62em no-repeat;
}

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; max-width: 920px; margin: 0 auto; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }
.step {
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.7rem;
}
.step .n { font-family: var(--display); font-size: 1.9rem; font-weight: 700; color: var(--brass); margin-bottom: 0.5rem; }
.step h3 { font-family: var(--display); margin-bottom: 0.4rem; }
.step p { color: var(--ink-dim); }

/* ---------- final ---------- */
.final { text-align: center; padding: 4.8rem 0; }
.final h2 { font-family: var(--display); font-size: clamp(2.1rem, 4.5vw, 3.2rem); font-weight: 700; margin-bottom: 0.8rem; }
.final h2 em { font-style: italic; color: var(--brass); }
.final p { color: var(--ink-dim); margin-bottom: 2rem; }
.cta-row.center { justify-content: center; }

footer { padding: 2rem 0 2.8rem; text-align: center; color: var(--ink-faint); font-size: 0.92rem; border-top: 1px solid var(--line); }
footer a { color: var(--ink-faint); }
footer a:hover { color: var(--brass); }
