@font-face {
  font-family: "Bravura Score";
  src: url("assets/bravura-score.otf") format("opentype");
  font-display: block;
  unicode-range: U+E050, U+E0A2;
}

:root {
  --ink: #171717;
  --muted: #6f6f6b;
  --line: #d9d8d2;
  --paper: #f7f6f1;
  --panel: #ffffff;
  --accent: #242421;
  --max: 1120px;
}

* { box-sizing: border-box; }

html {
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 84% 8%, rgba(0,0,0,.035), transparent 24rem),
    var(--paper);
}

a { color: inherit; }

.site-header,
footer {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-header {
  min-height: 84px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .22em;
  text-decoration: none;
}

.app-icon {
  display: block;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(23,23,23,.08);
  border-radius: 11px;
  box-shadow: 0 3px 10px rgba(23,23,23,.10);
}

nav,
footer div {
  display: flex;
  gap: 24px;
}

nav a,
footer a {
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
}

nav a:hover,
footer a:hover { color: var(--ink); }

main {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
}

.hero {
  max-width: 820px;
  padding: 104px 0 72px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .2em;
}

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

h1 {
  margin-bottom: 26px;
  font-size: clamp(52px, 8vw, 96px);
  font-weight: 550;
  letter-spacing: -.055em;
  line-height: .96;
}

h2 {
  font-size: clamp(34px, 5vw, 58px);
  font-weight: 550;
  letter-spacing: -.04em;
  line-height: 1.05;
}

h3 {
  margin-bottom: 10px;
  font-size: 22px;
  letter-spacing: -.02em;
}

.lede {
  max-width: 700px;
  color: var(--muted);
  font-size: clamp(19px, 2.3vw, 25px);
  line-height: 1.5;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-size: 15px;
  font-weight: 650;
  text-decoration: none;
}

.button.primary {
  background: var(--accent);
  color: #fff;
}

.button.secondary {
  background: transparent;
  color: var(--ink);
}

.score-strip {
  margin-bottom: 110px;
  padding: 8px 0 20px;
  overflow: hidden;
  background: transparent;
}

.score {
  display: block;
  width: 100%;
  height: auto;
  color: var(--ink);
}

.staff-lines {
  stroke: currentColor;
  stroke-width: 3;
  vector-effect: non-scaling-stroke;
  shape-rendering: geometricPrecision;
}

.score-glyph {
  fill: currentColor;
  font-family: "Bravura Score";
}

.score-clef,
.score-note {
  font-size: 140px;
}

.ledger-line {
  stroke: currentColor;
  stroke-width: 4.5;
  vector-effect: non-scaling-stroke;
}

.features { padding-bottom: 110px; }

.section-heading { max-width: 690px; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 48px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--line);
}

.feature-grid article {
  min-height: 290px;
  padding: 32px;
  background: rgba(255,255,255,.74);
}

.feature-number {
  display: block;
  margin-bottom: 80px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: .18em;
}

.feature-grid p,
.bilingual-note > p,
.prose p,
.prose li { color: var(--muted); }

.bilingual-note {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  padding: 80px 0;
  border-top: 1px solid var(--line);
}

.bilingual-note h2 { margin-bottom: 0; }

.page-hero {
  max-width: 820px;
  padding: 90px 0 54px;
}

.page-hero h1 {
  margin-bottom: 20px;
  font-size: clamp(48px, 7vw, 78px);
}

.prose {
  max-width: 820px;
  padding-bottom: 100px;
}

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

.prose h2 {
  margin-bottom: 16px;
  font-size: 29px;
  letter-spacing: -.025em;
}

.prose h3 {
  margin-top: 26px;
  font-size: 18px;
}

.prose ul { padding-left: 22px; }

.notice {
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,.72);
}

.contact-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 28px;
  border-radius: 20px;
  background: var(--ink);
  color: #fff;
}

.contact-card p { margin-bottom: 0; color: rgba(255,255,255,.68); }

.contact-card a {
  color: #fff;
  font-weight: 650;
  overflow-wrap: anywhere;
}

.lang-divider {
  margin: 28px 0;
  border: 0;
  border-top: 1px dashed var(--line);
}

footer {
  min-height: 110px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

footer p { margin-bottom: 0; }

@media (max-width: 760px) {
  .site-header { align-items: flex-start; padding: 20px 0; }
  nav { gap: 14px; }
  .hero { padding-top: 72px; }
  .score-strip { margin-bottom: 80px; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-grid article { min-height: auto; }
  .feature-number { margin-bottom: 36px; }
  .bilingual-note { grid-template-columns: 1fr; gap: 20px; }
  footer { align-items: flex-start; flex-direction: column; justify-content: center; gap: 10px; padding: 24px 0; }
}

@media (max-width: 520px) {
  .brand { gap: 8px; font-size: 11px; letter-spacing: .16em; }
  .app-icon { width: 34px; height: 34px; border-radius: 9px; }
  main,
  .site-header,
  footer { width: min(calc(100% - 28px), var(--max)); }
  h1 { font-size: 48px; }
  nav a { font-size: 13px; }
  .score-strip { padding: 4px 0 12px; }
}
