/* agit site: one stylesheet for every page. Dark first, light on request,
   respects prefers-reduced-motion. No framework, no build step. */

:root {
  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --bg: #0a0d14;
  --bg-2: #0f1420;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #e6e9f0;
  --text-2: #a7afc0;
  --text-3: #7b849a;
  --accent: #22d3ee;
  --accent-2: #8b5cf6;
  --accent-3: #f59e0b;
  --ok: #34d399;
  --warn: #fbbf24;
  --plan: #a78bfa;
  --danger: #f87171;
  --code-bg: #0c111b;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  --radius: 14px;
  --radius-sm: 9px;
  --nav-h: 64px;
  --max: 1180px;
  color-scheme: dark;
}

:root[data-theme="light"] {
  --bg: #f7f8fb;
  --bg-2: #ffffff;
  --surface: rgba(10, 13, 20, 0.03);
  --surface-2: rgba(10, 13, 20, 0.06);
  --border: rgba(10, 13, 20, 0.1);
  --border-strong: rgba(10, 13, 20, 0.2);
  --text: #0f1626;
  --text-2: #3f4a60;
  --text-3: #6b7489;
  --accent: #0891b2;
  --accent-2: #6d28d9;
  --accent-3: #b45309;
  --ok: #059669;
  --warn: #b45309;
  --plan: #6d28d9;
  --danger: #dc2626;
  --code-bg: #0f1626;
  --shadow: 0 20px 60px rgba(15, 22, 38, 0.12);
  color-scheme: light;
}

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

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

::selection {
  background: color-mix(in srgb, var(--accent) 35%, transparent);
}

a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

h1,
h2,
h3,
h4 {
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
  font-weight: 700;
}
h1 {
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  letter-spacing: -0.035em;
}
h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
}
h3 {
  font-size: 1.2rem;
}
p {
  margin: 0 0 1em;
}
.lead {
  font-size: 1.2rem;
  color: var(--text-2);
  max-width: 62ch;
}
.muted {
  color: var(--text-2);
}
.small {
  font-size: 0.9rem;
}
code,
kbd,
pre {
  font-family: var(--font-mono);
  font-size: 0.92em;
}
p code,
li code,
td code,
h3 code,
dd code {
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 0.05em 0.4em;
  border-radius: 6px;
  font-size: 0.86em;
}

.wrap {
  width: min(var(--max), 100% - 2rem);
  margin-inline: auto;
}
.wrap.narrow {
  width: min(880px, 100% - 2rem);
}

/* ---- gradient text and glow ------------------------------------------- */
.grad {
  background: linear-gradient(120deg, var(--accent), var(--accent-2) 55%, var(--accent-3));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---- navigation -------------------------------------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  border-bottom: 1px solid var(--border);
}
.nav .wrap {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  font-size: 1.2rem;
  color: var(--text);
}
.brand:hover {
  text-decoration: none;
}
.brand svg {
  width: 28px;
  height: 28px;
}
.nav-links {
  display: flex;
  gap: 0.25rem;
  margin-left: auto;
  align-items: center;
}
.nav-links a {
  color: var(--text-2);
  padding: 0.45rem 0.8rem;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.95rem;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--text);
  background: var(--surface-2);
  text-decoration: none;
}
.nav-links .btn {
  margin-left: 0.5rem;
}
.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-2);
  cursor: pointer;
}
.icon-btn:hover {
  color: var(--text);
  border-color: var(--border-strong);
}
.icon-btn svg {
  width: 18px;
  height: 18px;
}
.menu-btn {
  display: none;
}
@media (max-width: 860px) {
  .menu-btn {
    display: inline-grid;
    margin-left: auto;
  }
  .nav-links {
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem 1rem 1rem;
    background: var(--bg-2);
    border-bottom: 1px solid var(--border);
    display: none;
    margin-left: 0;
  }
  .nav-links.open {
    display: flex;
  }
  .nav-links .btn {
    margin: 0.5rem 0 0;
  }
}

