@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500;600&display=swap');

:root {
  color-scheme: dark;
  --bg: #070a14;
  --bg-raised: #0d1220;
  --ink: #eef2ff;
  --muted: #8c96ac;
  --faint: #58627b;
  --line: rgba(173, 188, 226, .17);
  --line-strong: rgba(190, 211, 255, .34);
  --mint: #b9ffd8;
  --gold: #ffd67d;
  --shell: min(1160px, calc(100% - 48px));
  --mono: 'IBM Plex Mono', 'Cascadia Code', Consolas, monospace;
  --sans: 'DM Sans', 'Segoe UI', sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 28px; }
body { min-width: 320px; margin: 0; overflow-x: hidden; background: var(--bg); color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
body::after { position: fixed; inset: 0; z-index: 1; pointer-events: none; content: ''; opacity: .16; background-image: radial-gradient(rgba(255,255,255,.2) .6px, transparent .6px); background-size: 5px 5px; mix-blend-mode: soft-light; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
a:focus-visible, button:focus-visible, summary:focus-visible, pre:focus-visible { outline: 2px solid var(--mint); outline-offset: 4px; }
.shell { width: var(--shell); margin-inline: auto; }
#starfield { position: fixed; inset: 0; z-index: 0; width: 100%; height: 100%; pointer-events: none; }
.ambient { position: fixed; z-index: 0; width: 45vw; height: 45vw; border-radius: 50%; pointer-events: none; filter: blur(70px); opacity: .15; }
.ambient-one { top: -22vw; right: -12vw; background: #526dff; }
.ambient-two { bottom: -28vw; left: -18vw; background: #28d6a0; opacity: .1; }
.site-header, main, .site-footer { position: relative; z-index: 2; }
.site-header { min-height: 80px; display: flex; align-items: center; gap: 36px; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 19px; font-weight: 700; letter-spacing: -.06em; }
.brand-mark { display: grid; width: 24px; height: 24px; place-items: center; color: var(--mint); font-size: 16px; filter: drop-shadow(0 0 12px rgba(185,255,216,.62)); }
.desktop-nav { display: flex; gap: 27px; margin-left: auto; }
.desktop-nav a, .header-link, .site-footer a { color: var(--muted); font: 11px var(--mono); transition: color .25s ease, transform .25s ease; }
.desktop-nav a:hover, .header-link:hover, .site-footer a:hover { color: var(--ink); }
.header-link { display: inline-flex; gap: 10px; align-items: center; min-height: 38px; padding: 0 14px; color: var(--ink); border: 1px solid var(--line-strong); }
.header-link:hover { transform: translateY(-2px); border-color: var(--mint); }
.mobile-nav { display: none; margin-left: auto; }
.mobile-nav summary { display: flex; gap: 12px; align-items: center; min-height: 42px; color: var(--ink); cursor: pointer; list-style: none; font: 11px var(--mono); }
.mobile-nav summary::-webkit-details-marker { display: none; }
.mobile-nav summary span { color: var(--mint); font-size: 19px; }
.mobile-nav[open] summary span { transform: rotate(45deg); }
.mobile-nav nav { position: absolute; top: 68px; right: 0; display: grid; min-width: 180px; padding: 8px 15px; background: rgba(10,14,26,.95); border: 1px solid var(--line-strong); box-shadow: 0 22px 60px rgba(0,0,0,.35); backdrop-filter: blur(18px); }
.mobile-nav nav a { display: flex; justify-content: space-between; min-height: 45px; align-items: center; color: var(--muted); border-bottom: 1px solid var(--line); font: 11px var(--mono); }
.mobile-nav nav a:last-child { border-bottom: 0; }
.skip-link { position: absolute; top: 10px; left: 22px; z-index: 10; padding: 10px 15px; color: var(--bg); background: var(--mint); transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; user-select: none; }

.hero { min-height: min(720px, calc(100vh - 80px)); display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(360px, .98fr); align-items: center; gap: 42px; padding-block: 72px 94px; }
.hero-copy { position: relative; z-index: 1; max-width: 650px; animation: rise .8s var(--ease) both; }
.eyebrow, .section-kicker, .card-meta, .terminal-head, .hero-proof, .agents-bottom, .doc-kicker { font-family: var(--mono); letter-spacing: .1em; }
.eyebrow { display: flex; gap: 10px; align-items: center; margin: 0 0 29px; color: var(--muted); font-size: 10px; }
.eyebrow-line { width: 32px; height: 1px; background: var(--mint); box-shadow: 0 0 13px var(--mint); }
.eyebrow-dot { color: var(--mint); font-size: 7px; }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 700px; margin-bottom: 27px; font-size: clamp(52px, 7vw, 93px); line-height: .98; letter-spacing: -.09em; font-weight: 600; text-wrap: balance; }
h1 em, h2 em { color: var(--mint); font-style: normal; }
.hero-lede { max-width: 530px; margin-bottom: 34px; color: #a8b1c6; font-size: 15px; line-height: 1.85; }
.type-char { position: relative; opacity: .16; transition: opacity .15s linear; }
.type-char.is-typed { opacity: 1; }
.type-char.is-cursor::after { position: absolute; top: .1em; right: -2px; width: 1px; height: 1em; content: ''; background: currentColor; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.button { display: inline-flex; min-height: 47px; align-items: center; gap: 31px; padding: 0 16px; font: 11px var(--mono); transition: transform .25s var(--ease), color .25s ease, background .25s ease, border-color .25s ease; }
.button:hover { transform: translateY(-3px); }
.button:active { transform: translateY(-1px) scale(.98); }
.button-primary { color: #071016; background: var(--mint); box-shadow: 0 0 26px rgba(185,255,216,.17); }
.button-primary:hover { background: #dcffe9; }
.button-ghost { color: var(--ink); border: 1px solid var(--line-strong); background: rgba(13,18,32,.38); }
.button-ghost:hover { border-color: var(--mint); background: rgba(185,255,216,.08); }
.button-text { min-height: 38px; gap: 12px; color: var(--muted); }
.button-text:hover { color: var(--mint); }
.hero-proof { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 38px; color: var(--faint); font-size: 9px; }
.hero-proof i { color: var(--mint); font-style: normal; }
.hero-visual { position: relative; width: min(100%, 545px); min-width: 0; margin: 0 0 0 auto; }
.logo-stage { position: relative; isolation: isolate; aspect-ratio: 1; overflow: hidden; }
.hero-visual img { display: block; width: 100%; height: auto; mix-blend-mode: screen; }
.logo-pending img { opacity: 0; }
.logo-scan { position: absolute; inset: 0; opacity: 0; pointer-events: none; background: linear-gradient(180deg, transparent 46%, #ffffff12 49.5%, #ffffff65 50%, transparent 50.5%); }
.is-introducing img { animation: logo-awaken 1.65s var(--ease) both; }
.is-introducing .logo-scan { animation: logo-scan 1.35s .18s var(--ease) both; }
.motion-replay { position: absolute; right: 0; bottom: 0; display: inline-flex; min-height: 42px; align-items: center; gap: 8px; padding: 8px 12px; color: var(--muted); background: rgba(7,10,20,.86); border: 1px solid transparent; cursor: pointer; font: 10px var(--mono); transition: color .2s ease, border-color .2s ease; }
.motion-replay[hidden] { display: none; }
.motion-replay:hover { color: var(--ink); border-color: var(--line-strong); }
.motion-replay span { font-size: 17px; transition: transform .5s var(--ease); }
.motion-replay:hover span { transform: rotate(-45deg); }

.install-section { padding-block: 78px 100px; border-top: 1px solid var(--line); }
.section-kicker { margin-bottom: 18px; color: var(--mint); font-size: 10px; }
.section-intro { display: flex; gap: 42px; align-items: end; justify-content: space-between; margin-bottom: 32px; }
.section-intro h2 { max-width: 650px; margin-bottom: 0; font-size: clamp(38px, 5.2vw, 67px); line-height: .98; letter-spacing: -.09em; font-weight: 600; text-wrap: balance; }
.section-intro > p { max-width: 355px; margin-bottom: 3px; color: var(--muted); font-size: 13px; line-height: 1.8; }
.install-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.install-card { position: relative; min-height: 410px; display: flex; flex-direction: column; padding: 25px 24px 0; overflow: hidden; background: rgba(13,18,32,.74); border: 1px solid var(--line); backdrop-filter: blur(14px); }
.install-card::before { position: absolute; top: 0; right: 0; width: 100px; height: 1px; content: ''; background: var(--gold); box-shadow: 0 0 23px var(--gold); }
.install-card-featured { background: linear-gradient(135deg, rgba(185,255,216,.1), rgba(13,18,32,.84) 45%); border-color: rgba(185,255,216,.35); }
.install-card-featured::before { width: 42%; background: var(--mint); box-shadow: 0 0 26px var(--mint); }
.card-meta { display: flex; justify-content: space-between; gap: 18px; margin-bottom: 42px; color: var(--faint); font-size: 9px; }
.install-card-featured .card-meta span:first-child { color: var(--mint); }
.install-card h3 { max-width: 430px; margin-bottom: 13px; font-size: clamp(26px, 3vw, 40px); line-height: 1.05; letter-spacing: -.07em; }
.install-card > p { max-width: 490px; min-height: 49px; margin-bottom: 24px; color: var(--muted); font-size: 12px; line-height: 1.8; }
.terminal { background: rgba(3,5,11,.76); border: 1px solid rgba(177,194,232,.18); }
.terminal-head { display: flex; min-height: 39px; align-items: center; justify-content: space-between; padding: 0 12px; color: var(--faint); border-bottom: 1px solid rgba(177,194,232,.14); font-size: 9px; }
.copy-button { min-height: 38px; padding: 0 0 0 12px; color: var(--muted); background: transparent; border: 0; cursor: pointer; font: 10px var(--mono); }
.copy-button:hover { color: var(--mint); }
pre { margin: 0; overflow-x: auto; padding: 15px 12px 17px; color: #dbe8ff; font: 12px/1.7 var(--mono); scrollbar-width: thin; }
.prompt-box { margin-top: 13px; padding: 12px 14px; color: #c1d3c9; background: rgba(185,255,216,.07); border-left: 2px solid var(--mint); font-size: 11px; line-height: 1.75; }
.prompt-box code, .install-note code { color: var(--mint); font-family: var(--mono); }
.card-action { display: flex; min-height: 54px; align-items: center; justify-content: space-between; margin-top: auto; color: var(--muted); border-top: 1px solid var(--line); font: 10px var(--mono); transition: color .2s ease, padding .2s var(--ease); }
.card-action:hover { padding-inline: 4px; color: var(--mint); }
.install-note { margin-top: 15px !important; color: var(--faint) !important; }
.install-footnote { display: flex; flex-wrap: wrap; gap: 13px; align-items: center; margin-top: 17px; color: var(--faint); font: 10px var(--mono); }
.install-footnote strong { color: var(--ink); font-weight: 500; }
.install-footnote a { margin-left: auto; color: var(--mint); }

.agents-section { position: relative; padding-block: 84px 27px; overflow: hidden; border-top: 1px solid var(--line); background: rgba(4,7,15,.55); }
.agents-intro { align-items: start; }
.agents-intro h2 { font-size: clamp(42px, 6vw, 78px); }
.agents-intro > p { max-width: 420px; margin-top: 9px; }
.agent-marquee { width: 100%; overflow: hidden; margin-top: 28px; padding-block: 18px 35px; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.agent-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.agent-track { display: flex; width: max-content; }
.agent-track.is-ready { animation: agent-drift 42s linear infinite; }
.agent-group { display: flex; gap: 19px; padding-right: 19px; }
.agent-node { --float-y: 0px; position: relative; display: flex; width: 172px; height: 172px; flex: 0 0 172px; flex-direction: column; align-items: center; justify-content: center; gap: 14px; color: var(--muted); border: 1px solid rgba(174,190,230,.23); border-radius: 50%; background: radial-gradient(circle at 50% 34%, rgba(166,185,232,.13), rgba(8,12,24,.62) 66%); box-shadow: inset 0 0 32px rgba(168,190,235,.05); animation: node-sway 4.9s ease-in-out infinite; transition: color .35s ease, border-color .35s ease, box-shadow .35s ease; }
.agent-node:nth-child(2n) { --float-y: 14px; animation-delay: -.9s; }
.agent-node:nth-child(3n) { --float-y: -10px; animation-delay: -2.1s; }
.agent-node:nth-child(4n) { --float-y: 9px; animation-delay: -3.2s; }
.agent-node::before { position: absolute; inset: 10px; content: ''; border: 1px dashed rgba(174,190,230,.11); border-radius: 50%; }
.agent-glyph { position: relative; z-index: 1; display: block; width: 68px; height: 68px; padding: 12px; color: var(--mint); border: 1px solid rgba(185,255,216,.44); border-radius: 50%; background: rgba(185,255,216,.07); box-shadow: 0 0 26px rgba(185,255,216,.11); fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.agent-node strong { position: relative; z-index: 1; font-size: 12px; font-weight: 500; }
.agent-node.is-featured { color: var(--ink); border-color: rgba(185,255,216,.57); box-shadow: 0 0 32px rgba(185,255,216,.12), inset 0 0 40px rgba(185,255,216,.08); }
.agent-node.is-featured .agent-glyph { color: var(--bg); background: var(--mint); box-shadow: 0 0 35px rgba(185,255,216,.55); }
.agents-bottom { display: flex; justify-content: space-between; min-height: 50px; align-items: center; color: var(--faint); border-top: 1px solid var(--line); font: 9px var(--mono); letter-spacing: .1em; }
.agents-bottom a { color: var(--mint); letter-spacing: 0; }
.site-footer { display: flex; min-height: 115px; align-items: center; gap: 24px; }
.site-footer p { margin: 0 0 0 auto; color: var(--faint); font: 10px var(--mono); }
.site-footer > div { display: flex; gap: 20px; }
.toast { position: fixed; right: 22px; bottom: 22px; z-index: 6; padding: 11px 15px; color: var(--bg); background: var(--mint); font: 11px var(--mono); opacity: 0; transform: translateY(8px); pointer-events: none; transition: opacity .2s ease, transform .2s ease; }
.toast.is-visible { opacity: 1; transform: translateY(0); }

.doc-page .site-header { background: rgba(7,10,20,.54); backdrop-filter: blur(14px); }
.doc-layout { display: grid; grid-template-columns: 230px minmax(0, 780px); gap: 64px; padding-block: 72px 110px; }
.doc-sidebar { position: sticky; top: 30px; align-self: start; }
.doc-sidebar h1 { margin: 10px 0 27px; font-size: 40px; line-height: .95; letter-spacing: -.08em; }
.doc-kicker, .doc-label { color: var(--mint); font: 10px var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.doc-sidebar nav { display: grid; gap: 10px; padding-block: 16px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.doc-sidebar nav a { color: var(--muted); font: 11px var(--mono); transition: color .2s ease, padding .2s var(--ease); }
.doc-sidebar nav a:hover { padding-left: 5px; color: var(--mint); }
.doc-sidebar .source-link { display: inline-flex; margin-top: 20px; color: var(--faint); font: 10px var(--mono); }
.doc-sidebar .source-link:hover { color: var(--ink); }
.doc-content { min-width: 0; }
.doc-content > h2 { margin-bottom: 18px; font-size: clamp(44px, 6vw, 72px); line-height: .98; letter-spacing: -.09em; }
.doc-lede { max-width: 680px; margin-bottom: 0; color: #a8b1c6; font-size: 16px; line-height: 1.85; }
.doc-section { margin-top: 74px; padding-top: 70px; border-top: 1px solid var(--line); scroll-margin-top: 30px; }
.doc-section:first-of-type { margin-top: 0; padding-top: 0; border-top: 0; }
.doc-section h3 { margin: 0 0 20px; color: var(--ink); font-size: clamp(26px, 3vw, 38px); line-height: 1.05; letter-spacing: -.07em; }
.doc-section h4 { margin: 35px 0 12px; color: var(--mint); font: 13px var(--mono); letter-spacing: .03em; }
.doc-section p, .doc-section li { color: var(--muted); font-size: 14px; line-height: 1.9; }
.doc-section p { margin-bottom: 16px; }
.doc-section ul, .doc-section ol { margin: 12px 0 22px; padding-left: 23px; }
.doc-section li { margin: 7px 0; padding-left: 4px; }
.doc-section strong { color: var(--ink); font-weight: 600; }
.doc-section code { padding: 2px 5px; color: var(--mint); background: rgba(185,255,216,.08); font: 12px var(--mono); }
.doc-section a { color: var(--mint); text-decoration: underline; text-decoration-color: rgba(185,255,216,.35); text-underline-offset: 3px; }
.doc-section a:hover { text-decoration-color: var(--mint); }
.doc-section blockquote { margin: 22px 0; padding: 15px 18px; color: #c9d8cf; background: rgba(255,214,125,.06); border-left: 2px solid var(--gold); font-size: 13px; line-height: 1.85; }
.doc-sidebar > p:not(.doc-kicker) { color: var(--muted); font-size: 13px; line-height: 1.8; }
.doc-callout { margin: 24px 0; padding: 17px 18px; color: #c9d8cf; background: rgba(185,255,216,.06); border-left: 2px solid var(--mint); font-size: 13px; line-height: 1.8; }
.doc-callout strong { color: var(--mint); }
.doc-code { margin: 22px 0; overflow: hidden; background: rgba(3,5,11,.78); border: 1px solid rgba(177,194,232,.18); }
.doc-code > div { display: flex; min-height: 39px; align-items: center; justify-content: space-between; padding-inline: 13px; color: var(--faint); border-bottom: 1px solid rgba(177,194,232,.14); font: 9px var(--mono); letter-spacing: .1em; }
.doc-code pre { padding: 17px 15px 19px; color: #dbe8ff; font-size: 12px; line-height: 1.8; }
.doc-code .copy-button { min-height: 32px; }
.doc-role-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; margin: 22px 0; }
.doc-role { padding: 20px; background: rgba(13,18,32,.65); border: 1px solid var(--line); }
.doc-role h4 { margin: 0 0 10px; color: var(--ink); font-size: 15px; letter-spacing: 0; }
.doc-role p { margin: 0; font-size: 13px; }
.doc-agent-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0; }
.doc-agent-list span { padding: 8px 10px; color: var(--ink); background: rgba(174,190,230,.08); border: 1px solid var(--line); font: 11px var(--mono); }
.doc-prompts { display: grid; gap: 10px; margin: 22px 0; }
.doc-prompts p { margin: 0; padding: 13px 15px; color: #c9d8cf; background: rgba(185,255,216,.05); border: 1px solid rgba(185,255,216,.14); font-size: 13px; }
.community-doc { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 24px; align-items: start; }
.community-doc-copy { min-width: 0; }
.community-doc img { width: 100%; max-width: 220px; border: 1px solid var(--line); }
.doc-toc-note { margin-top: 24px; color: var(--faint); font: 10px/1.7 var(--mono); }

@keyframes rise { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes logo-awaken { 0% { opacity: 0; transform: scale(.88); clip-path: circle(0% at 50% 43%); filter: blur(8px); } 28% { opacity: 1; filter: blur(0); } 70% { clip-path: circle(76% at 50% 43%); } 100% { opacity: 1; transform: scale(1); clip-path: circle(80% at 50% 43%); filter: blur(0); } }
@keyframes logo-scan { 0% { opacity: 0; transform: translateY(-40%); } 30% { opacity: .5; } 100% { opacity: 0; transform: translateY(45%); } }
@keyframes agent-drift { to { transform: translateX(-50%); } }
@keyframes node-sway { 0%, 100% { transform: translateY(var(--float-y)) rotate(-2deg); } 50% { transform: translateY(calc(var(--float-y) - 11px)) rotate(2deg); } }

@media (max-width: 900px) {
  :root { --shell: min(100% - 36px, 720px); }
  .hero { grid-template-columns: minmax(0, 1fr); min-height: auto; padding-block: 72px 70px; }
  .hero-visual { width: min(78%, 390px); margin-inline: auto; }
  .section-intro { display: block; }
  .section-intro > p { margin-top: 18px; }
  .install-card { min-height: 0; }
  .doc-layout { grid-template-columns: minmax(0, 1fr); gap: 35px; }
  .doc-sidebar { position: static; }
  .doc-sidebar nav { display: flex; flex-wrap: wrap; gap: 12px 20px; }
  .doc-sidebar .source-link { margin-top: 15px; }
}

@media (max-width: 620px) {
  :root { --shell: calc(100% - 32px); }
  .site-header { min-height: 68px; }
  .desktop-nav, .header-link { display: none; }
  .mobile-nav { display: block; }
  .hero { padding-top: 52px; }
  h1 { font-size: clamp(46px, 14vw, 72px); }
  .hero-lede { font-size: 14px; }
  .hero-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .button { justify-content: space-between; gap: 8px; padding-inline: 13px; }
  .button-text { grid-column: 1 / -1; justify-content: flex-start; padding-inline: 0; }
  .hero-proof { gap: 8px; font-size: 8px; }
  .hero-visual { width: min(100%, 340px); }
  .install-section, .agents-section { padding-block: 64px; }
  .install-grid { grid-template-columns: minmax(0, 1fr); }
  .install-card { padding-inline: 18px; }
  .card-meta { margin-bottom: 30px; }
  .install-footnote { align-items: flex-start; flex-direction: column; }
  .install-footnote a { margin-left: 0; }
  .doc-layout { padding-block: 48px 75px; }
  .doc-sidebar h1 { font-size: 35px; }
  .doc-section { margin-top: 52px; padding-top: 49px; }
  .doc-role-grid, .community-doc { grid-template-columns: minmax(0, 1fr); }
  .community-doc img { max-width: 260px; }
  .agents-intro h2 { font-size: 49px; }
  .agent-node { width: 142px; height: 142px; flex-basis: 142px; }
  .agent-glyph { width: 54px; height: 54px; }
  .agents-bottom { align-items: flex-start; flex-direction: column; gap: 12px; padding-block: 19px; }
  .site-footer { align-items: flex-start; flex-wrap: wrap; padding-block: 28px; }
  .site-footer p { width: 100%; order: 3; margin: 0; }
  .site-footer > div { margin-left: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  #starfield { display: none; }
  .type-char { opacity: 1; }
  .logo-pending img { opacity: 1; }
  .type-char.is-cursor::after, .motion-replay { display: none; }
}
