/* ============================================================
   MQTT Deck — marketing landing page
   A poster, not a spec sheet. The palette and type are the
   app's (src/index.css): two surfaces, hairline rules, mono for
   data, one ember accent. The display ramp is the only addition,
   because the app window never renders above 20px.
   ============================================================ */

@font-face {
  font-family: "Inter Variable";
  src: url("assets/fonts/inter.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "JetBrains Mono Variable";
  src: url("assets/fonts/jetbrains-mono.woff2") format("woff2-variations");
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;

  --font-ui: "Inter Variable", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono Variable", "JetBrains Mono", ui-monospace, SFMono-Regular,
    "SF Mono", Menlo, Consolas, monospace;

  --bg: #0b0d11;
  --bg-deep: #080a0d;
  --panel: #161b23;
  --panel-2: #1d232d;
  --line: #232b36;
  --line-strong: #313b49;

  --text: #eef2f7;
  --text-2: #bcc7d5;
  --text-3: #9dabbb;

  --accent: #ff7a45;
  --accent-2: #ff9668;
  --accent-ink: #1a0a04;
  --accent-text: #ff9a70;
  --accent-soft: rgba(255, 122, 69, 0.13);

  --ease: cubic-bezier(0.22, 0.68, 0.35, 1);
  --dur: 160ms;
  --shell: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
  --label-col: 160px;
  --label-gap: clamp(24px, 4vw, 56px);
}

@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;

    --bg: #e9edf2;
    --bg-deep: #e1e6ed;
    --panel: #ffffff;
    --panel-2: #f3f6fa;
    --line: #dbe2ea;
    --line-strong: #c9d3de;

    --text: #0d1117;
    --text-2: #46525f;
    --text-3: #5b6875;

    --accent: #c2410c;
    --accent-2: #a83806;
    --accent-ink: #ffffff;
    --accent-text: #a83806;
    --accent-soft: rgba(194, 65, 12, 0.09);
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "cv05" 1, "ss03" 1;
  overflow-x: clip;
}

[hidden] {
  display: none !important;
}

::selection {
  background: var(--accent-soft);
  color: var(--text);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: 30;
  padding: 12px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: var(--panel);
  color: var(--text);
  font-size: 14px;
  transition: top var(--dur) var(--ease);
}

.skip:focus {
  top: 12px;
}

.label {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
}

.mono {
  font-family: var(--font-mono);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

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

/* ---------- header ---------- */

.site-head {
  border-bottom: 1px solid var(--line);
}

.site-head-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--text);
  flex: none;
}

.brand-mark {
  width: 22px;
  height: 22px;
  color: var(--accent);
  flex: none;
}

.brand-word {
  font-size: 16px;
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1;
  white-space: nowrap;
}

.brand-version {
  padding-left: 10px;
  border-left: 1px solid var(--line-strong);
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1;
  color: var(--text-3);
}

.head-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
}

.head-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 4px;
  font-size: 14px;
  color: var(--text-2);
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease);
}

.head-nav a:hover {
  color: var(--text);
  background: var(--panel);
}

.head-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 4px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  transition: background var(--dur) var(--ease);
}

.head-cta:hover {
  background: var(--accent-2);
}

.head-cta-end {
  margin-left: auto;
}

/* ---------- hero ---------- */

.hero {
  padding-block: clamp(48px, 7vw, 96px) clamp(64px, 8vw, 120px);
}

.eyebrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  line-height: 1.5;
  text-transform: uppercase;
  color: var(--text-3);
}

.eyebrow-mark {
  width: 7px;
  height: 7px;
  background: var(--accent);
  flex: none;
}

h1 {
  margin: 24px 0 0;
  font-size: clamp(44px, 9.4vw, 124px);
  font-weight: 620;
  line-height: 0.9;
  letter-spacing: -0.055em;
  text-wrap: balance;
}

.h1-dim {
  color: var(--text-3);
}

.h1-stop {
  color: var(--accent);
}

.hero-body {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 4vw, 64px);
  align-items: start;
  margin-top: clamp(40px, 5vw, 64px);
}

.hero-intro {
  min-width: 0;
  padding-top: 4px;
}

.hero-promise {
  margin: 0;
  max-width: 34ch;
  font-size: clamp(18px, 1.7vw, 21px);
  line-height: 1.45;
  letter-spacing: -0.012em;
  color: var(--text-2);
  text-wrap: pretty;
}

/* ---------- download gate ---------- */

.dl-form {
  margin-top: 32px;
}

.dl-form label {
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
}

