/* ============================================================
   Rasa, styled in the Momento (gomomento.com) design language.
   Manrope display / Inter body / IBM Plex Mono data.
   Palette derived from Momento's oklch design tokens.
   ============================================================ */

:root {
  /* --- Momento palette --- */
  --paper:        #f3f0ee;   /* parchment surface  */
  --paper-2:      #fbf8f6;
  --mint:         #d7f3e9;   /* mint surface       */
  --mint-2:       #edfff8;   /* mint card          */
  --white:        #ffffff;

  --ink:          #0e2515;   /* dark green, headings */
  --ink-deep:     #091f10;
  --text:         #2f3d34;
  --dim:          #55655b;
  --muted:        #7a877f;

  --green:        #00c88c;   /* accent            */
  --green-mid:    #03a876;   /* links / hover     */
  --green-deep:   #076b45;   /* primary button    */
  --lime:         #c7ff47;   /* highlight         */

  --line:         #e2dcd6;
  --line-2:       #d1c9c1;
  --line-mint:    #b6e2d0;

  --red:          #c2453f;

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

  --r:    6px;    /* Momento --border-radius */
  --r-lg: 12px;
  --maxw: 1180px;

  --shadow-sm: 0 1px 2px rgba(14, 37, 21, .06);
  --shadow:    0 2px 10px rgba(14, 37, 21, .07);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--body);
  background: var(--white);
  color: var(--text);
  font-size: 18px;
  line-height: 1.55;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; }
::selection { background: var(--lime); color: var(--ink); }
:focus-visible { outline: 2px solid var(--green-mid); outline-offset: 2px; border-radius: var(--r); }

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

/* ---------- layout ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(20px, 5vw, 48px); }
.section { padding: clamp(64px, 8vw, 112px) 0; position: relative; }
.arch-bleed { width: min(1240px, 94vw); margin-left: 50%; transform: translateX(-50%); }

/* ---------- surface rhythm (Momento alternates white / mint / parchment) ---------- */
#latency   { background: var(--paper); }
#how       { background: var(--mint); }
#perf      { background: var(--paper); }
#design    { background: var(--mint); }
.cta-band  { background: var(--ink); }

/* ---------- announce bar ---------- */
.announce {
  display: flex; min-height: 44px; align-items: center; justify-content: center;
  gap: 14px; padding: 0 16px;
  background: var(--lime); color: var(--ink);
  font-size: 15px; font-weight: 700; line-height: 1.2;
}
.announce a {
  font-family: var(--body); font-size: 15px; font-weight: 700;
  text-transform: none; letter-spacing: 0;
  border-bottom: 2px solid rgba(14, 37, 21, .35);
  transition: border-color .16s ease;
}
.announce a:hover { border-bottom-color: var(--ink); }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 90;
  background: rgba(243, 240, 238, .92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-in { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 20px; }
.brand { display: flex; align-items: center; }
.brandmark { display: block; height: 26px; width: auto; }
/* footer sits on parchment; nav on parchment too, so the dark wordmark works on both */
.footer .brandmark { height: 24px; }
.cta-band .brandmark { filter: brightness(0) invert(1); }
.nav-links { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 30px); }
.nav-links a {
  font-family: var(--body); font-size: 16px; font-weight: 500;
  color: var(--ink); transition: color .16s ease;
}
.nav-links a:hover { color: var(--green-mid); }

