/* RustBlock showcase — warm paper, ink and rust. */

@font-face {
  font-family: "Instrument Sans";
  src: url("/assets/fonts/instrument-sans.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Instrument Serif";
  src: url("/assets/fonts/instrument-serif-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "JetBrains Mono";
  src: url("/assets/fonts/jetbrains-mono.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #0e1012;
  --paper-2: #16191c;
  --paper-3: #1d2125;
  --ink: #e8e5de;
  --ink-soft: #c7ced3;
  --muted: #949ca2;
  --line: #2b3238;
  --line-strong: #3a4249;
  --steel-light: #cfd6da;
  --rust: #c3ccd2;
  --rust-bright: #eef2f4;
  --rust-soft: #272d32;
  --dark: #0b0d0f;
  --dark-2: #16191c;
  --bg-deep: #090b0c;
  --panel-deep: #101315;
  --line-soft: #242a2f;
  --cream: #e8e5de;
  --ok: #7eae8a;
  --warn: #c2a15e;
  --bad: #d27468;
  --sans: "Instrument Sans", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --mono: "JetBrains Mono", "Cascadia Mono", Consolas, monospace;
  --wrap: 1240px;
  --radius: 16px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: 0.022;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

p,
h1,
h2,
h3,
h4,
figure {
  margin-top: 0;
}

::selection {
  color: var(--paper);
  background: var(--rust);
}

:focus-visible {
  outline: 2px solid var(--rust);
  outline-offset: 3px;
}

code {
  font-family: var(--mono);
  font-size: 0.86em;
}

.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;
}

.skip-link {
  position: fixed;
  top: -70px;
  left: 18px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: 7px;
  color: var(--paper);
  background: var(--ink);
  font-size: 13px;
  font-weight: 600;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 14px;
}

.wrap {
  width: min(calc(100% - 48px), var(--wrap));
  margin-inline: auto;
}

/* Top ribbon -------------------------------------------------------------- */

.topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 8px clamp(16px, 3vw, 40px);
  color: var(--muted);
  background: var(--panel-deep);
  border-bottom: 1px solid var(--line-soft);
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.topline p {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.topline a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--steel-light);
  white-space: nowrap;
  opacity: 0.92;
}

.topline a:hover {
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.topline-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #cfd6da;
  box-shadow: 0 0 0 4px rgba(207, 214, 218, 0.16);
}

/* Header ------------------------------------------------------------------ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(14, 16, 18, 0.9);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(14px);
  transition: border-color 0.25s ease, background 0.25s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(14, 16, 18, 0.96);
}

.header-inner {
  width: min(calc(100% - 48px), var(--wrap));
  margin-inline: auto;
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}

.brand img {
  width: clamp(124px, 12vw, 150px);
  height: auto;
  filter: brightness(1.06);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 27px;
  font-size: 13.5px;
  font-weight: 500;
}

.site-nav a {
  color: var(--ink-soft);
  transition: color 0.18s ease;
}

.site-nav a:hover {
  color: var(--rust);
}

.nav-source {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nav-cta {
  padding: 10px 16px;
  border-radius: 7px;
  color: var(--paper) !important;
  background: var(--ink);
  font-size: 13px;
  transition: background 0.18s ease;
}

.nav-cta:hover {
  background: var(--rust-bright);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  color: var(--ink);
  background: transparent;
  cursor: pointer;
}

.menu-toggle span:not(.sr-only) {
  display: block;
  width: 17px;
  height: 1.5px;
  margin: 4px auto;
  background: currentColor;
}

/* Shared type ------------------------------------------------------------- */

.eyebrow {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 20px;
  color: var(--rust);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: currentColor;
}

.eyebrow-light {
  color: #cfd6da;
}

h1 {
  margin-bottom: 38px;
  font-size: clamp(56px, 9.3vw, 120px);
  font-weight: 500;
  line-height: 0.9;
  letter-spacing: -0.055em;
}

h1 em,
h2 em {
  color: var(--rust);
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.02em;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(38px, 5.1vw, 66px);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.045em;
}

h3 {
  margin-bottom: 8px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.section {
  padding: clamp(78px, 9.5vw, 126px) 0;
}

.section-head {
  max-width: 880px;
  margin-bottom: 56px;
}

.section-lede {
  max-width: 650px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 16.5px;
  line-height: 1.72;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding-bottom: 4px;
  border-bottom: 1px solid currentColor;
  color: var(--rust);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.text-link span {
  transition: transform 0.18s ease;
}

.text-link:hover span {
  transform: translate(2px, -2px);
}

.text-link-light {
  color: #d6dde1;
}

/* Buttons ----------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 13px 19px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.005em;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.btn svg {
  width: 18px;
  height: 18px;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-dark {
  color: var(--paper);
  background: var(--steel-light);
  border-color: var(--steel-light);
}

.btn-dark:hover {
  background: #eef2f4;
  border-color: #eef2f4;
}

.btn-ghost {
  color: var(--ink-soft);
  border-color: var(--line-strong);
  background: transparent;
}

.btn-ghost:hover {
  border-color: var(--steel);
  color: var(--ink);
}

.btn-light {
  color: var(--paper);
  background: var(--steel-light);
  border-color: var(--steel-light);
}

.btn-light:hover {
  background: #eef2f4;
  border-color: #eef2f4;
}

.btn-meta {
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 400;
  letter-spacing: 0.04em;
  opacity: 0.62;
}

.btn-block {
  width: 100%;
  justify-content: space-between;
  padding: 15px 18px;
}

/* Hero -------------------------------------------------------------------- */

.hero {
  position: relative;
  padding: clamp(56px, 7vw, 96px) 0 0;
  overflow: hidden;
}

.hero-mark {
  position: absolute;
  top: 30px;
  right: -12%;
  z-index: 0;
  width: min(46vw, 620px);
  pointer-events: none;
  opacity: 0.07;
  filter: grayscale(1);
}

.hero > .wrap {
  position: relative;
  z-index: 1;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 48px;
  margin-bottom: 8px;
}

.hero-lede {
  max-width: 630px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.68;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-bottom: 4px;
}

.hero-note {
  margin: 28px 0 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.stage {
  margin: clamp(44px, 6vw, 74px) 0 0;
  padding: 10px;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background: #08090b;
  box-shadow:
    0 55px 100px -55px rgba(0, 0, 0, 0.85),
    0 1px 0 rgba(255, 255, 255, 0.05) inset;
}

.stage-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 3px 7px 10px;
  color: #8f979d;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.stage img {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 10px;
}

.stage figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 10px 6px 1px;
  color: #7b858b;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stage-live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.stage-live i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #7eae8a;
  box-shadow: 0 0 0 3px rgba(127, 176, 140, 0.16);
}

/* Stats ------------------------------------------------------------------- */

.stats {
  margin-top: clamp(48px, 6vw, 76px);
  padding: 40px 0;
  color: var(--cream);
  background: var(--dark);
  border-top: 1px solid #2b3238;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.stat {
  padding: 2px 0 2px clamp(18px, 3vw, 38px);
  border-left: 1px solid rgba(255, 255, 255, 0.12);
}

.stat:first-child {
  padding-left: 0;
  border-left: 0;
}

.stat strong {
  display: block;
  margin-bottom: 4px;
  font-size: clamp(38px, 4vw, 54px);
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 1;
}

.stat strong em {
  color: var(--rust-bright);
  font-style: normal;
}

.stat span {
  color: #8f979d;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.community {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-top: 32px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.community-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: #8f979d;
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.community-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #7eae8a;
  box-shadow: 0 0 0 3px rgba(127, 176, 140, 0.16);
}

.community-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin: 0;
}

.community-stats div {
  min-width: 74px;
}

.community-stats dt {
  color: #7c868c;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.community-stats dd {
  margin: 4px 0 0;
  color: var(--cream);
  font-family: var(--mono);
  font-size: 15px;
  letter-spacing: 0.02em;
}

.community-stats a:hover {
  color: var(--rust-bright);
}

/* Bento ------------------------------------------------------------------- */

.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}

.card {
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  min-height: 280px;
  padding: 27px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-2);
}