.dl-controls {
  display: flex;
  gap: 8px;
}

.dl-form input[type="email"] {
  flex: 1 1 auto;
  min-width: 0;
  height: 52px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: var(--panel);
  color: var(--text);
  font-size: 16px;
  transition: border-color var(--dur) var(--ease);
}

.dl-form input[type="email"]::placeholder {
  color: var(--text-3);
  opacity: 1;
}

.dl-form input[type="email"]:hover {
  border-color: var(--text-3);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex: none;
  min-height: 52px;
  padding: 0 20px;
  border: 0;
  border-radius: 4px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--dur) var(--ease), opacity var(--dur) var(--ease);
}

.btn-primary:hover {
  background: var(--accent-2);
}

.btn-primary:disabled {
  opacity: 0.62;
  cursor: progress;
}

.dl-fineprint {
  margin: 16px 0 0;
  max-width: 46ch;
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-3);
}

.dl-fineprint a,
.fallback-link {
  color: var(--accent-text);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.dl-status {
  margin: 16px 0 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-2);
}

.dl-status:empty {
  display: none;
}

.dl-fallback {
  margin: 16px 0 0;
  font-size: 14px;
}

.dl-success {
  margin-top: 32px;
  padding: 8px 0 8px 16px;
  border-left: 2px solid var(--accent);
}

.dl-success-title {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.dl-success-note {
  margin: 8px 0 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-2);
}

.dl-success-note a {
  color: var(--accent-text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 0;
  margin: 24px 0 0;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
}

.hero-facts span + span::before {
  content: "/";
  margin: 0 10px;
  color: var(--line-strong);
}

/* ---------- message stream ---------- */

.wire {
  margin: 0;
  min-width: 0;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--panel);
  overflow: hidden;
}

.wire-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line-strong);
  background: var(--bg-deep);
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1;
}

.wire-live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
}

.wire-dot {
  width: 7px;
  height: 7px;
  background: var(--accent);
  flex: none;
}

.wire-host {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: var(--text-3);
}

.wire-meta {
  margin-left: auto;
  white-space: nowrap;
  color: var(--text-3);
}

.wire-head,
.wire-row {
  display: grid;
  grid-template-columns: 88px 22px minmax(0, 1.1fr) minmax(0, 1.4fr) 20px;
  gap: 8px;
  align-items: center;
  padding-inline: 14px;
}

.wire-head {
  min-height: 32px;
  border-bottom: 1px solid var(--line);
  background: var(--panel);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
}

.wire-row {
  position: relative;
  min-height: 32px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.4;
}

.wire-row:last-child {
  border-bottom: 0;
}

.wire-row::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 2px;
  background: var(--line-strong);
}

.wire-row.out::before {
  background: var(--accent);
}

.w-time {
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.w-dir {
  color: var(--text-3);
  text-align: center;
}

.wire-row.out .w-dir {
  color: var(--text);
}

.w-topic {
  color: var(--text);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.w-payload {
  color: var(--text-2);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.w-qos {
  color: var(--text-3);
  font-size: 11px;
  text-align: right;
}

.wire-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 16px;
  padding: 8px 14px;
  border-top: 1px solid var(--line);
  background: var(--bg-deep);
  font-size: 11px;
  letter-spacing: 0.02em;
  color: var(--text-3);
}

.wire-count {
  font-family: var(--font-mono);
  white-space: nowrap;
}

/* ---------- sections ---------- */

.band {
  padding-block: clamp(64px, 8vw, 104px);
  border-top: 1px solid var(--line);
}

.band-grid {
  display: grid;
  grid-template-columns: var(--label-col) minmax(0, 1fr);
  gap: 16px var(--label-gap);
  align-items: start;
}

.band-body {
  min-width: 0;
}

.promise-line {
  margin: 0;
  max-width: 22ch;
  font-size: clamp(30px, 4.4vw, 56px);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.promise-note {
  margin: 24px 0 0;
  max-width: 62ch;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-2);
  text-wrap: pretty;
}

/* The promise band carries a second, quieter voice on the right so the wide
   column does not read as an accident. */
.promise-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
}

.promise-pull {
  margin: 0;
  align-self: end;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  max-width: 36ch;
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-3);
  text-wrap: pretty;
}

.promise-pull p {
  margin: 0;
}

.promise-pull strong {
  color: var(--text);
  font-weight: 600;
}

@media (min-width: 1080px) {
  .promise-body {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    gap: 56px;
  }
}

.sec-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 320px);
  gap: 24px 48px;
  align-items: end;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line-strong);
}