/* ---------- buttons (Momento .button) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--body); font-weight: 700; font-size: 16px;
  letter-spacing: 0; text-transform: none;
  min-height: 44px; padding: 8px 24px;
  border: 1px solid transparent; border-radius: var(--r);
  cursor: pointer; white-space: nowrap;
  transition: background-color .16s ease, border-color .16s ease, color .16s ease;
}
.btn-primary { background: var(--green-deep); border-color: var(--green-deep); color: #fff; }
.btn-primary:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-ghost { background: transparent; border-color: var(--line-2); color: var(--green-mid); }
.btn-ghost:hover { background: var(--paper); border-color: var(--green-mid); color: var(--green-deep); }
.btn-sm { min-height: 36px; padding: 6px 16px; font-size: 15px; }
.nav .btn-ghost { background: var(--white); }

/* on the dark closing band */
.cta-band .btn-primary { background: var(--lime); border-color: var(--lime); color: var(--ink); }
.cta-band .btn-primary:hover { background: #fff; border-color: #fff; color: var(--ink); }

/* ---------- valkey badge ---------- */
.valkey {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 9px 16px; border-radius: var(--r);
  border: 1px solid var(--line-2); background: var(--white);
  font-family: var(--body); font-size: 15px; color: var(--dim);
  transition: border-color .16s ease, color .16s ease;
}
.valkey:hover { border-color: var(--green); color: var(--ink); }
.valkey .heart { color: var(--green-mid); }
.valkey img { height: 18px; width: auto; display: block; }
.cta-band .valkey { background: transparent; border-color: rgba(255,255,255,.28); color: rgba(255,255,255,.82); }
.cta-band .valkey img { filter: brightness(0) invert(1); }

/* ---------- typography ---------- */
h1, h2, h3 { font-family: var(--display); color: var(--ink); }
h1 { font-weight: 800; font-size: clamp(40px, 5.6vw, 66px); line-height: 1.05; letter-spacing: -0.025em; }
h2 { font-weight: 800; font-size: clamp(30px, 3.9vw, 46px); line-height: 1.1;  letter-spacing: -0.022em; }
h3 { font-weight: 700; font-size: 20px; line-height: 1.25; letter-spacing: -0.012em; }
.grad-text { background: none; color: var(--green-mid); padding: 0; }
.lead {
  font-family: var(--body); font-size: clamp(17px, 1.55vw, 20px);
  color: var(--dim); line-height: 1.55; max-width: 68ch; font-weight: 400;
}

/* ---------- hero ---------- */
.hero { padding: 0; background: var(--white); }
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(400px, .9fr);
  gap: clamp(24px, 4vw, 56px); align-items: center; min-height: 520px;
}
.hero-copy {
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(48px, 6vw, 84px) 0;
}
.hero h1 { max-width: 18ch; text-wrap: balance; }
.hero .lead { max-width: 560px; margin-top: 24px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-visual { display: flex; align-items: center; justify-content: center; }
.hero-art { display: block; width: min(100%, 620px); height: auto; }
.hero-codelead {
  margin: clamp(24px, 4vw, 48px) 0 20px;
  font-family: var(--display); font-weight: 800;
  font-size: clamp(26px, 3.2vw, 40px); letter-spacing: -0.022em; color: var(--ink);
}
.hero-editor { margin: 0 0 clamp(56px, 7vw, 96px); max-width: 640px; }

/* ---------- section head ---------- */
.head { max-width: 780px; margin-bottom: clamp(32px, 4vw, 48px); }
.head h2 { margin-bottom: 16px; }

/* ---------- cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 24px); }
.card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 28px 26px;
  box-shadow: var(--shadow-sm);
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}
.card:hover { border-color: var(--green); box-shadow: var(--shadow); transform: translateY(-2px); }
.card .ic {
  width: 40px; height: 40px; border-radius: var(--r);
  background: var(--mint-2); border: 1px solid var(--line-mint);
  display: grid; place-items: center; margin-bottom: 18px;
  color: var(--green-deep); font-size: 15px;
}
.card h3 { margin-bottom: 10px; }
.card p { color: var(--dim); font-size: 16px; line-height: 1.6; }
#how .card, #design .card { background: var(--mint-2); border-color: var(--line-mint); }

code, .card code, .lead code, p code {
  font-family: var(--mono); font-size: .85em;
  background: var(--mint-2); border: 1px solid var(--line-mint);
  border-radius: 4px; padding: 1px 6px; color: var(--green-deep);
}

/* ---------- stat tiles ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 2vw, 24px); }
.tile {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 26px 24px;
  transition: border-color .16s ease, box-shadow .16s ease;
}
.tile:hover { border-color: var(--green); box-shadow: var(--shadow-sm); }
.tile .num {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(30px, 3.6vw, 42px); line-height: 1;
  letter-spacing: -0.03em; color: var(--ink);
}
.tile .num .u { font-family: var(--body); font-size: .4em; font-weight: 600; color: var(--muted); margin-left: 4px; letter-spacing: 0; }
.tile .num.g { color: var(--green-mid); }
.tile .lbl { margin-top: 14px; font-size: 15px; color: var(--dim); line-height: 1.5; }
.tile .lbl b { color: var(--ink); font-weight: 700; }

/* #perf: rule-marked spec band, no boxes */
#perf .stats { grid-template-columns: repeat(3, 1fr); gap: clamp(22px, 3vw, 40px); }
#perf .tile {
  background: transparent; border: none; border-radius: 0;
  padding: 4px 0 4px 20px; border-left: 3px solid var(--green);
  box-shadow: none;
}
#perf .tile:hover { box-shadow: none; }