.card-tag {
  margin-bottom: 17px;
  color: #7b858b;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.card h3 {
  margin-bottom: 9px;
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.card p {
  margin-bottom: 0;
  color: #949ca2;
  font-size: 14px;
  line-height: 1.62;
}

.card-targets {
  grid-column: span 4;
  min-height: 322px;
  padding: 32px;
  color: var(--cream);
  border-color: var(--line-strong);
  background:
    radial-gradient(520px 260px at 92% 4%, rgba(166, 173, 178, 0.14), transparent 68%),
    linear-gradient(160deg, #1b2126, #121619);
}

.card-targets .card-tag {
  color: #8f979d;
}

.card-targets h3 {
  max-width: 470px;
  margin-bottom: 12px;
  font-size: clamp(27px, 2.7vw, 36px);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.02;
}

.card-targets p {
  max-width: 480px;
  color: #9aa3a9;
  font-size: 14.5px;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: auto 0 0;
  padding: 20px 0 0;
  list-style: none;
}

.chip-row li {
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 5px;
  color: #d6dde1;
  font-family: var(--mono);
  font-size: 10.5px;
}

.chip-row .chip-more {
  color: var(--rust-bright);
  border-color: rgba(166, 173, 178, 0.42);
  background: rgba(166, 173, 178, 0.1);
}

.chip-row-light {
  margin-top: auto;
}

.chip-row-light li {
  color: #cfd6da;
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.04);
}

.cores {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 72px;
  margin-top: auto;
  padding-top: 24px;
}

.cores span {
  flex: 1;
  height: 34%;
  border-radius: 2px 2px 0 0;
  background: #5b656c;
}

.cores span:nth-child(3n) {
  background: var(--rust);
}

.cores span:nth-child(1) { height: 30%; }
.cores span:nth-child(2) { height: 54%; }
.cores span:nth-child(3) { height: 44%; }
.cores span:nth-child(4) { height: 68%; }
.cores span:nth-child(5) { height: 38%; }
.cores span:nth-child(6) { height: 76%; }
.cores span:nth-child(7) { height: 48%; }
.cores span:nth-child(8) { height: 62%; }
.cores span:nth-child(9) { height: 34%; }
.cores span:nth-child(10) { height: 72%; }
.cores span:nth-child(11) { height: 42%; }
.cores span:nth-child(12) { height: 64%; }
.cores span:nth-child(13) { height: 30%; }
.cores span:nth-child(14) { height: 58%; }
.cores span:nth-child(15) { height: 46%; }
.cores span:nth-child(16) { height: 70%; }

.verify-list,
.fit-list {
  margin: auto 0 0;
  padding: 16px 0 0;
  list-style: none;
}

.verify-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 9px 0;
  border-top: 1px solid #2b3238;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.verify-list li:first-child {
  border-top: 0;
}