/* ---- buttons ----------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.15rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid var(--border-strong);
  background: var(--surface-2);
  color: var(--text);
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
  border-color: var(--text-3);
}
.btn.primary {
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  color: #06080f;
  border-color: transparent;
}
:root[data-theme="light"] .btn.primary {
  color: #ffffff;
}
.btn.primary:hover {
  filter: brightness(1.08);
}
.btn.sm {
  padding: 0.45rem 0.8rem;
  font-size: 0.85rem;
}
.btn.ghost {
  background: transparent;
}

/* ---- hero -------------------------------------------------------------- */
.hero {
  position: relative;
  padding: clamp(4rem, 10vw, 8rem) 0 clamp(3rem, 6vw, 5rem);
  overflow: hidden;
}
.hero .wrap {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}
@media (max-width: 960px) {
  .hero .wrap {
    grid-template-columns: 1fr;
  }
}
.hero h1 {
  margin-bottom: 1rem;
}
.hero .lead {
  margin-bottom: 1.75rem;
}
.hero-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.hero-meta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  color: var(--text-3);
  font-size: 0.9rem;
}
.hero-meta span::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  margin-right: 0.5rem;
  vertical-align: middle;
}
.blobs {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}
.blob {
  position: absolute;
  width: 48vw;
  height: 48vw;
  max-width: 640px;
  max-height: 640px;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
  animation: drift 24s ease-in-out infinite alternate;
}
.blob.a {
  background: var(--accent);
  top: -20%;
  left: -10%;
}
.blob.b {
  background: var(--accent-2);
  top: 10%;
  right: -15%;
  animation-delay: -8s;
}
.blob.c {
  background: var(--accent-3);
  bottom: -30%;
  left: 30%;
  opacity: 0.2;
  animation-delay: -16s;
}
:root[data-theme="light"] .blob {
  opacity: 0.18;
}
@keyframes drift {
  from {
    transform: translate(0, 0) scale(1);
  }
  to {
    transform: translate(6%, 8%) scale(1.12);
  }
}
.grid-lines {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 50% 0%, rgba(0, 0, 0, 0.5), transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, rgba(0, 0, 0, 0.5), transparent 70%);
}

/* ---- terminal ---------------------------------------------------------- */
.terminal {
  background: var(--code-bg);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 0.84rem;
  color: #d6dbe6;
  min-height: 300px;
}
.terminal-bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 0.9rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}
.terminal-bar i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  display: inline-block;
  background: #3b4252;
}
.terminal-bar i:nth-child(1) {
  background: #ff5f57;
}
.terminal-bar i:nth-child(2) {
  background: #febc2e;
}
.terminal-bar i:nth-child(3) {
  background: #28c840;
}
.terminal-bar span {
  margin-left: auto;
  color: #6b7489;
  font-size: 0.75rem;
}
.terminal pre {
  margin: 0;
  padding: 1rem 1.1rem 1.2rem;
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 1.55;
}
.t-prompt {
  color: #7dd3fc;
}
.t-cmd {
  color: #f1f5f9;
}
.t-out {
  color: #94a3b8;
}
.t-ok {
  color: #34d399;
}
.t-err {
  color: #f87171;
}
.t-key {
  color: #c4b5fd;
}
.t-str {
  color: #fcd34d;
}
.cursor {
  display: inline-block;
  width: 0.6em;
  height: 1.1em;
  background: #e2e8f0;
  vertical-align: text-bottom;
  animation: blink 1s steps(2) infinite;
}
@keyframes blink {
  to {
    opacity: 0;
  }
}

/* ---- sections ---------------------------------------------------------- */
section {
  padding: clamp(3rem, 7vw, 6rem) 0;
}
section.tight {
  padding: clamp(2rem, 4vw, 3.5rem) 0;
}
.section-head {
  max-width: 760px;
  margin-bottom: 2.5rem;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}
.alt {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* ---- cards and grids --------------------------------------------------- */
.grid {
  display: grid;
  gap: 1.1rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.grid.cols-2 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
}
.grid.cols-4 {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem 1.4rem 1.2rem;
  position: relative;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.card:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  background: var(--surface-2);
}
.card h3 {
  margin-top: 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.card p:last-child {
  margin-bottom: 0;
}
.card .ic {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 25%, transparent), color-mix(in srgb, var(--accent-2) 25%, transparent));
  border: 1px solid var(--border);
  color: var(--accent);
  margin-bottom: 0.4rem;
}
.card .ic svg {
  width: 20px;
  height: 20px;
}
.card.accent {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--border));
}

