:root {
  color-scheme: light;

  --bg:#f6f8fa; --panel:#ffffff; --ink:#172027; --muted:#5c6974;
  --line:#d8e1e8; --line2:#edf2f6; --blue:#2355a6; --green:#11724c;
  --amber:#8a5a00; --red:#b42318; --nav:#101820; --soft:#f0f6ff;
  --rust:#8f3d22;
}
* { box-sizing:border-box; }
[x-cloak] { display:none !important; }
html { scroll-behavior:smooth; }
body { margin:0; font-family:Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; background:var(--bg); color:var(--ink); }
a { color:var(--blue); text-decoration:none; }
button, input, select { font:inherit; }
.top { position:sticky; top:0; z-index:5; background:rgba(255,255,255,.94); border-bottom:1px solid var(--line); backdrop-filter:blur(12px); }
.nav { max-width:1180px; margin:0 auto; padding:13px 22px; display:flex; align-items:center; justify-content:space-between; gap:18px; }
.brand { display:flex; align-items:center; gap:10px; color:var(--ink); font-weight:800; }
.mark { width:30px; height:30px; border-radius:7px; background:linear-gradient(135deg,#2c6ecb,#19a06d); display:grid; place-items:center; font-size:13px; color:#fff; }
.links { display:flex; align-items:center; gap:16px; flex-wrap:wrap; color:var(--muted); font-size:14px; }
.links a { color:#304151; }
.btn { border:1px solid var(--line); background:#fff; color:var(--ink); border-radius:7px; padding:9px 12px; cursor:pointer; min-height:38px; display:inline-flex; align-items:center; justify-content:center; gap:8px; }
.btn.primary { background:var(--blue); color:#fff; border-color:var(--blue); }
.btn.green { background:var(--green); color:#fff; border-color:var(--green); }
.btn:focus, input:focus, select:focus { outline:2px solid #9ac2ff; outline-offset:1px; }
.hero { background:linear-gradient(180deg,#ffffff 0%,#f8fbfd 100%); border-bottom:1px solid var(--line); overflow:visible; position:relative; }
.hero-inner { max-width:1180px; margin:0 auto; padding:44px 22px 28px; display:grid; grid-template-columns:minmax(0,1.08fr) minmax(340px,.92fr); gap:28px; align-items:start; overflow:visible; }
.hero-inner-visual { grid-template-columns:minmax(0,1fr) minmax(360px,.92fr); align-items:center; min-height:720px; padding-top:34px; padding-bottom:34px; overflow:visible; }
.hero-copy { position:relative; z-index:1; }
/* "100% open source" lead chip — sits above the eyebrow on the
 * homepage hero. The control plane + attested gateway are on GitHub;
 * this is the call-out so visitors don't have to dig through Trust to
 * find that out. Whole thing is one click that goes to the repo. */
.oss-banner { display:inline-flex; align-items:center; gap:14px; flex-wrap:wrap; padding:14px 22px; margin:0 0 16px; background:#0f1c14; color:#f1fff5; border-radius:999px; font-size:13.5px; line-height:1.5; text-decoration:none; box-shadow:0 1px 2px rgba(15,23,42,0.08); transition:transform 120ms ease, box-shadow 120ms ease; }
.oss-banner:hover, .oss-banner:focus-visible { transform:translateY(-1px); box-shadow:0 4px 14px rgba(15,23,42,0.18); outline:none; }
.oss-banner strong { font-size:14px; font-weight:800; letter-spacing:0.01em; }
.oss-banner .oss-sub { color:#a8e0bb; font-weight:500; }
.oss-banner .oss-dot { width:8px; height:8px; border-radius:50%; background:#42e07f; box-shadow:0 0 0 3px rgba(66,224,127,0.22); flex:0 0 8px; }
.eyebrow { display:inline-flex; gap:8px; align-items:center; color:var(--green); font-size:13px; font-weight:750; background:#eefaf3; border:1px solid #c8ead7; border-radius:999px; padding:5px 9px; }
h1 { margin:16px 0 12px; font-size:48px; line-height:1.04; letter-spacing:0; max-width:760px; }
.lead { color:#485661; font-size:18px; line-height:1.55; margin:0 0 20px; max-width:760px; }
.hero-actions { display:flex; gap:10px; flex-wrap:wrap; margin:20px 0; }
.proof { display:grid; grid-template-columns:repeat(auto-fit,minmax(145px,1fr)); gap:10px; margin-top:22px; }
.proof-card { background:#fff; border:1px solid var(--line); border-radius:8px; padding:12px; min-width:0; }
.proof-card b { display:block; font-size:14px; margin-bottom:5px; color:#23313d; }
.proof-card span { display:block; color:var(--muted); font-size:12px; line-height:1.35; }
.term { color:var(--rust); font-weight:750; }
.code-card { background:#101820; color:#edf6ff; border:1px solid #2b3a46; border-radius:8px; overflow:hidden; box-shadow:0 10px 30px rgba(16,24,32,.12); }
.code-head { display:flex; align-items:center; justify-content:space-between; padding:11px 13px; border-bottom:1px solid #293745; color:#b8c6d2; font-size:12px; }
pre { margin:0; padding:16px; overflow:auto; font-size:13px; line-height:1.5; }
code, .mono { font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.router-scene-shell { min-height:720px; align-self:stretch; display:flex; align-items:center; justify-content:center; position:relative; overflow:visible; z-index:5; }
/* The pentagon backdrop stays at the original 560px footprint so the
 * "grid" reads as a contained construct. The canvas is sized larger via
 * negative inset (see .router-scene-canvas) so the 3D scene appears to
 * explode outward beyond the pentagon, layering over hero copy + side
 * gutters. pointer-events:none on the canvas keeps the underlying text
 * + buttons interactive even where the canvas overlaps them. */
.router-scene { width:min(100%,560px); min-height:560px; position:relative; display:grid; place-items:center; isolation:isolate; overflow:visible; }
.router-scene::before { content:""; position:absolute; inset:18% 14%; background:linear-gradient(135deg,rgba(35,85,166,.07),rgba(25,160,109,.06)); clip-path:polygon(50% 0,100% 24%,92% 78%,50% 100%,8% 78%,0 24%); opacity:.7; }
.router-scene::after { content:""; position:absolute; inset:24% 20%; border:1px solid rgba(35,85,166,.12); clip-path:polygon(50% 0,100% 24%,92% 78%,50% 100%,8% 78%,0 24%); opacity:.55; }
/* stylelint-disable-next-line property-no-vendor-prefix */
.router-scene-canvas { position:absolute; inset:-30%; width:160%; height:160%; display:block; z-index:6; touch-action:none; pointer-events:none; -webkit-mask-image:radial-gradient(ellipse at center, black 52%, transparent 92%); mask-image:radial-gradient(ellipse at center, black 52%, transparent 92%); }
/* Hit-test layer: a transparent overlay sized to the original pentagon
 * area that catches pointer events for the scene (move/click/leave).
 * The canvas itself is pointer-events:none so overflow doesn't trap
 * clicks on adjacent text + buttons. */
.router-scene-hit { position:absolute; inset:0; z-index:7; touch-action:none; cursor:crosshair; }
.scene-copy { position:absolute; left:20px; bottom:12px; display:grid; gap:4px; z-index:2; color:#263540; pointer-events:none; max-width:340px; padding:10px 12px; background:rgba(255,255,255,.82); border:1px solid rgba(216,225,232,.9); border-radius:8px; box-shadow:0 12px 34px rgba(16,24,32,.10); backdrop-filter:blur(8px); }
.scene-copy strong { font-size:16px; max-width:320px; }
.scene-copy span { color:#64717c; font-size:12px; }
.scene-kicker { text-transform:uppercase; letter-spacing:.08em; font-weight:800; color:var(--green) !important; }
.scene-tags { position:absolute; top:18px; left:18px; right:18px; display:flex; flex-wrap:wrap; gap:7px; z-index:2; pointer-events:none; }
.scene-tags span { color:#21313d; background:rgba(255,255,255,.72); border:1px solid rgba(216,225,232,.9); border-radius:999px; padding:4px 8px; font-size:11px; font-weight:750; box-shadow:0 6px 20px rgba(16,24,32,.06); }
.router-scene[data-scene-ready="true"] .scene-copy strong::after { content:""; display:inline-block; width:7px; height:7px; border-radius:50%; background:#19a06d; margin-left:8px; box-shadow:0 0 0 4px rgba(25,160,109,.12); }
.code-strip { display:grid; grid-template-columns:minmax(220px,.7fr) minmax(0,1.2fr) auto; gap:18px; align-items:center; background:#101820; color:#edf6ff; border:1px solid #253545; border-radius:8px; padding:18px; box-shadow:0 14px 44px rgba(16,24,32,.16); }
.code-strip h2 { margin:8px 0 0; font-size:20px; color:#fff; }
.code-strip .eyebrow { background:rgba(25,160,109,.12); border-color:rgba(123,224,177,.32); color:#7be0b1; }
.code-strip pre { background:#0b121a; border:1px solid #263644; border-radius:8px; color:#d8e6f3; }
.code-strip pre code { white-space:pre-wrap; overflow-wrap:anywhere; }
.code-strip .pill { background:rgba(255,255,255,.08); color:#c8d7e5; border-color:rgba(255,255,255,.16); }
.wrap { max-width:1180px; margin:0 auto; padding:20px 22px 42px; display:grid; gap:18px; }
.public-wrap { padding-top:28px; }
.public-hero { background:#fff; border:1px solid var(--line); border-radius:8px; padding:28px; }
.public-hero h1 { font-size:40px; }
.public-band { align-items:stretch; }
blockquote { margin:0 0 12px; padding-left:14px; border-left:3px solid var(--green); color:#25323d; line-height:1.5; }
.marketing-hero { position:relative; overflow:hidden; display:grid; grid-template-columns:minmax(0,1fr) minmax(260px,.56fr); gap:26px; align-items:end; border-radius:8px; padding:34px; background:linear-gradient(135deg,#ffffff 0%,#f5f9fc 60%,#eef8f2 100%); box-shadow:0 16px 50px rgba(16,24,32,.08); }
.marketing-hero::before { content:""; position:absolute; inset:0; background:linear-gradient(90deg,rgba(35,85,166,.08) 1px,transparent 1px),linear-gradient(180deg,rgba(35,85,166,.06) 1px,transparent 1px); background-size:52px 52px; mask-image:linear-gradient(90deg,rgba(0,0,0,.18),transparent 72%); pointer-events:none; }
.marketing-hero > * { position:relative; }
.public-hero-metrics { display:grid; gap:10px; }
.public-hero-metrics div { background:rgba(255,255,255,.76); border:1px solid rgba(216,225,232,.85); border-radius:8px; padding:14px; box-shadow:0 10px 30px rgba(16,24,32,.06); }
.public-hero-metrics strong { display:block; font-size:30px; line-height:1; letter-spacing:0; color:#13202b; }
.public-hero-metrics span { display:block; color:var(--muted); font-size:12px; margin-top:6px; }
.public-proof-strip { display:grid; grid-template-columns:repeat(4,1fr); gap:10px; }
.public-proof-strip div { background:#fff; border:1px solid var(--line); border-radius:8px; padding:16px; min-width:0; }
.public-proof-strip strong { display:block; color:#172027; font-size:16px; line-height:1.25; }
.public-proof-strip span { display:block; color:var(--muted); font-size:13px; line-height:1.35; margin-top:8px; }
.marketing-split { display:grid; grid-template-columns:minmax(0,1fr) minmax(320px,.82fr); gap:18px; align-items:stretch; }
.marketing-copy, .quote-feature, .limitation-band, .model-catalog { background:#fff; border:1px solid var(--line); border-radius:8px; padding:24px; box-shadow:0 12px 40px rgba(16,24,32,.06); }
.marketing-copy h2, .quote-feature h2, .model-catalog h2 { margin:12px 0 14px; font-size:30px; line-height:1.12; letter-spacing:0; }
.marketing-copy p, .marketing-card p, .quote-feature p, .model-catalog p, .flow-steps p { color:var(--muted); line-height:1.48; margin:0 0 12px; font-size:14px; }
.copy-terminal { background:#101820; color:#edf6ff; border:1px solid #253545; border-radius:8px; min-width:0; overflow:hidden; box-shadow:0 18px 56px rgba(16,24,32,.18); }
.copy-terminal pre { color:#d8e6f3; min-height:220px; display:grid; align-items:center; }
.marketing-grid { display:grid; gap:14px; }
.marketing-grid.three { grid-template-columns:repeat(3,1fr); }
.marketing-card { background:#fff; border:1px solid var(--line); border-radius:8px; padding:18px; min-width:0; box-shadow:0 10px 34px rgba(16,24,32,.055); }
.marketing-card.featured { background:linear-gradient(135deg,#101820,#17384a); color:#edf6ff; border-color:#273c4d; }
.marketing-card.featured p { color:#c3d2df; }
.marketing-card h3 { margin:8px 0 10px; font-size:20px; line-height:1.18; }
.card-label { display:inline-flex; color:var(--green); background:#eefaf3; border:1px solid #c8ead7; border-radius:999px; padding:4px 8px; font-size:11px; font-weight:800; text-transform:uppercase; letter-spacing:.06em; }
.marketing-card.featured .card-label { color:#7be0b1; background:rgba(25,160,109,.12); border-color:rgba(123,224,177,.3); }
.microcopy { font-size:12px !important; color:#6d7882 !important; }
.flow-steps { display:grid; grid-template-columns:repeat(4,1fr); gap:10px; }
.flow-steps div { background:#101820; color:#edf6ff; border:1px solid #253545; border-radius:8px; padding:16px; }
.flow-steps span { display:inline-grid; place-items:center; width:28px; height:28px; border-radius:50%; color:#082017; background:#7be0b1; font-weight:850; font-size:13px; margin-bottom:14px; }
.flow-steps strong { display:block; color:#fff; margin-bottom:8px; }
.flow-steps p { color:#b8c6d2; margin:0; }
.compare-matrix { background:#fff; border:1px solid var(--line); border-radius:8px; overflow:hidden; box-shadow:0 12px 40px rgba(16,24,32,.06); }
.matrix-row { display:grid; grid-template-columns:minmax(120px,.55fr) 1fr 1fr; gap:0; border-top:1px solid var(--line2); }
.matrix-row:first-child { border-top:0; }
.matrix-row > * { padding:14px 16px; border-left:1px solid var(--line2); font-size:14px; line-height:1.4; }
.matrix-row > *:first-child { border-left:0; color:var(--muted); font-weight:750; }
.matrix-head { background:#101820; color:#edf6ff; }
.matrix-head > *:first-child { color:#b8c6d2; }
.matrix-head > * { border-color:#253545; }
.quote-feature { display:grid; grid-template-columns:minmax(230px,.62fr) minmax(0,1fr); gap:24px; align-items:start; }
.quote-feature blockquote:last-child, .marketing-copy blockquote:last-child, .limitation-band blockquote:last-child { margin-bottom:0; }
.trust-diagram { display:grid; gap:10px; align-content:center; background:#101820; color:#edf6ff; border:1px solid #253545; border-radius:8px; padding:24px; box-shadow:0 18px 56px rgba(16,24,32,.18); }
.trust-diagram div { border:1px solid rgba(123,224,177,.28); background:rgba(123,224,177,.08); border-radius:8px; padding:18px; font-weight:800; text-align:center; }
.trust-diagram span { color:#b8c6d2; font-size:12px; text-align:center; text-transform:uppercase; letter-spacing:.08em; }
.limitation-band { display:grid; grid-template-columns:auto 1fr; gap:20px; align-items:start; }
.model-catalog { padding:0; overflow:hidden; }
.model-catalog-head { display:grid; grid-template-columns:minmax(0,1fr) minmax(220px,.56fr); gap:18px; align-items:end; padding:24px; border-bottom:1px solid var(--line2); }
.model-catalog-head h2 { margin-bottom:0; }
.model-catalog-head p { margin:0; }
.model-table-wrap { overflow:auto; }
.band { display:grid; grid-template-columns:1fr 1fr 1fr; gap:16px; }
.panel { background:var(--panel); border:1px solid var(--line); border-radius:8px; min-width:0; }
.panel-head { padding:14px 16px; border-bottom:1px solid var(--line2); display:flex; align-items:center; justify-content:space-between; gap:12px; }
.panel h2 { margin:0; font-size:15px; letter-spacing:0; }
.panel-body { padding:16px; }
.panel-body p { margin:0 0 12px; color:var(--muted); line-height:1.48; font-size:14px; }
.metrics { display:grid; grid-template-columns:repeat(auto-fit,minmax(150px,1fr)); gap:12px; }
.metric { background:#fbfcfd; border:1px solid var(--line2); border-radius:8px; padding:12px; min-width:0; }
.metric .label { color:var(--muted); font-size:12px; margin-bottom:6px; }
.metric .value { font-size:22px; font-weight:760; letter-spacing:0; overflow-wrap:anywhere; }
.metric .sub { color:var(--muted); font-size:12px; margin-top:4px; }
.grid2 { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
table { width:100%; border-collapse:collapse; font-size:13px; }
th, td { text-align:left; padding:10px 8px; border-bottom:1px solid var(--line2); vertical-align:middle; }
th { color:var(--muted); font-weight:650; background:#fbfcfd; }
td code { font-size:12px; overflow-wrap:anywhere; }
.pill { display:inline-flex; align-items:center; gap:6px; padding:3px 7px; border-radius:999px; border:1px solid var(--line); font-size:12px; color:#33414d; background:#f8fafc; white-space:nowrap; }
.pill.good { color:var(--green); border-color:#b8dec9; background:#f0faf4; }
.pill.warn { color:var(--amber); border-color:#ead49b; background:#fff8e4; }
.form { display:grid; gap:10px; }
.row { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
label { display:grid; gap:5px; color:var(--muted); font-size:12px; }
input, select { width:100%; border:1px solid var(--line); border-radius:7px; padding:8px 10px; color:var(--ink); background:#fff; min-height:36px; }
.checkbox-row { display:flex; align-items:center; gap:9px; color:var(--ink); font-size:13px; }
.checkbox-row input[type="checkbox"] { width:auto; min-width:16px; height:16px; min-height:16px; margin:0; padding:0; accent-color:var(--blue); }
.notice { border:1px solid #b8dec9; background:#f0faf4; color:#174d31; border-radius:8px; padding:12px; font-size:13px; line-height:1.45; }
.notice.warn { border-color:#ead49b; background:#fff8e4; color:#5a3b00; }
.notice[hidden] { display:none; }
.auth-grid { display:grid; grid-template-columns:minmax(240px,1fr) minmax(220px,.8fr) minmax(180px,.7fr) auto; gap:10px; align-items:end; }
.auth-actions { display:flex; gap:8px; flex-wrap:wrap; }
.statusline { display:flex; align-items:center; gap:8px; flex-wrap:wrap; margin-top:12px; color:var(--muted); font-size:13px; }
.secret-row { display:grid; grid-template-columns:1fr auto; gap:8px; align-items:center; }
.signup { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:10px; align-items:stretch; max-width:560px; margin:18px 0 8px; }
.signup input { font-size:16px; padding:13px 14px; min-height:48px; border-radius:8px; }
.signup .btn { font-size:16px; padding:13px 20px; min-height:48px; border-radius:8px; font-weight:700; }
.signin-row, .button-row { display:flex; gap:10px; align-items:center; flex-wrap:wrap; max-width:560px; margin:10px 0; }
.signin-row .btn, .button-row .btn { min-height:38px; }
.signup-foot { color:var(--muted); font-size:13px; max-width:560px; margin:0 0 14px; }
.signup-reveal { max-width:560px; border:1px solid #b8dec9; background:#f0faf4; color:#174d31; border-radius:10px; padding:14px; margin:14px 0; display:grid; gap:10px; }
.signup-reveal[hidden] { display:none; }
.signup-reveal-head { font-weight:750; font-size:14px; }
.signup-reveal code { display:block; padding:10px 12px; background:#fff; border:1px solid #c9e3d5; border-radius:7px; font-size:13px; word-break:break-all; }
.signup-error { max-width:560px; border:1px solid #f1c1bb; background:#fff1f0; color:#7d2018; border-radius:10px; padding:12px 14px; font-size:13px; margin:14px 0; }
.signup-error[hidden] { display:none; }
.hero-actions-secondary { margin-top:6px; }
.hero-actions-secondary .btn { font-size:13px; padding:8px 12px; min-height:34px; }
.quill-ad { background:linear-gradient(125deg,#0f2138 0%,#163a44 60%,#19a06d 140%); border:1px solid #1f4a4f; border-radius:14px; padding:28px 30px; color:#eaf6ff; box-shadow:0 16px 50px rgba(11,24,44,.18); position:relative; overflow:hidden; }
.quill-ad::before { content:""; position:absolute; inset:0; background:radial-gradient(800px 280px at 95% -10%, rgba(25,160,109,.32), transparent 70%); pointer-events:none; }
.quill-ad-inner { display:grid; grid-template-columns:auto minmax(0,1fr) auto; gap:24px; align-items:center; position:relative; }
/* Quill device hero shot. The ad's leading column shows a real photo
   of the appliance instead of a "Q" mark — same gradient/shadow vibe
   as the previous badge so the page composition is unchanged. */
.quill-ad-mark { display:block; width:180px; height:180px; border-radius:18px; overflow:hidden; box-shadow:inset 0 0 0 2px rgba(255,255,255,.08), 0 14px 40px rgba(0,0,0,.5); background:#0a0d12; transition:transform .25s ease, box-shadow .25s ease; }
.quill-ad-mark img { display:block; width:100%; height:100%; object-fit:cover; object-position:center; }
.quill-ad-mark:hover { transform:translateY(-2px); box-shadow:inset 0 0 0 2px rgba(255,255,255,.12), 0 18px 50px rgba(25,160,109,.45); }
.quill-ad-eyebrow { display:inline-flex; align-items:center; gap:8px; font-size:11px; font-weight:750; letter-spacing:.08em; text-transform:uppercase; color:#7be0b1; background:rgba(25,160,109,.12); border:1px solid rgba(25,160,109,.45); border-radius:999px; padding:4px 10px; margin-bottom:10px; }
.quill-ad-title { margin:0 0 8px; font-size:24px; font-weight:800; line-height:1.2; color:#fff; letter-spacing:0; }
.quill-ad-lead { margin:0; color:#bcd6e8; font-size:14px; line-height:1.55; max-width:640px; }
.quill-ad-cta { display:flex; flex-direction:column; gap:10px; align-items:flex-end; min-width:200px; }
.quill-ad-cta .btn { background:#fff; color:#0f2138; border-color:#fff; font-weight:750; padding:11px 18px; border-radius:8px; }
.quill-ad-cta .btn:hover { background:#eaf6ff; }
.quill-ad-cta .pill { background:rgba(255,255,255,.08); color:#bcd6e8; border-color:rgba(255,255,255,.18); font-size:12px; }

@media (max-width:780px) {
  .quill-ad-inner { grid-template-columns:1fr; gap:16px; }
  .quill-ad-cta { align-items:flex-start; }
}
.sdk-links { display:flex; gap:8px; flex-wrap:wrap; margin-top:12px; }
.chart { height:120px; display:flex; align-items:end; gap:8px; padding-top:14px; }
.bar { flex:1; min-width:18px; background:linear-gradient(180deg,#2c6ecb,#19a06d); border-radius:6px 6px 0 0; }
.bar-32 { height:32%; }
.bar-38 { height:38%; }
.bar-42 { height:42%; }
.bar-48 { height:48%; }
.bar-56 { height:56%; }
.bar-64 { height:64%; }
.bar-74 { height:74%; }
.signup-foot-flush { margin:0; }
.empty { color:var(--muted); padding:18px; text-align:center; }
.status-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:10px; margin-top:14px; }
.status-card { display:grid; gap:5px; border:1px solid var(--line); border-radius:8px; padding:12px; background:#fff; font-size:13px; color:var(--muted); }
.status-card strong { color:var(--ink); font-size:14px; }
.status-hero { display:flex; justify-content:space-between; gap:22px; align-items:flex-end; background:#fff; border:1px solid var(--line); border-radius:8px; padding:28px; }
.status-hero h1 { font-size:40px; margin-bottom:10px; }
.status-updated { display:grid; gap:5px; min-width:230px; color:var(--muted); font-size:12px; text-align:right; }
.status-updated strong { color:var(--ink); font-size:13px; font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace; overflow-wrap:anywhere; }
.status-page { display:grid; gap:16px; }
.status-banner { display:flex; justify-content:space-between; gap:16px; align-items:center; border:1px solid var(--line); border-radius:8px; padding:18px 20px; background:#fff; }
.status-banner h2 { margin:0 0 4px; font-size:19px; letter-spacing:0; }
.status-banner p { margin:0; color:var(--muted); font-size:14px; line-height:1.45; }
.status-banner > span { font-size:13px; font-weight:750; white-space:nowrap; }
.status-banner-metrics { display:flex; flex-direction:column; align-items:flex-end; gap:2px; white-space:nowrap; }
.status-banner-metrics span { font-size:13px; font-weight:750; }
.status-banner-metrics strong { font-size:26px; line-height:1; color:var(--ink); }
.status-banner-metrics small { color:var(--muted); font-size:12px; }
.status-banner.status-up { border-color:#b8dec9; background:#f0faf4; }
.status-banner.status-up > span, .status-banner.status-up .status-banner-metrics span { color:var(--green); }
.status-banner.status-degraded, .status-banner.status-routing-degraded, .status-banner.status-trust-degraded { border-color:#ead49b; background:#fff8e4; }
.status-banner.status-degraded > span, .status-banner.status-routing-degraded > span, .status-banner.status-trust-degraded > span, .status-banner.status-degraded .status-banner-metrics span, .status-banner.status-routing-degraded .status-banner-metrics span, .status-banner.status-trust-degraded .status-banner-metrics span { color:var(--amber); }
.status-banner.status-down { border-color:#f1c1bb; background:#fff1f0; }
.status-banner.status-down > span, .status-banner.status-down .status-banner-metrics span { color:var(--red); }
.status-banner.status-unknown { background:#fbfcfd; }
.status-section { background:#fff; border:1px solid var(--line); border-radius:8px; overflow:hidden; }
.status-section-head { display:flex; align-items:flex-start; justify-content:space-between; gap:16px; padding:16px 18px; border-bottom:1px solid var(--line2); }
.status-section-head h2 { margin:0 0 4px; font-size:16px; letter-spacing:0; }
.status-section-head p { margin:0; color:var(--muted); font-size:13px; line-height:1.45; }
.status-legend { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:10px; color:var(--muted); font-size:12px; }
.status-legend span { display:inline-flex; align-items:center; gap:5px; white-space:nowrap; }
.status-legend .history-day { width:3px; flex:0 0 3px; }
.component-list { display:grid; }
.component-row { display:grid; gap:12px; min-width:0; padding:16px 18px; border-bottom:1px solid var(--line2); }
.component-row:last-child { border-bottom:0; }
.component-main { display:flex; align-items:flex-start; justify-content:space-between; gap:14px; }
.component-main > div { min-width:0; }
.component-main h3 { margin:0 0 4px; font-size:15px; letter-spacing:0; }
.component-main p { margin:0; color:var(--muted); font-size:13px; line-height:1.45; overflow-wrap:anywhere; }
.component-status { display:inline-flex; align-items:center; gap:6px; border:1px solid var(--line); border-radius:999px; padding:4px 8px; font-size:12px; font-weight:700; white-space:nowrap; background:#f8fafc; color:#33414d; }
.component-status.status-up { color:var(--green); border-color:#b8dec9; background:#f0faf4; }
.component-status.status-degraded, .component-status.status-routing-degraded, .component-status.status-trust-degraded { color:var(--amber); border-color:#ead49b; background:#fff8e4; }
.component-status.status-down { color:var(--red); border-color:#f1c1bb; background:#fff1f0; }
.component-status.status-unknown { color:var(--muted); background:#fbfcfd; }
.component-meta { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; color:var(--muted); font-size:12px; }
.component-meta span { min-width:0; overflow-wrap:anywhere; }
.component-meta strong { color:var(--ink); font-weight:750; }
.component-breakdown { display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:6px; color:var(--muted); font-size:12px; }
.component-breakdown span { display:flex; justify-content:space-between; gap:10px; min-width:0; border:1px solid var(--line2); border-radius:6px; background:#fbfcfd; padding:7px 9px; overflow-wrap:anywhere; }
.component-breakdown strong { color:var(--ink); white-space:nowrap; }
/* 48 hourly bars instead of daily ones — enough recent proof without
 * forcing the public page to scan months of raw samples. Bars are
 * interactive: hover or focus surfaces the rich tooltip
 * with uptime / sample count / p50 / top error. Style mirrors
 * status.anthropic.com's look: muted for "no data", green for healthy,
 * amber for degraded, red for outage. */
.history-strip { display:grid; grid-template-columns:repeat(48,1fr); gap:2px; min-width:0; min-height:28px; align-items:stretch; }
.history-bar { position:relative; display:block; min-width:0; height:26px; border-radius:3px; background:#dfe6ec; cursor:default; outline:none; }
.history-bar.status-up { background:#19a06d; }
.history-bar.status-degraded, .history-bar.status-routing-degraded { background:#d49b23; }
.history-bar.status-trust-degraded { background:#b87b13; }
.history-bar.status-down { background:#d2452a; }
.history-bar.status-unknown { background:#dfe6ec; }
.history-bar:hover, .history-bar:focus-visible { box-shadow:0 0 0 2px #1c2733, 0 0 0 4px rgba(28,39,51,0.18); }
.history-bar .history-tooltip { position:absolute; bottom:calc(100% + 8px); left:50%; transform:translateX(-50%); display:none; flex-direction:column; gap:4px; min-width:220px; max-width:280px; padding:10px 12px; background:#1c2733; color:#fff; border-radius:6px; font-size:12px; line-height:1.45; z-index:20; box-shadow:0 6px 18px rgba(15,23,42,0.18); pointer-events:none; }
.history-bar .history-tooltip::after { content:""; position:absolute; top:100%; left:50%; transform:translateX(-50%); border:6px solid transparent; border-top-color:#1c2733; }
/* Right-edge bars: anchor the tooltip to the bar's right edge instead
 * of centering, so the popover opens to the LEFT and stays inside the
 * viewport. With ~48 bars, the last 8 typically fall in the at-risk
 * zone; tuning by row width is overkill. The arrow shifts to align
 * with the bar's right edge. */
.history-bar:nth-last-child(-n+8) .history-tooltip { left:auto; right:-2px; transform:none; }
.history-bar:nth-last-child(-n+8) .history-tooltip::after { left:auto; right:8px; transform:none; }
/* Top-row bars: anchor the tooltip BELOW the bar instead of above, so
 * the popover doesn't clip against the header/viewport top edge. The
 * arrow flips to point upward from underneath. */
.component-list .component-row:first-child .history-bar .history-tooltip { bottom:auto; top:calc(100% + 8px); }
.component-list .component-row:first-child .history-bar .history-tooltip::after { top:auto; bottom:100%; border-top-color:transparent; border-bottom-color:#1c2733; }
.history-bar:hover .history-tooltip, .history-bar:focus-visible .history-tooltip { display:flex; }
.history-bar .history-tooltip strong { font-weight:700; color:#fff; }
.history-bar .history-tooltip em { font-style:normal; font-weight:600; padding:1px 8px; border-radius:999px; align-self:flex-start; font-size:11px; background:rgba(255,255,255,0.1); }
.history-bar .history-tooltip em.status-up { background:rgba(25,160,109,0.22); color:#86dbb1; }
.history-bar .history-tooltip em.status-degraded, .history-bar .history-tooltip em.status-routing-degraded, .history-bar .history-tooltip em.status-trust-degraded { background:rgba(212,155,35,0.24); color:#f6cf72; }
.history-bar .history-tooltip em.status-down { background:rgba(210,69,42,0.28); color:#ffb1a4; }
.history-bar .history-tooltip em.status-unknown { background:rgba(255,255,255,0.08); color:#cfd6dd; }
.history-bar .history-tooltip span { color:#cfd6dd; display:flex; justify-content:space-between; gap:8px; }
.history-bar .history-tooltip span.muted { color:#8d96a3; font-style:italic; }
.history-bar .history-tooltip span.err strong { color:#ffb1a4; }
.history-day { display:block; min-width:0; height:26px; border-radius:3px; background:#dfe6ec; }
.history-day.status-up { background:#19a06d; }
.history-day.status-degraded, .history-day.status-routing-degraded { background:#d49b23; }
.history-day.status-trust-degraded { background:#b87b13; }
.history-day.status-down { background:#d2452a; }
.history-day.status-unknown { background:#dfe6ec; }
.status-columns { display:grid; grid-template-columns:1fr 1fr; gap:16px; align-items:start; }
.status-table .component-status { text-transform:capitalize; }
.status-subhead { margin:18px 18px 10px; font-size:15px; }
.event-list { display:grid; }
.event-row { display:grid; grid-template-columns:auto minmax(0,1fr); gap:12px; align-items:start; padding:14px 18px; border-bottom:1px solid var(--line2); }
.event-row:last-child { border-bottom:0; }
.event-row strong { display:block; font-size:14px; margin-bottom:3px; }
.event-row p { margin:0; color:var(--muted); font-size:12px; line-height:1.45; overflow-wrap:anywhere; }
.status-empty { margin:0; }
.status-actions { display:flex; gap:10px; flex-wrap:wrap; }
.status-history-page .status-section { overflow:hidden; }
.status-section-subhead { border-top:1px solid var(--line2); }
.status-history-summary { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; padding:0 18px 18px; }
.status-history-summary div { border:1px solid var(--line2); border-radius:8px; padding:12px; background:#fbfcfd; min-width:0; }
.status-history-summary span { display:block; color:var(--muted); font-size:12px; margin-bottom:4px; }
.status-history-summary strong { display:block; color:var(--ink); font-size:20px; line-height:1.15; overflow-wrap:anywhere; }
.status-table-scroll { overflow-x:auto; }
.status-history-table { min-width:760px; }
.rollup-list { display:grid; padding:0 18px 18px; gap:10px; }
.rollup-row { display:grid; grid-template-columns:minmax(170px,1fr) auto minmax(180px,1.2fr) minmax(110px,.7fr); align-items:center; gap:14px; border:1px solid var(--line2); border-radius:8px; padding:12px; background:#fbfcfd; }
.rollup-row > div:first-child { min-width:0; }
.rollup-row strong { display:block; font-size:14px; color:var(--ink); overflow-wrap:anywhere; }
.rollup-row span { color:var(--muted); font-size:12px; line-height:1.45; }
.rollup-row-metrics { text-align:right; }
.rollup-row-metrics strong { font-size:15px; }
.rollup-bar-track { height:10px; border-radius:999px; background:#dfe6ec; overflow:hidden; min-width:0; }
.rollup-bar-fill { display:block; height:100%; min-width:2px; border-radius:inherit; background:#dfe6ec; }
.rollup-bar-fill.status-up { background:#19a06d; }
.rollup-bar-fill.status-degraded, .rollup-bar-fill.status-routing-degraded { background:#d49b23; }
.rollup-bar-fill.status-trust-degraded { background:#b87b13; }
.rollup-bar-fill.status-down { background:#d2452a; }
.rollup-bar-fill.status-unknown { background:#dfe6ec; }
.console-title { display:flex; align-items:end; justify-content:space-between; gap:16px; margin-top:4px; }
.console-title h2 { margin:0; font-size:24px; }
.console-title p { margin:4px 0 0; color:var(--muted); font-size:14px; }

@media (max-width:1040px) {
  .hero-inner, .band, .grid2, .metrics, .row, .status-columns { grid-template-columns:1fr; }
  .hero-inner-visual { min-height:auto; }
  .router-scene-shell { min-height:500px; }
  .router-scene { min-height:500px; width:min(100%,620px); }
  .proof { grid-template-columns:1fr 1fr; }
  .code-strip, .marketing-hero, .marketing-split, .quote-feature, .model-catalog-head { grid-template-columns:1fr; }
  .public-proof-strip, .flow-steps, .marketing-grid.three { grid-template-columns:1fr 1fr; }
  h1 { font-size:38px; }
  .auth-grid { grid-template-columns:1fr; }
  .signup { grid-template-columns:1fr; }
  .component-meta { grid-template-columns:1fr; }
  .rollup-row { grid-template-columns:1fr auto; }
  .rollup-bar-track, .rollup-row-metrics { grid-column:1 / -1; }
  .rollup-row-metrics { text-align:left; }
}

@media (max-width:680px) {
  .nav { align-items:flex-start; flex-direction:column; }
  .links { gap:10px; }
  .hero, .router-scene-shell { overflow:hidden; }
  .hero-inner { padding-top:30px; }
  .hero-inner-visual { padding-top:24px; }
  .router-scene-shell { min-height:390px; margin-top:-12px; }
  .router-scene { min-height:390px; }
  .scene-copy { left:12px; right:12px; bottom:6px; max-width:none; }
  .scene-copy strong { font-size:14px; max-width:250px; }
  .scene-tags { top:10px; left:10px; right:10px; }
  .scene-tags span { font-size:10px; padding:3px 7px; }
  .code-strip { padding:14px; }
  h1 { font-size:31px; }
  .public-hero h1 { font-size:31px; }
  .lead { font-size:16px; }
  .proof { grid-template-columns:1fr; }
  .public-proof-strip, .flow-steps, .marketing-grid.three { grid-template-columns:1fr; }
  .marketing-hero, .marketing-copy, .quote-feature, .limitation-band { padding:18px; }
  .marketing-copy h2, .quote-feature h2, .model-catalog h2 { font-size:24px; }
  .matrix-row { grid-template-columns:1fr; }
  .matrix-row > * { border-left:0; border-top:1px solid var(--line2); }
  .matrix-row > *:first-child { border-top:0; background:#fbfcfd; }
  .matrix-head > *:first-child { background:#101820; }
  .limitation-band { grid-template-columns:1fr; }
  .console-title { align-items:flex-start; flex-direction:column; }
  .status-hero, .status-banner, .status-section-head, .component-main { align-items:flex-start; flex-direction:column; }
  .status-updated { text-align:left; min-width:0; }
  .status-legend { justify-content:flex-start; }
  .history-strip { gap:1px; }
  .status-history-summary { grid-template-columns:1fr; }
  .rollup-row { grid-template-columns:1fr; align-items:start; }
}

.signin-modal { border:0; border-radius:14px; padding:28px 28px 22px; max-width:380px; width:90vw; box-shadow:0 24px 60px rgba(11,24,44,.32); }
.signin-modal::backdrop { background:rgba(11,24,44,.45); backdrop-filter:blur(2px); }
.signin-modal h2 { margin:0 0 6px; font-size:20px; }
.signin-modal .signin-sub { margin:0 0 18px; color:var(--muted); font-size:13px; line-height:1.5; }
.signin-close { position:absolute; top:10px; right:12px; background:none; border:0; color:var(--muted); font-size:22px; cursor:pointer; padding:4px 8px; }
.signin-providers { display:flex; flex-direction:column; gap:10px; }
.signin-btn { display:flex; align-items:center; gap:12px; padding:11px 14px; border:1px solid var(--line); border-radius:8px; background:#fff; color:var(--ink); font-size:14px; font-weight:600; text-decoration:none; cursor:pointer; min-height:44px; }
.signin-btn:hover { background:#f6f8fa; }
.signin-btn span[aria-hidden] { display:inline-grid; place-items:center; width:24px; height:24px; border-radius:6px; background:#101820; color:#fff; font-weight:700; font-size:13px; }
.signin-google span[aria-hidden] { background:#fff; color:#d2452a; border:1px solid var(--line); }
.signin-github span[aria-hidden] { background:#24292f; }
.signin-metamask span[aria-hidden] { background:linear-gradient(135deg,#e2761b,#cd6116); }
.signin-foot { margin:16px 0 0; color:var(--muted); font-size:11.5px; text-align:center; }

.regions-map { background:linear-gradient(180deg,#0f2138 0%,#0a1726 100%); color:#eaf6ff; border-radius:14px; padding:36px 28px 32px; margin-top:6px; box-shadow:0 18px 60px rgba(11,24,44,.22); position:relative; overflow:hidden; }
.regions-map::before { content:""; position:absolute; inset:0; background:radial-gradient(900px 360px at 80% -10%, rgba(25,160,109,.20), transparent 70%); pointer-events:none; }
.regions-map-head { position:relative; max-width:760px; margin:0 0 20px; }
.regions-map-head h2 { margin:0 0 8px; font-size:24px; line-height:1.18; letter-spacing:0; color:#fff; }
.regions-map-head p { margin:0; color:#b8c6d2; font-size:14px; line-height:1.55; }
.regions-map-stage { position:relative; display:grid; grid-template-columns:minmax(0,1.65fr) minmax(220px,.95fr); gap:26px; align-items:center; }
.regions-map-svg { width:100%; height:auto; display:block; }
.region-marker .region-dot { fill:#19a06d; stroke:#0a1726; stroke-width:2; transition:transform 220ms ease; transform-origin:center; transform-box:fill-box; }
.region-marker.is-primary .region-dot { fill:#7be0b1; }
.region-marker .region-pulse { fill:#19a06d; opacity:.18; transform-origin:center; transform-box:fill-box; animation:tr-region-pulse 2.6s ease-out infinite; }
.region-marker.is-primary .region-pulse { fill:#7be0b1; animation-duration:2s; }
/* Selected state — driven by clicking the region's list entry. The
 * marker grows substantially, the pulse becomes brighter + faster, and
 * a halo ring fades in. Resets when a different region is clicked. */
.region-marker.is-selected .region-dot { fill:#7be0b1; transform:scale(1.6); filter:drop-shadow(0 0 6px rgba(123,224,177,.9)); }
.region-marker.is-selected .region-pulse { fill:#7be0b1; opacity:.32; animation-duration:1.4s; }

@keyframes tr-region-pulse {
  0% { transform:scale(.6); opacity:.5; }
  100% { transform:scale(1.45); opacity:0; }
}
.region-list { list-style:none; margin:0; padding:0; display:grid; gap:6px; max-height:340px; overflow:auto; }
.region-list li { display:grid; grid-template-columns:auto 1fr auto; gap:10px; align-items:baseline; padding:8px 10px; background:rgba(255,255,255,.04); border:1px solid rgba(255,255,255,.06); border-radius:6px; font-size:13px; cursor:pointer; transition:background 160ms ease, border-color 160ms ease; }
.region-list li:hover { background:rgba(255,255,255,.08); }
.region-list li:focus-visible { outline:2px solid #7be0b1; outline-offset:2px; }
.region-list li.is-primary { border-color:rgba(123,224,177,.32); background:rgba(25,160,109,.09); }
.region-list li.is-selected { border-color:#7be0b1; background:rgba(123,224,177,.18); box-shadow:0 0 0 1px rgba(123,224,177,.45) inset, 0 8px 22px rgba(123,224,177,.18); }
.region-list-id { font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace; color:#7be0b1; font-size:12px; }
.region-list-city { color:#cad8e5; }
.region-list .pill { background:rgba(123,224,177,.12); color:#7be0b1; border-color:rgba(123,224,177,.32); }

@media (max-width:880px) {
  .regions-map-stage { grid-template-columns:1fr; }
  .region-list { max-height:none; }
}