.verify-list span {
  color: #8f979d;
}

.verify-list b {
  color: var(--ok);
  font-weight: 500;
}

.fit-list li {
  display: grid;
  grid-template-columns: 8px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-top: 1px solid #2b3238;
  font-family: var(--mono);
  font-size: 10px;
}

.fit-list li:first-child {
  border-top: 0;
}

.fit-list span {
  color: #c7ced3;
}

.fit-list b {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.fit-list i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.fit-ok {
  background: var(--ok);
}

.fit-warn {
  background: var(--warn);
}

.fit-bad {
  background: var(--bad);
}

.fit-list li:has(.fit-ok) b { color: var(--ok); }
.fit-list li:has(.fit-warn) b { color: var(--warn); }
.fit-list li:has(.fit-bad) b { color: var(--bad); }

.ota-strip {
  grid-column: span 6;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 24px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-3);
}

.ota-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--rust);
}

.ota-icon svg {
  width: 21px;
  height: 21px;
}

.ota-strip h3 {
  margin-bottom: 4px;
  font-size: 16px;
}

.ota-strip p {
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
}

.ota-badge {
  padding: 7px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ota-badge b {
  color: var(--rust);
  font-weight: 500;
}

/* Split sections ---------------------------------------------------------- */

.split-section {
  border-top: 1px solid var(--line);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr);
  align-items: center;
  gap: clamp(40px, 6vw, 78px);
}

.split-reverse .split-copy {
  order: 2;
}

.split-copy .section-lede {
  margin-bottom: 26px;
}

.check-list {
  display: grid;
  gap: 12px;
  margin: 26px 0 30px;
  padding: 0;
  list-style: none;
  color: #c7ced3;
  font-size: 14px;
}

.check-list li {
  position: relative;
  padding-left: 25px;
  line-height: 1.6;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 12px;
  height: 7px;
  border-left: 1.5px solid var(--rust);
  border-bottom: 1.5px solid var(--rust);
  transform: rotate(-45deg);
}

.shot {
  margin: 0;
  padding: 10px;
  border: 1px solid #2b3238;
  border-radius: var(--radius);
  background: var(--dark);
  box-shadow: 0 45px 80px -55px rgba(0, 0, 0, 0.65);
}

.shot-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 3px 6px 10px;
  color: #8f979d;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.shot img {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 8px;
}