/* ---- badges ------------------------------------------------------------ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text-2);
  vertical-align: middle;
  white-space: nowrap;
}
.badge::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}
.badge.built {
  color: var(--ok);
  border-color: color-mix(in srgb, var(--ok) 40%, transparent);
  background: color-mix(in srgb, var(--ok) 12%, transparent);
}
.badge.progress {
  color: var(--warn);
  border-color: color-mix(in srgb, var(--warn) 40%, transparent);
  background: color-mix(in srgb, var(--warn) 12%, transparent);
}
.badge.planned {
  color: var(--plan);
  border-color: color-mix(in srgb, var(--plan) 40%, transparent);
  background: color-mix(in srgb, var(--plan) 12%, transparent);
}
.badge.neutral::before {
  display: none;
}
.legend {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.9rem;
  color: var(--text-2);
  align-items: center;
}

/* ---- comparison table -------------------------------------------------- */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
th,
td {
  text-align: left;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
th {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-3);
  background: var(--surface-2);
}
tr:last-child td {
  border-bottom: 0;
}
tbody tr:hover td {
  background: var(--surface);
}
td.git {
  color: var(--text-2);
}
td.agit {
  color: var(--text);
}
td.agit strong {
  color: var(--accent);
}

/* ---- code blocks ------------------------------------------------------- */
pre.code {
  position: relative;
  margin: 1rem 0 1.5rem;
  background: var(--code-bg);
  color: #dbe1ec;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 1rem 1.1rem;
  overflow-x: auto;
  font-size: 0.86rem;
  line-height: 1.55;
}
pre.code[data-title]::before {
  content: attr(data-title);
  position: absolute;
  top: 0;
  left: 0;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #7b849a;
  padding: 0.3rem 0.8rem;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  border-radius: var(--radius-sm) 0 8px 0;
}
pre.code[data-title] {
  padding-top: 2.2rem;
}
.copy {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  font-size: 0.72rem;
  padding: 0.25rem 0.55rem;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.06);
  color: #c7cedb;
  cursor: pointer;
  font-family: var(--font-sans);
  opacity: 0;
  transition: opacity 0.15s ease;
}
pre.code:hover .copy,
.copy:focus-visible {
  opacity: 1;
}
.copy.done {
  color: #34d399;
  border-color: rgba(52, 211, 153, 0.5);
}
.c-cmt {
  color: #6b7489;
}
.c-key {
  color: #c4b5fd;
}
.c-str {
  color: #fcd34d;
}
.c-flag {
  color: #7dd3fc;
}
.c-ok {
  color: #34d399;
}
.c-err {
  color: #f87171;
}

/* ---- tabs -------------------------------------------------------------- */
.tabs {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin: 1rem 0 1.5rem;
  background: var(--surface);
}
.tablist {
  display: flex;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}
.tablist button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--text-2);
  padding: 0.75rem 1.1rem;
  font: inherit;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.tablist button[aria-selected="true"] {
  color: var(--text);
  border-bottom-color: var(--accent);
}
.tabpanel {
  padding: 1rem 1.2rem 0.2rem;
}
.tabpanel[hidden] {
  display: none;
}
.tabpanel pre.code {
  margin-top: 0.5rem;
}

/* ---- steps ------------------------------------------------------------- */
.steps {
  counter-reset: step;
  display: grid;
  gap: 1rem;
}
.step {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 1rem;
  align-items: start;
}
.step::before {
  counter-increment: step;
  content: counter(step);
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #06080f;
}
:root[data-theme="light"] .step::before {
  color: #fff;
}
.step h3 {
  margin: 0.35rem 0 0.3rem;
}

