/* Weft: near-black graphite, acid-lime accent, hairline grid, live terminal panel. */
:root {
  --bg: #0D0E0C;
  --panel: #151713;
  --ink: #EEF2E6;
  --muted: #A8B0A0;
  --line: #2B2F27;
  --lime: #C8F53C;
  --lime-hover: #DBFF6A;
  --warn: #FFB547;
  --red: #FF7A6B;
  --radius: 6px;
  --sans: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --pixel: "Silkscreen", ui-monospace, monospace;
  --code: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.6 var(--sans);
  overflow-wrap: anywhere;
}

@media (min-width: 900px) {
  body { font-size: 17px; }
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
[id] { scroll-margin-top: 88px; }

:focus-visible {
  outline: 3px solid var(--lime);
  outline-offset: 3px;
}

h1, h2, h3 { margin: 0 0 12px; line-height: 1.1; letter-spacing: -0.03em; font-weight: 600; }
h1 { font-size: clamp(2.2rem, 5.6vw, 4.4rem); letter-spacing: -0.04em; line-height: 1.02; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.5rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 16px; }
p:last-child { margin-bottom: 0; }
.muted { color: var(--muted); }
.lede { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 36em; margin: 0 0 28px; }
.fine { color: var(--muted); font-size: 15px; margin-top: 20px; }

.label {
  font-family: var(--pixel);
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--lime);
  margin: 0 0 18px;
}

code {
  font-family: var(--code);
  font-size: 0.9em;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 1px 5px;
}

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; }
@media (min-width: 900px) { .wrap { padding: 0 40px; } }

.skip {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 30;
  background: var(--lime);
  color: var(--bg);
  padding: 10px 14px;
  border-radius: var(--radius);
}
.skip:focus { left: 16px; }

/* Header */
.site-head {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.bar { display: flex; align-items: center; gap: 14px; min-height: 64px; }
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 21px;
  letter-spacing: -0.03em;
}
.wordmark svg { width: 26px; height: 26px; }
.top-nav { display: none; margin-left: auto; }
.top-nav ul, .mnav ul, .foot-links, .rows, .comps, .steps {
  list-style: none;
  margin: 0;
  padding: 0;
}
.top-nav ul { display: flex; gap: 26px; }
.top-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
  padding: 6px 0;
}
.top-nav a:hover { color: var(--ink); }
.top-nav a[aria-current="page"] {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--lime);
  text-decoration-thickness: 2px;
  text-underline-offset: 8px;
}
.mnav { position: relative; margin-left: 0; }
.mnav summary {
  list-style: none;
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 14px;
  min-height: 44px;
  font-size: 15px;
}
.mnav summary::-webkit-details-marker { display: none; }
.mnav nav {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  width: min(280px, calc(100vw - 32px));
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 8px 16px;
  z-index: 20;
}
.mnav a {
  display: block;
  padding: 12px 0;
  min-height: 44px;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}
.mnav li:last-child a { border-bottom: 0; }
@media (min-width: 900px) {
  .top-nav { display: block; }
  .mnav { display: none; }
}
.wordmark, .mnav summary, .btn-small { white-space: nowrap; flex-shrink: 0; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 20px;
  background: var(--lime);
  color: var(--bg);
  border: 1px solid var(--lime);
  border-radius: var(--radius);
  font: 600 16px/1.2 var(--sans);
  text-decoration: none;
  cursor: pointer;
}
.btn:hover { background: var(--lime-hover); border-color: var(--lime-hover); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--panel); border-color: var(--muted); }
.btn-small { min-height: 44px; padding: 0 14px; font-size: 15px; margin-left: auto; }
@media (min-width: 900px) { .btn-small { margin-left: 0; } }
@media (max-width: 359px) { .btn-small { display: none; } }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 56px 0 72px;
  border-bottom: 1px solid var(--line);
}
.hero-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.2;
  pointer-events: none;
}
.hero-grid { position: relative; display: grid; gap: 48px; align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.05fr 0.95fr; } }