/* #whatis: ruled columns, no boxes */
#whatis .cards { gap: clamp(26px, 4vw, 48px); }
#whatis .card {
  background: transparent; border: none; border-radius: 0;
  padding: 18px 0 0; box-shadow: none;
}
#whatis .card:hover { transform: none; box-shadow: none; }
#whatis .card::before {
  content: ''; display: block; height: 4px; width: 44px;
  background: var(--green); border-radius: 2px; margin-bottom: 16px;
}

/* ---------- integrations + roadmap ---------- */
#roadmap { background: var(--paper); }
.roadmap { display: flex; flex-direction: column; gap: 14px; max-width: 920px; }
.rm {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 24px;
  align-items: start; background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 22px 26px; box-shadow: var(--shadow-sm);
  transition: border-color .16s ease, box-shadow .16s ease;
}
.rm:hover { border-color: var(--green); box-shadow: var(--shadow); }
.rm h3 { grid-column: 1; grid-row: 1; }
.rm p { grid-column: 1; grid-row: 2; color: var(--dim); font-size: 16px; line-height: 1.55; }
.rm p a { color: var(--green-mid); font-weight: 600; white-space: nowrap; }
.rm p a:hover { color: var(--ink); }
.st {
  grid-column: 2; grid-row: 1 / span 2; align-self: center;
  font-family: var(--body); font-size: 12.5px; font-weight: 700;
  letter-spacing: .05em; text-transform: uppercase;
  padding: 6px 14px; border-radius: 999px; white-space: nowrap;
}
.st-soon { background: var(--lime); color: var(--ink); }
.st-prog { background: var(--mint-2); color: var(--green-deep); border: 1px solid var(--line-mint); }
.st-plan { background: var(--paper); color: var(--muted); border: 1px solid var(--line-2); }
@media (max-width: 680px) {
  .rm { grid-template-columns: 1fr; }
  .st { grid-column: 1; grid-row: 3; justify-self: start; margin-top: 6px; }
}

/* ---------- captions ---------- */
.latcap { margin-top: 14px; font-size: 15px; color: var(--dim); line-height: 1.55; max-width: 760px; }
.latlead code { font-size: .8em; vertical-align: baseline; }