.sec-head h2 {
  margin: 0;
  max-width: 18ch;
  font-size: clamp(28px, 3.4vw, 44px);
  font-weight: 620;
  line-height: 1.05;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.sec-intro {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-2);
}

/* ---------- three beats ---------- */

.beats {
  margin: 0;
  padding: 0;
  list-style: none;
}

.beat {
  display: grid;
  grid-template-columns: 48px minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 24px 40px;
  padding-block: 40px;
  border-bottom: 1px solid var(--line);
}

.beat:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.beat-index {
  padding-top: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent-text);
}

.beat-copy h3 {
  margin: 0;
  font-size: clamp(22px, 2.2vw, 28px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.beat-copy p {
  margin: 16px 0 0;
  max-width: 56ch;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-2);
  text-wrap: pretty;
}

.beat-spec {
  margin: 0;
  align-self: start;
}

.beat-spec div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  padding-block: 8px;
  border-bottom: 1px solid var(--line);
}

.beat-spec div:first-child {
  border-top: 1px solid var(--line);
}

.beat-spec dt {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
}

.beat-spec dd {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-2);
  text-align: right;
}

/* ---------- who it is for ---------- */

.who {
  padding-block: clamp(56px, 7vw, 88px);
  border-top: 1px solid var(--line-strong);
  background: var(--panel);
}

.who-head {
  display: grid;
  grid-template-columns: var(--label-col) minmax(0, 1fr);
  gap: 16px var(--label-gap);
  align-items: start;
  margin-bottom: 40px;
}

.who-head h2 {
  margin: 0;
  font-size: clamp(26px, 3vw, 40px);
  font-weight: 620;
  line-height: 1.1;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.who-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line-strong);
  list-style: none;
}

.who-list li {
  min-width: 0;
  padding: 24px 24px 0 0;
  border-right: 1px solid var(--line);
}

.who-list li + li {
  padding-left: 24px;
}

.who-list li:last-child {
  padding-right: 0;
  border-right: 0;
}

.who-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent-text);
}

.who-list h3 {
  margin: 8px 0 0;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.who-list p {
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-2);
}

/* ---------- keyboard ---------- */

.keys {
  padding-block: clamp(56px, 7vw, 88px);
  border-top: 1px solid var(--line);
}

.keys-head {
  display: grid;
  grid-template-columns: var(--label-col) minmax(0, 1fr);
  gap: 16px var(--label-gap);
  align-items: start;
  margin-bottom: 40px;
}

.keys-head h2 {
  margin: 0;
  font-size: clamp(26px, 3vw, 40px);
  font-weight: 620;
  line-height: 1.1;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.keys-head p {
  margin: 16px 0 0;
  max-width: 56ch;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-2);
}

.key-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  border-block: 1px solid var(--line-strong);
  list-style: none;
}

.key-list li {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  min-width: 0;
  padding: 24px;
  border-left: 1px solid var(--line);
}

.key-list li:first-child {
  padding-left: 0;
  border-left: 0;
}

.key-list span {
  font-size: 14px;
  line-height: 1.4;
  color: var(--text-2);
}

kbd {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 8px;
  border: 1px solid var(--line-strong);
  border-bottom-width: 2px;
  border-radius: 4px;
  background: var(--panel);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
}

/* ---------- install ---------- */

.install-body {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}

.install-intro h2 {
  margin: 0;
  font-size: clamp(30px, 3.6vw, 48px);
  font-weight: 620;
  line-height: 1.02;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.install-intro > p {
  margin: 16px 0 0;
  max-width: 44ch;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-2);
}

.install-size {
  font-size: 13px;
  color: var(--text-3);
}

.install-size .mono {
  color: var(--text-2);
}

.install-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 24px;
}

.text-link {
  font-size: 14px;
  font-weight: 550;
  color: var(--accent-text);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.platforms {
  margin: 0;
  padding: 0;
  list-style: none;
}

.platform {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: baseline;
  padding: 16px 0 16px 12px;
  border-bottom: 1px solid var(--line);
  border-left: 2px solid transparent;
}

.platform:first-child {
  border-top: 1px solid var(--line-strong);
}

.platform-name {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.platform-note {
  font-size: 14px;
  line-height: 1.45;
  color: var(--text-2);
}

.platform-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-3);
  white-space: nowrap;
}

[data-os="linux"] .platform[data-platform="linux"],
[data-os="macos"] .platform[data-platform="macos"],
[data-os="windows"] .platform[data-platform="windows"] {
  border-left-color: var(--accent);
}

