/* ==========================================================================
   SD Core — website stylesheet
   Warm editorial surfaces, precise product grid, native-data feel.
   ========================================================================== */

@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("../fonts/plus-jakarta-sans-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("../fonts/instrument-sans-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-stretch: 100%;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/jetbrains-mono-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
}

:root {
  --paper: #fbfaf6;
  --paper-2: #f4efe6;
  --paper-3: #eae2d5;
  --surface: #fffdf9;
  --ink: #191510;
  --ink-2: #403a32;
  --muted: #6b6257;
  --muted-2: #756a5d;
  --line: #ded5c7;
  --line-strong: #c9bdac;
  --orange: #e85d2a;
  --orange-dark: #c4471f;
  --orange-soft: #fbe9df;
  --teal: #0e6b66;
  --teal-dark: #084b48;
  --teal-soft: #dceee9;
  --plum: #694c85;
  --plum-soft: #ece4f3;
  --olive: #5f6f36;
  --olive-soft: #e8edd9;
  --ink-card: #1d1914;
  --ink-card-2: #282219;
  --footer: #17130f;
  --white: #fffdf9;
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --shadow-sm: 0 1px 2px rgba(25, 21, 16, 0.04), 0 4px 14px rgba(25, 21, 16, 0.04);
  --shadow-md: 0 4px 10px rgba(25, 21, 16, 0.05), 0 18px 44px rgba(25, 21, 16, 0.08);
  --shadow-lg: 0 30px 80px rgba(25, 21, 16, 0.14);
  --font-display: "Plus Jakarta Sans", "Segoe UI", sans-serif;
  --font-body: "Instrument Sans", "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "Cascadia Mono", monospace;
  --container: 1180px;
  --header-h: 76px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.nav-open { overflow: hidden; }

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
button, input, textarea, select { font: inherit; }
button { color: inherit; }
::selection { background: var(--orange); color: var(--white); }

h1, h2, h3, h4, h5 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.06;
  text-wrap: balance;
}
p { margin: 0; }
ul, ol { margin: 0; }
figure { margin: 0; }
code, kbd, pre { font-family: var(--font-mono); }

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

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  font-size: 14px;
  font-weight: 700;
  transform: translateY(-180%);
  transition: transform 160ms ease;
}
.skip-link:focus { transform: translateY(0); }

.container {
  width: min(calc(100% - 48px), var(--container));
  margin-inline: auto;
}
.container--narrow { width: min(calc(100% - 48px), 860px); margin-inline: auto; }

.icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: 0 0 auto;
}
.icon--sm { width: 16px; height: 16px; }
.icon--lg { width: 26px; height: 26px; }
.icon--fill { fill: currentColor; stroke: none; }