/* ---------- code editor ---------- */
.editor {
  max-width: 720px; border: 1px solid var(--ink); border-radius: var(--r-lg);
  overflow: hidden; background: var(--ink); box-shadow: var(--shadow);
}
.editor-bar {
  display: flex; align-items: center; gap: 8px; padding: 13px 18px;
  border-bottom: 1px solid rgba(255,255,255,.12); background: var(--ink-deep);
}
.dot { width: 11px; height: 11px; border-radius: 50%; }
.dot.r { background: #4a6b55; } .dot.y { background: #6f9b7f; } .dot.g { background: var(--green); }
.editor-file { margin-left: 12px; font-family: var(--mono); font-size: 13px; color: rgba(215,243,233,.62); }
.editor pre { margin: 0; padding: 24px 26px; overflow-x: auto; background: transparent; }
.editor code {
  font-family: var(--mono); font-size: 14px; line-height: 1.85;
  white-space: pre; display: block; color: #e7f7ef; min-height: 232px;
  background: none; border: none; padding: 0;
}
.editor .kw { color: #7fe3bd; } .editor .fn { color: var(--lime); } .editor .ty { color: #7fe3bd; }
.editor .st { color: #ffd977; } .editor .cm { color: #6d8577; font-style: italic; }
.editor .op, .editor .amp { color: rgba(231,247,239,.66); }
.caret {
  display: inline-block; width: 8px; height: 1.05em; background: var(--lime);
  vertical-align: -2px; animation: blink 1.05s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* ---------- diagram frames ---------- */
.arch-wrap {
  margin-top: 32px; background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: clamp(16px, 3vw, 30px); box-shadow: var(--shadow-sm);
}
.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; }

/* ---------- performance map ---------- */
.pmtiles {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2vw, 24px); max-width: 940px; margin: 0 auto 28px;
}
.pmtile {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 28px 26px; box-shadow: var(--shadow-sm);
}
.pmtval {
  display: block; font-family: var(--display); font-weight: 800;
  font-size: clamp(32px, 4vw, 44px); line-height: 1;
  letter-spacing: -0.03em; color: var(--green-mid);
}
.pmtlbl { display: block; font-size: 15px; color: var(--dim); margin-top: 12px; line-height: 1.45; }

.pmcap {
  max-width: 940px; margin: 0 auto 10px;
  font-family: var(--body); font-size: 13px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; color: var(--green-deep);
}
.pmap {
  max-width: 940px; margin: 0 auto; border: 1px solid var(--line);
  border-radius: var(--r-lg); background: var(--white); overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.pmhead, .pmrow {
  display: grid; grid-template-columns: 80px 88px 1fr 118px;
  align-items: center; gap: 18px; padding: 0 22px;
}
.pmhead {
  height: 42px; border-bottom: 1px solid var(--line); background: var(--paper);
  font-family: var(--body); font-size: 12px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
}
.pmrow { height: 56px; border-bottom: 1px solid var(--line); transition: background .16s ease; }
.pmrow:last-child { border-bottom: none; }
.pmrow:hover { background: var(--mint-2); }
.pmsize { font-family: var(--mono); font-size: 14px; color: var(--ink); }
.pmlat {
  font-family: var(--display); font-weight: 800; font-size: 22px;
  color: var(--green-mid); letter-spacing: -0.02em; white-space: nowrap;
}
.pmu { font-family: var(--body); font-size: 12px; font-weight: 600; color: var(--muted); margin-left: 2px; }

.pmmeter { display: flex; align-items: center; gap: 12px; }
.pmtrack {
  position: relative; flex: 1; min-width: 60px; height: 10px;
  border-radius: 999px; background: var(--paper); border: 1px solid var(--line);
  overflow: hidden;
}
.pmfill {
  position: absolute; left: 0; top: 0; height: 100%; width: 0; border-radius: 999px;
  background: linear-gradient(90deg, var(--green-deep), var(--green));
  transition: width 1.1s cubic-bezier(.4, 0, .2, 1);
}
.in .pmfill { width: var(--w); }
.pmgbps { font-family: var(--mono); font-size: 14px; font-weight: 600; color: var(--ink); min-width: 58px; text-align: right; white-space: nowrap; }
.pmunit { font-size: 10.5px; color: var(--muted); margin-left: 3px; }
.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; } }

/* ---------- flow tabs ---------- */
.flow { margin-top: 4px; }
.flow-tabs { display: flex; gap: 10px; margin-bottom: 18px; flex-wrap: wrap; }
.flow-tab {
  font-family: var(--body); font-weight: 700; font-size: 15px;
  letter-spacing: 0; text-transform: none;
  min-height: 42px; padding: 8px 22px; border-radius: var(--r); cursor: pointer;
  background: var(--white); color: var(--green-mid); border: 1px solid var(--line-2);
  transition: background-color .16s ease, color .16s ease, border-color .16s ease;
}
.flow-tab:hover { border-color: var(--green); color: var(--green-deep); }
.flow-tab.active { color: #fff; background: var(--green-deep); border-color: var(--green-deep); }
#flow-cap { margin-top: 16px; max-width: 780px; }

/* ---------- closing cta (dark green band) ---------- */
.cta-band { text-align: center; padding: clamp(76px, 9vw, 120px) 0; }
.cta-band h2 { max-width: 18ch; margin: 0 auto 20px; color: #fff; }
.cta-band .grad-text { color: var(--lime); }
.cta-band .lead { margin: 0 auto 34px; color: rgba(255,255,255,.78); }
.cta-band .row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; align-items: center; }

/* ---------- footer ---------- */
.footer { background: var(--paper); border-top: 1px solid var(--line); padding: 44px 0; }
.footer-in { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: space-between; }
.footer .req { font-size: 15px; color: var(--muted); }
.footer .links { display: flex; gap: 22px; font-size: 15px; }
.footer .links a { color: var(--green-mid); font-weight: 500; }
.footer .links a:hover { color: var(--ink); }

/* ---------- reveal ---------- */
.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; } }