[data-os="linux"] .platform[data-platform="linux"] .platform-name,
[data-os="macos"] .platform[data-platform="macos"] .platform-name,
[data-os="windows"] .platform[data-platform="windows"] .platform-name {
  color: var(--accent-text);
}

/* ---------- privacy ---------- */

.privacy h2 {
  margin: 0;
  max-width: 18ch;
  font-size: clamp(30px, 3.6vw, 48px);
  font-weight: 620;
  line-height: 1.02;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.privacy-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin-top: 32px;
  border-top: 1px solid var(--line-strong);
}

.privacy-col {
  min-width: 0;
  padding: 24px 32px 0 0;
}

.privacy-col + .privacy-col {
  padding-left: 32px;
  border-left: 1px solid var(--line);
}

.privacy-col h3 {
  margin: 0 0 16px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.privacy-col p {
  margin: 0 0 16px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-2);
  text-wrap: pretty;
}

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

.privacy-col a,
.prose a {
  color: var(--accent-text);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

/* ---------- footer ---------- */

.site-foot {
  padding-block: 48px;
  border-top: 1px solid var(--line-strong);
}

.foot-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px 48px;
  align-items: start;
}

.foot-brand p {
  margin: 16px 0 0;
  max-width: 44ch;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-3);
}

.foot-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  justify-content: flex-end;
}

.foot-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 8px;
  border-radius: 4px;
  font-size: 14px;
  color: var(--text-2);
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease);
}

.foot-nav a:hover {
  color: var(--text);
  background: var(--panel);
}

.foot-meta {
  display: flex;
  flex-wrap: wrap;
  grid-column: 1 / -1;
  gap: 8px 20px;
  margin: 8px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--text-3);
}

/* ---------- 404 and prose pages ---------- */

.notfound {
  max-width: 760px;
  padding-block: clamp(80px, 14vh, 160px);
}

.notfound h1 {
  margin: 16px 0 0;
  font-size: clamp(40px, 7vw, 72px);
  line-height: 1;
}

.notfound p {
  margin: 24px 0 0;
  max-width: 46ch;
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-2);
}

.notfound .btn-primary {
  margin-top: 32px;
}

.page-head {
  padding-block: clamp(48px, 7vw, 88px) 48px;
  border-bottom: 1px solid var(--line-strong);
}

.page-head h1 {
  margin: 0;
  max-width: 18ch;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1;
  letter-spacing: -0.05em;
  text-wrap: balance;
}

.page-head p {
  margin: 24px 0 0;
  max-width: 62ch;
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-2);
}

.prose {
  max-width: 68ch;
  padding-block: 48px 104px;
}

.prose h2 {
  margin: 40px 0 16px;
  font-size: 24px;
  font-weight: 620;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose p,
.prose li {
  font-size: 17px;
  line-height: 1.65;
  color: var(--text-2);
  text-wrap: pretty;
}

.prose p {
  margin: 0 0 16px;
}

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

.prose li {
  margin: 8px 0;
}

.prose code {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--text);
}