.shot figcaption {
  padding: 10px 5px 1px;
  color: #7b858b;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

/* Targets ----------------------------------------------------------------- */

.targets {
  position: relative;
  padding: clamp(78px, 9.5vw, 126px) 0;
  overflow: hidden;
  color: var(--cream);
  background: var(--bg-deep);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.targets::after {
  content: "22";
  position: absolute;
  right: -1%;
  bottom: -22%;
  color: rgba(255, 255, 255, 0.028);
  font-size: min(42vw, 560px);
  font-weight: 600;
  letter-spacing: -0.08em;
  line-height: 1;
  pointer-events: none;
}

.targets-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}

.targets-copy {
  position: sticky;
  top: 120px;
}

.targets-copy h2 {
  margin-bottom: 22px;
  color: var(--cream);
}

.targets-copy h2 em {
  color: var(--rust-bright);
}

.targets-copy p {
  max-width: 440px;
  margin-bottom: 28px;
  color: #9aa3a9;
  font-size: 15px;
  line-height: 1.72;
}

.target-groups {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.target-group {
  display: grid;
  grid-template-columns: 122px 1fr;
  gap: 22px;
  align-items: start;
  padding: 17px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.target-group h3 {
  margin: 7px 0 0;
  color: #868f95;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.target-group ul {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.target-group li {
  padding: 6px 11px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 5px;
  color: #cdd4d9;
  font-family: var(--mono);
  font-size: 11px;
  transition: border-color 0.18s ease, color 0.18s ease;
}

.target-group li:hover {
  border-color: var(--rust-bright);
  color: #eef2f4;
}

/* Workflow ---------------------------------------------------------------- */

.steps {
  display: grid;
  gap: 0;
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
}

.steps li {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 18px;
  padding: 19px 0;
  border-top: 1px solid var(--line);
}

.steps li:last-child {
  border-bottom: 1px solid var(--line);
}

.step-number {
  padding-top: 2px;
  color: var(--rust);
  font-family: var(--serif);
  font-size: 22px;
  font-style: italic;
  line-height: 1.2;
}

.steps h3 {
  margin-bottom: 4px;
  font-size: 15.5px;
}

.steps p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.62;
}

.terminal-wrap {
  min-width: 0;
}

.terminal {
  overflow: hidden;
  border: 1px solid #2b3238;
  border-radius: 14px;
  background: var(--dark);
  box-shadow: 0 45px 80px -55px rgba(0, 0, 0, 0.65);
}

.terminal-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 17px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: #868f95;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.terminal-dots {
  display: inline-flex;
  gap: 6px;
}

.terminal-dots i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #7d868c;
}

.terminal-dots i:nth-child(2) {
  background: #737d83;
}

.terminal-dots i:nth-child(3) {
  background: #4b555c;
}

.terminal pre {
  margin: 0;
  padding: 24px;
  overflow-x: auto;
  color: #c9d1d6;
  font-family: var(--mono);
  font-size: 11.5px;
  line-height: 2.05;
}

.term-muted {
  color: #737d83;
}

.term-rust {
  color: var(--rust-bright);
}

.term-ok {
  color: #8fbc9c;
}

.terminal-note {
  max-width: 430px;
  margin: 18px 0 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9.5px;
  line-height: 1.75;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Download ---------------------------------------------------------------- */

.download {
  padding: clamp(78px, 9.5vw, 126px) 0;
  border-top: 1px solid var(--line);
  background: var(--paper-2);
}

.download-head {
  max-width: 790px;
  margin-bottom: 48px;
}

.platform-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.download-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 30px;
  min-height: 460px;
  padding: 30px;
  border-radius: 18px;
}

.download-card h3 {
  margin: 16px 0 11px;
  font-size: clamp(25px, 2.4vw, 31px);
  font-weight: 500;
  letter-spacing: -0.035em;
}

.download-card p {
  margin-bottom: 0;
  font-size: 14px;
  line-height: 1.68;
}

.download-card-dark {
  color: var(--cream);
  border: 1px solid var(--line-strong);
  background:
    radial-gradient(560px 280px at 90% 0%, rgba(166, 173, 178, 0.16), transparent 70%),
    linear-gradient(160deg, #1b2126, #0f1215);
}

.download-card-dark p {
  color: #9aa3a9;
}

.download-card-dark code {
  color: #cdd4d9;
  background: rgba(255, 255, 255, 0.07);
  padding: 1px 4px;
  border-radius: 3px;
}

.download-card-paper {
  border: 1px solid var(--line);
  background: var(--paper-3);
}

.download-card-paper p {
  color: var(--muted);
}

.download-card-paper code {
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.06);
  padding: 1px 4px;
  border-radius: 3px;
}