/* ============================================================
   Blog
   ============================================================ */
.article { padding: clamp(40px, 6vw, 80px) 0 80px; }
.article .wrap { max-width: 760px; }
.article-back {
  display: inline-block; font-size: 15px; font-weight: 600;
  color: var(--green-mid); margin-bottom: 24px;
}
.article-back:hover { color: var(--ink); }
.article-meta {
  font-family: var(--body); font-size: 13px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; color: var(--green-deep); margin-bottom: 14px;
}
.article h1 { font-size: clamp(32px, 4.6vw, 52px); line-height: 1.06; margin-bottom: 22px; }
.article-lead { font-size: clamp(18px, 2vw, 22px); color: var(--dim); line-height: 1.6; margin-bottom: 10px; }
.article h2 { font-size: clamp(24px, 2.9vw, 32px); margin: 48px 0 14px; }
.article p { color: var(--text); font-size: 18px; line-height: 1.75; margin-bottom: 18px; }
.article ul { margin: 0 0 20px; padding-left: 24px; display: flex; flex-direction: column; gap: 10px; }
.article li { color: var(--text); font-size: 18px; line-height: 1.7; }
.article li::marker { color: var(--green-mid); }
.article b, .article strong { color: var(--ink); font-weight: 700; }
.article a { color: var(--green-deep); border-bottom: 2px solid var(--green); font-weight: 500; }
.article a:hover { background: var(--mint-2); color: var(--ink); }
.article code {
  font-family: var(--mono); font-size: .85em;
  background: var(--mint-2); border: 1px solid var(--line-mint);
  border-radius: 4px; padding: 1px 6px; color: var(--green-deep);
}
.article pre {
  background: var(--ink); border: 1px solid var(--ink); border-radius: var(--r-lg);
  padding: 20px 22px; overflow-x: auto; margin: 0 0 20px;
}
.article pre code {
  background: none; border: none; padding: 0; color: #e7f7ef;
  font-size: 13.5px; line-height: 1.7; display: block;
}
.article-diagram {
  margin: 30px 0 28px; padding: clamp(14px, 2.4vw, 20px);
  border: 1px solid var(--line); border-radius: var(--r-lg);
  background: var(--white); box-shadow: var(--shadow-sm); overflow-x: auto;
}
/* diagrams authored on a dark canvas (near-white labels) get one */
.article-diagram.dark-canvas { background: var(--ink); border-color: var(--ink); }
.article-diagram.dark-canvas figcaption { color: rgba(231, 247, 239, .62); }

.article-diagram svg, .article-diagram img { display: block; width: 100%; max-width: 100%; height: auto; }
.article-diagram .mobile-arch { display: none; }
.article-diagram figcaption { margin-top: 12px; color: var(--muted); font-size: 14px; line-height: 1.55; }
.article-note {
  margin: 28px 0; padding: 20px 22px;
  border-left: 4px solid var(--green); border-radius: var(--r);
  background: var(--mint-2);
}
.article-note p:last-child { margin-bottom: 0; }
.article-table {
  display: block; width: 100%; max-width: 100%; margin: 24px 0 28px;
  border-collapse: collapse; overflow-x: auto; font-size: 15px; color: var(--dim);
}
.article-table th, .article-table td {
  padding: 12px 12px; border-bottom: 1px solid var(--line);
  text-align: left; vertical-align: top;
}
.article-table th {
  font-family: var(--body); font-size: 12px; font-weight: 700;
  letter-spacing: .07em; text-transform: uppercase; color: var(--muted);
}
.article-table td:first-child { white-space: nowrap; }
.article-table td strong { color: var(--ink); }
.article-foot {
  margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line);
  font-size: 15px; color: var(--muted); line-height: 1.6;
}

/* ---------- blog list ---------- */
.bloglist { display: flex; flex-direction: column; gap: 16px; max-width: 840px; }
.blogcard {
  display: flex; flex-direction: column; gap: 8px; padding: 28px 30px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}
