:root {
  color-scheme: dark;
  --background: #080a0a;
  --panel: #15191a;
  --panel-raised: #1c2021;
  --line: rgba(255, 255, 255, .12);
  --amber: #ffb943;
  --red: #ff3948;
  --text: #f4f4f1;
  --muted: #a4aaa8;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font: 16px/1.75 -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Noto Sans JP", sans-serif;
}
a { color: var(--amber); text-underline-offset: .2em; }
.shell { width: min(100% - 44px, 1080px); margin-inline: auto; }

.masthead {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
}
.brand { display: grid; text-decoration: none; line-height: 1.15; }
.brand span { color: var(--amber); font: 900 13px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .17em; }
.brand small { color: var(--muted); font-size: 11px; margin-top: 5px; }
nav { display: flex; align-items: center; gap: 24px; font-size: 13px; }
nav a { color: var(--muted); text-decoration: none; }
nav a:hover, nav a[aria-current="page"] { color: var(--text); }

.hero { padding: 74px 0 68px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 300px); gap: 64px; align-items: center; }
.hero-copy { max-width: 670px; }
.eyebrow { margin: 0 0 13px; color: var(--amber); font: 800 11px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .18em; }
h1 { margin: 0 0 18px; font-size: clamp(36px, 5.5vw, 64px); line-height: 1.25; letter-spacing: -.045em; }
h2 { margin: 0 0 16px; font-size: clamp(24px, 3.6vw, 36px); line-height: 1.45; letter-spacing: -.03em; }
h3 { margin: 8px 0 10px; font-size: 20px; line-height: 1.4; }
p { margin: 0 0 14px; }
p:last-child { margin-bottom: 0; }
.lede { max-width: 600px; color: #c2c8c5; font-size: 18px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin-top: 30px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 10px 18px; background: var(--amber); color: #15110a; text-decoration: none; font-weight: 850; }
.button:hover { background: #ffd17c; }
.text-link { font-size: 14px; }
.microcopy { margin-top: 21px; color: var(--muted); font-size: 12px; }

.screen-frame { margin: 0; padding: 10px; background: #101313; border: 1px solid rgba(255,255,255,.17); box-shadow: 0 22px 55px rgba(0,0,0,.34); }
.screen-frame img { display: block; width: 100%; height: auto; background: #101313; }
.screen-frame figcaption { padding: 9px 3px 1px; color: var(--muted); font-size: 11px; line-height: 1.5; }

.section-block { padding: 48px 0 76px; border-top: 1px solid var(--line); }
.section-heading { margin: 0 0 28px; max-width: 700px; }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.instrument-card { min-height: 220px; padding: 23px; background: var(--panel); border: 1px solid var(--line); border-top: 2px solid var(--amber); }
.instrument-label { color: var(--red); font: 800 10px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .12em; }
.instrument-card p, .layout-copy > p:not(.eyebrow) { color: var(--muted); font-size: 14px; }

.layout-showcase { display: grid; grid-template-columns: minmax(220px, 330px) minmax(0, 1fr); align-items: center; gap: 70px; padding: 64px 0; border-top: 1px solid var(--line); }
.wide-screen { width: 100%; }
.layout-copy { max-width: 560px; }
.spec-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 0; margin: 25px 0 0; list-style: none; }
.spec-list li { padding: 11px 12px; background: var(--panel); border: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.spec-list span { display: block; color: var(--amber); font: 800 18px/1.3 ui-monospace, SFMono-Regular, Menlo, monospace; }

.note-panel { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1fr); gap: 48px; align-items: center; margin-bottom: 54px; padding: 30px; background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--red); }
.note-panel > p { color: var(--muted); font-size: 14px; }

/* Support and privacy pages */
.support-main, .policy { max-width: 780px; }
.support-hero { padding-bottom: 32px; }
.card { margin: 0 0 16px; padding: 24px; background: var(--panel); border: 1px solid var(--line); }
.card h2 { font-size: 21px; }
details { padding: 15px 0; border-top: 1px solid var(--line); }
summary { color: var(--text); font-weight: 700; cursor: pointer; }
details p, .policy .card p { margin: 10px 0 0; color: #c4cac7; font-size: 14px; }
.contact { border-top: 2px solid var(--amber); }
.placeholder { color: var(--amber); font-size: 13px; }
.placeholder code { overflow-wrap: anywhere; }
.footer { display: flex; justify-content: space-between; gap: 20px; padding: 26px 0 42px; color: var(--muted); font-size: 12px; border-top: 1px solid var(--line); }
.footer nav { gap: 18px; }
.footer nav a { color: var(--muted); }

@media (max-width: 760px) {
  .hero { padding: 52px 0 45px; }
  .hero-grid, .layout-showcase { grid-template-columns: 1fr; gap: 34px; }
  .screen-frame { width: min(100%, 265px); justify-self: center; }
  .feature-grid { grid-template-columns: 1fr; }
  .instrument-card { min-height: auto; }
  .layout-showcase { padding: 45px 0; }
  .layout-copy { order: -1; }
  .wide-screen { width: min(100%, 280px); }
  .note-panel { grid-template-columns: 1fr; gap: 16px; padding: 22px; }
}

@media (max-width: 520px) {
  .shell { width: min(100% - 28px, 1080px); }
  .masthead { min-height: 68px; }
  nav { gap: 12px; font-size: 11px; }
  .brand span { font-size: 11px; }
  .brand small { font-size: 10px; }
  .hero { padding: 42px 0 34px; }
  .lede { font-size: 16px; }
  .card { padding: 19px; }
  .spec-list { grid-template-columns: 1fr; }
  .spec-list li { display: flex; align-items: center; gap: 12px; }
  .spec-list span { min-width: 38px; }
  .footer { flex-direction: column; align-items: flex-start; gap: 10px; }
}
