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

:root {
  --bg: #fafafa;
  --surface: #f0f0f0;
  --surface-2: #e6e6e6;
  --ink: #000;
  --muted: #666;
  --quiet: #999;
  --line: #d6d6d6;
  --brand: #ff8800;
  --white: #fff;
  --sans: "IBM Plex Sans", Arial, sans-serif;
  --mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--bg); font: 400 15px/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.skip-link { position: fixed; z-index: 100; top: 8px; left: 8px; padding: 10px 14px; color: #000; background: var(--brand); transform: translateY(-160%); }
.skip-link:focus { transform: none; }

.site-header { position: sticky; z-index: 20; top: 0; height: 64px; display: flex; align-items: center; justify-content: space-between; padding: 0 max(24px,calc((100vw - 1200px)/2)); background: rgba(250,250,250,.94); border-bottom: 1px solid var(--line); backdrop-filter: blur(12px); }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 700 15px var(--mono); letter-spacing: -.03em; text-transform: uppercase; }
.brand-mark, .mini-mark { display: block; width: 42px; height: 42px; object-fit: contain; background: transparent; }
.site-nav { display: flex; align-items: center; height: 100%; gap: 28px; font: 500 11px var(--mono); text-transform: uppercase; }
.site-nav > a:not(.nav-cta):hover { text-decoration: underline; text-underline-offset: 3px; }
.nav-cta { display: flex; align-items: center; height: 40px; gap: 18px; padding: 0 16px; color: #fff; background: #000; }
.nav-cta:hover { background: #222; }
.menu-toggle { display: none; border: 0; padding: 7px; background: transparent; cursor: pointer; }
.menu-toggle > span { display: block; width: 23px; height: 1px; margin: 5px 0; background: #000; }

.hero { display: flex; flex-direction: column; align-items: center; max-width: 1200px; margin: auto; padding: clamp(86px,11vw,150px) 24px 110px; text-align: center; }
.hero-copy { display: flex; flex-direction: column; align-items: center; max-width: 920px; }
.eyebrow, .section-index, .micro { font: 600 10px/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.eyebrow { display: flex; align-items: center; gap: 9px; margin: 0 0 25px; }
.status-dot { display: inline-block; width: 7px; height: 7px; flex: 0 0 auto; border-radius: 50%; background: var(--brand); }
.hero h1, .section-intro h2, .principles h2, .download h2 { margin: 0; font-family: var(--mono); font-weight: 700; line-height: .98; letter-spacing: -.055em; text-transform: uppercase; }
.hero h1 { font-size: clamp(48px,6.1vw,78px); }
.hero h1 em, .download h2 em { display: inline-block; margin-top: 5px; padding: 1px 7px 5px; color: #fff; background: #000; font: inherit; font-style: normal; }
.hero-lede { max-width: 650px; margin: 30px auto 0; color: var(--muted); font-size: clamp(17px,1.5vw,20px); }
.hero-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 31px; }
.button { min-height: 50px; display: inline-flex; align-items: center; justify-content: center; gap: 22px; padding: 0 20px; border: 1px solid #000; border-radius: 0; font: 600 11px var(--mono); text-transform: uppercase; transition: background .15s,color .15s; }
.button-primary { color: #fff; background: #000; }
.button-primary:hover { background: #222; }
.button-secondary { background: var(--bg); border-color: var(--line); }
.button-secondary:hover { border-color: #000; }
.hero-facts { width: min(680px,100%); display: grid; grid-template-columns: repeat(3,1fr); margin: 64px 0 0; border-block: 1px solid var(--line); }
.hero-facts div { padding: 18px 12px; border-right: 1px solid var(--line); }
.hero-facts div:last-child { border-right: 0; }
.hero-facts dt { color: var(--brand); font: 600 9px var(--mono); }
.hero-facts dd { margin: 4px 0 0; font: 600 10px var(--mono); text-transform: uppercase; }

.app-window { width: min(1040px,100%); margin-top: 90px; background: var(--surface); border: 1px solid #000; text-align: left; }
.window-bar { height: 42px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 14px; color: #fff; background: #000; font: 500 8px var(--mono); letter-spacing: .1em; }
.traffic { display: flex; gap: 5px; }
.traffic i { width: 7px; height: 7px; border: 1px solid #666; border-radius: 50%; }
.traffic i:first-child { background: var(--brand); border-color: var(--brand); }
.window-live { justify-self: end; display: flex; align-items: center; gap: 7px; }
.app-layout { min-height: 485px; display: grid; grid-template-columns: 170px 1fr; }
.app-sidebar { display: flex; flex-direction: column; padding: 18px 10px; color: #aaa; background: #111; }
.mini-mark { width: 40px; height: 40px; margin-bottom: 26px; }
.side-label { margin: 0 8px 8px; color: #666; font: 600 7px var(--mono); letter-spacing: .1em; }
.side-label.lower { margin-top: 24px; }
.project { display: grid; grid-template-columns: 31px 1fr; align-items: center; gap: 8px; padding: 8px; border: 1px solid transparent; }
.project.active { color: #fff; background: #1e1e1e; border-color: #333; }
.project > i { display: grid; place-items: center; width: 31px; height: 31px; color: #000; background: #888; font: 700 8px var(--mono); font-style: normal; }
.project.active > i { background: var(--brand); }
.project span { font-size: 9px; font-weight: 500; }
.project small { display: block; margin-top: 2px; color: #777; font: 7px var(--mono); }
.side-link { padding: 8px; margin-bottom: 2px; font: 500 8px var(--mono); }
.side-link b { float: right; padding: 1px 4px; color: #000; background: var(--brand); }
.active-link { color: var(--brand); }
.app-main { padding: 30px; overflow: hidden; }
.workspace-head { display: flex; align-items: end; justify-content: space-between; margin-bottom: 24px; }
.workspace-head h2 { margin: 5px 0 0; font: 600 25px var(--sans); letter-spacing: -.04em; }
.micro { color: var(--muted); font-size: 8px; }
.new-agent { padding: 9px 11px; color: #000; background: var(--brand); font: 600 8px var(--mono); }
.session-row { display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 12px; padding: 13px; background: #fff; border: 1px solid #bbb; }
.session-row strong, .session-row small { display: block; }
.session-row strong { font-size: 12px; }
.session-row small { margin-top: 3px; color: var(--muted); font: 8px var(--mono); }
.agent-badge { display: grid; place-items: center; width: 40px; height: 40px; color: #000; background: var(--brand); font: 700 13px var(--mono); }
.agent-badge.dark { color: #fff; background: #000; }
.running, .ready { padding: 5px 7px; font: 600 7px var(--mono); letter-spacing: .08em; }
.running { color: #000; background: var(--brand); }
.ready { color: var(--muted); background: #eee; }
.terminal { margin-bottom: 13px; padding: 15px; color: #ddd; background: #000; font: 9px/1.7 var(--mono); }
.terminal p { margin: 0 0 3px; }
.terminal .prompt, .terminal .ok { color: var(--brand); }
.terminal .dim { color: #777; }
.cursor { display: inline-block; width: 6px; height: 11px; margin-left: 5px; vertical-align: -2px; background: var(--brand); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.activity { display: flex; align-items: center; gap: 10px; margin-top: 17px; padding-top: 14px; border-top: 1px solid #bbb; font: 8px var(--mono); }
.activity span { padding: 3px 5px; color: #000; background: var(--brand); }
.activity i { margin-left: auto; color: var(--muted); font-style: normal; }

.signal-strip { display: flex; justify-content: center; align-items: center; gap: 34px; overflow: hidden; padding: 15px 20px; color: #000; background: var(--brand); font: 600 10px var(--mono); letter-spacing: .08em; white-space: nowrap; }
.signal-strip i { font-style: normal; }
.section { padding: clamp(90px,10vw,130px) 24px; }
.section-intro { display: flex; flex-direction: column; align-items: center; max-width: 900px; margin: 0 auto 68px; text-align: center; }
.section-index { margin: 0 0 20px; color: var(--brand); }
.section-intro h2, .principles h2, .download h2 { font-size: clamp(37px,5vw,60px); }
.section-intro > p:last-child { max-width: 620px; margin: 24px 0 0; color: var(--muted); font-size: 17px; }
.feature-grid { max-width: 1200px; display: grid; grid-template-columns: repeat(3,1fr); margin: auto; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.feature { position: relative; min-height: 310px; padding: 28px; background: var(--bg); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.feature-wide { grid-column: span 2; }
.feature-number { position: absolute; top: 20px; right: 20px; color: var(--quiet); font: 500 9px var(--mono); }
.feature-glyph { width: 48px; height: 48px; display: grid; place-items: center; margin-bottom: 70px; color: #000; background: var(--brand); font: 22px var(--mono); }
.feature h3 { margin: 0 0 11px; font: 600 20px var(--mono); letter-spacing: -.04em; text-transform: uppercase; }
.feature p { max-width: 480px; margin: 0; color: var(--muted); font-size: 14px; }
.feature-dark { color: #fff; background: #000; }
.feature-dark p, .feature-dark .feature-number { color: #999; }
.session-flow { display: flex; align-items: center; max-width: 610px; margin: 22px 0 64px; }
.flow-node { position: relative; flex: 0 0 auto; width: 225px; padding: 15px 14px 15px 33px; background: #fff; border: 1px solid #000; }
.flow-node .status-dot { position: absolute; top: 19px; left: 13px; width: 6px; height: 6px; }
.flow-node strong, .flow-node small { display: block; }
.flow-node strong { font-size: 12px; }
.flow-node small { margin-top: 4px; color: var(--muted); font: 7px var(--mono); }
.pulse-line { position: relative; flex: 1; height: 1px; background: #000; }
.pulse-line::after { content: "→"; position: absolute; top: -12px; left: 45%; padding: 2px 4px; color: #000; background: var(--brand); font: 13px var(--mono); }

.workflow { background: var(--surface); border-block: 1px solid var(--line); }
.steps { max-width: 1200px; display: grid; grid-template-columns: repeat(3,1fr); padding: 0; margin: auto; list-style: none; border: 1px solid var(--line); }
.steps li { min-height: 330px; padding: 28px; background: var(--bg); border-right: 1px solid var(--line); }
.steps li:last-child { border-right: 0; }
.step-number { color: var(--brand); font: 600 10px var(--mono); }
.step-command { margin: 60px 0 50px; padding: 12px 14px; color: #fff; background: #000; font: 10px var(--mono); }
.step-command span { color: var(--brand); }
.steps h3 { margin: 0 0 10px; font: 600 20px var(--mono); letter-spacing: -.04em; text-transform: uppercase; }
.steps p { margin: 0; color: var(--muted); font-size: 14px; }

.principles { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(60px,9vw,130px); align-items: center; padding: clamp(90px,10vw,130px) max(24px,calc((100vw - 1200px)/2)); color: #fff; background: #000; }
.section-index.light { color: var(--brand); }
.principles h2 { margin: 22px 0 28px; }
.principle-copy > p:not(.section-index) { color: #aaa; font-size: 17px; }
.principle-copy ul { padding: 0; margin: 34px 0; list-style: none; }
.principle-copy li { padding: 12px 0; border-bottom: 1px solid #222; font-size: 13px; }
.principle-copy li span { margin-right: 11px; color: var(--brand); }
.text-link { display: inline-flex; gap: 22px; padding-bottom: 3px; color: var(--brand); border-bottom: 1px solid var(--brand); font: 600 11px var(--mono); text-transform: uppercase; }
.local-map { position: relative; min-height: 520px; border: 1px solid #292929; background-image: radial-gradient(#333 1px,transparent 1px); background-size: 20px 20px; }
.map-label { position: absolute; top: 0; left: 0; padding: 5px 8px; color: #000; background: var(--brand); font: 600 8px var(--mono); }
.map-node { position: absolute; z-index: 2; display: flex; flex-direction: column; padding: 16px; color: #000; background: #fafafa; border: 1px solid #fff; }
.map-node small { margin-bottom: 5px; color: var(--muted); font: 7px var(--mono); letter-spacing: .07em; }
.map-node strong { font-size: 16px; }
.map-node.you { top: 65px; left: 9%; width: 170px; }
.map-node.engine { top: 190px; left: 50%; width: 210px; transform: translateX(-50%); }
.map-node.repo { right: 8%; bottom: 48px; width: 220px; }
.map-node em { display: flex; align-items: center; gap: 8px; margin-top: 14px; padding-top: 9px; border-top: 1px solid var(--line); font: 8px var(--mono); font-style: normal; }
.connector { position: absolute; z-index: 1; border-color: var(--brand); border-style: dashed; }
.connector span { position: absolute; padding: 3px 5px; color: var(--brand); background: #000; font: 7px var(--mono); }
.c-one { top: 117px; left: calc(9% + 170px); width: calc(41% - 70px); border-width: 1px 0 0; }
.c-one span { top: -11px; left: 30%; }
.c-two { top: 307px; left: 50%; height: 90px; border-width: 0 0 0 1px; }
.c-two span { top: 35px; left: -24px; transform: rotate(90deg); }

.download { padding: clamp(100px,12vw,160px) 24px; text-align: center; border-bottom: 1px solid var(--line); background-color: var(--bg); background-image: radial-gradient(var(--line) 1px,transparent 1px); background-size: 16px 16px; }
.download .eyebrow { justify-content: center; }
.download h2 { font-size: clamp(45px,6.5vw,82px); }
.download p:not(.eyebrow) { max-width: 610px; margin: 28px auto; color: var(--muted); font-size: 17px; }
.button-dark { min-height: 52px; color: #fff; background: #000; }
.download > small { display: block; margin-top: 20px; color: var(--muted); font: 9px var(--mono); text-transform: uppercase; }
.site-footer { max-width: 1200px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 40px; margin: auto; padding: 38px 24px; }
.footer-brand { display: flex; align-items: center; gap: 11px; }
.footer-brand strong, .footer-brand small { display: block; }
.footer-brand strong { font: 700 12px var(--mono); text-transform: uppercase; }
.footer-brand small { margin-top: 2px; color: var(--muted); font-size: 10px; }
.site-footer nav { display: flex; gap: 26px; font: 500 10px var(--mono); text-transform: uppercase; }
.site-footer > p { justify-self: end; color: var(--muted); font: 9px var(--mono); }

@media (max-width: 1000px) {
  .menu-toggle { display: block; }
  .site-nav { position: absolute; top: 63px; right: 0; left: 0; display: none; height: auto; align-items: stretch; gap: 0; padding: 8px 20px 20px; background: var(--bg); border-bottom: 1px solid var(--line); }
  .site-nav.open { display: flex; flex-direction: column; }
  .site-nav a { padding: 14px 4px; border-bottom: 1px solid var(--line); }
  .site-nav .nav-cta { height: 44px; justify-content: center; margin-top: 8px; padding: 0 15px; }
  .principles { grid-template-columns: 1fr; }
  .local-map { width: min(700px,100%); }
}

@media (max-width: 760px) {
  .hero { padding: 76px 18px 82px; }
  .hero h1 { font-size: clamp(40px,12vw,58px); }
  .hero-facts { margin-top: 48px; }
  .hero-facts dd { font-size: 8px; }
  .app-window { margin-top: 65px; }
  .window-bar { grid-template-columns: 1fr auto; }
  .window-bar > span:nth-child(2) { display: none; }
  .app-layout { min-height: 415px; grid-template-columns: 54px 1fr; }
  .app-sidebar { padding-inline: 6px; }
  .mini-mark { width: 32px; height: 32px; }
  .side-label, .project span { display: none; }
  .project { grid-template-columns: 31px; padding-inline: 4px; }
  .side-link { overflow: hidden; font-size: 0; text-align: center; }
  .side-link::first-letter { font-size: 13px; }
  .side-link b { display: none; }
  .app-main { padding: 19px 12px; }
  .new-agent, .running, .ready, .activity { display: none; }
  .session-row { grid-template-columns: 36px 1fr; }
  .agent-badge { width: 36px; height: 36px; }
  .terminal { overflow: hidden; font-size: 7px; }
  .section { padding: 82px 18px; }
  .section-intro { margin-bottom: 45px; }
  .section-intro h2, .principles h2 { font-size: 36px; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-wide { grid-column: span 1; }
  .feature { min-height: 285px; padding: 24px; }
  .session-flow { flex-direction: column; align-items: stretch; }
  .flow-node { width: 100%; }
  .pulse-line { width: 1px; height: 28px; flex: none; margin-left: 50%; }
  .pulse-line::after { top: 4px; left: -11px; transform: rotate(90deg); }
  .steps { grid-template-columns: 1fr; }
  .steps li { min-height: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .steps li:last-child { border-bottom: 0; }
  .step-command { margin: 38px 0 32px; }
  .principles { padding: 82px 18px; }
  .local-map { min-height: 500px; }
  .map-node.you { left: 5%; }
  .map-node.repo { right: 4%; }
  .download { padding: 90px 18px; }
  .download h2 { font-size: 42px; }
  .site-footer { grid-template-columns: 1fr; gap: 26px; }
  .site-footer nav { flex-wrap: wrap; }
  .site-footer > p { justify-self: start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