.blogcard:hover { border-color: var(--green); box-shadow: var(--shadow); transform: translateY(-2px); }
.blogcard-meta {
  font-family: var(--body); font-size: 12.5px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; color: var(--green-deep);
}
.blogcard-title {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(19px, 2.2vw, 24px); color: var(--ink);
  letter-spacing: -0.018em; line-height: 1.22;
}
.blogcard-desc { color: var(--dim); font-size: 16px; line-height: 1.6; }
.blogcard-go { font-size: 15px; font-weight: 700; color: var(--green-mid); margin-top: 4px; }
.blog-all { display: inline-block; margin-top: 24px; font-size: 16px; font-weight: 700; color: var(--green-mid); }
.blog-all:hover { color: var(--ink); }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; min-height: 0; gap: 0; }
  .hero-copy { padding: 48px 0 24px; }
  .hero h1 { max-width: 100%; }
  .hero-visual { padding-bottom: 32px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .cards { grid-template-columns: 1fr; }
  .nav-links a:not(.btn) { display: none; }
  .pmtiles { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  /* stacked measurement cards */
  .pmcap, .pmhead { display: none; }
  .pmap { background: transparent; border: none; box-shadow: none; 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(--line); border-radius: var(--r-lg); background: var(--white);
  }
  .pmrow:hover { background: var(--white); }
  .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; }
  .pmtrack { display: none; }
  .pmmeter { grid-column: 1; grid-row: 2; gap: 0; }
  .pmgbps { font-size: 16px; min-width: 0; text-align: left; }
  .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; }
}
@media (max-width: 700px) {
  .article h1 { overflow-wrap: anywhere; }
  .article-diagram .desktop-arch { display: none; }
  .article-diagram .mobile-arch { display: block; }
}
@media (max-width: 520px) {
  .stats { grid-template-columns: 1fr; }
  .editor code { min-height: 180px; white-space: pre-wrap; overflow-wrap: anywhere; }
  .footer-in { flex-direction: column; align-items: flex-start; }
}

/* ============================================================
   Company home page
   ============================================================ */
.homehero { padding: clamp(64px, 9vw, 128px) 0 clamp(48px, 6vw, 80px); background: var(--white); }
.homehero h1 { max-width: 20ch; }
.homehero .lead { margin-top: 24px; max-width: 62ch; }

.pedigree {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2.4vw, 32px); margin-top: clamp(36px, 5vw, 56px);
}
.ped { padding: 4px 0 4px 20px; border-left: 3px solid var(--green); }
.pednum {
  display: block; font-family: var(--display); font-weight: 800;
  font-size: clamp(20px, 2.3vw, 27px); letter-spacing: -0.02em; color: var(--ink); line-height: 1.15;
}
.pedlbl { display: block; margin-top: 8px; font-size: 15px; color: var(--dim); line-height: 1.5; }

/* customers */
#customers { background: var(--paper); }
.logo-grid {
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: clamp(12px, 1.6vw, 20px); margin-top: clamp(28px, 4vw, 44px);
}
.logo-tile {
  display: grid; place-items: center; min-height: 112px; padding: 10px 14px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm); overflow: hidden;
}
/* Most of these files are 600x300 canvases with the mark centred in a lot of
   transparent padding, so a single max-height shrinks some marks to ~10px.
   Heights below are per-file, derived from each image's measured content box,
   so the visible mark lands at a consistent ~30px tall. */
.logo-tile img {
  max-width: none; width: auto;
  filter: grayscale(1); opacity: .72; transition: filter .16s ease, opacity .16s ease;
}
.logo-tile img[src$="bbc.svg"] { height: 30px; }
.logo-tile img[src$="capcom.png"] { height: 23px; }
.logo-tile img[src$="cbs.png"] { height: 92px; }
.logo-tile img[src$="mercadolibre.svg"] { height: 40px; }
.logo-tile img[src$="directv.png"] { height: 84px; }
.logo-tile img[src$="fox.png"] { height: 70px; }
.logo-tile img[src$="nubank.svg"] { height: 35px; }
.logo-tile img[src$="paramount.png"] { height: 47px; }
.logo-tile img[src$="snap.png"] { height: 72px; }
.logo-tile img[src$="wbd.png"] { height: 38px; }
.logo-tile:hover img { filter: grayscale(0); opacity: 1; }

