:root {
  --ink: #1a1c1b;
  --ink-soft: #3d4240;
  --muted: #6b736f;
  --faint: #9aa39d;
  --line: rgba(26, 28, 27, 0.08);
  --line-strong: rgba(26, 28, 27, 0.14);
  --bg: #f4f6f4;
  --bg-elevated: #ffffff;
  --bg-soft: #e8ece9;
  --copper: #b8794a;
  --copper-deep: #8f5a32;
  --sage: #5f7a6c;
  --sage-mist: rgba(95, 122, 108, 0.12);
  --ok: #2f6b4f;
  --warn: #9a5b2e;
  --display: "Bricolage Grotesque", "Avenir Next", sans-serif;
  --sans: "IBM Plex Sans", "Helvetica Neue", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --max: 1120px;
  --nav-h: 52px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 12px);
}

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

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

::selection {
  background: rgba(184, 121, 74, 0.22);
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 0.5rem 1rem;
  z-index: 100;
}

.skip:focus {
  left: 1rem;
  top: 1rem;
}

/* —— Nav —— */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  background: rgba(244, 246, 244, 0.78);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}

.nav.scrolled {
  border-bottom-color: var(--line);
  background: rgba(244, 246, 244, 0.92);
}

.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  height: 100%;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.brand img {
  width: 28px;
  height: 28px;
  border-radius: 7px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.84rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--ink);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.85rem;
  border-radius: 980px;
  background: var(--ink);
  color: #f4f6f4 !important;
  font-size: 0.8rem !important;
  font-weight: 600 !important;
  transition: transform 0.2s var(--ease), background 0.2s ease;
}

.nav-cta:hover {
  background: var(--copper-deep);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  border: 0;
  background: transparent;
  padding: 0.35rem;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--ink);
  margin: 4px 0;
  border-radius: 2px;
}

/* —— Shared —— */
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 6.5rem 0;
}

.section-tight {
  padding: 4.5rem 0;
}

.eyebrow {
  margin: 0 0 0.85rem;
  color: var(--copper);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section h2 {
  margin: 0 0 0.85rem;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2rem, 4.5vw, 3rem);
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.lede {
  margin: 0;
  max-width: 36rem;
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1.55;
}

.section-head {
  margin-bottom: 3rem;
}

.section-head.center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.section-head.center .lede {
  margin-left: auto;
  margin-right: auto;
}

/* —— Hero —— */
.hero {
  position: relative;
  overflow: hidden;
  padding: 3.5rem 0 0;
  min-height: min(100vh, 980px);
  display: flex;
  flex-direction: column;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(184, 121, 74, 0.14), transparent 55%),
    radial-gradient(ellipse 50% 40% at 90% 20%, rgba(95, 122, 108, 0.1), transparent 50%),
    linear-gradient(180deg, #f7f8f6 0%, var(--bg) 55%, #eef1ee 100%);
  pointer-events: none;
  z-index: 0;
}

.hero-copy {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 1.5rem 1.5rem 2.5rem;
  max-width: 820px;
  margin: 0 auto;
}

.hero-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}

.hero-brand img {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(26, 28, 27, 0.12);
}

.hero-brand span {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.6rem, 7vw, 4.25rem);
  letter-spacing: -0.045em;
  line-height: 1;
}

.hero h1 {
  margin: 0 0 1rem;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.55rem, 3.4vw, 2.15rem);
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--ink-soft);
}

.hero-sub {
  margin: 0 auto 2rem;
  max-width: 28rem;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.55;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.85rem 1.35rem;
  border-radius: 980px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.2s var(--ease), background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--ink);
  color: #f4f6f4;
}

.btn-primary:hover {
  background: var(--copper-deep);
}

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line-strong);
}

.btn-secondary:hover {
  border-color: var(--ink);
}

.btn-ghost {
  background: transparent;
  color: var(--ink-soft);
  border: 0;
  padding-left: 0.85rem;
  padding-right: 0.85rem;
}

.btn-ghost:hover {
  color: var(--copper-deep);
}

.hero-visual {
  position: relative;
  z-index: 1;
  margin-top: auto;
  padding: 0 1rem 0;
}

.hero-frame {
  max-width: 1080px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 18px 18px 0 0;
  box-shadow:
    0 -1px 0 rgba(255, 255, 255, 0.7) inset,
    0 30px 80px rgba(26, 28, 27, 0.18);
  border: 1px solid rgba(26, 28, 27, 0.08);
  border-bottom: 0;
  background: #0a0e0c;
}

.hero-frame img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top center;
}

/* —— Why —— */
.why {
  background: var(--bg-elevated);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.why-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3.5rem;
  align-items: start;
}

.why-points {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
}