/* ---- docs layout (guide, features, scale) ----------------------------- */
.docs {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 3rem;
  padding: 2.5rem 0 5rem;
  align-items: start;
}
@media (max-width: 960px) {
  .docs {
    grid-template-columns: minmax(0, 1fr);
  }
  .toc {
    position: static !important;
    max-height: none !important;
  }
}
.toc {
  position: sticky;
  top: calc(var(--nav-h) + 20px);
  max-height: calc(100vh - var(--nav-h) - 40px);
  overflow: auto;
  font-size: 0.9rem;
  padding-right: 0.5rem;
}
.toc h4 {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
  margin: 1rem 0 0.4rem;
}
.toc a {
  display: block;
  color: var(--text-2);
  padding: 0.3rem 0.7rem;
  border-left: 2px solid var(--border);
  border-radius: 0 6px 6px 0;
}
.toc a.sub {
  padding-left: 1.4rem;
  font-size: 0.85rem;
}
.toc a:hover {
  color: var(--text);
  text-decoration: none;
  background: var(--surface);
}
.toc a.active {
  color: var(--accent);
  border-left-color: var(--accent);
  background: var(--surface);
}
.prose,
.docs > div {
  min-width: 0;
}
.prose .table-wrap {
  margin: 1rem 0 1.5rem;
}
.prose h2 {
  margin-top: 3rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: 1.8rem;
}
.prose h2:first-of-type {
  border-top: 0;
  margin-top: 0;
  padding-top: 0;
}
.prose h3 {
  margin-top: 2rem;
  font-size: 1.2rem;
}
.prose h4 {
  margin-top: 1.5rem;
  font-size: 1rem;
  color: var(--text-2);
}
.prose ul,
.prose ol {
  padding-left: 1.3rem;
}
.prose li {
  margin-bottom: 0.35rem;
}
.prose img {
  max-width: 100%;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}
.prose table {
  font-size: 0.92rem;
}
.callout {
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  background: var(--surface);
  border-radius: var(--radius-sm);
  padding: 0.9rem 1.1rem;
  margin: 1.2rem 0;
}
.callout.warn {
  border-left-color: var(--warn);
}
.callout.plan {
  border-left-color: var(--plan);
}
.callout.ok {
  border-left-color: var(--ok);
}
.callout p:last-child {
  margin: 0;
}
.callout strong:first-child {
  display: block;
  margin-bottom: 0.2rem;
}
dl.kv {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.4rem 1.2rem;
  margin: 1rem 0;
}
dl.kv dt {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent);
}
dl.kv dd {
  margin: 0;
  color: var(--text-2);
}
@media (max-width: 600px) {
  dl.kv {
    grid-template-columns: 1fr;
  }
}

/* ---- feature list ----------------------------------------------------- */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
  margin: 1.2rem 0 2rem;
  position: sticky;
  top: calc(var(--nav-h) + 8px);
  z-index: 5;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 0.6rem 0;
}
.filters input {
  flex: 1 1 240px;
  padding: 0.65rem 0.9rem;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  font: inherit;
}
.filters input:focus {
  outline: 2px solid color-mix(in srgb, var(--accent) 60%, transparent);
  outline-offset: 1px;
}
.chip {
  appearance: none;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-2);
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}
.chip[aria-pressed="true"] {
  color: var(--text);
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 14%, transparent);
}
.count {
  color: var(--text-3);
  font-size: 0.85rem;
  margin-left: auto;
}
.feature-group {
  margin-top: 2.5rem;
}
.feature-group h2 {
  display: flex;
  align-items: baseline;
  gap: 0.8rem;
  flex-wrap: wrap;
  border-top: 1px solid var(--border);
  padding-top: 1.2rem;
}
.feature-group h2 .n {
  font-size: 0.85rem;
  color: var(--text-3);
  font-weight: 500;
}
.feature-group > p {
  color: var(--text-2);
  max-width: 70ch;
}
.feature {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 1.2rem 1.3rem;
  margin: 0.9rem 0;
}
.feature header {
  display: flex;
  gap: 0.7rem;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}
.feature header h3 {
  margin: 0;
  font-size: 1.1rem;
}
.feature .wwh {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.9rem 1.4rem;
  margin-top: 0.7rem;
}
.feature .wwh div > b {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 0.25rem;
}
.feature .wwh p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-2);
}
.feature .cmds {
  margin-top: 0.8rem;
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}
.feature .cmds code {
  background: var(--code-bg);
  color: #dbe1ec;
  border: 1px solid var(--border-strong);
  padding: 0.15rem 0.5rem;
  border-radius: 6px;
  font-size: 0.8rem;
}
:root[data-theme="light"] .feature .cmds code {
  color: #f1f5f9;
}
.feature.hide {
  display: none;
}