.section {
  padding: 92px 0;
  position: relative;
}
.section--tight { padding: 62px 0; }
.section--paper { background: var(--paper-2); border-block: 1px solid var(--line); }
.section--surface { background: var(--surface); border-block: 1px solid var(--line); }
.section--ink {
  background: var(--ink-card);
  color: var(--white);
  border-block: 1px solid #373028;
}
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 38px;
}
.section-head__copy { max-width: 690px; }
.section-head h2 {
  font-size: clamp(34px, 4vw, 52px);
  margin-top: 12px;
}
.section-head p {
  margin-top: 15px;
  color: var(--muted);
  font-size: 17px;
  max-width: 630px;
}
.section--ink .section-head p { color: #b9aea0; }
.section-head__aside { flex: 0 0 auto; padding-bottom: 5px; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--orange-dark);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1.2;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 20px;
  height: 1.5px;
  background: currentColor;
}
.section--ink .eyebrow { color: #ff936b; }
.lede { font-size: 19px; line-height: 1.65; color: var(--ink-2); }
.muted { color: var(--muted); }
.mono { font-family: var(--font-mono); }
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 253, 249, 0.7);
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.055em;
  line-height: 1.35;
  text-transform: uppercase;
  white-space: nowrap;
}
.tag--orange { background: var(--orange-soft); border-color: #f2c5b2; color: #8f3314; }
.tag--teal { background: var(--teal-soft); border-color: #bbe0d9; color: var(--teal-dark); }
.tag--plum { background: var(--plum-soft); border-color: #d9c8e5; color: #4d3264; }
.tag--olive { background: var(--olive-soft); border-color: #ced8b1; color: #455127; }
.tag--dark { background: #332c24; border-color: #4c4339; color: #e7ddd1; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 650;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 160ms var(--ease), background 160ms ease, border-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--primary {
  background: var(--orange);
  color: var(--ink);
  box-shadow: 0 8px 20px rgba(232, 93, 42, 0.2);
}
.btn--primary:hover { background: #f06b3c; color: var(--ink); box-shadow: 0 10px 26px rgba(232, 93, 42, 0.24); }
.btn--ink { background: var(--ink); color: var(--white); }
.btn--ink:hover { background: #080706; }
.btn--outline { border-color: var(--line-strong); background: transparent; color: var(--ink); }
.btn--outline:hover { border-color: var(--ink); background: var(--surface); }
.btn--quiet { color: var(--ink-2); padding-inline: 8px; }
.btn--quiet:hover { color: var(--orange-dark); transform: none; }
.btn--small { min-height: 38px; padding: 0 15px; font-size: 13px; }
.btn--large { min-height: 52px; padding: 0 26px; font-size: 15.5px; }
.btn--on-dark.btn--outline { border-color: #5b5044; color: var(--white); }
.btn--on-dark.btn--outline:hover { border-color: #a99b8c; background: #2a231c; }
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  transition: color 160ms ease, gap 160ms ease;
}
.link-arrow:hover { color: var(--orange-dark); gap: 11px; }
.link-arrow .icon { transition: transform 160ms ease; }
.link-arrow--light { color: var(--white); }
.link-arrow--light:hover { color: #ffb28f; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  background: rgba(251, 250, 246, 0.88);
  backdrop-filter: blur(18px) saturate(1.25);
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(251, 250, 246, 0.96);
  box-shadow: 0 8px 30px rgba(25, 21, 16, 0.035);
}
.header-inner {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 30px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex: 0 0 auto;
  color: var(--ink);
  text-decoration: none;
}
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.brand__name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 750;
  letter-spacing: -0.03em;
}
.brand__name span { color: var(--orange); }
.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.site-nav a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 11px;
  border-radius: 8px;
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 550;
  text-decoration: none;
  transition: color 150ms ease, background 150ms ease;
}
.site-nav a:hover { color: var(--ink); background: var(--paper-2); }
.site-nav a[aria-current="page"] { color: var(--ink); background: var(--paper-2); font-weight: 700; }
.site-nav .nav-external .icon { width: 13px; height: 13px; opacity: 0.65; }
.header-actions { display: flex; align-items: center; gap: 9px; margin-left: 8px; }
.header-github {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink-2);
  text-decoration: none;
  transition: border-color 150ms ease, color 150ms ease, background 150ms ease;
}
.header-github:hover { border-color: var(--ink); color: var(--ink); background: var(--surface); }
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-left: auto;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  cursor: pointer;
}
.nav-toggle__lines { width: 18px; height: 12px; position: relative; }
.nav-toggle__lines::before,
.nav-toggle__lines::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 1.5px;
  background: currentColor;
  transition: transform 180ms ease, top 180ms ease;
}
.nav-toggle__lines::before { top: 2px; }
.nav-toggle__lines::after { top: 9px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__lines::before { top: 5.5px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__lines::after { top: 5.5px; transform: rotate(-45deg); }

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 82px 0 58px;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 54%;
  height: 680px;
  background-image: radial-gradient(circle, rgba(122, 105, 84, 0.27) 1.1px, transparent 1.2px);
  background-size: 19px 19px;
  mask-image: linear-gradient(90deg, transparent 0%, #000 22%, #000 74%, transparent 100%);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  top: 90px;
  right: -160px;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: #f2e8d8;
  opacity: 0.65;
  pointer-events: none;
}
.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
  gap: clamp(40px, 6vw, 78px);
  align-items: center;
}
.hero__copy { max-width: 690px; }
.hero h1 {
  margin-top: 22px;
  font-size: clamp(52px, 6.25vw, 84px);
  line-height: 0.99;
  letter-spacing: -0.038em;
}
.hero h1 .accent {
  position: relative;
  display: inline-block;
  color: var(--orange-dark);
  white-space: nowrap;
}
.hero h1 .accent::after {
  content: "";
  position: absolute;
  left: 1%;
  right: 0;
  bottom: 0.055em;
  height: 0.095em;
  border-radius: 99px;
  background: var(--orange);
  opacity: 0.3;
  transform: rotate(-1.4deg);
}
.hero__sub {
  max-width: 620px;
  margin-top: 26px;
  color: var(--ink-2);
  font-size: clamp(17px, 1.55vw, 19.5px);
  line-height: 1.66;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 11px;
  margin-top: 31px;
}
.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 22px;
  margin-top: 27px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.035em;
}
.hero__meta span { display: inline-flex; align-items: center; gap: 7px; }
.hero__meta .icon { width: 14px; height: 14px; color: var(--teal); }
.hero__visual { position: relative; }
.hero__visual::before {
  content: "";
  position: absolute;
  inset: -26px -26px 32px 36px;
  border: 1px solid var(--line);
  border-radius: 34px;
  transform: rotate(2.2deg);
  background: rgba(255, 253, 249, 0.34);
  z-index: -1;
}
.record-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid #3a3229;
  border-radius: 25px;
  background: var(--ink-card);
  color: var(--white);
  box-shadow: var(--shadow-lg);
}
.record-panel__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 43px;
  padding: 0 18px;
  border-bottom: 1px solid #3a3229;
  background: #241f19;
}
.record-panel__dot { width: 7px; height: 7px; border-radius: 50%; background: #584c3f; }
.record-panel__dot:nth-child(1) { background: var(--orange); }
.record-panel__dot:nth-child(2) { background: #d4a35f; }
.record-panel__dot:nth-child(3) { background: var(--teal); }
.record-panel__label {
  margin-left: auto;
  color: #a89b8b;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}
.record-panel__body { padding: 25px 24px 22px; }
.record-panel__title {
  display: flex;
  align-items: center;
  gap: 9px;
  padding-bottom: 15px;
  border-bottom: 1px solid #3a3229;
  color: #e9dfd3;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
}
.record-panel__title .icon { color: #e6a077; }
.record-panel__count { margin-left: auto; color: #8f8274; font-size: 10px; letter-spacing: 0.02em; }
.record-table { display: grid; gap: 2px; margin-top: 10px; font-family: var(--font-mono); }
.record-row {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 8px 7px;
  border-radius: 7px;
  color: #d8cec1;
  font-size: 12.5px;
}
.record-row--active { background: #2c251d; color: var(--white); }
.record-row__id { color: #9a8d7e; font-size: 10.5px; }
.record-row--active .record-row__id { color: #e9a27d; }
.record-row__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.record-row__flag {
  padding: 3px 7px;
  border-radius: 999px;
  background: #3a3127;
  color: #a99c8d;
  font-size: 9.5px;
  letter-spacing: 0.03em;
}
.record-row--active .record-row__flag { background: #455f5b; color: #d9f0ea; }
.record-panel__divider { height: 1px; margin: 20px 0 17px; background: #3a3229; }
.record-field { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 9px; align-items: start; }
.record-field + .record-field { margin-top: 12px; }
.record-field__key {
  padding-top: 5px;
  color: #8f8274;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.record-field__values { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border: 1px solid #4b4135;
  border-radius: 6px;
  background: #2d261e;
  color: #e5dacd;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.02em;
}
.chip--teal { border-color: #2e5e58; background: #163d39; color: #c9ece4; }
.chip--orange { border-color: #713f28; background: #482718; color: #ffd0b9; }
.chip--dashed { border-style: dashed; color: #9d9081; background: transparent; }
.record-panel__note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  color: #a89b8b;
  font-size: 11.5px;
}
.record-panel__note .icon { width: 14px; height: 14px; color: #e6a077; }
.hero-note {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  max-width: 390px;
  margin: 19px 4px 0 auto;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.55;
}
.hero-note__num {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--orange-dark);
  font-family: var(--font-mono);
  font-size: 9px;
}

/* Proof strip */
.proof-strip {
  border-block: 1px solid var(--line);
  background: rgba(255, 253, 249, 0.6);
}
.proof-strip__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px 28px;
  flex-wrap: wrap;
  padding-top: 19px;
  padding-bottom: 19px;
}
.proof-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.proof-item .icon { width: 16px; height: 16px; color: var(--teal); }
.proof-item strong { color: var(--ink-2); font-weight: 700; }
.proof-divider { width: 1px; height: 17px; background: var(--line); }

/* Edition grid */
.edition-group-label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.edition-group-label::after { content: ""; height: 1px; flex: 1; background: var(--line); }
.edition-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.edition-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 27px 27px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: transform 190ms var(--ease), box-shadow 190ms var(--ease), border-color 190ms ease;
}
.edition-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
}
.edition-card--solo { background: #f9f5ed; }
.edition-card__top { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.edition-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  border: 1px solid #f1c6b4;
  background: var(--orange-soft);
  color: var(--orange-dark);
}
.edition-icon .icon { width: 23px; height: 23px; }
.edition-icon--teal { border-color: #b7ddd7; background: var(--teal-soft); color: var(--teal-dark); }
.edition-icon--plum { border-color: #d9c8e5; background: var(--plum-soft); color: #4d3264; }
.edition-icon--olive { border-color: #ced8b1; background: var(--olive-soft); color: #455127; }
.edition-card h3 { margin-top: 21px; font-size: 27px; letter-spacing: -0.03em; }
.edition-card h3 a { text-decoration: none; }
.edition-card h3 a::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.edition-card p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}
.edition-card ul {
  display: grid;
  gap: 7px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  color: var(--ink-2);
  font-size: 13px;
}
.edition-card li { display: flex; align-items: center; gap: 8px; }
.edition-card li .icon { width: 14px; height: 14px; color: var(--teal); }
.edition-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.edition-card__version {
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.edition-card__link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}
.edition-card__link .icon { width: 15px; height: 15px; transition: transform 160ms ease; }
.edition-card:hover .edition-card__link .icon { transform: translateX(3px); }
.edition-card__link:hover { color: var(--orange-dark); }

/* Comparison */
.compare-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.compare {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font-size: 13.5px;
}
.compare th,
.compare td { padding: 15px 18px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.compare tr:last-child td { border-bottom: 0; }
.compare thead th {
  background: var(--paper-2);
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.compare tbody th { width: 170px; color: var(--ink-2); font-weight: 650; }
.compare td { color: var(--muted); }
.compare td strong { color: var(--ink-2); font-weight: 650; }
.compare .compare-product { color: var(--ink); font-weight: 700; }

/* Features */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.feature-card {
  position: relative;
  min-height: 218px;
  padding: 27px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.feature-card:hover { border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.feature-card__icon {
  display: grid;
  place-items: center;
  width: 41px;
  height: 41px;
  border-radius: 11px;
  background: var(--paper-2);
  color: var(--teal);
}
.feature-card__icon .icon { width: 21px; height: 21px; }
.feature-card h3 { margin-top: 18px; font-size: 20px; letter-spacing: -0.025em; }
.feature-card p { margin-top: 9px; color: var(--muted); font-size: 14px; line-height: 1.62; }
.feature-card__num {
  position: absolute;
  top: 27px;
  right: 25px;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 10px;
}

/* Data levels */
.levels {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 32px;
}
.level {
  position: relative;
  min-height: 160px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.level::after {
  content: "";
  position: absolute;
  top: 28px;
  right: -7px;
  width: 13px;
  height: 1px;
  background: var(--line-strong);
}
.level:last-child::after { display: none; }
.level__num {
  color: var(--orange-dark);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
}
.level h3 { margin-top: 18px; font-size: 18px; }
.level p { margin-top: 7px; color: var(--muted); font-size: 12.5px; line-height: 1.55; }
.level__sample {
  display: inline-block;
  margin-top: 13px;
  padding: 3px 7px;
  border-radius: 4px;
  background: var(--teal-soft);
  color: var(--teal-dark);
  font-family: var(--font-mono);
  font-size: 9.5px;
}

/* Native split */
.native-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(34px, 6vw, 78px);
  align-items: center;
}
.native-copy h2 { margin-top: 12px; font-size: clamp(34px, 4vw, 50px); }
.native-copy > p { margin-top: 18px; color: #b9aea0; font-size: 16.5px; }
.native-copy .link-arrow { margin-top: 24px; }
.native-cards { display: grid; gap: 12px; }
.native-card {
  padding: 23px;
  border: 1px solid #443c33;
  border-radius: var(--radius);
  background: #241f19;
}
.native-card__head { display: flex; align-items: center; gap: 10px; }
.native-card__head .icon { width: 19px; height: 19px; color: #e9a27d; }
.native-card__head h3 { font-size: 18px; letter-spacing: -0.02em; }
.native-card p { margin-top: 8px; color: #b9aea0; font-size: 13.5px; line-height: 1.6; }
.native-card__chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.native-chip {
  padding: 4px 8px;
  border: 1px solid #4a4137;
  border-radius: 5px;
  color: #cfc3b5;
  font-family: var(--font-mono);
  font-size: 9.5px;
}

/* Terminal / code showcase */
.showcase-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(36px, 6vw, 76px);
  align-items: center;
}
.showcase-copy h2 { margin-top: 12px; font-size: clamp(34px, 4vw, 50px); }
.showcase-copy p { margin-top: 17px; color: var(--muted); font-size: 16.5px; }
.showcase-list {
  display: grid;
  gap: 11px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  color: var(--ink-2);
  font-size: 13.5px;
}
.showcase-list li { display: flex; align-items: flex-start; gap: 9px; }
.showcase-list .icon { width: 15px; height: 15px; margin-top: 3px; color: var(--teal); }
.code-window {
  overflow: hidden;
  border: 1px solid #3a3229;
  border-radius: 20px;
  background: var(--ink-card);
  box-shadow: var(--shadow-lg);
}
.code-window__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 43px;
  padding: 0 16px;
  border-bottom: 1px solid #3a3229;
  background: #241f19;
}
.code-window__title {
  margin-left: 6px;
  color: #9f9283;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.04em;
}
.code-copy {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-left: auto;
  padding: 5px 8px;
  border: 1px solid #4a4137;
  border-radius: 5px;
  background: transparent;
  color: #b8aa9a;
  font-family: var(--font-mono);
  font-size: 9.5px;
  cursor: pointer;
}
.code-copy:hover { color: var(--white); border-color: #786858; }
.code-copy .icon { width: 12px; height: 12px; }
.code-window pre {
  margin: 0;
  padding: 22px 22px 25px;
  overflow-x: auto;
  color: #ded4c7;
  font-size: 12.5px;
  line-height: 1.8;
  tab-size: 2;
}
.code-window .c-comment { color: #7f914f; }
.code-window .c-key { color: #f39a70; }
.code-window .c-str { color: #a7d5c9; }
.code-window .c-prompt { color: #e9a27d; user-select: none; }
.code-window .c-dim { color: #948677; }
.install-copy {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ink-2);
}
.install-copy span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.install-copy button {
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  padding: 2px;
}

/* Current release */
.release-list {
  border-top: 1px solid var(--line);
}
.release-row {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(130px, 0.55fr) minmax(130px, 0.55fr) auto;
  align-items: center;
  gap: 24px;
  padding: 19px 4px;
  border-bottom: 1px solid var(--line);
}
.release-row__product { display: flex; align-items: center; gap: 14px; min-width: 0; }
.release-row__icon {
  display: grid;
  place-items: center;
  width: 37px;
  height: 37px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--teal);
}
.release-row__icon .icon { width: 18px; height: 18px; }
.release-row__name { font-size: 14.5px; font-weight: 700; line-height: 1.25; }
.release-row__file {
  margin-top: 4px;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 9.5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.release-row__meta { color: var(--muted); font-size: 12px; }
.release-row__meta span { display: block; }
.release-row__meta small {
  display: block;
  margin-bottom: 2px;
  color: var(--muted-2);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.release-row__action { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.release-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 21px;
  color: var(--muted);
  font-size: 12.5px;
}
.release-foot .link-arrow { flex: 0 0 auto; }

/* Community */
.community-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr 0.85fr;
  gap: 16px;
}
.community-card {
  display: flex;
  flex-direction: column;
  min-height: 250px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  text-decoration: none;
  transition: transform 180ms var(--ease), border-color 160ms ease, box-shadow 160ms ease;
}
a.community-card:hover { transform: translateY(-3px); border-color: var(--line-strong); box-shadow: var(--shadow-md); }
.community-card--dark { background: var(--ink-card); border-color: #3a3229; color: var(--white); }
.community-card__icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--paper-2);
  color: var(--teal);
}
.community-card--dark .community-card__icon { background: #2d261e; color: #e9a27d; }
.community-card h3 { margin-top: 22px; font-size: 22px; letter-spacing: -0.025em; }
.community-card p { margin-top: 8px; color: var(--muted); font-size: 13.5px; line-height: 1.6; }
.community-card--dark p { color: #b9aea0; }
.community-card__link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: auto;
  padding-top: 24px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}
.community-card--dark .community-card__link { color: var(--white); }
.community-card__links { display: flex; flex-wrap: wrap; gap: 4px 22px; margin-top: auto; }
.community-card__links .community-card__link { margin-top: 0; text-decoration: none; }
.community-card__links .community-card__link:hover { color: var(--teal); text-decoration: underline; }
.community-card__link .icon { width: 15px; height: 15px; }

/* CTA band */
.cta-band {
  position: relative;
  overflow: hidden;
  padding: 65px 0;
  background: var(--orange);
  color: var(--ink);
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(25, 21, 16, 0.16) 1px, transparent 1.2px);
  background-size: 22px 22px;
  mask-image: linear-gradient(90deg, #000, transparent 72%);
}
.cta-band__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}
.cta-band h2 { max-width: 720px; font-size: clamp(34px, 4.3vw, 55px); letter-spacing: -0.035em; }
.cta-band p { max-width: 560px; margin-top: 12px; color: #3a1508; font-size: 16px; }
.cta-band .eyebrow { color: #321006; }
.cta-band .btn--ink { flex: 0 0 auto; }

/* Footer */
.site-footer {
  background: var(--footer);
  color: var(--white);
  padding: 64px 0 26px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 0.8fr 0.8fr 1fr;
  gap: 50px;
}
.footer-brand .brand__name { color: var(--white); }
.footer-brand p {
  max-width: 310px;
  margin-top: 17px;
  color: #a99d8f;
  font-size: 13.5px;
  line-height: 1.68;
}
.footer-brand__badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 20px;
  padding: 5px 10px;
  border: 1px solid #3c342c;
  border-radius: 999px;
  color: #c1b5a7;
  font-family: var(--font-mono);
  font-size: 9.5px;
}
.footer-brand__badge i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #78b28f;
  box-shadow: 0 0 0 3px rgba(120, 178, 143, 0.12);
}
.footer-heading {
  color: #8d8072;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.footer-links { display: grid; gap: 9px; margin-top: 17px; padding: 0; list-style: none; }
.footer-links a {
  color: #cdc2b5;
  font-size: 13px;
  text-decoration: none;
  transition: color 150ms ease;
}
.footer-links a:hover { color: var(--white); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 52px;
  padding-top: 20px;
  border-top: 1px solid #332c25;
  color: #938678;
  font-size: 11.5px;
}
.footer-bottom__links { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-bottom a { color: #a99d8f; text-decoration: none; }
.footer-bottom a:hover { color: var(--white); }
.footer-license { color: #8d8072; font-size: 10.5px; }

/* Product pages */
.product-hero {
  position: relative;
  overflow: hidden;
  padding: 38px 0 74px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, var(--paper) 0%, #f7f2e9 100%);
}
.product-hero::before {
  content: "";
  position: absolute;
  top: -90px;
  right: -80px;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  background: var(--accent-soft, var(--orange-soft));
  opacity: 0.55;
}
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  position: relative;
  z-index: 1;
  color: var(--muted-2);
  font-size: 11.5px;
}
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--orange-dark); }
.breadcrumbs .icon { width: 12px; height: 12px; }
.product-head {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
  margin-top: 36px;
}
.product-title-row { display: flex; align-items: center; gap: 14px; }
.product-title-row .edition-icon { width: 52px; height: 52px; border-radius: 15px; }
.product-title-row .edition-icon .icon { width: 27px; height: 27px; }
.product-kicker { color: var(--orange-dark); font-size: 11px; font-weight: 700; letter-spacing: 0.13em; text-transform: uppercase; }
.product-head h1 { margin-top: 19px; font-size: clamp(44px, 5.4vw, 68px); letter-spacing: -0.04em; }
.product-head__sub { max-width: 650px; margin-top: 20px; color: var(--ink-2); font-size: 19px; line-height: 1.62; }
.product-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 27px; }
.product-meta-line { display: flex; flex-wrap: wrap; gap: 8px 19px; margin-top: 22px; color: var(--muted); font-size: 11.5px; }
.product-meta-line span { display: inline-flex; align-items: center; gap: 6px; }
.product-meta-line .icon { width: 13px; height: 13px; color: var(--teal); }
.fact-card dl { margin: 0; }
.fact-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.fact-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 19px;
  border-bottom: 1px solid var(--line);
  background: var(--paper-2);
}
.fact-card__head strong { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; }
.fact-row {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 12px;
  padding: 13px 19px;
  border-bottom: 1px solid var(--line);
  font-size: 12.5px;
}
.fact-row:last-child { border-bottom: 0; }
.fact-row dt { color: var(--muted-2); font-size: 10.5px; font-weight: 600; letter-spacing: 0.055em; text-transform: uppercase; }
.fact-row dd { margin: 0; color: var(--ink-2); }
.fact-row dd strong { color: var(--ink); }
.fact-row code { font-size: 10.5px; color: var(--teal-dark); overflow-wrap: anywhere; }
.product-section { padding: 78px 0; }
.product-section--paper { background: var(--paper-2); border-block: 1px solid var(--line); }
.product-section--dark { background: var(--ink-card); color: var(--white); }
.use-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
.use-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.use-card__num { color: var(--orange-dark); font-family: var(--font-mono); font-size: 10px; }
.use-card h3 { margin-top: 22px; font-size: 19px; }
.use-card p { margin-top: 8px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.feature-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 42px;
  border-top: 1px solid var(--line);
}
.feature-list__item {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 15px;
  padding: 23px 0;
  border-bottom: 1px solid var(--line);
}
.feature-list__icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 9px; background: var(--paper-2); color: var(--teal); }
.feature-list__icon .icon { width: 18px; height: 18px; }
.feature-list__item h3 { font-size: 16px; }
.feature-list__item p { margin-top: 5px; color: var(--muted); font-size: 12.5px; line-height: 1.6; }
.product-section--dark .feature-list { border-color: #3a3229; }
.product-section--dark .feature-list__item { border-color: #3a3229; }
.product-section--dark .feature-list__icon { background: #2d261e; color: #e9a27d; }
.product-section--dark .feature-list__item p { color: #b9aea0; }

.split-feature {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(36px, 6vw, 80px);
  align-items: center;
}
.split-feature--reverse .split-feature__visual { order: 2; }
.split-feature h2 { margin-top: 12px; font-size: clamp(31px, 3.7vw, 45px); }
.split-feature p { margin-top: 16px; color: var(--muted); font-size: 15.5px; }
.split-feature__visual { min-width: 0; }
.data-note {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.data-note__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.data-note__head strong { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.06em; }
.data-note__head span { color: var(--muted-2); font-family: var(--font-mono); font-size: 9px; }
.data-note__tree { margin-top: 21px; font-family: var(--font-mono); font-size: 12px; line-height: 2.1; }
.data-note__tree .tree-label { display: inline-block; min-width: 72px; color: var(--orange-dark); }
.data-note__tree .tree-value { color: var(--ink-2); }
.data-note__tree .tree-muted { color: var(--muted-2); }
.data-note__foot { margin-top: 20px; padding-top: 15px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11.5px; }
.install-steps { display: grid; gap: 13px; margin-top: 28px; counter-reset: step; }
.install-step {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  counter-increment: step;
}
.install-step::before {
  content: counter(step, decimal-leading-zero);
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--orange-soft);
  color: var(--orange-dark);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
}
.install-step h3 { font-size: 15px; }
.install-step p { margin-top: 5px; color: var(--muted); font-size: 12.5px; line-height: 1.6; }
.install-step code { padding: 2px 5px; border-radius: 4px; background: var(--paper-2); color: var(--teal-dark); font-family: var(--font-mono); font-size: 10.5px; }
.spec-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.spec-table th, .spec-table td { padding: 15px 4px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.spec-table th { width: 30%; color: var(--muted-2); font-size: 10.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.spec-table td { color: var(--ink-2); font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; }
.spec-table code { font-family: var(--font-mono); font-size: 11px; color: var(--teal-dark); overflow-wrap: anywhere; }
.edition-switcher {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.edition-switcher p { color: var(--muted); font-size: 13px; }
.edition-switcher strong { color: var(--ink); }
.docs-mini-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.docs-mini {
  display: flex;
  flex-direction: column;
  min-height: 150px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  text-decoration: none;
  transition: border-color 160ms ease, transform 160ms ease;
}
.docs-mini:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.docs-mini .icon { width: 19px; height: 19px; color: var(--teal); }
.docs-mini h3 { margin-top: 18px; font-size: 15px; }
.docs-mini p { margin-top: 5px; color: var(--muted); font-size: 11.5px; line-height: 1.55; }
.docs-mini span { margin-top: auto; padding-top: 16px; color: var(--orange-dark); font-size: 11px; font-weight: 700; }

/* Inner-page layout */
.page-hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 56px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 82% 12%, var(--orange-soft), transparent 30%),
    var(--paper);
}
.page-hero--center { text-align: center; }
.page-hero--center .page-hero__lead { margin-inline: auto; }
.page-hero__eyebrow { color: var(--orange-dark); font-size: 10.5px; font-weight: 700; letter-spacing: 0.13em; text-transform: uppercase; }
.page-hero h1 { max-width: 880px; margin-top: 14px; font-size: clamp(44px, 5.8vw, 68px); letter-spacing: -0.04em; }
.page-hero--center h1 { margin-inline: auto; }
.page-hero__lead { max-width: 660px; margin-top: 19px; color: var(--ink-2); font-size: 18px; line-height: 1.65; }
.page-section { padding: 70px 0; }
.page-section--paper { background: var(--paper-2); border-block: 1px solid var(--line); }
.page-section--tight { padding: 44px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; margin-bottom: 32px; }
.section-head > div { max-width: 680px; }
.section-head h2 { margin-top: 10px; font-size: clamp(30px, 3.6vw, 44px); }
.section-head p { margin-top: 12px; color: var(--muted); font-size: 15px; }
.section-head .link-arrow { flex: 0 0 auto; padding-bottom: 5px; }
.note {
  display: flex;
  gap: 14px;
  padding: 17px 19px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink-2);
  font-size: 12.5px;
  line-height: 1.65;
}
.note .icon { flex: 0 0 auto; width: 18px; height: 18px; margin-top: 2px; color: var(--teal); }
.note strong { color: var(--ink); }
.note--warm { background: var(--orange-soft); border-color: #edc8b6; }
.note--warm .icon { color: var(--orange-dark); }
.note code { padding: 2px 5px; border-radius: 4px; background: rgba(255, 255, 255, 0.55); font-family: var(--font-mono); font-size: 10.5px; }

/* Downloads */
.download-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.download-card {
  display: flex;
  flex-direction: column;
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.download-card__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.download-card__identity { display: flex; align-items: center; gap: 13px; }
.download-card__identity h2 { font-size: 20px; letter-spacing: -0.025em; }
.download-card__identity p { margin-top: 3px; color: var(--muted-2); font-size: 10.5px; font-family: var(--font-mono); }
.download-card .edition-icon { width: 42px; height: 42px; flex: 0 0 auto; }
.download-card .edition-icon .icon { width: 21px; height: 21px; }
.download-card__desc { margin-top: 18px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.download-card__meta { display: flex; flex-wrap: wrap; gap: 7px 18px; margin-top: 17px; padding: 13px 0; border-block: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.download-card__meta span { display: inline-flex; align-items: center; gap: 5px; }
.download-card__meta .icon { width: 12px; height: 12px; color: var(--teal); }
.download-card__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 20px; }
.download-card__file { margin-top: 14px; color: var(--muted-2); font-family: var(--font-mono); font-size: 9.5px; overflow-wrap: anywhere; }
.checksum {
  margin-top: 12px;
  padding: 11px 13px;
  border-radius: 8px;
  background: var(--paper-2);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9.5px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

/* Documentation */
.doc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.doc-card {
  display: flex;
  flex-direction: column;
  min-height: 290px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.doc-card__top { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.doc-card__top .edition-icon { width: 44px; height: 44px; }
.doc-card__top .edition-icon .icon { width: 22px; height: 22px; }
.doc-card__index { color: var(--line-strong); font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; }
.doc-card h2 { margin-top: 24px; font-size: 24px; letter-spacing: -0.03em; }
.doc-card p { margin-top: 10px; color: var(--muted); font-size: 13.5px; line-height: 1.62; }
.doc-card__links { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 20px; }
.doc-card__links a {
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--ink-2);
  font-size: 10.5px;
  text-decoration: none;
}
.doc-card__links a:hover { border-color: var(--orange); color: var(--orange-dark); }
.doc-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-top: auto; padding-top: 24px; border-top: 1px solid var(--line); }
.doc-card__foot span { color: var(--muted-2); font-size: 10.5px; }
.doc-card__foot a { color: var(--ink); font-size: 12px; font-weight: 700; text-decoration: none; }
.doc-card__foot a:hover { color: var(--orange-dark); }

/* Community page */
.community-hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 20px; margin-top: 10px; }
.forum-panel {
  position: relative;
  overflow: hidden;
  min-height: 360px;
  padding: 34px;
  border-radius: var(--radius-xl);
  background: var(--ink-card);
  color: var(--white);
}
.forum-panel::after {
  content: "";
  position: absolute;
  right: -80px;
  bottom: -120px;
  width: 330px;
  height: 330px;
  border: 1px solid #443b31;
  border-radius: 50%;
  box-shadow: 0 0 0 35px #211c16, 0 0 0 36px #3c342b, 0 0 0 70px #1e1a15;
  opacity: 0.8;
}
.forum-panel__badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 9px;
  border: 1px solid #50463b;
  border-radius: 999px;
  color: #cbbeb0;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.04em;
}
.forum-panel__badge i { width: 5px; height: 5px; border-radius: 50%; background: #d8a35c; }
.forum-panel h2 { position: relative; z-index: 1; margin-top: 28px; font-size: clamp(32px, 4vw, 48px); letter-spacing: -0.035em; }
.forum-panel p { position: relative; z-index: 1; max-width: 420px; margin-top: 15px; color: #b9aea0; font-size: 14px; line-height: 1.65; }
.forum-panel__actions { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 9px; margin-top: 28px; }
.forum-topics { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 7px; margin-top: 36px; }
.forum-topics span {
  padding: 6px 9px;
  border: 1px solid #443b31;
  border-radius: 5px;
  color: #bcb0a2;
  font-family: var(--font-mono);
  font-size: 9px;
}
.support-panel {
  display: flex;
  flex-direction: column;
  min-height: 360px;
  padding: 34px;
  border: 1px solid #e9bda7;
  border-radius: var(--radius-xl);
  background: var(--orange-soft);
}
.support-panel .icon { width: 38px; height: 38px; color: var(--orange-dark); }
.support-panel h2 { margin-top: 26px; font-size: 34px; letter-spacing: -0.035em; }
.support-panel p { margin-top: 12px; color: #6b4535; font-size: 13.5px; line-height: 1.65; }
.support-panel .btn { align-self: flex-start; margin-top: auto; }
.support-panel__small { margin-top: 12px; color: #8b5c48; font-family: var(--font-mono); font-size: 9.5px; }
.channel-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.channel-card {
  display: flex;
  flex-direction: column;
  min-height: 200px;
  padding: 23px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  text-decoration: none;
  transition: border-color 160ms ease, transform 160ms ease;
}
.channel-card:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.channel-card .icon { width: 20px; height: 20px; color: var(--teal); }
.channel-card h3 { margin-top: 22px; font-size: 18px; }
.channel-card p { margin-top: 6px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.channel-card span { margin-top: auto; padding-top: 20px; color: var(--ink); font-size: 11.5px; font-weight: 700; }
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  position: relative;
  padding: 20px 42px 20px 0;
  cursor: pointer;
  font-size: 15px;
  font-weight: 650;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  top: 16px;
  right: 4px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 19px;
  font-weight: 400;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item__body { max-width: 800px; padding: 0 0 22px; color: var(--muted); font-size: 13.5px; line-height: 1.7; }
.faq-item__body p + p { margin-top: 9px; }
.faq-item__body a { color: var(--orange-dark); }
.contact-strip {
  display: flex;
  align-items: center;
  gap: 17px;
  padding: 23px 25px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.contact-strip .icon { width: 24px; height: 24px; color: var(--orange-dark); flex: 0 0 auto; }
.contact-strip p { color: var(--muted); font-size: 13px; }
.contact-strip strong { color: var(--ink); }

/* Utility pages */
.narrow { max-width: 820px; }
.prose h1, .prose h2, .prose h3 { letter-spacing: -0.03em; }
.prose h2 { margin-top: 40px; font-size: 31px; }
.prose h3 { margin-top: 28px; font-size: 20px; }
.prose p, .prose li { color: var(--muted); font-size: 15px; line-height: 1.75; }
.prose p { margin-top: 14px; }
.prose ul { margin-top: 14px; padding-left: 20px; }
.prose li + li { margin-top: 7px; }
.prose a { color: var(--orange-dark); }
.error-page {
  display: grid;
  place-items: center;
  min-height: 65vh;
  padding: 80px 0;
  text-align: center;
}
.error-page__code { color: var(--orange-dark); font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; }
.error-page h1 { margin-top: 18px; font-size: clamp(44px, 8vw, 82px); letter-spacing: -0.035em; }
.error-page p { max-width: 460px; margin: 17px auto 0; color: var(--muted); font-size: 16px; }
.error-page .btn { margin-top: 27px; }

/* Responsive */
@media (max-width: 1180px) {
  .hero__grid { gap: 42px; }
  .edition-grid { gap: 14px; }
  .footer-grid { gap: 35px; }
  .release-row { gap: 18px; }
}

@media (max-width: 1100px) {
  .features-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature-card:last-child { grid-column: 1 / -1; min-height: 170px; }
  .levels { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .level:nth-child(2)::after { display: none; }
  .community-grid { grid-template-columns: 1fr 1fr; }
  .community-card:first-child { grid-column: 1 / -1; min-height: 220px; }
  .release-row { grid-template-columns: minmax(0, 1.3fr) minmax(110px, 0.55fr) minmax(110px, 0.55fr) auto; }
  .product-head { grid-template-columns: minmax(0, 1fr) minmax(280px, 0.75fr); gap: 42px; }
  .download-grid { gap: 14px; }
}

@media (max-width: 900px) {
  .header-inner { height: 68px; }
  .brand { order: 1; }
  .header-actions { order: 2; margin-left: auto; }
  .nav-toggle { display: inline-flex; order: 3; margin-left: 6px; }
  .site-nav {
    position: fixed;
    top: 68px;
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 3px;
    padding: 16px 24px 24px;
    border-bottom: 1px solid var(--line);
    background: var(--paper);
    box-shadow: 0 22px 40px rgba(25, 21, 16, 0.13);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a {
    padding: 12px 10px;
    border-radius: 8px;
    font-size: 15px;
  }
  .site-nav a:hover { background: var(--paper-2); }
  .site-nav .nav-github { display: flex; }
  .header-actions .header-github { display: none; }
  body.nav-open { overflow: hidden; }
  .hero { padding-top: 64px; }
  .hero__grid, .native-grid, .showcase-grid, .product-head, .community-hero-grid, .split-feature {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero__grid { gap: 50px; }
  .hero__visual { max-width: 580px; margin-inline: auto; width: 100%; }
  .hero h1 { font-size: clamp(50px, 9vw, 74px); }
  .proof-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .proof-item:nth-child(n + 4) { display: none; }
  .edition-grid { grid-template-columns: minmax(0, 1fr); }
  .edition-card { min-height: 0; }
  .compare-wrap { overflow-x: auto; }
  .compare { min-width: 680px; }
  .native-copy { max-width: 620px; }
  .community-grid { grid-template-columns: minmax(0, 1fr); }
  .community-card:first-child { grid-column: auto; }
  .footer-grid { grid-template-columns: 1.3fr 0.7fr 0.7fr; }
  .footer-grid > :last-child { grid-column: 1 / -1; }
  .footer-links--social { display: flex; flex-wrap: wrap; gap: 18px; }
  .cta-band__inner { align-items: flex-start; flex-direction: column; }
  .product-head { gap: 38px; }
  .product-head .fact-card { max-width: 560px; }
  .split-feature--reverse .split-feature__visual { order: 0; }
  .feature-list { gap: 0 28px; }
  .use-grid, .docs-mini-grid, .channel-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .use-card:last-child, .channel-card:last-child { grid-column: 1 / -1; }
  .section-head { align-items: flex-start; flex-direction: column; gap: 15px; }
  .release-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px 20px;
    padding: 18px 2px;
  }
  .release-row__meta { display: none; }
  .release-row__action { grid-column: 2; grid-row: 1; }
  .release-row__product { grid-column: 1; grid-row: 1; }
  .release-foot { align-items: flex-start; flex-direction: column; gap: 10px; }
}

@media (max-width: 760px) {
  .container { width: min(calc(100% - 36px), 1180px); }
  .section { padding: 62px 0; }
  .page-section, .product-section { padding: 58px 0; }
  .hero { padding: 52px 0 46px; }
  .hero h1 { font-size: clamp(43px, 11vw, 62px); }
  .hero__sub { font-size: 16.5px; }
  .hero__actions .btn { flex: 1 1 auto; justify-content: center; }
  .hero__meta { gap: 9px 15px; }
  .hero__trust { font-size: 9px; }
  .record-panel { border-radius: 19px; }
  .record-panel__body { padding: 18px; }
  .record-line { grid-template-columns: 38px minmax(0, 1fr) auto; gap: 9px; }
  .record-line__meta { display: none; }
  .record-float { right: 14px; bottom: -13px; }
  .proof-strip { grid-template-columns: 1fr 1fr; }
  .proof-item:nth-child(3) { display: none; }
  .features-grid, .levels, .feature-list, .download-grid, .doc-grid,
  .use-grid, .docs-mini-grid, .channel-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .feature-card:last-child, .use-card:last-child, .channel-card:last-child { grid-column: auto; }
  .levels { gap: 8px; }
  .level { min-height: 128px; }
  .level::after { display: none; }
  .level h3 { margin-top: 12px; }
  .native-copy h2, .showcase-copy h2, .split-feature h2 { font-size: clamp(30px, 9vw, 40px); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 35px 24px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-grid > :last-child { grid-column: auto; }
  .footer-bottom { align-items: flex-start; flex-direction: column; gap: 12px; }
  .cta-band { padding: 55px 0; }
  .cta-band h2 { font-size: clamp(32px, 9vw, 44px); }
  .page-hero { padding: 52px 0 44px; }
  .page-hero h1 { font-size: clamp(38px, 10vw, 54px); }
  .page-hero__lead { font-size: 16px; }
  .product-hero { padding-top: 24px; }
  .product-head h1 { font-size: clamp(39px, 11vw, 56px); }
  .product-head__sub { font-size: 16.5px; }
  .use-card { min-height: 0; }
  .use-card h3 { margin-top: 13px; }
  .feature-list__item { grid-template-columns: 34px minmax(0, 1fr); }
  .install-step { grid-template-columns: 34px minmax(0, 1fr); padding: 17px; }
  .install-step::before { width: 32px; height: 32px; }
  .spec-table th { width: 38%; }
  .download-card, .doc-card { padding: 22px; }
  .doc-card { min-height: 0; }
  .doc-card__foot { margin-top: 22px; }
  .forum-panel, .support-panel { padding: 26px; min-height: 330px; }
  .section-head { margin-bottom: 24px; }
  .contact-strip { align-items: flex-start; }
  .community-hero-grid { gap: 14px; }
  .nav-toggle { margin-left: 2px; }
  .site-header__actions .btn--primary { padding-inline: 13px; font-size: 12px; }
}

@media (max-width: 540px) {
  .header-actions .btn--primary .btn__long { display: none; }
  .header-actions .btn--primary .icon { margin: 0; }
  .brand__name { font-size: 18px; }
  .hero h1 { font-size: clamp(39px, 12vw, 52px); }
  .hero__trust { display: none; }
  .record-line { grid-template-columns: 33px minmax(0, 1fr); }
  .record-line__meta { display: none; }
  .record-panel__head { padding: 16px 17px; }
  .record-toolbar { gap: 8px; }
  .record-chips span:last-child { display: none; }
  .proof-strip { grid-template-columns: 1fr; }
  .proof-item:nth-child(2) { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand, .footer-grid > :last-child { grid-column: auto; }
  .footer-links--social { display: grid; }
  .cta-band__inner .btn { width: 100%; justify-content: center; }
  .product-actions .btn { width: 100%; justify-content: center; }
  .fact-row { grid-template-columns: 1fr; gap: 4px; }
  .product-meta-line { gap: 7px 13px; }
  .community-card, .download-card, .doc-card, .forum-panel, .support-panel { padding: 22px; }
  .support-panel h2, .forum-panel h2 { font-size: 31px; }
  .site-nav { padding-inline: 18px; }
  .page-hero h1, .product-head h1 { font-size: clamp(36px, 12vw, 48px); }
  .record-float { display: none; }
  .install-copy span { font-size: 10px; }
  .code-window pre { font-size: 11px; padding: 18px; }
  .spec-table th, .spec-table td { font-size: 11.5px; }
  .doc-card__links a { flex: 1 1 auto; text-align: center; }
}

/* Motion and reveal */
.js .reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 500ms var(--ease), transform 500ms var(--ease);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}

/* Shared utilities */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon--tiny { width: 12px; height: 12px; }
.nav-toggle__close { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__close { display: block; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 9px; position: relative; z-index: 1; }
.cta-band .btn--outline { border-color: rgba(25, 21, 16, 0.5); color: var(--ink); }
.cta-band .btn--outline:hover { border-color: var(--ink); background: rgba(255, 255, 255, 0.16); }
.footer-note { max-width: 690px; text-align: right; color: #8d8072; font-size: 10.5px; line-height: 1.5; }
.footer-brand .footer-license { margin-top: 12px; }
.nav-github-mobile { display: none; }



/* 2.0: small note under a donate link while the PayPal link is not set */
.donate-note { display: block; margin-top: 4px; font-family: var(--font-mono); font-size: 9.5px; opacity: 0.75; }

/* 2.0: the admin suite page (tools.html) - feature rows, gallery, picture viewer */
.suite-source { margin-top: 14px; font-size: .92rem; color: var(--muted); }
.suite-feature { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 40px; align-items: center; margin: 0 0 64px; }
.suite-feature--reverse .suite-shot { order: 2; }
.suite-shot { margin: 0; }
.suite-open { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; text-align: left; font: inherit; color: inherit; }
.suite-shot img, .suite-item img { display: block; width: 100%; height: auto; border-radius: var(--radius-sm); background: #000; box-shadow: var(--shadow-md); border: 1px solid var(--line-strong); }
.suite-open:focus-visible { outline: 3px solid var(--teal); outline-offset: 4px; border-radius: var(--radius-sm); }
.suite-copy h2 { margin: 6px 0 12px; }
.suite-copy p { color: var(--muted); }
.suite-filter { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 24px; }
.suite-chip { border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); border-radius: 999px; padding: 7px 16px; font: 600 .9rem var(--font-body); cursor: pointer; }
.suite-chip[aria-pressed="true"] { background: var(--ink); color: var(--white); border-color: var(--ink); }
.suite-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px; }
.suite-item[hidden] { display: none; }
.suite-item__title { display: block; margin-top: 10px; font: 700 .98rem var(--font-display); }
.suite-item__text { display: block; margin-top: 3px; font-size: .88rem; color: var(--muted); }
.suite-dialog { width: min(1180px, 96vw); max-height: 96vh; padding: 0; border: 0; border-radius: var(--radius); background: var(--footer); color: var(--white); box-shadow: var(--shadow-lg); }
.suite-dialog::backdrop { background: rgba(10, 8, 6, .78); }
.suite-dialog__bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 14px; }
.suite-dialog__title { font: 700 1rem var(--font-display); }
.suite-dialog__nav { display: flex; gap: 6px; }
.suite-dialog__btn { width: 38px; height: 38px; border-radius: 10px; border: 1px solid rgba(255, 253, 249, .25); background: transparent; color: var(--white); font-size: 1.2rem; cursor: pointer; }
.suite-dialog__btn:hover { background: rgba(255, 253, 249, .12); }
.suite-dialog img { display: block; width: 100%; height: auto; image-rendering: auto; }
.suite-dialog__caption { margin: 0; padding: 10px 14px 14px; font-size: .92rem; color: rgba(255, 253, 249, .8); }
@media (max-width: 860px) {
  .suite-feature { grid-template-columns: 1fr; gap: 18px; margin-bottom: 44px; }
  .suite-feature--reverse .suite-shot { order: 0; }
}

/* 2.0: utilities page */
.utility-caption { margin-top: 10px; font-size: .88rem; color: var(--muted); }
.utility-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 12px; }
.utility-small { font-size: .9rem; color: var(--muted); }
.utility-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; margin: 8px 0 36px; }
.utility-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.utility-card h3 { margin: 0 0 8px; font-size: 1.05rem; }
.utility-card p { margin: 0; color: var(--muted); font-size: .95rem; }
.utility-spec { margin-top: 8px; }

.utility-intro { max-width: 760px; margin-bottom: 40px; }

/* Two download buttons per release row (SourceForge, GitHub): on narrow screens they go on their own line. */
@media (max-width: 760px) {
  .release-row__action { grid-column: 1 / -1; grid-row: 2; justify-content: flex-start; }
}

/* Live demo page (1 Dec 2026): recordings played by assets/demo/castplayer.js */
.demo-lead { max-width: 760px; margin-top: 10px; color: var(--muted); }
.demo-casts { display: grid; gap: 34px; margin-top: 28px; }
.demo-cast { margin: 0; }
.demo-cast figcaption { margin-top: 10px; color: var(--muted); font-size: 14px; line-height: 1.55; }
.castplayer { border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; overflow: hidden; }
.castplayer__screen { min-height: 120px; padding: 2px; overflow: hidden; }
.castplayer__bar { display: flex; align-items: center; gap: 12px; padding: 8px 12px; border-top: 1px solid var(--line); background: var(--surface); }
.castplayer__btn { min-width: 74px; padding: 6px 12px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--ink); color: #fff; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.castplayer__prog { flex: 1; height: 4px; border-radius: 2px; background: var(--line); overflow: hidden; }
.castplayer__fill { width: 0; height: 100%; background: var(--teal); }
.castplayer__time { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