/* rasa feature band */
.rasa-feature { background: var(--ink); text-align: center; padding: clamp(72px, 9vw, 116px) 0; }
.rasa-feature h2 { color: #fff; margin: 12px auto 20px; max-width: 20ch; }
.rasa-feature .grad-text { color: var(--lime); }
.rasa-feature .lead { color: rgba(255,255,255,.78); margin: 0 auto; max-width: 64ch; }
.kicker {
  display: inline-block; font-family: var(--body); font-size: 12.5px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: var(--lime);
}
.rstats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(18px, 2.4vw, 30px); max-width: 1000px; margin: clamp(36px, 5vw, 52px) auto 0;
}
.rstat { padding: 22px 18px; border: 1px solid rgba(255,255,255,.16); border-radius: var(--r-lg); }
.rnum {
  display: block; font-family: var(--display); font-weight: 800;
  font-size: clamp(25px, 3.0vw, 34px); letter-spacing: -0.03em; color: var(--lime); line-height: 1;
  white-space: nowrap;
}
.rlbl { display: block; margin-top: 12px; font-size: 15px; color: rgba(255,255,255,.72); line-height: 1.45; }
.rcta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: clamp(32px, 4vw, 44px); }
.rasa-feature .btn-primary { background: var(--lime); border-color: var(--lime); color: var(--ink); }
.rasa-feature .btn-primary:hover { background: #fff; border-color: #fff; }
.rasa-feature .btn-ghost { border-color: rgba(255,255,255,.3); color: #fff; background: transparent; }
.rasa-feature .btn-ghost:hover { background: rgba(255,255,255,.1); border-color: #fff; color: #fff; }

/* team */
#team { background: var(--white); }
.rgroup { margin-top: clamp(40px, 5vw, 64px); }
.rgtitle { font-size: clamp(19px, 2.1vw, 23px); margin-bottom: 8px; }
.people { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(16px, 2vw, 22px); }
.person {
  display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 18px; align-items: start;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 22px 24px; box-shadow: var(--shadow-sm);
  transition: border-color .16s ease, box-shadow .16s ease;
}
.person:hover { border-color: var(--green); box-shadow: var(--shadow); }
.pphoto { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; display: block; background: var(--paper); }
.pbody h4 { font-family: var(--display); font-weight: 700; font-size: 17.5px; color: var(--ink); letter-spacing: -0.01em; }
.prole { margin-top: 3px; font-size: 14px; font-weight: 600; color: var(--green-deep); }
.pbio { margin-top: 10px; font-size: 15px; line-height: 1.55; color: var(--dim); }
.plink {
  display: inline-block; margin-top: 12px; font-size: 14px; font-weight: 600;
  color: var(--green-mid); border-bottom: 1px solid var(--line-mint);
}
.plink:hover { color: var(--ink); }

@media (max-width: 980px) {
  .logo-grid { grid-template-columns: repeat(3, 1fr); }
  .people { grid-template-columns: 1fr; }
  .pedigree { grid-template-columns: 1fr; }
  .rstats { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .logo-grid { grid-template-columns: repeat(2, 1fr); }
  .person { grid-template-columns: 1fr; }
  .pphoto { width: 60px; height: 60px; }
}
.pedlbl a { color: var(--green-mid); font-weight: 600; border-bottom: 1px solid var(--line-mint); }
.pedlbl a:hover { color: var(--ink); border-bottom-color: var(--green); }

/* ---------- partnership / ask ---------- */
#partner { background: var(--mint); }
.kicker-dark {
  display: inline-block; margin-bottom: 10px;
  font-family: var(--body); font-size: 12.5px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: var(--green-deep);
}
.askprose { max-width: 76ch; display: flex; flex-direction: column; gap: 18px; }
.askprose p { color: var(--text); font-size: 17px; line-height: 1.68; }
.nextsteps {
  margin-top: clamp(26px, 3vw, 36px); max-width: 76ch;
  padding: 24px 26px; background: var(--white);
  border: 1px solid var(--line-mint); border-left: 3px solid var(--green);
  border-radius: var(--r-lg);
  display: flex; flex-direction: column; gap: 14px;
}
.nextsteps h3 {
  font-family: var(--body); font-size: 12.5px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: var(--green-deep);
}
.nextsteps p { font-size: 16.5px; line-height: 1.62; color: var(--ink); }