.term { margin: 0; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.term-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}
.term-bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.term-bar b { margin-left: auto; font-weight: 400; font-family: var(--code); font-size: 13px; color: var(--muted); }
.term pre { margin: 0; padding: 20px; overflow-x: auto; font: 14.5px/1.75 var(--code); color: var(--ink); }
.term pre code { background: none; border: 0; padding: 0; font-size: 1em; }
.term .line { display: block; opacity: 0; animation: rise 0.5s ease forwards; }
.term .line:nth-child(1) { animation-delay: 0.1s; }
.term .line:nth-child(2) { animation-delay: 0.7s; }
.term .line:nth-child(3) { animation-delay: 1.3s; }
.term .line:nth-child(4) { animation-delay: 1.9s; }
.term .line:nth-child(5) { animation-delay: 2.5s; }
.term .line:nth-child(6) { animation-delay: 3.1s; }
.term .line:nth-child(7) { animation-delay: 3.7s; }
.term .line:nth-child(8) { animation-delay: 4.3s; }
.term .ok { color: var(--lime); }
.term .prompt { color: var(--muted); }
.caret {
  display: inline-block;
  width: 9px;
  height: 1em;
  background: var(--lime);
  vertical-align: -2px;
  animation: blink 1s steps(1) infinite;
}
@keyframes rise {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: none; }
}
@keyframes blink { 50% { opacity: 0; } }

/* Sections */
.sec { padding: 88px 0; border-bottom: 1px solid var(--line); }
.sec-head { display: grid; gap: 16px; margin-bottom: 44px; }
.sec-head p { color: var(--muted); font-size: 1.1rem; margin: 0; }
@media (min-width: 900px) {
  .sec-head { grid-template-columns: 1fr 1fr; align-items: end; }
}

.feat-grid { display: grid; gap: 16px; }
.feat {
  padding: 28px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.feat p { color: var(--muted); }
.feat-big { display: grid; gap: 20px; align-content: start; }
.feat-big h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); letter-spacing: -0.03em; }
.feat-big .code { margin: 0; }
@media (min-width: 900px) {
  .feat-grid { grid-template-columns: repeat(12, 1fr); }
  .feat-big { grid-column: span 7; grid-row: span 2; padding: 36px; }
  .feat:not(.feat-big) { grid-column: span 5; }
}

.code {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  overflow-x: auto;
  font: 14px/1.7 var(--code);
  color: var(--ink);
  white-space: pre;
  margin: 0 0 16px;
}
.code code { background: none; border: 0; padding: 0; font-size: 1em; }

.split { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } }
.art {
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
}
.steps { display: grid; gap: 0; margin-top: 24px; border-top: 1px solid var(--line); }
.steps li { padding: 18px 0; border-bottom: 1px solid var(--line); color: var(--muted); }
.steps strong { color: var(--ink); font-weight: 600; }

.rows { border-top: 1px solid var(--line); }
.rows a {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 20px 0;
  min-height: 56px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: 500;
}
.rows a:hover { color: var(--lime); }
.meta { color: var(--muted); font-size: 15px; font-weight: 400; white-space: nowrap; }

/* Pricing tiers */
.tiers { display: grid; gap: 16px; }
@media (min-width: 900px) { .tiers { grid-template-columns: repeat(3, 1fr); } }
.tier {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.tier h2, .tier h3 { font-size: 1.5rem; margin: 0; }
.tier p { margin: 0; }
.tier ul { list-style: none; margin: 4px 0 12px; padding: 0; display: grid; gap: 8px; color: var(--muted); }
.tier li::before { content: "+ "; color: var(--lime); font-family: var(--code); }
.tier .btn { margin-top: auto; }
.tier.hi { background: var(--lime); color: var(--bg); border-color: var(--lime); }
.tier.hi .label { color: var(--bg); margin: 0; }
.tier.hi .muted, .tier.hi ul { color: #2A3510; }
.tier.hi li::before { color: var(--bg); }
.tier.hi .btn { background: var(--bg); color: var(--lime); border-color: var(--bg); }
.tier.hi .btn:hover { background: #1F2320; }
.price { font: 600 3rem/1 var(--sans); letter-spacing: -0.04em; }
.unit { font-size: 1rem; font-weight: 400; letter-spacing: 0; }

/* Quote */
.quote { margin: 0; max-width: 58em; }
.quote blockquote { margin: 0 0 18px; }
.quote p { font-size: clamp(1.4rem, 2.8vw, 2.2rem); line-height: 1.25; letter-spacing: -0.02em; margin: 0; }
.quote figcaption { color: var(--muted); }
.quote figcaption span { color: var(--ink); font-weight: 600; }

/* FAQ */
.faq { border-top: 1px solid var(--line); padding: 4px 0; }
.faq:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-height: 52px;
  padding: 14px 0;
  font-weight: 600;
  font-size: 1.1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--pixel); font-size: 20px; color: var(--lime); }
.faq[open] summary::after { content: "-"; }
.faq p { color: var(--muted); max-width: 62ch; padding-bottom: 18px; }

/* Docs */
.page-head { padding: 64px 0 40px; border-bottom: 1px solid var(--line); }
.doc { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; }
.doc-body { min-width: 0; }
@media (min-width: 900px) { .doc { grid-template-columns: 200px minmax(0, 1fr); gap: 56px; } }
.doc-nav { position: static; }
@media (min-width: 900px) { .doc-nav { position: sticky; top: 88px; align-self: start; } }
.doc-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.doc-nav a { color: var(--muted); text-decoration: none; font-size: 15px; min-height: 44px; display: inline-flex; align-items: center; }
.doc-nav a:hover { color: var(--ink); }
.doc-body section { padding: 0 0 48px; margin: 0 0 48px; border-bottom: 1px solid var(--line); }
.doc-body section:last-child { border-bottom: 0; margin-bottom: 0; }
.doc-body p { color: var(--muted); max-width: 66ch; }
.doc-body p code { color: var(--ink); }

/* Tables */
.table-wrap { overflow-x: auto; margin-top: 24px; border: 1px solid var(--line); border-radius: 10px; }
table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 520px; }
caption { text-align: left; color: var(--muted); padding: 12px 16px 0; font-size: 14px; }
th, td { padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
thead th { color: var(--muted); font-weight: 500; font-size: 14px; }
tbody th { font-weight: 500; }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }

