/* Rasa - Baseten-aligned presentation language. White canvas, precise grid, green accent. */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --bg: #ffffff;
  --bg-2: #f7f7f7;
  --paper: #ffffff;
  --card: #ffffff;
  --card-2: #f7f7f7;
  --ink: #0a0a0a;
  --text: #333333;
  --dim: #555555;
  --muted: #888888;
  --line: #e5e5e5;
  --line-dark: #0a0a0a;
  --border: #e5e5e5;
  --border-2: #d0d0d0;

  --green: #19e76e;
  --green-soft: rgba(25, 231, 110, 0.13);
  --blue: #f7f7f7;
  --red: #e5484d;

  --display: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --body: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "SFMono-Regular", "SF Mono", Consolas, "Liberation Mono", monospace;

  --r: 0px; --r-lg: 0px; --r-xl: 0px;
  --maxw: 1240px;
}

* , *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--body);
  background:
    linear-gradient(rgba(0, 0, 0, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.03) 1px, transparent 1px),
    var(--bg);
  background-size: 48px 48px;
  color: var(--text);
  line-height: 1.55;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
::selection { background: var(--green); color: var(--ink); }

.glow { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.glow::before, .glow::after {
  content: none;
}

#progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 100; background: var(--green); }

/* ---------- wrap ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(20px, 5vw, 56px); }
.section { padding: clamp(56px, 7vw, 92px) 0; position: relative; }
.section + .section { border-top: 1px solid var(--line); }
.arch-bleed { width: min(1280px, 94vw); margin-left: 50%; transform: translateX(-50%); }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 90;
  backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
}
.nav-in { display: flex; align-items: center; justify-content: space-between; height: 56px; }
.brand { display: flex; align-items: center; gap: 11px; font-family: var(--display); font-weight: 700; font-size: 18px; letter-spacing: -0.01em; color: var(--ink); }
.mark { width: 20px; height: 20px; border-radius: 4px; background: var(--green); box-shadow: none; }
.nav-links { display: flex; align-items: center; gap: clamp(16px, 2.5vw, 32px); }
.nav-links a { font-size: 14px; font-weight: 600; color: var(--dim); transition: color .2s; }
.nav-links a:hover { color: var(--green); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--mono); font-weight: 700; font-size: 12px;
  letter-spacing: 0.04em; text-transform: uppercase;
  min-height: 38px; padding: 0 16px; border-radius: 0; border: 1px solid var(--border-2);
  cursor: pointer; transition: background 75ms, color 75ms, border-color 75ms; white-space: nowrap;
}
.btn-primary { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--green); border-color: var(--green); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--green); border-color: var(--green); color: #fff; }
.btn-sm { min-height: 38px; padding: 0 16px; font-size: 11px; }

/* ---------- valkey badge ---------- */
.valkey {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 8px 14px; border-radius: 0;
  border: 1px solid var(--border-2);
  background: var(--paper);
  box-shadow: none;
  font-family: var(--mono); font-size: 12px; color: var(--dim);
  transition: transform .2s, box-shadow .2s;
}
.valkey:hover { transform: none; border-color: var(--green); color: var(--green); box-shadow: none; }
.valkey .heart { color: var(--green); }
.valkey img { height: 18px; width: auto; display: block; }
.valkey-lg { padding: 10px 18px; font-size: 13px; }
.valkey-lg img { height: 21px; }

/* ---------- typography ---------- */
h1 { font-family: var(--display); font-weight: 700; font-size: clamp(44px, 6.5vw, 80px); line-height: 1.05; letter-spacing: -0.04em; color: var(--ink); }
h2 { font-family: var(--display); font-weight: 700; font-size: clamp(28px, 4vw, 44px); line-height: 1.05; letter-spacing: -0.04em; color: var(--ink); }
h3 { font-family: var(--display); font-weight: 600; font-size: 19px; letter-spacing: -0.04em; color: var(--ink); }
.grad-text { background: none; color: #000; padding: 0; box-decoration-break: initial; -webkit-box-decoration-break: initial; }
.lead { font-size: clamp(17px, 1.8vw, 20px); color: var(--dim); line-height: 1.55; max-width: 780px; font-weight: 400; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; min-height: 32px; padding: 0 12px;
  border: 1px solid var(--ink); background: var(--green); color: var(--ink);
  font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase;
  margin-bottom: 22px;
}

/* ---------- hero ---------- */
.hero { padding-top: clamp(48px, 8vw, 86px); padding-bottom: clamp(40px, 6vw, 64px); }
.hero .lead { margin-top: 26px; }
.hero h1 { margin-top: 0; max-width: 22ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 38px; }
.hero-codelead { margin: 44px 0 16px; font-size: clamp(24px, 3vw, 34px); font-weight: 700; letter-spacing: -0.04em; color: var(--ink); }
.hero-editor { margin: 0; max-width: 600px; }

/* hero focal metric */
.hero-metric {
  margin-top: 56px;
  display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 1px;
  background: var(--border); border: 1px solid var(--border); border-radius: 0; overflow: hidden;
}
.metric { background: var(--paper); padding: 30px 28px; display: flex; flex-direction: column; gap: 10px; }
.metric .num { font-family: var(--mono); font-weight: 700; font-size: clamp(38px, 5.2vw, 60px); line-height: 0.95; letter-spacing: -0.02em; color: var(--ink); }
.metric.lead-metric { background: var(--green); }
.metric.lead-metric .num { color: var(--ink); }
.metric .num .u { font-size: 0.42em; color: var(--muted); margin-left: 4px; }
.metric .cap { font-size: 14px; color: var(--dim); }
.metric .cap b { color: var(--ink); font-weight: 700; }

/* ---------- generic section head ---------- */
.head { max-width: 720px; margin-bottom: 38px; }
.head h2 { margin-bottom: 16px; }

/* ---------- cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); }
.card {
  background: var(--paper); border: none; border-radius: 0;
  padding: 28px 26px; transition: background .2s;
  position: relative; overflow: hidden;
}
.card::before {
  content: ''; position: absolute; inset: 0 0 auto 0; height: 4px;
  background: var(--green); opacity: 0; transition: opacity .2s;
}
.card:hover { background: var(--paper); }
.card:hover::before { opacity: 1; }
.card .ic { width: 40px; height: 40px; border-radius: 0; background: var(--green); border: none; display: grid; place-items: center; margin-bottom: 18px; color: #fff; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--dim); font-size: 15.5px; }
.card code, .lead code, p code { font-family: var(--mono); font-size: 0.85em; background: var(--green-soft); border: 1px solid var(--line); border-radius: 0; padding: 1px 6px; color: var(--ink); }

/* ---------- diagram ---------- */
.diagram { margin-top: 40px; display: grid; gap: 14px; background: var(--paper); border: 1px solid var(--border); border-radius: 0; box-shadow: none; padding: clamp(22px, 4vw, 40px); }
.drow { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.dnode { border: 1px solid var(--border); border-radius: 0; padding: 16px 20px; background: var(--card-2); min-width: 200px; }
.dnode .dl { font-family: var(--display); font-weight: 700; font-size: 16px; color: var(--ink); }
.dnode .ds { font-family: var(--mono); font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.dnode.server { border-color: var(--green); box-shadow: none; }
.dnode.ctrl { border-color: var(--green); box-shadow: none; }
.darrow { font-family: var(--mono); font-size: 12.5px; color: var(--dim); display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 160px; }
.darrow .line { height: 2px; background: linear-gradient(90deg, var(--ink), transparent); border-radius: 0; margin-top: 6px; }
.darrow.rdma .line { background: linear-gradient(90deg, var(--green), transparent); }
.strike { text-decoration: line-through; text-decoration-color: var(--red); color: var(--red); }

/* ---------- stat tiles ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: 8px; background: var(--border); border: 1px solid var(--border); }
.stats.two { grid-template-columns: repeat(2, 1fr); max-width: 720px; }
.tile { background: var(--paper); border: none; border-radius: 0; padding: 26px 24px; transition: background .2s; }
.tile:hover { background: var(--card-2); }
.tile .num { font-family: var(--mono); font-weight: 700; font-size: clamp(30px, 3.8vw, 42px); line-height: 1; letter-spacing: -0.02em; color: var(--green); }
.tile .num .u { font-size: 0.42em; color: var(--muted); margin-left: 3px; }
.tile .num.g { color: var(--green); background: none; padding: 0; box-decoration-break: initial; -webkit-box-decoration-break: initial; }
.tile .lbl { margin-top: 14px; font-size: 14px; color: var(--dim); line-height: 1.5; }
.tile .lbl b { color: var(--ink); font-weight: 700; }

/* #perf: a borderless spec band (not floating cards) */
#perf .stats { gap: clamp(20px, 3vw, 38px); margin-top: 0; background: transparent; border: none; }
#perf .tile { background: transparent; border: none; border-radius: 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--green); }
#perf .tile:hover { background: transparent; }

/* #whatis: plain ruled columns (no boxes) */
#whatis .cards { gap: clamp(26px, 4vw, 52px); background: transparent; border: none; }
#whatis .card { background: transparent; border: none; border-radius: 0; padding: 18px 0 0; overflow: visible; }
#whatis .card::before { position: static; display: block; height: 4px; width: 40px; opacity: 1; margin-bottom: 16px; border-radius: 0; background: var(--green); }
#whatis .card:hover { background: transparent; }
#whatis .card:hover::before { opacity: 1; }

/* ---------- latency breakdown ---------- */
.latcap { margin-top: 14px; font-family: var(--mono); font-size: 13.5px; color: var(--dim); line-height: 1.55; }

/* ---------- code editor ---------- */
.editor { max-width: 720px; border: 1px solid var(--ink); border-radius: 0; overflow: hidden; background: #0d110c; box-shadow: none; }
.editor-bar { display: flex; align-items: center; gap: 8px; padding: 13px 18px; border-bottom: 1px solid rgba(255,255,255,0.16); background: #0a0d09; }
.dot { width: 12px; height: 12px; border-radius: 50%; opacity: 0.9; }
.dot.r { background: #000; } .dot.y { background: #8f8f8f; } .dot.g { background: var(--green); }
.editor-file { margin-left: 12px; font-family: var(--mono); font-size: 13px; color: rgba(234,253,236,0.6); }
.editor pre { margin: 0; padding: 24px 26px; overflow-x: auto; border: none; background: transparent; }
.editor code { font-family: var(--mono); font-size: 14px; line-height: 1.85; white-space: pre; display: block; color: #eafdec; min-height: 232px; }
.editor .kw { color: #7bdcb5; } .editor .fn { color: var(--green); } .editor .ty { color: #7bdcb5; }
.editor .st { color: #fcd34d; } .editor .cm { color: #6f7d6f; font-style: italic; } .editor .op, .editor .amp { color: rgba(234,253,236,0.66); }
.caret { display: inline-block; width: 8px; height: 1.05em; background: var(--green); vertical-align: -2px; animation: blink 1.05s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ---------- closing cta ---------- */
.cta-band { text-align: center; padding-top: clamp(76px, 9vw, 124px); padding-bottom: clamp(76px, 9vw, 124px); }
.cta-band h2 { max-width: 16ch; margin: 0 auto 22px; }
.cta-band .lead { margin: 0 auto 34px; }
.cta-band .row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; align-items: center; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 40px 0; }
.footer-in { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: space-between; }
.footer .req { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.footer .links { display: flex; gap: 22px; font-size: 14px; }
.footer .links a { color: var(--dim); } .footer .links a:hover { color: var(--ink); }

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .cards { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  #pricing .stats { grid-template-columns: repeat(2, 1fr) !important; }
  .hero-metric { grid-template-columns: 1fr; }
  .nav-links a:not(.btn) { display: none; }
}
@media (max-width: 520px) {
  .stats, .stats.two { grid-template-columns: 1fr; }
  #pricing .stats { grid-template-columns: 1fr !important; }
  .editor code {
    min-height: 180px;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
  }
}

/* embedded animated architecture SVG */
.arch-wrap { margin-top: 32px; background: var(--paper); border: 1px solid var(--border); border-radius: 0; box-shadow: none; padding: clamp(16px, 3vw, 30px); }
.flow .arch-wrap { padding: clamp(8px, 1.4vw, 16px); }
.arch { display: block; width: 100%; aspect-ratio: 1280 / 640; height: auto; }

.topo { display: block; width: 100%; height: auto; }

.metric-head { font-family: var(--mono); font-size: 15px; letter-spacing: 0.04em; color: var(--muted); margin-top: 52px; }
.metric-head .grad-text { font-weight: 700; }

/* p99 latency-by-size section */
.size-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); }
.size-stat {
  background: var(--paper); border: none; border-radius: 0;
  padding: clamp(36px, 5vw, 56px) clamp(28px, 3vw, 40px);
  transition: background .2s;
}
.size-stat:hover { background: var(--card-2); }
.size-stat .big { display: block; font-family: var(--mono); font-weight: 700; font-size: clamp(54px, 7.6vw, 92px); line-height: 0.92; letter-spacing: -0.03em; color: var(--ink); }
.size-stat .big .u { font-size: 0.32em; color: var(--muted); margin-left: 5px; letter-spacing: 0; }
.size-stat .lab { display: block; margin-top: 20px; font-family: var(--display); font-weight: 600; font-size: clamp(19px, 2.2vw, 26px); color: var(--dim); }
@media (max-width: 760px) { .size-grid { grid-template-columns: 1fr; } }

/* what it is / what it is not */
.isnt-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--border); border: 1px solid var(--border); }
.isbox { background: var(--paper); border: none; border-radius: 0; padding: 30px clamp(24px,3vw,34px); }
.isbox h3 { font-size: 21px; margin-bottom: 20px; }
.isbox ul { list-style: none; display: flex; flex-direction: column; gap: 13px; }
.isbox li { position: relative; padding-left: 32px; color: var(--dim); font-size: 16.5px; line-height: 1.45; }
.isbox li::before { position: absolute; left: 0; top: -1px; font-family: var(--mono); font-weight: 700; font-size: 16px; }
.is-yes { background: var(--card-2); }
.is-yes li::before { content: '\2713'; color: #0f9e4d; }
.is-no li::before { content: '\00D7'; color: var(--red); font-size: 19px; }
@media (max-width: 760px) { .isnt-grid { grid-template-columns: 1fr; } }

/* ---- performance map (instrumentation panel) ---- */
.latlead code { font-size: 0.8em; padding: 1px 8px; vertical-align: baseline; }

/* summary tiles */
.pmtiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; max-width: 920px; margin: 0 auto 18px; background: var(--border); border: 1px solid var(--border); }
.pmtile { background: var(--paper); border: none; border-radius: 0; padding: 28px 26px; }
.pmtval { display: block; font-family: var(--mono); font-weight: 700; font-size: clamp(34px, 4.4vw, 46px); line-height: 1; letter-spacing: -0.02em; color: var(--green); }
.pmtlbl { display: block; font-size: 14px; color: var(--dim); margin-top: 12px; }

/* the size-by-size map */
.pmcap { max-width: 920px; margin: 0 auto 10px; font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.pmap { max-width: 920px; margin: 0 auto; border: 1px solid var(--border); border-radius: 0; background: var(--paper); overflow: hidden; }
.pmhead, .pmrow { display: grid; grid-template-columns: 76px 84px 1fr 116px; align-items: center; gap: 18px; padding: 0 22px; }
.pmhead { height: 38px; border-bottom: 1px solid var(--border); font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.11em; text-transform: uppercase; color: var(--muted); }
.pmrow { height: 54px; border-bottom: 1px solid var(--line); }
.pmrow:last-child { border-bottom: none; }
.pmsize { font-family: var(--mono); font-size: 14px; color: var(--ink); }
.pmlat { font-family: var(--mono); font-weight: 700; font-size: 21px; color: var(--green); letter-spacing: -0.02em; white-space: nowrap; }
.pmu { font-size: 12px; font-weight: 500; color: var(--muted); margin-left: 1px; }

/* throughput meter */
.pmmeter { display: flex; align-items: center; gap: 12px; }
.pmtrack { position: relative; flex: 1; min-width: 60px; height: 10px; border-radius: 0; border: 1px solid var(--border-2); background-color: var(--bg);
  background-image: repeating-linear-gradient(90deg, rgba(0,0,0,0.08) 0 1px, transparent 1px 10%); }
.pmfill { position: absolute; left: 0; top: 0; height: 100%; width: 0; border-radius: 0; background: var(--green); transition: width 1.1s cubic-bezier(.4,0,.2,1); }
.in .pmfill { width: var(--w); }
.pmfill::after { content: ''; position: absolute; right: -2px; top: 0; width: 4px; height: 100%; background: var(--green); }
.pmgbps { font-family: var(--mono); font-size: 14px; font-weight: 700; color: var(--ink); min-width: 56px; text-align: right; white-space: nowrap; }
.pmunit { font-size: 10.5px; color: var(--muted); margin-left: 3px; }

/* load: qps over connection count */
.pmload { display: flex; flex-direction: column; line-height: 1.2; }
.pmqps { font-family: var(--mono); font-size: 13.5px; color: var(--dim); }
.pmconn { font-family: var(--mono); font-size: 11.5px; color: var(--muted); margin-top: 2px; }

@media (prefers-reduced-motion: reduce) { .pmfill { transition: none; } }

/* mobile: stacked measurement cards */
@media (max-width: 760px) {
  .pmtiles { grid-template-columns: 1fr; gap: 1px; }
  .pmtile { padding: 22px 22px; }
  .pmcap { display: none; }
  .pmhead { display: none; }
  .pmap { background: transparent; border: none; border-radius: 0; overflow: visible; display: grid; gap: 12px; }
  .pmrow {
    grid-template-columns: 1fr auto; grid-auto-rows: auto; align-items: baseline; gap: 12px 14px;
    height: auto; padding: 18px 20px; border: 1px solid var(--border); border-radius: 0; background: var(--paper);
  }
  .pmsize { grid-column: 1; grid-row: 1; font-size: 16px; color: var(--dim); }
  .pmlat { grid-column: 2; grid-row: 1; justify-self: end; font-size: 30px; color: var(--ink); }
  .pmtrack { display: none; }
  .pmmeter { grid-column: 1; grid-row: 2; gap: 0; }
  .pmgbps { font-size: 16px; min-width: 0; text-align: left; color: var(--ink); }
  .pmload { grid-column: 2; grid-row: 2; justify-self: end; flex-direction: row; gap: 8px; align-items: baseline; }
  .pmqps { font-size: 14px; }
  .pmconn { font-size: 13px; margin-top: 0; }
}

/* how-it-works: write-path steps */
.wpath { margin-top: 40px; }
.wpath .lead { margin-bottom: 22px; }
.wsteps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); }
@media (max-width: 760px) { .wsteps { grid-template-columns: 1fr; } }
.wstep { background: var(--paper); border: none; border-radius: 0; padding: 24px 22px; transition: background .2s; }
.wstep:hover { background: var(--card-2); }
.wstep .wn { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 0; background: var(--green); border: none; color: #fff; font-family: var(--mono); font-weight: 800; font-size: 15px; margin-bottom: 14px; }
.wstep h3 { margin-bottom: 8px; font-size: 18px; }
.wstep p { color: var(--dim); font-size: 15px; }

/* how-it-works: read/write/delete flow carousel */
.flow { margin-top: 4px; }
.flow-tabs { display: flex; gap: 10px; margin-bottom: 18px; flex-wrap: wrap; }
.flow-tab {
  font-family: var(--mono); font-weight: 700; font-size: 12px; letter-spacing: 0.02em; text-transform: uppercase;
  padding: 10px 20px; border-radius: 0; cursor: pointer;
  background: var(--paper); color: var(--dim); border: 1px solid var(--border-2);
  transition: background .2s, color .2s, transform .2s;
}
.flow-tab:hover { color: var(--green); transform: none; }
.flow-tab.active { color: #fff; background: var(--green); border-color: var(--green); }
#flow-cap { margin-top: 16px; max-width: 760px; }

/* ---------- blog: article + list ---------- */
.article { padding: clamp(40px, 7vw, 90px) 0 80px; }
.article .wrap { max-width: 760px; }
.article-back { display: inline-block; font-family: var(--mono); font-size: 13px; color: var(--dim); margin-bottom: 22px; }
.article-back:hover { color: var(--ink); }
.article-meta { font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.article h1 { font-size: clamp(32px, 5vw, 56px); line-height: 1.02; margin-bottom: 22px; }
.article-lead { font-size: clamp(18px, 2.1vw, 22px); color: var(--dim); line-height: 1.6; margin-bottom: 10px; }
.article h2 { font-size: clamp(22px, 3vw, 32px); margin: 44px 0 14px; }
.article p { color: var(--text); font-size: 17px; line-height: 1.75; margin-bottom: 16px; }
.article ul { margin: 0 0 18px; padding-left: 22px; display: flex; flex-direction: column; gap: 10px; }
.article li { color: var(--text); font-size: 17px; line-height: 1.7; }
.article li::marker { color: #0f9e4d; }
.article b { color: var(--ink); font-weight: 700; }
.article a { color: var(--ink); border-bottom: 2px solid var(--green); }
.article a:hover { background: var(--green); }
.article code { font-family: var(--mono); font-size: 0.85em; background: var(--green-soft); border: 1px solid var(--line); border-radius: 0; padding: 1px 6px; color: var(--ink); }
.article-diagram { margin: 28px 0 26px; padding: clamp(12px, 2.4vw, 18px); border: 1px solid var(--ink); border-radius: 0; background: var(--paper); box-shadow: 6px 6px 0 rgba(8,10,7,0.10); overflow-x: auto; }
.article-diagram svg { display: block; width: 100%; max-width: 100%; height: auto; }
.article-diagram .mobile-arch { display: none; }
.article-diagram img { display: block; width: 100%; max-width: 100%; height: auto; border-radius: 0; }
.article-diagram figcaption { margin-top: 12px; color: var(--muted); font-family: var(--mono); font-size: 12.5px; line-height: 1.55; }
.article-note { margin: 26px 0; padding: 18px 20px; border-left: 4px solid var(--green); border-radius: 0; background: var(--card-2); }
.article-note p:last-child { margin-bottom: 0; }
.article-table { display: block; width: 100%; max-width: 100%; margin: 22px 0 26px; border-collapse: collapse; overflow-x: auto; font-family: var(--mono); font-size: 13px; color: var(--dim); }
.article-table th, .article-table td { padding: 12px 10px; border-bottom: 1px solid var(--line); text-align: right; }
.article-table th:first-child, .article-table td:first-child { text-align: left; }
.article-table th { color: var(--ink); font-weight: 700; }
.article-table td strong { color: var(--ink); }
.article-foot { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 14.5px; color: var(--muted); line-height: 1.6; }

@media (max-width: 700px) {
  .article h1 { overflow-wrap: anywhere; }
  .article-diagram .desktop-arch { display: none; }
  .article-diagram .mobile-arch { display: block; }
}

.bloglist { display: flex; flex-direction: column; gap: 16px; max-width: 820px; }
.blogcard { display: flex; flex-direction: column; gap: 8px; padding: 26px 28px; background: var(--paper); border: 1px solid var(--border); border-radius: 0; box-shadow: none; transition: border-color 75ms, background 75ms; }
.blogcard:hover { transform: none; box-shadow: none; border-color: var(--green); background: var(--paper); }
.blogcard-meta { font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.blogcard-title { font-family: var(--display); font-weight: 700; font-size: clamp(19px, 2.4vw, 24px); color: var(--ink); letter-spacing: 0; line-height: 1.2; }
.blogcard-desc { color: var(--dim); font-size: 15.5px; line-height: 1.6; }
.blogcard-go { font-family: var(--mono); font-size: 13px; color: #0f9e4d; margin-top: 4px; }

/* blog: code blocks + tables */
.article pre { background: #0d110c; border: 1px solid var(--ink); border-radius: 0; padding: 18px 20px; overflow-x: auto; margin: 0 0 18px; }
.article pre code { background: none; border: none; padding: 0; color: #eafdec; font-size: 13.5px; line-height: 1.7; display: block; }
.article-table { width: 100%; border-collapse: collapse; margin: 4px 0 20px; font-size: 15px; }
.article-table th, .article-table td { text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.article-table th { font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.article-table td { color: var(--dim); }
.article-table td:first-child { white-space: nowrap; }

.blog-all { display: inline-block; margin-top: 20px; font-family: var(--mono); font-size: 14px; color: #0f9e4d; }
.blog-all:hover { color: var(--ink); }

/* Baseten alignment pass */
:root {
  --green: #19e76e;
  --green-soft: rgba(25, 231, 110, 0.13);
  --line: #d8d8d8;
  --border: #d8d8d8;
  --border-2: #cccccc;
  --muted: #676e64;
  --surface: #f5f8f4;
  --pink: #ffa9fd;
}

body {
  background:
    linear-gradient(to right, rgba(0, 0, 0, 0.08) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.08) 1px, transparent 1px),
    #fff;
  background-size: 16.666vw 112px;
}

.announce {
  display: flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: var(--green);
  color: #000;
  font-size: 14px;
  line-height: 1;
}

.announce a {
  border-bottom: 1px solid currentColor;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nav {
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid #d8d8d8;
}

.nav-in {
  height: 84px;
}

.brand {
  gap: 10px;
  font-size: 25px;
  font-weight: 700;
}

.mark {
  position: relative;
  width: 28px;
  height: 25px;
  border-radius: 0;
  background:
    linear-gradient(#000 0 0) 0 0 / 24px 5px no-repeat,
    linear-gradient(#000 0 0) 8px 10px / 20px 5px no-repeat,
    linear-gradient(#000 0 0) 0 20px / 24px 5px no-repeat;
}

.mark::after {
  content: "";
  position: absolute;
  right: 0;
  top: 10px;
  width: 5px;
  height: 5px;
  background: #000;
}

.nav-links {
  gap: clamp(18px, 2.6vw, 34px);
}

.nav-links a {
  color: #000;
  font-family: var(--body);
  font-size: 16px;
  font-weight: 400;
}

.btn,
.flow-tab {
  min-height: 50px;
  border-color: #d8d8d8;
  color: #000;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.btn-primary {
  border-color: #000;
  background: #000;
  color: #fff;
}

.btn-primary:hover,
.btn-ghost:hover,
.flow-tab.active {
  border-color: #000;
  background: #000;
  color: #fff;
}

.hero {
  padding: 0;
  border-bottom: 1px dashed #cfcfcf;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 0.92fr);
  gap: 0;
  min-height: 460px;
  padding-right: 0;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 460px;
  padding: clamp(38px, 5vw, 64px) clamp(24px, 4vw, 56px) clamp(40px, 5vw, 58px) 0;
  border-right: 1px dashed #cfcfcf;
}

.hero h1 {
  max-width: 14ch;
  font-size: clamp(48px, 6.35vw, 74px);
  line-height: 0.94;
  letter-spacing: -0.055em;
}

.grad-text {
  background: none;
  color: #000;
}

.lead {
  color: #000;
  font-size: clamp(18px, 1.8vw, 21px);
  line-height: 1.26;
}

.hero .lead {
  max-width: 620px;
  margin-top: 32px;
}

.hero-cta {
  margin-top: 34px;
}

.hero-visual {
  position: relative;
  min-height: 460px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.74);
}

.hero-art {
  display: block;
  width: min(100%, 690px);
  height: 100%;
  min-height: 460px;
  object-fit: contain;
  margin: 0 auto;
}

.hero-codelead {
  margin-top: 56px;
  font-size: clamp(30px, 4vw, 48px);
}

.editor {
  max-width: 720px;
  border-color: #000;
  background: #060706;
}

.section {
  border-top: 1px dashed #cfcfcf;
}

.section + .section {
  border-top: 1px dashed #cfcfcf;
}

.head {
  max-width: 860px;
}

h2 {
  font-size: clamp(38px, 5.8vw, 64px);
  line-height: 0.96;
}

.pmtiles,
.stats,
.cards {
  background: #d8d8d8;
  border-color: #d8d8d8;
}

.pmtile,
.tile,
.card,
.pmap,
.arch-wrap,
.blogcard {
  border-color: #d8d8d8;
  background: rgba(255, 255, 255, 0.94);
}

.pmtval,
.tile .num,
.pmlat {
  color: #000;
}

.card::before,
#whatis .card::before,
.pmfill,
#perf .tile {
  border-color: var(--green);
  background: var(--green);
}

#perf .tile {
  background: transparent;
}

.valkey {
  border-color: #d8d8d8;
  box-shadow: none;
}

@media (max-width: 900px) {
  .announce {
    padding: 0 16px;
    justify-content: flex-start;
  }

  .nav-in {
    height: 72px;
  }

  .hero-grid {
    display: block;
    min-height: 0;
    padding-right: clamp(20px, 5vw, 56px);
  }

  .hero-copy {
    min-height: 0;
    padding: 54px 0 34px;
    border-right: 0;
  }

  .hero h1 {
    max-width: 9.2ch;
    font-size: clamp(46px, 12vw, 66px);
  }

  .hero-visual {
    min-height: 360px;
    border-top: 1px dashed #cfcfcf;
  }

  .lead {
    font-size: 19px;
    line-height: 1.35;
  }
}