.download-card code {
  overflow-wrap: anywhere;
}

.download-actions {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.download-actions .btn {
  width: 100%;
}

.link-quiet {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 5px 2px;
  color: #8f979d;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.link-quiet:hover {
  color: var(--cream);
}

.build-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  margin-top: 26px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
}

.build-note h3 {
  margin: 0 0 5px;
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.build-note p {
  margin: 0;
  max-width: 640px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.build-note strong {
  color: var(--ink);
  font-weight: 500;
}

.build-note .btn {
  flex: none;
}

.pill {
  display: inline-block;
  padding: 5px 10px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  color: #d6dde1;
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.pill-dark {
  color: #8f979d;
  border-color: var(--line-strong);
}

.mini-list {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  font-size: 13px;
}

.mini-list li {
  position: relative;
  margin: 8px 0;
  padding-left: 15px;
}

.mini-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--rust);
}

.download-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 26px;
  padding-top: 16px;
  border-top: 1px solid var(--line-strong);
  color: #737d83;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.download-meta a:hover {
  color: var(--rust);
}

.download-meta a:last-child {
  margin-left: auto;
}

/* FAQ --------------------------------------------------------------------- */

.faq {
  border-top: 1px solid var(--line);
}

.faq-wrap {
  max-width: 900px;
}

.faq-list {
  border-bottom: 1px solid var(--line);
}

.faq details {
  border-top: 1px solid var(--line);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 21px 0;
  cursor: pointer;
  font-size: 16.5px;
  font-weight: 550;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  flex: 0 0 auto;
  color: var(--rust);
  font-family: var(--mono);
  font-size: 19px;
  font-weight: 400;
  line-height: 1;
  transition: transform 0.2s ease;
}

.faq details[open] summary::after {
  content: "−";
}

.faq details p {
  max-width: 700px;
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.72;
}

/* Footer ------------------------------------------------------------------ */

.site-footer {
  padding: 62px 0 28px;
  overflow: hidden;
  color: var(--cream);
  background: var(--bg-deep);
  border-top: 1px solid var(--line);
}

.footer-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 48px;
  padding-bottom: 46px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-brand img {
  width: 44px;
  height: 44px;
}

.footer-brand strong {
  display: block;
  margin-bottom: 2px;
  font-size: 17px;
  font-weight: 600;
}

.footer-brand p {
  margin: 0;
  color: #8f979d;
  font-size: 12.5px;
  font-style: italic;
  font-family: var(--serif);
  font-size: 15px;
}

.footer-cols {
  display: flex;
  gap: clamp(40px, 7vw, 90px);
}