/* Changelog */
.entry { display: grid; gap: 12px; padding: 32px 0; border-top: 1px solid var(--line); }
.entry:last-child { border-bottom: 1px solid var(--line); }
.entry h2 { font-size: 1.5rem; }
.entry ul { margin: 0; padding-left: 20px; color: var(--muted); }
.entry li + li { margin-top: 6px; }
.entry .date { color: var(--lime); font-family: var(--pixel); font-size: 14px; margin: 0; }
@media (min-width: 900px) {
  .entry { grid-template-columns: 220px 1fr; gap: 40px; }
}

/* Status */
.comps { display: grid; gap: 0; border-top: 1px solid var(--line); }
.comp {
  display: grid;
  gap: 16px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
  align-items: center;
}
.comp h2 { font-size: 1.2rem; margin: 0 0 4px; }
.comp p { margin: 0; font-size: 15px; color: var(--lime); }
.comp p.muted { color: var(--muted); }
@media (min-width: 900px) { .comp { grid-template-columns: 240px 1fr; } }
.incidents { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.incidents li {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  font-size: 1.15rem;
  font-weight: 500;
}
.incidents .meta { font-size: 15px; }
.bars { display: flex; gap: 3px; height: 36px; align-items: stretch; }
.bars i { flex: 1 1 0; min-width: 2px; border-radius: 2px; background: #5E6A4E; }
.bars i.warn { background: var(--warn); }
.bars i.red { background: var(--red); }

/* Forms (slot markup: rendered only by the forms plugin) */
.slot { margin-top: 20px; }
.cta { padding: 96px 0; background: var(--panel); border-bottom: 1px solid var(--line); }
.cta h2 { max-width: 18ch; margin-bottom: 20px; }
.cta .slot p { margin-bottom: 14px; }
.form-row { display: grid; gap: 12px; margin-top: 20px; max-width: 640px; }
.form-row label { color: var(--muted); font-size: 15px; }
.form-row input {
  min-height: 48px;
  padding: 0 14px;
  background: var(--bg);
  border: 1px solid #5E6A4E;
  color: var(--ink);
  border-radius: var(--radius);
  font: 16px var(--sans);
}
@media (min-width: 600px) {
  .form-row { grid-template-columns: 1fr auto; align-items: end; }
  .form-row label { grid-column: 1 / -1; }
}

/* Footer */
.site-foot { padding: 56px 0 40px; }
.foot-grid { display: grid; gap: 32px; }
@media (min-width: 900px) { .foot-grid { grid-template-columns: 2fr 1fr 1fr; } }
.foot-name { font-weight: 700; font-size: 20px; letter-spacing: -0.03em; margin-bottom: 8px; }
.foot-links { display: grid; gap: 6px; }
.foot-links a { color: var(--muted); text-decoration: none; display: inline-flex; min-height: 44px; align-items: center; }
.foot-links a:hover { color: var(--ink); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .term .line { opacity: 1; }
}