/* ---- stats ------------------------------------------------------------- */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}
.stat {
  padding: 1.2rem 1.3rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
.stat b {
  display: block;
  font-size: 2rem;
  letter-spacing: -0.03em;
  line-height: 1.1;
  font-weight: 800;
}
.stat span {
  color: var(--text-2);
  font-size: 0.9rem;
}

/* ---- diagram ----------------------------------------------------------- */
.diagram {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 1rem;
  margin: 1.5rem 0;
}
.diagram svg {
  width: 100%;
  height: auto;
  display: block;
}
.diagram text {
  font-family: var(--font-sans);
  fill: var(--text);
  font-size: 13px;
}
.diagram .mono {
  font-family: var(--font-mono);
  font-size: 11.5px;
  fill: var(--text-2);
}
.diagram .box {
  fill: var(--bg-2);
  stroke: var(--border-strong);
  stroke-width: 1.2;
  rx: 10;
}
.diagram .box.hot {
  stroke: var(--accent);
}
.diagram .box.plan {
  stroke: var(--plan);
  stroke-dasharray: 5 4;
}
.diagram .arrow {
  stroke: var(--text-3);
  stroke-width: 1.4;
  fill: none;
  marker-end: url(#arr);
}
.diagram .tag {
  font-size: 10.5px;
  fill: var(--text-3);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ---- screenshots ------------------------------------------------------- */
.shots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 1.2rem;
}
.shot {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}
.shot img {
  display: block;
  width: 100%;
  height: auto;
}
.shot figcaption {
  padding: 0.7rem 1rem;
  font-size: 0.9rem;
  color: var(--text-2);
  border-top: 1px solid var(--border);
}

/* ---- footer ------------------------------------------------------------ */
footer {
  border-top: 1px solid var(--border);
  padding: 3rem 0 2.5rem;
  color: var(--text-3);
  font-size: 0.9rem;
}
footer .wrap {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2rem;
}
@media (max-width: 760px) {
  footer .wrap {
    grid-template-columns: 1fr 1fr;
  }
}
footer h4 {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-2);
  margin-bottom: 0.7rem;
}
footer a {
  display: block;
  color: var(--text-2);
  margin-bottom: 0.35rem;
}
footer .brand {
  margin-bottom: 0.6rem;
}

/* ---- reveal animations ------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.reveal.in {
  opacity: 1;
  transform: none;
}
.reveal[data-delay="1"] {
  transition-delay: 0.08s;
}
.reveal[data-delay="2"] {
  transition-delay: 0.16s;
}
.reveal[data-delay="3"] {
  transition-delay: 0.24s;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .blob,
  .cursor {
    animation: none;
  }
  .card:hover,
  .btn:hover {
    transform: none;
  }
}

/* ---- misc -------------------------------------------------------------- */
.cta {
  text-align: center;
  padding: clamp(3rem, 8vw, 6rem) 0;
}
.cta .wrap {
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: clamp(2rem, 5vw, 4rem);
  background: radial-gradient(ellipse at 50% 0%, color-mix(in srgb, var(--accent-2) 22%, transparent), transparent 60%), var(--surface);
}
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 0.3rem 0.8rem 0.3rem 0.5rem;
  font-size: 0.82rem;
  color: var(--text-2);
  background: var(--surface);
  margin-bottom: 1.2rem;
}
.kicker b {
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  color: #06080f;
  border-radius: 999px;
  padding: 0.1rem 0.55rem;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
:root[data-theme="light"] .kicker b {
  color: #fff;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--accent);
  color: #06080f;
  padding: 0.5rem 0.8rem;
  border-radius: 8px;
  z-index: 100;
}
.skip:focus {
  left: 8px;
}
hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 2rem 0;
}
.two {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  gap: 2rem;
  align-items: start;
}
.pillrow {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.pill {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-2);
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-family: var(--font-mono);
}
