:root {
  --bg: #060608;
  --panel: #0d0d12;
  --line: rgba(255, 255, 255, 0.09);
  --text: #f2f2f5;
  --muted: rgba(255, 255, 255, 0.55);
  --faint: rgba(255, 255, 255, 0.35);
  --accent: #7c5cff;
  --cyan: #39d5c0;
  --green: #3ddc84;
  --orange: #ff9f43;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", Inter, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: radial-gradient(1200px 600px at 70% -10%, rgba(124, 92, 255, 0.14), transparent 60%),
    radial-gradient(900px 500px at 10% 0%, rgba(57, 213, 192, 0.08), transparent 55%),
    var(--bg);
  color: var(--text);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
.nav {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px;
  padding: 12px 28px;
  background: rgba(6, 6, 8, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; flex: none; }
.brand img { width: 26px; height: 26px; border-radius: 6px; }
.nav-links { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.nav-links a {
  text-decoration: none; color: var(--muted); font-size: 13.5px;
  padding: 7px 11px; border-radius: 999px; white-space: nowrap;
  transition: color .12s, background .12s;
}
.nav-links a:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.nav-links a.nav-primary { color: var(--text); }
/* Models is a first-class destination — spotlight pill, distinct from the
   flat text links and the GitHub CTA. */
.nav-links a.nav-models {
  color: #9CC0FF; font-weight: 600;
  background: linear-gradient(90deg, rgba(79, 140, 255, 0.16), rgba(139, 92, 246, 0.12));
  border: 1px solid rgba(79, 140, 255, 0.38);
}
.nav-links a.nav-models:hover { color: #fff; background: linear-gradient(90deg, rgba(79, 140, 255, 0.26), rgba(139, 92, 246, 0.2)); border-color: rgba(79, 140, 255, 0.6); }
.nav-cta { border: 1px solid var(--line); border-radius: 999px; padding: 7px 16px !important; color: var(--text) !important; margin-left: 4px; }
.nav-cta:hover { border-color: var(--line2); background: rgba(255, 255, 255, 0.04) !important; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 9px; color: var(--text); width: 38px; height: 34px; font-size: 16px; cursor: pointer; flex: none; }
.nav-toggle:hover { border-color: var(--line2); }
.hero {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 40px;
  max-width: 1120px; margin: 0 auto; padding: 84px 28px 40px;
  align-items: center;
}
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 12px; color: var(--muted);
  border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px;
}
.pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); }
h1 { font-size: clamp(42px, 6vw, 68px); line-height: 1.02; letter-spacing: -0.02em; margin: 22px 0 16px; }
h1 em { font-style: normal; background: linear-gradient(92deg, var(--cyan), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-copy p { color: var(--muted); font-size: 17px; line-height: 1.55; max-width: 46ch; }
.install-line {
  display: flex; align-items: stretch; gap: 0; margin: 26px 0 18px;
  border: 1px solid var(--line); border-radius: 10px; overflow: hidden;
  background: #0a0a10; max-width: 560px;
}
.install-line code {
  flex: 1; padding: 13px 14px; font-family: var(--mono); font-size: 12.5px;
  color: var(--cyan); white-space: nowrap; overflow-x: auto;
}
.install-line button {
  border: 0; border-left: 1px solid var(--line); background: transparent;
  color: var(--muted); font-size: 16px; padding: 0 16px; cursor: pointer;
}
.install-line button:hover { color: var(--text); background: rgba(255, 255, 255, 0.04); }
.hero-actions { display: flex; gap: 12px; margin-bottom: 22px; flex-wrap: wrap; }
.hero-actions a { text-decoration: none; font-weight: 600; font-size: 15px; border-radius: 10px; padding: 12px 22px; }
.hero-actions .primary { background: var(--text); color: #0a0a0e; }
.hero-actions .secondary { border: 1px solid var(--line); color: var(--text); }
.meta { display: flex; gap: 10px; color: var(--faint); font-size: 13px; }
.hero-demo { display: flex; flex-direction: column; align-items: center; }
.mac-screen {
  width: 100%; max-width: 480px; aspect-ratio: 16/10.5; border-radius: 14px;
  background: linear-gradient(160deg, #14141c, #0a0a10 70%);
  border: 1px solid var(--line); position: relative; overflow: hidden;
}
.mac-screen::after { content: ""; position: absolute; inset: 0; background: radial-gradient(420px 200px at 50% 120%, rgba(124, 92, 255, 0.16), transparent 70%); }
.notch-shell { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 250px; }
.notch-collapsed {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  background: #000; border-radius: 0 0 14px 14px; padding: 7px 0 9px;
}
.camera { width: 9px; height: 9px; border-radius: 50%; background: #1c2333; box-shadow: inset 0 0 3px #3b82f6; }
.mini-ring {
  width: 26px; height: 26px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 9px; font-weight: 700; color: #fff;
}
.mini-ring.cyan { border: 3px solid var(--cyan); }
.mini-ring.violet { border: 3px solid var(--accent); }
.notch-panel {
  margin-top: 10px; background: rgba(10, 10, 15, 0.96);
  border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px;
  animation: float 5s ease-in-out infinite;
}
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
.panel-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 10px; }
.eyebrow { display: block; font-family: var(--mono); font-size: 9px; letter-spacing: 0.12em; color: var(--muted); }
.panel-head strong { font-family: var(--mono); font-size: 24px; }
.live-dot { font-family: var(--mono); font-size: 9px; font-weight: 700; color: var(--green); border: 1px solid rgba(61, 220, 132, 0.4); border-radius: 999px; padding: 3px 8px; }
.live-dot::before { content: "● "; }
.chart { display: flex; align-items: flex-end; gap: 5px; height: 64px; margin-bottom: 10px; }
.chart i { flex: 1; border-radius: 2px 2px 0 0; background: linear-gradient(180deg, var(--accent), rgba(124, 92, 255, 0.25)); animation: bar 2.6s ease-in-out infinite alternate; }
@keyframes bar { from { transform: scaleY(0.72); } to { transform: scaleY(1); } }
.chart i { transform-origin: bottom; }
.panel-foot { display: flex; gap: 14px; font-size: 12px; color: var(--muted); }
.panel-foot b { color: var(--text); font-family: var(--mono); }
.mac-base { width: 60%; height: 8px; margin-top: -1px; background: linear-gradient(180deg, #23232e, #101016); border-radius: 0 0 12px 12px; }
.desktop-label { margin-top: 16px; color: var(--faint); font-size: 13px; display: flex; gap: 8px; align-items: center; }
.status-pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--green); animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
.provider-strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, 0.015); }
.provider-inner { max-width: 1120px; margin: 0 auto; padding: 18px 28px; display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.provider-inner span { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; color: var(--faint); }
.provider-inner b { font-size: 14px; color: var(--muted); font-weight: 600; }
.section { max-width: 1120px; margin: 0 auto; padding: 84px 28px 8px; }
.kicker { font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; color: var(--cyan); }
.section h2 { font-size: clamp(30px, 4vw, 44px); letter-spacing: -0.015em; margin: 12px 0; }
.section-heading p, .lede { color: var(--muted); max-width: 60ch; line-height: 1.6; }
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; margin-top: 30px; }
.feature-card { border: 1px solid var(--line); border-radius: 14px; padding: 22px; background: var(--panel); }
.feature-card:hover { border-color: rgba(124, 92, 255, 0.45); }
.feature-card .num { font-family: var(--mono); font-size: 12px; color: var(--accent); }
.feature-card h3 { margin: 12px 0 8px; font-size: 17px; }
.feature-card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.55; }
.film video { width: 100%; border-radius: 14px; border: 1px solid var(--line); background: #000; margin-top: 26px; aspect-ratio: 16/9; }
.privacy-points { display: flex; gap: 34px; margin-top: 26px; flex-wrap: wrap; }
.privacy-points span { display: flex; flex-direction: column; gap: 4px; color: var(--muted); font-size: 13px; }
.privacy-points b { font-family: var(--mono); font-size: 26px; color: var(--text); }
.install-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 14px; margin-top: 30px; }
.install-card { border: 1px solid var(--line); border-radius: 14px; padding: 22px; background: var(--panel); }
.install-card h3 { margin: 0 0 12px; font-size: 16px; }
.install-card h3 em { color: var(--green); font-style: normal; font-size: 12px; border: 1px solid rgba(61, 220, 132, 0.4); border-radius: 999px; padding: 2px 9px; margin-left: 6px; }
.install-card pre { background: #08080c; border: 1px solid var(--line); border-radius: 8px; padding: 12px; overflow-x: auto; margin: 0 0 12px; }
.install-card pre code, .install-card p code { font-family: var(--mono); font-size: 12px; color: var(--cyan); }
.install-card p { color: var(--muted); font-size: 13.5px; line-height: 1.6; margin: 0 0 10px; }
.install-card p:last-child { margin-bottom: 0; }
.install-card a { color: var(--cyan); }
.fine { font-size: 12.5px !important; color: var(--faint) !important; }
.footer {
  max-width: 1120px; margin: 90px auto 0; padding: 34px 28px 60px;
  border-top: 1px solid var(--line);
  display: flex; gap: 18px; align-items: center; flex-wrap: wrap;
}
.footer p { color: var(--faint); font-size: 13px; margin: 0; flex: 1; }
.footer-links { display: flex; gap: 18px; }
.footer-links a { color: var(--muted); font-size: 13px; text-decoration: none; }
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding-top: 56px; }
  .nav { flex-wrap: wrap; padding: 10px 18px; }
  .nav-toggle { display: inline-grid; place-items: center; }
  .nav-links {
    display: none;
    order: 3; flex-basis: 100%; flex-direction: column; align-items: stretch;
    gap: 2px; padding: 8px 0 4px; border-top: 1px solid var(--line); margin-top: 8px;
  }
  .nav.open .nav-links { display: flex; }
  .nav-links a { padding: 10px 8px; font-size: 15px; }
  .nav-cta { margin: 6px 0 0; text-align: center; }
}

/* ---------- Blog & docs (static pages sharing the landing chrome) ---------- */
.page { max-width: 860px; margin: 0 auto; padding: 64px 28px 40px; }
.page-kicker { font-size: 11px; letter-spacing: 2.2px; text-transform: uppercase; color: var(--faint); }
.page h1 { font-size: clamp(30px, 4.4vw, 46px); letter-spacing: -0.02em; margin: 10px 0 8px; }
.page .lede { color: var(--muted); font-size: 16px; line-height: 1.6; max-width: 680px; margin: 0 0 28px; }
.post-list { display: grid; gap: 16px; }
.post-card { display: block; background: linear-gradient(180deg, var(--panel), #0a0a0f); border: 1px solid var(--line); border-radius: 16px; padding: 20px 22px; text-decoration: none; transition: border-color .14s, transform .14s; }
.post-card:hover { border-color: rgba(124, 92, 255, 0.45); transform: translateY(-1px); }
.post-card .date { font-family: var(--mono); font-size: 11px; color: var(--faint); }
.post-card h2 { margin: 6px 0 8px; font-size: 19px; letter-spacing: -0.01em; }
.post-card p { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.6; }
.post-card .more { display: inline-block; margin-top: 10px; color: var(--cyan); font-size: 12.5px; }
.prose { max-width: 720px; margin: 0 auto; padding: 48px 28px 60px; font-size: 15.5px; line-height: 1.75; color: rgba(242, 242, 245, 0.92); }
.prose .meta { font-family: var(--mono); font-size: 11.5px; color: var(--faint); margin-bottom: 26px; }
.prose h1 { font-size: clamp(28px, 3.8vw, 40px); line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 12px; }
.prose h2 { font-size: 22px; margin: 42px 0 12px; letter-spacing: -0.01em; }
.prose h3 { font-size: 17px; margin: 30px 0 8px; }
.prose p { margin: 0 0 16px; color: rgba(242, 242, 245, 0.8); }
.prose ul, .prose ol { margin: 0 0 18px; padding-left: 22px; color: rgba(242, 242, 245, 0.8); }
.prose li { margin-bottom: 7px; }
.prose a { color: var(--cyan); text-decoration: none; border-bottom: 1px solid rgba(57, 213, 192, 0.35); }
.prose a:hover { border-bottom-color: var(--cyan); }
.prose code { font-family: var(--mono); font-size: 0.86em; background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line); border-radius: 6px; padding: 2px 6px; }
.prose pre { background: #0a0a0f; border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; overflow-x: auto; margin: 0 0 20px; }
.prose pre code { background: none; border: none; padding: 0; font-size: 12.5px; line-height: 1.6; color: #cfe3ff; }
.prose blockquote { margin: 0 0 20px; padding: 12px 18px; border-left: 3px solid var(--accent); background: rgba(124, 92, 255, 0.07); border-radius: 0 12px 12px 0; color: rgba(242, 242, 245, 0.75); }
.prose table { width: 100%; border-collapse: collapse; font-size: 13.5px; margin: 0 0 22px; }
.prose th { text-align: left; color: var(--faint); font-size: 11px; letter-spacing: 1px; text-transform: uppercase; padding: 9px 10px; border-bottom: 1px solid var(--line); }
.prose td { padding: 10px; border-bottom: 1px solid var(--line); color: rgba(242, 242, 245, 0.78); vertical-align: top; }
.prose hr { border: none; border-top: 1px solid var(--line); margin: 34px 0; }
.docs-layout { display: grid; grid-template-columns: 232px minmax(0, 1fr); gap: 34px; max-width: 1140px; margin: 0 auto; padding: 52px 28px 70px; }
.docs-nav { position: sticky; top: 72px; align-self: start; display: flex; flex-direction: column; gap: 3px; }
.docs-nav .group { font-size: 10px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--faint); margin: 14px 0 4px; }
.docs-nav a { color: var(--muted); font-size: 13px; text-decoration: none; padding: 5px 9px; border-radius: 8px; border: 1px solid transparent; }
.docs-nav a:hover { color: var(--text); background: rgba(255, 255, 255, 0.04); }
.docs-body { min-width: 0; }
.docs-body h1 { font-size: clamp(28px, 3.6vw, 38px); margin: 0 0 10px; letter-spacing: -0.02em; }
.docs-body h2 { font-size: 21px; margin: 38px 0 12px; padding-top: 10px; border-top: 1px solid var(--line); }
.docs-body h2:first-of-type { border-top: none; }
.docs-body p, .docs-body li { color: rgba(242, 242, 245, 0.8); font-size: 14.5px; line-height: 1.7; }
.docs-body table { width: 100%; border-collapse: collapse; font-size: 13px; margin: 0 0 20px; }
.docs-body th { text-align: left; color: var(--faint); font-size: 10.5px; letter-spacing: 1px; text-transform: uppercase; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.docs-body td { padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.docs-body code { font-family: var(--mono); font-size: 0.86em; background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line); border-radius: 6px; padding: 2px 6px; }
.docs-body pre { background: #0a0a0f; border: 1px solid var(--line); border-radius: 12px; padding: 15px 17px; overflow-x: auto; }
.docs-body pre code { background: none; border: none; padding: 0; color: #cfe3ff; font-size: 12.5px; line-height: 1.6; }
.docs-body .note { background: rgba(57, 213, 192, 0.07); border: 1px solid rgba(57, 213, 192, 0.3); border-radius: 12px; padding: 12px 16px; font-size: 13.5px; color: rgba(242, 242, 245, 0.8); margin: 0 0 18px; }
@media (max-width: 860px) {
  .docs-layout { grid-template-columns: 1fr; gap: 18px; padding-top: 32px; }
  .docs-nav { position: static; flex-direction: row; flex-wrap: wrap; }
  .docs-nav .group { display: none; }
}

/* Read surfaces keep the article ahead of secondary navigation on a phone. */
body.editorial.reading-page .reading-skip { position: fixed; top: 8px; left: 16px; z-index: 100; padding: 12px 16px; background: var(--th-accent); color: var(--th-accent-ink); transform: translateY(-160%); }
body.editorial.reading-page .reading-skip:focus { transform: translateY(0); }
body.editorial.reading-page .docs-contents { position: sticky; top: 102px; align-self: start; }
body.editorial.reading-page .docs-contents > summary { display: none; }
body.editorial.reading-page .docs-contents .docs-nav { position: static; }
body.editorial.reading-page .nav-toggle { position: relative; width: 44px; height: 44px; min-width: 44px; min-height: 44px; font-size: 0; }
body.editorial.reading-page .nav-toggle::before, body.editorial.reading-page .nav-toggle::after { content: ""; position: absolute; left: 12px; width: 18px; height: 1.5px; background: currentColor; }
body.editorial.reading-page .nav-toggle::before { top: 17px; }
body.editorial.reading-page .nav-toggle::after { top: 24px; }
body.editorial.reading-page .nav-toggle[aria-expanded="true"]::before { top: 21px; transform: rotate(45deg); }
body.editorial.reading-page .nav-toggle[aria-expanded="true"]::after { top: 21px; transform: rotate(-45deg); }
body.editorial.reading-page .nav-links a[aria-current="page"] { color: var(--th-signal); text-decoration: underline; text-underline-offset: 5px; }
body.editorial.reading-page :is(.docs-body, .prose) { overflow-wrap: anywhere; }
body.editorial.reading-page :is(.docs-body, .prose) pre { min-width: 0; max-width: 100%; overflow-x: auto; }
@media (max-width: 860px) {
  body.editorial.reading-page .nav .brand { min-height: 44px; }
  body.editorial.reading-page .nav-links a { display: flex; align-items: center; min-height: 44px; }
  body.editorial.reading-page .docs-layout { padding-top: 24px; gap: 24px; }
  body.editorial.reading-page .docs-contents { position: static; border-bottom: 1px solid var(--th-rule); }
  body.editorial.reading-page .docs-contents > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; padding: 10px 0; list-style: none; font-size: 16px; cursor: pointer; }
  body.editorial.reading-page .docs-contents > summary::-webkit-details-marker { display: none; }
  body.editorial.reading-page .docs-contents > summary > svg { width: 20px; height: 20px; }
  body.editorial.reading-page .docs-contents[open] > summary > svg { transform: rotate(180deg); }
  body.editorial.reading-page .docs-contents .docs-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 12px; padding: 0 0 18px; border: 0; }
  body.editorial.reading-page .docs-contents .docs-nav .group { display: block; grid-column: 1 / -1; margin: 16px 0 4px; font: 13px var(--sans); letter-spacing: 0; text-transform: none; }
  body.editorial.reading-page .docs-contents .docs-nav a { display: flex; align-items: center; min-width: 0; min-height: 44px; padding: 9px 0; border: 0; border-radius: 0; background: transparent; font-size: 14px; }
  body.editorial.reading-page .docs-body p, body.editorial.reading-page .docs-body li { font-size: 16px; line-height: 1.75; }
  body.editorial.reading-page :is(.page, .prose) { padding-top: 28px; }
  body.editorial.reading-page .page h1 { margin-top: 0; font-size: 32px; }
  body.editorial.reading-page .page .lede { margin-bottom: 28px; }
  body.editorial.reading-page .post-card { padding-block: 24px; }
  body.editorial.reading-page .post-card h2 { font-size: 24px; }
  body.editorial.reading-page .post-card p { font-size: 16px; }
  body.editorial.reading-page .prose .meta { margin-bottom: 24px; }
  body.editorial.reading-page .footer { margin-top: 32px; padding: 24px 18px max(24px, env(safe-area-inset-bottom)); gap: 12px; }
  body.editorial.reading-page .footer-links { gap: 4px 16px; flex-wrap: wrap; }
  body.editorial.reading-page .footer-links a { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; }
  body.editorial.reading-page :is(.docs-body, .prose) table { display: block; max-width: 100%; overflow-x: auto; }
}
