:root {
  /* Olef brand (docs/assets/brand/tokens.css in the private repo): deep navy. */
  --bg: #08121f;
  --bg-alt: #0b1729;
  --panel: #0f1c31;
  --panel-2: #12223b;
  --line: #1f3050;
  --line-2: #2b3e60;
  --text: #e6edfa;
  --muted: #9eacc8;
  --faint: #8593b2;
  --accent: #3d9bff;
  --accent-ink: #6db3ff;
  --accent-soft: rgba(61, 155, 255, 0.14);
  --green: #34c46a;
  --blue: #6db3ff;
  --amber: #fdc21e;
  --primary-top: #1a8cff;
  --primary-bottom: #0070f3;
  --primary-border: #0063db;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 18px 40px -18px rgba(0, 0, 0, .7);
  --radius: 14px;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
  margin: 0;
  background: radial-gradient(60% 40% at 50% -8%, rgba(61, 155, 255, 0.10), transparent 70%) no-repeat, var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
code { font-family: var(--mono); font-size: 0.88em; }
p code, li code, td code, th code, span code {
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.08em 0.38em;
  white-space: nowrap;
}
:focus-visible { outline: 3px solid rgba(61,155,255,0.45); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .wrap { padding: 0 16px; } }

.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: #fff; padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

/* Announcement */
.announce { background: linear-gradient(90deg, rgba(61,155,255,0.12), rgba(61,155,255,0.03)); border-bottom: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.announce .wrap { display: flex; gap: 10px; align-items: center; padding-top: 9px; padding-bottom: 9px; flex-wrap: wrap; }
.announce .short { display: none; }
@media (max-width: 600px) { .announce .long { display: none; } .announce .short { display: inline; } }
.announce a { color: var(--text); text-decoration: none; font-weight: 600; white-space: nowrap; }
.announce a:hover { color: var(--accent); }

.chip { display: inline-flex; align-items: center; font: 700 11px/1 var(--mono); letter-spacing: 0.04em; padding: 4px 7px; border-radius: 6px; vertical-align: middle; }
.chip-red { color: var(--accent); background: var(--accent-soft); border: 1px solid rgba(61,155,255,0.35); }

/* Nav */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(8, 18, 31, 0.78); backdrop-filter: saturate(140%) blur(14px); -webkit-backdrop-filter: saturate(140%) blur(14px); border-bottom: 1px solid var(--line); }
.nav-inner { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; color: #fff; }
/* The Olef lockup: mark (179:195) and wordmark (677:299) at one height. */
.brand-mark { width: 26px; height: 28px; flex: none; }
.brand-word { width: 63px; height: 28px; flex: none; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.nav nav { margin-left: auto; }
.nav-links { display: flex; gap: 24px; list-style: none; margin: 0; padding: 0; }
.nav-links a { text-decoration: none; color: var(--muted); font-size: 15px; font-weight: 500; }
.nav-links a:hover { color: var(--text); }
@media (max-width: 760px) { .nav-links { display: none; } .nav-inner .btn { margin-left: auto; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 600; font-size: 15px; padding: 12px 20px; border-radius: 10px; border: 1px solid transparent; transition: background .15s, border-color .15s, transform .15s; }
.btn-sm { padding: 8px 14px; font-size: 14px; }
.btn-primary {
  color: #fff; background: linear-gradient(180deg, var(--primary-top) 0%, var(--primary-bottom) 100%); border-color: var(--primary-border);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.22), 0 1px 2px rgba(0,40,110,.25), 0 8px 20px -8px rgba(0,112,243,.55);
}
.btn-primary:hover { background: linear-gradient(180deg, #0f83ff 0%, #0063db 100%); box-shadow: inset 0 1px 0 rgba(255,255,255,.22), 0 2px 4px rgba(0,40,110,.25), 0 12px 26px -10px rgba(0,112,243,.65); transform: translateY(-1px); }
.btn-ghost { border-color: var(--line-2); color: var(--text); background: rgba(255,255,255,0.02); }
.btn-ghost:hover { border-color: var(--accent); background: rgba(255,255,255,0.04); }

/* Hero */
.hero { position: relative; padding: 72px 0 56px; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 56px 56px; opacity: 0.35; mask-image: radial-gradient(ellipse 80% 70% at 60% 30%, #000 30%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse 80% 70% at 60% 30%, #000 30%, transparent 75%); pointer-events: none; }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 32px; align-items: center; }
.eyebrow { font: 600 12.5px/1.2 var(--sans); text-transform: uppercase; letter-spacing: 0.26em; color: var(--faint); margin: 0 0 18px; display: flex; gap: 10px; align-items: center; }
.hero .eyebrow::before, .cta .eyebrow::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(52,196,106,0.18); }
@media (max-width: 600px) { .eyebrow { font-size: 11px; letter-spacing: 0.14em; } }
.section-head:not(.left) .eyebrow { justify-content: center; }
h1, h2, h3 { letter-spacing: -0.025em; line-height: 1.1; margin: 0; }
h1 { letter-spacing: -0.045em; line-height: 1.04; }
h2 { letter-spacing: -0.035em; }
h1 { font-size: clamp(36px, 5.2vw, 62px); font-weight: 800; }
h1 em { font-style: normal; color: var(--accent); }
.lede { font-size: clamp(17px, 1.6vw, 19px); color: var(--muted); margin: 22px 0 28px; max-width: 34em; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
.hero-ctas.center { justify-content: center; }
.works-with { margin: 28px 0 0; color: var(--faint); font-size: 14px; display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; }
.works-with span { color: var(--muted); font-weight: 500; }
.works-with span + span::before { content: "·"; color: var(--faint); margin-right: 14px; }
.hero-art { position: relative; min-width: 0; }
.glow { position: absolute; inset: -6% -4% -10%; background: radial-gradient(closest-side, rgba(61,155,255,0.28), rgba(61,155,255,0.06) 60%, transparent); filter: blur(12px); }
/* Hero: the product itself, one act-and-prove round trip. */
.hero-card { position: relative; box-shadow: var(--shadow), 0 30px 70px -30px rgba(0,112,243,0.45); }
.hero-card pre { font-size: 13px; line-height: 1.75; }
.hero-card .ok-pill { display: inline-flex; align-items: center; gap: 6px; margin: 0 20px 18px; height: 28px; padding: 0 12px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line); font: 600 12.5px var(--sans); color: var(--text); }
.hero-card .ok-pill svg { width: 14px; height: 14px; color: var(--green); }
@media (max-width: 900px) {
  .hero { padding: 40px 0 32px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .hero-art { max-width: 560px; width: 100%; margin: 12px auto 0; }
}

/* Install line */
.install-line { display: flex; align-items: center; gap: 12px; background: var(--panel); border: 1px solid var(--line-2); border-radius: 12px; padding: 10px 10px 10px 16px; max-width: 520px; min-width: 0; }
.install-line .prompt { color: var(--accent-ink); font-family: var(--mono); font-weight: 700; flex: none; }
.install-line code { flex: 1; min-width: 0; overflow-x: auto; white-space: nowrap; font-size: 14.5px; scrollbar-width: none; }
.install-line code::-webkit-scrollbar { display: none; }
.copy { flex: none; font: 600 13px var(--sans); color: var(--text); background: var(--panel-2); border: 1px solid var(--line-2); border-radius: 8px; padding: 7px 12px; cursor: pointer; transition: background .15s, color .15s; }
.copy:hover { background: var(--line); }
.copy.done { color: var(--green); border-color: rgba(52,196,106,0.5); }

/* Stats */
.stats { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-alt); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 28px 24px; border-left: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat strong { font-size: 40px; font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.stat strong small { font-size: 0.5em; color: var(--accent-ink); margin-left: 3px; font-weight: 700; }
.stat span { color: var(--muted); font-size: 14px; line-height: 1.45; }
@media (max-width: 900px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat { padding: 22px 16px; }
  .stat:nth-child(odd) { border-left: 0; padding-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* Sections */
.section { padding: 104px 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.section-head.left { margin: 0 0 32px; text-align: left; }
h2 { font-size: clamp(30px, 3.8vw, 44px); font-weight: 800; }
.section-head p:not(.eyebrow) { color: var(--muted); font-size: 18px; margin: 18px 0 0; }
@media (max-width: 600px) { .section { padding: 72px 0; } .section-head { margin-bottom: 32px; } }
.footnote { color: var(--faint); font-size: 14px; text-align: center; max-width: 640px; margin: 24px auto 0; }

/* Loop */
.loop { max-width: 880px; margin: 0 auto; }
.loop-tabs, .os-tabs { display: flex; gap: 6px; padding: 5px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 18px; overflow-x: auto; scrollbar-width: none; }
.loop-tabs::-webkit-scrollbar, .os-tabs::-webkit-scrollbar { display: none; }
.loop-tabs button, .os-tabs button { flex: 1; display: inline-flex; justify-content: center; align-items: center; gap: 10px; white-space: nowrap; font: 600 14.5px var(--sans); color: var(--muted); background: transparent; border: 0; border-radius: 8px; padding: 10px 14px; cursor: pointer; }
.loop-tabs button:hover, .os-tabs button:hover { color: var(--text); }
.loop-tabs button[aria-selected="true"], .os-tabs button[aria-selected="true"] { background: var(--panel-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }
.loop-tabs .n { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; font: 700 12px var(--mono); background: var(--line); color: var(--muted); }
.loop-tabs button[aria-selected="true"] .n { background: var(--accent); color: #fff; }
.panel-note { color: var(--muted); margin: 0 0 14px; text-align: center; }
@media (max-width: 600px) { .loop-tabs button { white-space: normal; font-size: 13px; padding: 8px 6px; line-height: 1.25; } .loop-tabs .n { display: none; } }

/* Terminal */
.term { background: #060e1a; border: 1px solid var(--line-2); border-radius: var(--radius); overflow: hidden; box-shadow: 0 24px 60px rgba(0,0,0,0.45); min-width: 0; }
.term-bar { display: flex; align-items: center; gap: 7px; padding: 11px 14px; border-bottom: 1px solid var(--line); background: var(--panel); }
.term-bar i { width: 11px; height: 11px; border-radius: 50%; background: #2c323b; }
.term-bar span { margin-left: 8px; font: 500 12px var(--mono); color: var(--faint); }
.term pre { margin: 0; padding: 18px 20px 22px; overflow-x: auto; font: 13.5px/1.7 var(--mono); }
.term pre code { font-size: inherit; }
.term .cmd::before { content: "$ "; color: var(--accent-ink); font-weight: 700; }
.term .cmd { color: var(--text); font-weight: 500; }
.term .json { color: #c9ced6; }
.term .k { color: var(--blue); }
.term .s { color: #a8e6b8; }
.term .num { color: var(--amber); }
.term .b { color: var(--green); font-weight: 700; }
.term .c { color: var(--faint); }
.term .p { color: var(--accent-ink); font-weight: 700; }
@media (max-width: 600px) { .term pre { font-size: 12px; padding: 14px 14px 16px; } }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.card { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 24px 22px; box-shadow: var(--shadow); transition: border-color .2s, transform .2s; }
.card:hover { border-color: rgba(61,155,255,0.45); transform: translateY(-2px); }
.card .chip { position: absolute; top: 18px; right: 18px; }
.card-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 10px; background: var(--accent-soft); margin-bottom: 18px; }
.card-icon svg { width: 22px; height: 22px; fill: none; stroke: var(--accent-ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { font-size: 18px; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 15px; margin: 0; }
@media (max-width: 1060px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .cards { grid-template-columns: 1fr; } }

/* Compare */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.compare { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 640px; }
.compare th, .compare td { text-align: left; padding: 16px 20px; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare thead th { font: 600 12px var(--mono); text-transform: uppercase; letter-spacing: 0.1em; color: var(--faint); background: var(--panel-2); }
.compare tbody tr:last-child > * { border-bottom: 0; }
.compare tbody th { font-weight: 600; white-space: nowrap; }
.compare td { color: var(--muted); }
.compare td:last-child { color: var(--text); }
.compare td:last-child::before { content: "✓"; color: var(--green); font-weight: 700; margin-right: 8px; }

/* How */
.how-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; color: var(--muted); }
.ticks li { padding-left: 28px; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 0.45em; width: 14px; height: 8px; border-left: 2px solid var(--green); border-bottom: 2px solid var(--green); transform: rotate(-45deg); }
.diagram { margin: 0; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.diagram svg { width: 100%; height: auto; }
.d-box > rect { fill: var(--panel-2); stroke: var(--line-2); stroke-width: 1.2; }
.d-accent > rect { stroke: rgba(61,155,255,0.6); fill: rgba(61,155,255,0.05); }
.d-pill > rect { fill: #0a1626; stroke: var(--line-2); }
.d-app > rect { fill: rgba(52,196,106,0.05); stroke: rgba(52,196,106,0.45); }
.d-inner > rect { fill: rgba(61,155,255,0.08); stroke: rgba(61,155,255,0.5); }
.diagram text { fill: var(--text); font: 600 13px var(--sans); text-anchor: middle; }
.diagram .d-t { font-size: 15px; font-weight: 700; }
.diagram .d-s { fill: var(--muted); font-size: 11.5px; font-weight: 500; }
.diagram .d-l { fill: var(--faint); font: 500 11px var(--mono); text-anchor: start; }
.diagram .d-l.mid { text-anchor: middle; }
.d-line { stroke: var(--accent); stroke-width: 1.6; fill: none; stroke-dasharray: 5 4; }
@media (max-width: 900px) { .how-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; } .diagram { padding: 12px; } }

/* News */
.news { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.news-item { padding: 26px 22px; border-left: 1px solid var(--line); background-color: var(--panel); background-image: linear-gradient(180deg, rgba(61,155,255,0.05), transparent 60%); }
.news-item:first-child { border-left: 0; }
.news-item h3 { font-size: 17px; margin-bottom: 10px; }
.news-item p { margin: 0; color: var(--muted); font-size: 15px; }
@media (max-width: 1000px) { .news { grid-template-columns: 1fr 1fr; } .news-item:nth-child(3) { border-left: 0; } .news-item:nth-child(n+3) { border-top: 1px solid var(--line); } }
@media (max-width: 600px) { .news { grid-template-columns: 1fr; } .news-item { border-left: 0; } .news-item + .news-item { border-top: 1px solid var(--line); } }

/* Install */
.install-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.os-tabs { max-width: 520px; }
.os-panel .install-line { max-width: 520px; }
.quick pre { line-height: 1.85; }
@media (max-width: 900px) { .install-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; } }

/* CTA */
.cta { padding: 112px 0; text-align: center; position: relative; overflow: hidden; }
.cta::before { content: ""; position: absolute; left: 50%; top: 50%; width: 900px; max-width: 100vw; height: 420px; transform: translate(-50%, -50%); background: radial-gradient(closest-side, rgba(61,155,255,0.16), transparent); pointer-events: none; }
.cta-inner { position: relative; }
.cta p { color: var(--muted); font-size: 18px; margin: 16px 0 26px; }
@media (max-width: 600px) { .cta { padding: 80px 0; } }

/* Footer */
/* A raised navy sheet, as in the brand's pages. */
.footer { border-top: 1px solid var(--line); padding: 36px 0 44px; border-radius: 28px 28px 0 0; background: radial-gradient(60% 140% at 50% 0%, rgba(61,155,255,0.10) 0%, transparent 70%), var(--panel); box-shadow: 0 -18px 50px -24px rgba(61,155,255,0.45); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 32px; }
.brand.small .brand-mark { width: 22px; height: 24px; }
.brand.small .brand-word { width: 54px; height: 24px; }
.footer ul { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; padding: 0; margin: 0; }
.footer ul a { color: var(--muted); text-decoration: none; font-size: 14px; }
.footer ul a:hover { color: var(--text); }
.fine { margin: 0 0 0 auto; color: var(--faint); font-size: 13px; }
@media (max-width: 760px) { .fine { margin-left: 0; width: 100%; } }

/* 404 */
.notfound { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 48px 16px; }
.notfound .notfound-mark { width: 120px; height: 131px; margin: 0 auto 28px; }
.notfound p { color: var(--muted); }

/* 2.0 additions */
.news-more { color: var(--muted); font-size: 15px; text-align: center; max-width: 760px; margin: 24px auto 0; }
.news-more a, .install-extra a, .fine a { color: var(--text); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.news-more a:hover, .install-extra a:hover, .fine a:hover { text-decoration-color: var(--accent); }
.install-extra { max-width: 520px; margin-top: 22px; display: grid; gap: 10px; color: var(--muted); font-size: 15px; }
.install-extra p { margin: 0; }
.install-extra code { white-space: normal; word-break: break-word; }
.fine { max-width: 560px; text-align: right; line-height: 1.5; }
@media (max-width: 760px) { .fine { text-align: left; max-width: none; } }

/* Legal pages */
.legal .wrap { max-width: 760px; }
.legal h1 { font-size: clamp(32px, 4vw, 44px); margin-bottom: 8px; }
.legal h2 { font-size: 22px; margin: 36px 0 10px; }
.legal p, .legal li { color: var(--muted); }
.legal strong { color: var(--text); }
.legal ul { padding-left: 20px; display: grid; gap: 8px; }
.legal a:not(.btn) { color: var(--text); text-underline-offset: 3px; }
.legal .muted { color: var(--faint); margin-top: 0; }
.legal .btn { margin-top: 24px; }
.legal h3 { font-size: 18px; margin: 28px 0 8px; color: var(--text); }
.legal ol { padding-left: 22px; display: grid; gap: 8px; }
.legal code { font-family: var(--mono); font-size: .92em; }
.legal .table-wrap { overflow-x: auto; margin: 12px 0 4px; }
.legal table { border-collapse: collapse; width: 100%; font-size: 15px; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 9px 12px; border-bottom: 1px solid var(--line); color: var(--muted); }
.legal th { color: var(--text); font-weight: 600; }
.legal .legal-links { margin-top: 40px; color: var(--faint); }

/* Install steps */
.step-label { display: flex; align-items: center; gap: 10px; font-weight: 700; margin: 4px 0 12px; }
.step-label .n { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--accent); color: #fff; font: 700 12px var(--mono); }
.step-label:not(:first-of-type) { margin-top: 28px; }
.os-panel { display: grid; gap: 8px; }
.os-panel[hidden] { display: none; }
.line-label { margin: 6px 0 2px; color: var(--muted); font-size: 13.5px; }
.install-note { max-width: 520px; color: var(--faint); font-size: 14px; margin: 14px 0 0; }
.install-note code { white-space: normal; }
.agent-rows { display: grid; gap: 14px; max-width: 520px; }
.agent-row { display: grid; gap: 8px; }
.line-note { margin: 2px 0 0; color: var(--muted); font-size: 13.5px; }
.agent-manual { display: grid; gap: 14px; }
.agent-manual summary { cursor: pointer; color: var(--muted); font-size: 14px; width: max-content; max-width: 100%; }
.agent-manual summary:hover { color: var(--text); }
.agent-manual[open] summary { margin-bottom: 10px; }
.agent-manual .agent-row + .agent-row { margin-top: 14px; }