.why-points li {
  padding-left: 1.15rem;
  border-left: 2px solid var(--copper);
}

.why-points strong {
  display: block;
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.2rem;
}

.why-points span {
  color: var(--muted);
  font-size: 0.98rem;
}

.stat-stack {
  display: grid;
  gap: 1rem;
}

.stat {
  padding: 1.5rem 1.6rem;
  border-radius: 18px;
  background: linear-gradient(160deg, #f7f8f6, #eef2ef);
  border: 1px solid var(--line);
}

.stat .num {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--ink);
}

.stat .label {
  margin-top: 0.55rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.stat.accent {
  background: linear-gradient(145deg, #1a1c1b, #2a302c);
  color: #f4f6f4;
  border-color: transparent;
}

.stat.accent .num {
  color: #f0d2b4;
}

.stat.accent .label {
  color: rgba(244, 246, 244, 0.7);
}

/* —— Benchmarks —— */
.bench-note {
  margin: 0 0 2rem;
  color: var(--faint);
  font-size: 0.9rem;
}

.bench-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.bench-col {
  padding: 1.75rem 1.6rem;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: var(--bg-elevated);
}

.bench-col.win {
  background: linear-gradient(165deg, #1a1c1b 0%, #243028 100%);
  color: #f4f6f4;
  border-color: transparent;
}

.bench-col h3 {
  margin: 0 0 0.35rem;
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.bench-col .meta {
  margin: 0 0 1.5rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.bench-col.win .meta {
  color: rgba(244, 246, 244, 0.55);
}

.metric {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.7rem 0;
  border-top: 1px solid var(--line);
}

.bench-col.win .metric {
  border-top-color: rgba(244, 246, 244, 0.1);
}

.metric:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.metric .k {
  color: var(--muted);
  font-size: 0.92rem;
}

.bench-col.win .metric .k {
  color: rgba(244, 246, 244, 0.55);
}

.metric .v {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}

.metric .v.bad {
  color: var(--warn);
}

.bench-col.win .metric .v {
  color: #f0d2b4;
}

.bars {
  margin: 2rem 0 0;
  display: grid;
  gap: 1.1rem;
}

.bar-row {
  display: grid;
  grid-template-columns: 7.5rem 1fr auto;
  gap: 0.85rem;
  align-items: center;
}

.bar-row .name {
  font-size: 0.88rem;
  color: var(--muted);
}

.bar-track {
  height: 10px;
  border-radius: 999px;
  background: var(--bg-soft);
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  border-radius: inherit;
  background: var(--ink);
  width: 0;
  transition: width 1.1s var(--ease);
}

.bar-fill.copper {
  background: linear-gradient(90deg, var(--copper-deep), var(--copper));
}

.bar-row .val {
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--ink-soft);
  min-width: 5.5rem;
  text-align: right;
}

.bench-chart {
  margin-top: 2.5rem;
  padding: 1.25rem;
  border-radius: 18px;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
}

.bench-chart img {
  width: 100%;
  height: auto;
}

/* Inline bench charts (no external SVG) */
.vchart {
  margin-top: 2.5rem;
  padding: 1.4rem 1.5rem 1.6rem;
  border-radius: 20px;
  background: linear-gradient(165deg, #1a1c1b 0%, #121413 100%);
  color: #f4f6f4;
  border: 1px solid rgba(244, 246, 244, 0.06);
}

.vchart-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.vchart-head strong {
  display: block;
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.vchart-head p {
  margin: 0.35rem 0 0;
  color: rgba(244, 246, 244, 0.5);
  font-size: 0.82rem;
}

.vchart-delta {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 0.95rem;
  color: #d4a574;
  white-space: nowrap;
}

.vchart-panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.vchart-panel {
  padding: 1.1rem 1rem 1.2rem;
  border-radius: 14px;
  background: rgba(244, 246, 244, 0.04);
  border: 1px solid rgba(244, 246, 244, 0.08);
}

.vchart-panel-title {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 1rem;
  font-size: 0.88rem;
  font-weight: 600;
}

.vchart-cap {
  color: rgba(244, 246, 244, 0.45);
  font-size: 0.75rem;
  font-weight: 500;
}

.vbars {
  display: flex;
  justify-content: space-around;
  gap: 1.5rem;
  min-height: 180px;
}

.vbar {
  flex: 1;
  max-width: 7rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.vbar-col {
  position: relative;
  width: 100%;
  height: 140px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  border-bottom: 1px solid rgba(244, 246, 244, 0.12);
}

.vbar-fill {
  width: 56px;
  border-radius: 8px 8px 4px 4px;
  min-height: 4px;
}

.vbar-fill.dim {
  background: #5a6360;
}

.vbar-fill.copper {
  background: linear-gradient(180deg, #d4a574 0%, #8a6540 100%);
}

.vbar-capline {
  position: absolute;
  left: 8%;
  right: 8%;
  top: 2%;
  border-top: 1.5px dashed rgba(217, 137, 137, 0.85);
  pointer-events: none;
}

.vbar-val {
  font-family: var(--mono);
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: #e6ebe8;
}

.vbar-val.dim {
  color: #8a968e;
}

.vbar-label {
  margin-top: 0.65rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(244, 246, 244, 0.7);
}

.vbar-sub {
  margin-top: 0.2rem;
  font-size: 0.72rem;
  color: rgba(244, 246, 244, 0.42);
}

.vbar-sub.ok {
  color: #7dcea0;
  font-weight: 600;
}

.pressure-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.pressure-card {
  padding: 1.35rem 1.25rem;
  border-radius: 14px;
  background: rgba(244, 246, 244, 0.04);
  border: 1px solid rgba(244, 246, 244, 0.08);
}

.pressure-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(244, 246, 244, 0.7);
  margin-bottom: 0.85rem;
}

.pressure-tok {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.75rem;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.pressure-rss {
  margin-top: 0.45rem;
  font-family: var(--mono);
  font-size: 0.92rem;
  font-weight: 600;
}

.pressure-rss.ok {
  color: #7dcea0;
}

.pressure-rss.warn {
  color: #d4a574;
}

.pressure-card p {
  margin: 0.85rem 0 0;
  font-size: 0.82rem;
  color: rgba(244, 246, 244, 0.45);
}

@media (max-width: 900px) {
  .vchart-panels,
  .pressure-grid {
    grid-template-columns: 1fr;
  }
}

.bench-table-wrap {
  margin-top: 2.5rem;
  overflow-x: auto;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--bg-elevated);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

th,
td {
  padding: 0.95rem 1.1rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

th {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  background: rgba(232, 236, 233, 0.55);
}

tr:last-child td {
  border-bottom: 0;
}

td strong {
  font-weight: 600;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.pill-ok {
  background: rgba(47, 107, 79, 0.12);
  color: var(--ok);
}

.pill-bad {
  background: rgba(154, 91, 46, 0.12);
  color: var(--warn);
}

.details {
  margin-top: 1.5rem;
}

.details summary {
  cursor: pointer;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 500;
}

.details summary:hover {
  color: var(--ink);
}

.details-body {
  margin-top: 0.85rem;
  padding: 1rem 1.15rem;
  border-radius: 12px;
  background: var(--bg-soft);
  color: var(--muted);
  font-size: 0.9rem;
}

.details-body code {
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--copper-deep);
}

/* —— How —— */
.how {
  background: linear-gradient(180deg, #1a1c1b 0%, #121413 100%);
  color: #f4f6f4;
}

.how .eyebrow {
  color: #d4a574;
}

.how .lede {
  color: rgba(244, 246, 244, 0.62);
}

.flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin: 2.5rem 0 3rem;
}

.flow-step {
  padding: 1.35rem 1.2rem;
  border-radius: 16px;
  background: rgba(244, 246, 244, 0.04);
  border: 1px solid rgba(244, 246, 244, 0.08);
}

.flow-step .n {
  font-family: var(--display);
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  color: #d4a574;
  margin-bottom: 0.65rem;
}

.flow-step h3 {
  margin: 0 0 0.45rem;
  font-family: var(--display);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.flow-step p {
  margin: 0;
  font-size: 0.92rem;
  color: rgba(244, 246, 244, 0.58);
  line-height: 1.5;
}

.theory {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.theory h3 {
  margin: 0 0 0.65rem;
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.theory p {
  margin: 0 0 1rem;
  color: rgba(244, 246, 244, 0.62);
  font-size: 0.98rem;
}

.diagram {
  font-family: var(--mono);
  font-size: 0.72rem;
  line-height: 1.45;
  white-space: pre;
  overflow-x: auto;
  padding: 1.25rem;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(244, 246, 244, 0.08);
  color: #c8d2cb;
}

/* —— Features —— */
.feature-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.feature {
  display: grid;
  grid-template-columns: 10rem 1fr;
  gap: 1.5rem;
  padding: 1.6rem 0;
  border-bottom: 1px solid var(--line);
}

.feature h3 {
  margin: 0;
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.feature p {
  margin: 0;
  color: var(--muted);
  max-width: 40rem;
}

/* —— Product —— */
.product {
  background: var(--bg-elevated);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.product-stage {
  margin-top: 2rem;
}

.product-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.25rem;
  justify-content: center;
}

.tab {
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--ink-soft);
  padding: 0.5rem 1rem;
  border-radius: 980px;
  font-family: var(--sans);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.tab:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.tab.active {
  background: var(--ink);
  color: #f4f6f4;
  border-color: var(--ink);
}

.product-panel {
  display: none;
  text-align: center;
}

.product-panel.active {
  display: block;
  animation: fade 0.45s var(--ease);
}

.product-panel p {
  margin: 0 auto 1.25rem;
  max-width: 32rem;
  color: var(--muted);
}

.shot {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 24px 60px rgba(26, 28, 27, 0.12);
  background: #0a0e0c;
}

.shot img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top center;
}

/* —— Download —— */
.download {
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(184, 121, 74, 0.1), transparent 60%),
    var(--bg);
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2.5rem;
}

.dl-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 1.75rem 1.5rem;
  border-radius: 20px;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  text-decoration: none;
  transition: transform 0.25s var(--ease), border-color 0.25s ease, box-shadow 0.25s ease;
}

.dl-item:hover {
  transform: translateY(-3px);
  border-color: rgba(184, 121, 74, 0.45);
  box-shadow: 0 16px 40px rgba(26, 28, 27, 0.08);
}

.dl-item .os {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--copper);
}

.dl-item h3 {
  margin: 0;
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.dl-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  flex: 1;
}

.dl-item .action {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--ink);
}

.dl-note {
  margin-top: 2rem;
  padding: 1.25rem 1.4rem;
  border-radius: 14px;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.dl-note strong {
  color: var(--ink);
}

.dl-note code {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--copper-deep);
}

.dl-note a {
  color: var(--copper-deep);
}

/* —— Docs —— */
.docs {
  background: var(--bg-elevated);
  border-top: 1px solid var(--line);
}

.doc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 2.5rem;
}

.doc-block h3 {
  margin: 0 0 0.85rem;
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.doc-block p {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.98rem;
}

pre {
  margin: 0;
  padding: 1.15rem 1.25rem;
  border-radius: 14px;
  background: #1a1c1b;
  color: #d7ddd9;
  font-family: var(--mono);
  font-size: 0.78rem;
  line-height: 1.55;
  overflow-x: auto;
}

.doc-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin-top: 2rem;
}

.doc-links a {
  color: var(--copper-deep);
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.doc-links a:hover {
  border-bottom-color: var(--copper);
}

/* —— Devlog —— */
.devlog-list {
  list-style: none;
  margin: 2.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 0;
}

.devlog-item {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 1.5rem;
  padding: 1.75rem 0;
  border-top: 1px solid var(--line);
}

.devlog-item:last-child {
  border-bottom: 1px solid var(--line);
}

.devlog-item time {
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--faint);
  padding-top: 0.2rem;
}

.devlog-item h3 {
  margin: 0 0 0.4rem;
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.devlog-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
  max-width: 40rem;
}

.tag {
  display: inline-flex;
  margin-left: 0.5rem;
  padding: 0.15rem 0.45rem;
  border-radius: 6px;
  background: var(--sage-mist);
  color: var(--sage);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  vertical-align: middle;
}

/* —— Footer —— */
.footer {
  padding: 3rem 0 2.5rem;
  border-top: 1px solid var(--line);
  background: var(--bg);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: center;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.footer-brand img {
  width: 24px;
  height: 24px;
  border-radius: 6px;
}

.footer p {
  margin: 0.35rem 0 0;
  color: var(--faint);
  font-size: 0.85rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem;
}

.footer-links a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--ink);
}

/* —— Reveal —— */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.in {
  opacity: 1;
  transform: none;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* —— Responsive —— */
@media (max-width: 900px) {
  .why-grid,
  .theory,
  .doc-grid,
  .bench-compare {
    grid-template-columns: 1fr;
  }

  .flow {
    grid-template-columns: 1fr 1fr;
  }

  .download-grid {
    grid-template-columns: 1fr;
  }

  .feature {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .devlog-item {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .bar-row {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .bar-row .val {
    text-align: left;
  }
}

@media (max-width: 720px) {
  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.75rem 1.25rem 1.25rem;
    background: rgba(244, 246, 244, 0.98);
    border-bottom: 1px solid var(--line);
  }

  .nav.open .nav-links {
    display: flex;
  }

  .nav-links li {
    border-bottom: 1px solid var(--line);
  }

  .nav-links a {
    display: block;
    padding: 0.85rem 0;
  }

  .nav-cta {
    margin-top: 0.5rem;
    justify-content: center;
  }

  .nav-toggle {
    display: block;
  }

  .flow {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 4.5rem 0;
  }

  .hero {
    min-height: auto;
  }

  .hero-frame {
    border-radius: 14px 14px 0 0;
  }
}

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

  .reveal,
  .bar-fill {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