.footer-cols h4 {
  margin-bottom: 12px;
  color: #7b858b;
  font-family: var(--mono);
  font-size: 8.5px;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.footer-cols a {
  display: block;
  margin: 8px 0;
  color: #c3ccd2;
  font-size: 13px;
  transition: color 0.18s ease;
}

.footer-cols a:hover {
  color: var(--rust-bright);
}

.footer-word {
  padding-top: 36px;
  color: rgba(255, 255, 255, 0.045);
  font-size: clamp(58px, 14.6vw, 205px);
  font-weight: 600;
  letter-spacing: -0.065em;
  line-height: 0.8;
  white-space: nowrap;
  user-select: none;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #7b858b;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.footer-version {
  color: var(--rust-bright);
}

/* Motion ------------------------------------------------------------------ */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.js [data-reveal].in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .js [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

/* Responsive -------------------------------------------------------------- */

@media (max-width: 1100px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .hero-actions {
    padding-bottom: 0;
  }

  .card {
    grid-column: span 3;
  }

  .card-targets {
    grid-column: span 6;
  }

  .targets-grid {
    grid-template-columns: 1fr;
    gap: 46px;
  }

  .targets-copy {
    position: static;
  }

  .targets-copy p {
    max-width: 620px;
  }

  .platform-grid {
    grid-template-columns: 1fr 1fr;
  }

  .platform-grid .download-card-dark {
    grid-column: span 2;
  }
}

@media (max-width: 920px) {
  .menu-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 24px 20px;
    border-bottom: 1px solid var(--line);
    background: var(--paper);
    box-shadow: 0 24px 40px -30px rgba(0, 0, 0, 0.55);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 13px 0;
    border-bottom: 1px solid var(--line);
  }

  .site-nav .nav-source {
    border-bottom: 0;
  }

  .site-nav .nav-cta {
    margin-top: 10px;
    padding: 12px 16px;
    text-align: center;
    border-bottom: 0;
  }

  .site-nav a:hover {
    color: var(--rust);
  }

  h1 {
    font-size: clamp(50px, 11.4vw, 82px);
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
    row-gap: 26px;
  }

  .stat {
    padding-left: 0;
    border-left: 0;
  }

  .stat:nth-child(even) {
    padding-left: 24px;
    border-left: 1px solid rgba(255, 255, 255, 0.12);
  }

  .bento {
    grid-template-columns: 1fr;
  }

  .card,
  .card-targets,
  .ota-strip {
    grid-column: auto;
    min-height: 0;
  }

  .card-targets {
    min-height: 300px;
  }

  .card .cores,
  .card .verify-list,
  .card .fit-list,
  .card .chip-row-light {
    margin-top: 24px;
  }

  .ota-strip {
    grid-template-columns: auto 1fr;
  }

  .ota-badge {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .split {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .split-reverse .split-copy {
    order: 0;
  }

  .platform-grid {
    grid-template-columns: 1fr;
  }

  .platform-grid .download-card-dark {
    grid-column: auto;
  }

  .download-card {
    min-height: 0;
  }

  .community {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .community-stats {
    gap: 26px;
  }

  .footer-top {
    flex-direction: column;
  }

  .footer-cols {
    gap: 56px;
  }

  .download-meta a:last-child {
    margin-left: 0;
  }
}

@media (max-width: 680px) {
  .topline {
    justify-content: center;
    font-size: 8.5px;
    letter-spacing: 0.07em;
  }

  .topline a {
    display: none;
  }

  .wrap,
  .header-inner {
    width: calc(100% - 32px);
  }

  .header-inner {
    min-height: 66px;
  }

  .brand img {
    width: 118px;
    height: auto;
  }

  .hero {
    padding-top: 44px;
  }

  h1 {
    margin-bottom: 26px;
    font-size: clamp(46px, 13.6vw, 68px);
    line-height: 0.92;
  }

  h2 {
    font-size: clamp(34px, 9.4vw, 48px);
  }

  .eyebrow {
    font-size: 9px;
    margin-bottom: 16px;
  }

  .hero-lede {
    font-size: 16px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }

  .hero-actions .btn {
    justify-content: space-between;
  }

  .hero-note {
    margin-top: 22px;
    font-size: 8.5px;
    line-height: 1.8;
  }

  .stage {
    padding: 7px;
    border-radius: 14px;
  }

  .stage-bar {
    font-size: 7.5px;
  }

  .stage-bar span:last-child {
    display: none;
  }

  .stage figcaption {
    font-size: 7.5px;
    padding-top: 8px;
  }

  .stage-live {
    display: none;
  }

  .stats {
    padding: 30px 0;
  }

  .stat strong {
    font-size: 36px;
  }

  .stat span {
    font-size: 8px;
  }

  .section,
  .targets,
  .download {
    padding: 72px 0;
  }

  .section-head {
    margin-bottom: 38px;
  }

  .card,
  .card-targets {
    padding: 24px;
  }

  .card-targets h3 {
    font-size: 27px;
  }

  .ota-strip {
    padding: 22px;
    gap: 16px;
  }

  .ota-icon {
    width: 40px;
    height: 40px;
  }

  .shot {
    padding: 7px;
    border-radius: 14px;
  }

  .shot-bar {
    font-size: 7.5px;
  }

  .shot figcaption {
    font-size: 7.5px;
  }

  .target-group {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 15px 0;
  }

  .target-group h3 {
    margin-top: 0;
  }

  .steps li {
    grid-template-columns: 38px 1fr;
    gap: 12px;
  }

  .terminal pre {
    padding: 18px 15px;
    font-size: 10px;
  }

  .terminal-note {
    font-size: 8.5px;
  }

  .download-card {
    padding: 25px;
    gap: 28px;
  }

  .build-note {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .community-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 24px;
    width: 100%;
  }

  .download-meta {
    gap: 12px 20px;
    font-size: 8px;
  }

  .faq summary {
    font-size: 15px;
    padding: 18px 0;
  }

  .footer-cols {
    gap: 40px;
  }

  .footer-bottom {
    flex-wrap: wrap;
    gap: 8px 18px;
    font-size: 8px;
  }

  .footer-version {
    display: none;
  }

  .footer-word {
    padding-top: 30px;
  }
}