.back-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 8px;
  font-size: 14px;
  font-weight: 550;
  color: var(--accent-text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- motion: one slow reveal, no loops ---------- */

@keyframes rise {
  from {
    transform: translateY(12px);
  }
  to {
    transform: none;
  }
}

@keyframes row-in {
  from {
    opacity: 0.82;
    transform: translateY(3px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.eyebrow {
  animation: rise 600ms var(--ease) both;
}

h1 {
  animation: rise 720ms var(--ease) 80ms both;
}

.hero-intro {
  animation: rise 720ms var(--ease) 160ms both;
}

.wire {
  animation: rise 800ms var(--ease) 120ms both;
}

.wire-row {
  animation: row-in 480ms var(--ease) both;
}

.wire-row:nth-child(1) {
  animation-delay: 280ms;
}
.wire-row:nth-child(2) {
  animation-delay: 325ms;
}
.wire-row:nth-child(3) {
  animation-delay: 370ms;
}
.wire-row:nth-child(4) {
  animation-delay: 415ms;
}
.wire-row:nth-child(5) {
  animation-delay: 460ms;
}
.wire-row:nth-child(6) {
  animation-delay: 505ms;
}
.wire-row:nth-child(7) {
  animation-delay: 550ms;
}
.wire-row:nth-child(8) {
  animation-delay: 595ms;
}
.wire-row:nth-child(9) {
  animation-delay: 640ms;
}
.wire-row:nth-child(10) {
  animation-delay: 685ms;
}

/* ---------- responsive ---------- */

@media (max-width: 1080px) {
  :root {
    --label-col: 120px;
  }

  .beat {
    grid-template-columns: 40px minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 20px 32px;
  }

  .platform {
    grid-template-columns: 76px minmax(0, 1fr) auto;
    gap: 12px;
  }
}

@media (max-width: 900px) {
  .head-nav {
    display: none;
  }

  .head-cta {
    margin-left: auto;
  }

  .hero-body {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-intro {
    max-width: 600px;
  }

  .band-grid,
  .who-head,
  .keys-head {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .band-grid > .label {
    margin-bottom: 8px;
  }

  .sec-head {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    align-items: start;
  }

  .sec-intro {
    max-width: 62ch;
  }

  .beat {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 16px 24px;
  }

  .beat-spec {
    grid-column: 2;
    max-width: 360px;
  }

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

  .who-list li {
    padding: 24px 24px 0 0;
    border-right: 1px solid var(--line);
    border-top: 1px solid var(--line);
  }

  .who-list li + li {
    padding-left: 24px;
  }

  .who-list li:nth-child(2n) {
    padding-right: 0;
    border-right: 0;
  }

  .who-list li:nth-child(-n + 2) {
    border-top: 0;
  }

  .keys-head {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

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

  .key-list li:nth-child(3) {
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .key-list li:nth-child(4) {
    border-top: 1px solid var(--line);
  }

  .install-body {
    grid-template-columns: minmax(0, 1fr);
  }

  .privacy-grid {
    grid-template-columns: minmax(0, 1fr);
    border-top: 0;
  }

  .privacy-col {
    padding: 24px 0 0;
    border-top: 1px solid var(--line);
  }

  .privacy-col + .privacy-col {
    padding-left: 0;
    border-left: 0;
  }

  .foot-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .foot-nav {
    justify-content: flex-start;
    margin-left: -8px;
  }
}

@media (max-width: 640px) {
  :root {
    --gutter: 20px;
  }

  .site-head-inner {
    min-height: 64px;
    gap: 16px;
  }

  .brand-version {
    display: none;
  }

  .head-cta {
    padding: 0 14px;
  }

  .hero {
    padding-block: 40px 72px;
  }

  h1 {
    margin-top: 20px;
  }

  .hero-body {
    margin-top: 32px;
  }

  .dl-controls {
    flex-direction: column;
  }

  .dl-controls .btn-primary {
    width: 100%;
  }

  .wire-host,
  .wire-meta {
    display: none;
  }

  .wire-head,
  .wire-row {
    grid-template-columns: 88px 22px minmax(0, 1fr);
    gap: 8px;
    padding-inline: 12px;
  }

  .wire-head span:nth-child(4),
  .wire-head span:nth-child(5) {
    display: none;
  }

  .wire-row {
    grid-template-rows: auto auto;
    row-gap: 2px;
    min-height: 0;
    padding-block: 8px;
  }

  .w-time,
  .w-dir,
  .w-topic {
    grid-row: 1;
  }

  .w-payload {
    grid-column: 3;
    grid-row: 2;
    font-size: 11px;
  }

  .w-qos {
    display: none;
  }

  .wire-bar {
    padding-inline: 12px;
  }

  .wire-foot {
    padding-inline: 12px;
    font-size: 11px;
  }

  .promise-line {
    max-width: 100%;
  }

  .beat {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    padding-block: 28px;
  }

  .beat-index {
    padding-top: 0;
  }

  .beat-spec {
    grid-column: 1;
    margin-top: 4px;
  }

  .who-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .who-list li,
  .who-list li + li,
  .who-list li:nth-child(2n) {
    padding: 24px 0 0;
    border-right: 0;
    border-top: 1px solid var(--line);
  }

  .who-list li:first-child {
    border-top: 0;
  }

  .who-list li:last-child {
    padding-bottom: 0;
  }

  .key-list li,
  .key-list li:first-child,
  .key-list li:nth-child(3) {
    padding: 16px 0;
    border-left: 0;
  }

  .key-list li:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

  .platform {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 4px 12px;
    padding: 16px 0 16px 12px;
  }

  .platform-name {
    grid-column: 1;
    grid-row: 1;
  }

  .platform-tag {
    grid-column: 2;
    grid-row: 1;
    text-align: right;
  }

  .platform-note {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .privacy-col {
    padding-top: 24px;
  }

  .foot-meta {
    margin-top: 0;
  }
}

@media (max-width: 380px) {
  .brand-word {
    font-size: 15px;
  }

  .eyebrow {
    font-size: 10px;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
