:root {
  --paper: #f1f0e9;
  --paper-soft: #e5e4db;
  --ink: #171913;
  --muted: #6d7066;
  --line: #c9c9bd;
  --acid: #b9f227;
  --acid-dark: #91c100;
  --white: #fbfbf7;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: Iowan Old Style, Baskerville, "Times New Roman", serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    linear-gradient(rgba(23, 25, 19, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 25, 19, .055) 1px, transparent 1px);
  background-size: 48px 48px;
  font-family: var(--sans);
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; top: 10px; left: 10px; z-index: 100; padding: 10px 14px;
  background: var(--acid); border: 2px solid var(--ink); transform: translateY(-150%);
}
.skip-link:focus { transform: none; }

.site-header {
  position: sticky; top: 0; z-index: 20; height: 76px; display: flex;
  align-items: center; justify-content: space-between; padding: 0 clamp(20px, 4vw, 64px);
  background: rgba(241, 240, 233, .94); border-bottom: 1px solid var(--ink);
  backdrop-filter: blur(12px);
}
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 750; letter-spacing: -.03em; }
.brand-mark, .mini-mark {
  display: grid; place-items: center; color: var(--acid); background: var(--ink);
  font-family: var(--mono); font-weight: 800; letter-spacing: -.08em;
}
.brand-mark { width: 42px; height: 42px; border-radius: 4px; font-size: 15px; }
.brand-name { font-size: 21px; }
.site-nav { display: flex; align-items: center; gap: clamp(18px, 2.5vw, 38px); font-size: 14px; font-weight: 620; }
.site-nav > a:not(.nav-cta) { border-bottom: 1px solid transparent; }
.site-nav > a:not(.nav-cta):hover { border-color: var(--ink); }
.nav-cta {
  padding: 12px 17px; color: var(--paper); background: var(--ink);
  border: 1px solid var(--ink); box-shadow: 4px 4px 0 var(--acid);
}
.nav-cta:hover { color: var(--ink); background: var(--acid); box-shadow: 4px 4px 0 var(--ink); }
.menu-toggle { display: none; padding: 7px; border: 0; background: transparent; cursor: pointer; }
.menu-toggle > span:not(.sr-only) { display: block; width: 25px; height: 2px; margin: 5px 0; background: var(--ink); }

.hero {
  min-height: calc(100vh - 76px); display: grid; grid-template-columns: minmax(0, .95fr) minmax(480px, 1.05fr);
  align-items: center; gap: clamp(42px, 7vw, 110px); max-width: 1500px; margin: 0 auto;
  padding: clamp(72px, 10vh, 132px) clamp(24px, 6vw, 96px);
}
.eyebrow, .section-index, .micro {
  font: 700 11px/1.3 var(--mono); letter-spacing: .12em; text-transform: uppercase;
}
.eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 24px; }
.status-dot {
  display: inline-block; flex: 0 0 auto; width: 8px; height: 8px;
  border-radius: 50%; background: var(--acid); box-shadow: 0 0 0 3px rgba(185, 242, 39, .2);
}
.hero h1, .section-intro h2, .security h2, .closing h2, .not-found h1 {
  margin: 0; font-size: clamp(54px, 6.8vw, 104px); line-height: .92; letter-spacing: -.07em;
}
.hero h1 em, .closing h2 em, .not-found h1 em { font-family: var(--serif); font-weight: 400; }
.hero h1 em { position: relative; white-space: nowrap; }
.hero h1 em::after {
  content: ""; position: absolute; z-index: -1; left: 1%; right: -2%; bottom: .04em; height: .11em;
  background: var(--acid); transform: rotate(-1deg);
}
.hero-lede { max-width: 610px; margin: 34px 0; color: var(--muted); font-size: clamp(17px, 1.4vw, 21px); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 18px;
  min-height: 52px; padding: 0 22px; border: 1px solid var(--ink); font-size: 14px; font-weight: 750;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.button:hover { transform: translate(-2px, -2px); }
.button-primary { background: var(--acid); box-shadow: 5px 5px 0 var(--ink); }
.button-primary:hover { box-shadow: 7px 7px 0 var(--ink); }
.button-secondary { background: rgba(241, 240, 233, .8); }
.button-secondary:hover { color: var(--paper); background: var(--ink); }
.button.large { min-height: 62px; padding: 0 30px; font-size: 16px; }
.hero-facts { display: flex; gap: clamp(22px, 4vw, 52px); margin: 64px 0 0; }
.hero-facts div { padding-left: 13px; border-left: 1px solid var(--line); }
.hero-facts dt { color: var(--muted); font: 700 10px var(--mono); }
.hero-facts dd { margin: 6px 0 0; font-size: 12px; font-weight: 700; text-transform: uppercase; }

.console-window {
  position: relative; border: 2px solid var(--ink); background: var(--paper-soft);
  box-shadow: 18px 18px 0 var(--ink); transform: rotate(1deg);
}
.console-window::before {
  content: ""; position: absolute; z-index: -1; inset: -20px 25px 20px -20px;
  border: 1px solid var(--line); background: var(--acid);
}
.window-bar {
  height: 43px; display: flex; align-items: center; justify-content: space-between; padding: 0 14px;
  color: var(--paper); background: var(--ink); font: 700 9px var(--mono); letter-spacing: .12em;
}
.window-state { display: flex; align-items: center; gap: 8px; }
.console-layout { min-height: 480px; display: grid; grid-template-columns: 104px 1fr; }
.console-sidebar { display: flex; flex-direction: column; padding: 15px 10px; color: #b8baaf; background: #252721; }
.mini-mark { width: 38px; height: 38px; margin: 0 auto 28px; font-size: 12px; }
.mini-nav { display: grid; place-items: center; gap: 3px; margin-bottom: 7px; padding: 10px 4px; font: 600 8px var(--mono); }
.mini-nav span { font-size: 16px; }
.mini-nav.active { color: var(--acid); border: 1px solid #4e5147; background: #181a15; }
.mini-user { display: grid; place-items: center; width: 34px; height: 34px; margin: auto auto 0; color: var(--ink); background: var(--acid); border-radius: 50%; font: 700 10px var(--mono); }
.console-main { padding: 29px 26px; overflow: hidden; }
.console-heading { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 26px; }
.console-heading h2 { margin: 6px 0 0; font-size: clamp(22px, 2vw, 30px); letter-spacing: -.04em; }
.micro { color: var(--muted); font-size: 8px; }
.new-session { padding: 9px 11px; background: var(--acid); border: 1px solid var(--ink); font: 700 9px var(--mono); }
.session-card { padding: 15px; margin-bottom: 14px; background: var(--white); border: 1px solid var(--ink); box-shadow: 4px 4px 0 var(--line); }
.session-card.compact { margin-bottom: 0; }
.session-top { display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 12px; }
.session-top strong, .session-top small { display: block; }
.session-top strong { font-size: 13px; }
.session-top small { margin-top: 3px; color: var(--muted); font: 9px var(--mono); }
.agent-icon { display: grid; place-items: center; width: 40px; height: 40px; color: var(--ink); background: var(--acid); font: 800 13px var(--mono); }
.agent-icon.dark { color: var(--acid); background: var(--ink); }
.live-pill, .idle-pill { padding: 5px 7px; font: 700 7px var(--mono); letter-spacing: .08em; }
.live-pill { background: var(--acid); }
.idle-pill { color: var(--muted); background: var(--paper-soft); }
.terminal { margin-top: 14px; padding: 14px; color: #dfe3d6; background: var(--ink); font: 9px/1.65 var(--mono); }
.terminal p { margin: 0 0 4px; }
.terminal p span { color: var(--acid); }
.terminal .terminal-muted { color: #7d8174; }
.cursor { display: inline-block; width: 6px; height: 11px; margin-left: 5px; vertical-align: -2px; background: var(--acid); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.signal-strip {
  display: flex; gap: 34px; align-items: center; justify-content: center; overflow: hidden;
  padding: 16px 20px; color: var(--acid); background: var(--ink); border-block: 1px solid var(--ink);
  font: 700 11px var(--mono); letter-spacing: .12em; white-space: nowrap;
}
.signal-strip i { color: var(--paper); font-style: normal; }
.section { padding: clamp(90px, 12vw, 170px) clamp(24px, 6vw, 96px); }
.section-intro { display: grid; grid-template-columns: .32fr 1fr .55fr; gap: 45px; align-items: end; max-width: 1400px; margin: 0 auto 70px; }
.section-index { align-self: start; margin: 8px 0 0; color: var(--muted); }
.section-intro h2, .security h2, .closing h2 { font-size: clamp(42px, 5vw, 76px); }
.section-intro > p:last-child { margin: 0; color: var(--muted); font-size: 17px; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); max-width: 1400px; margin: 0 auto; border-top: 1px solid var(--ink); border-left: 1px solid var(--ink); }
.feature {
  position: relative; min-height: 335px; padding: 32px; background: rgba(241, 240, 233, .9);
  border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink);
}
.feature-wide { grid-column: span 2; }
.feature-number { position: absolute; top: 20px; right: 22px; color: var(--muted); font: 700 10px var(--mono); }
.feature-glyph { width: 64px; height: 64px; display: grid; place-items: center; margin-bottom: 70px; background: var(--acid); border: 1px solid var(--ink); font-size: 31px; }
.feature h3 { margin: 0 0 12px; font-size: 25px; letter-spacing: -.04em; }
.feature p { max-width: 470px; margin: 0; color: var(--muted); font-size: 14px; }
.feature-dark { color: var(--paper); background: var(--ink); }
.feature-dark .feature-glyph { color: var(--ink); }
.feature-dark p, .feature-dark .feature-number { color: #aeb1a7; }
.host-visual { display: flex; align-items: center; max-width: 600px; margin: 25px 0 68px; }
.host-node { position: relative; flex: 0 0 auto; width: 210px; padding: 16px 15px 16px 34px; background: var(--white); border: 1px solid var(--ink); box-shadow: 4px 4px 0 var(--line); }
.host-node .status-dot { position: absolute; top: 20px; left: 14px; width: 6px; height: 6px; }
.host-node strong, .host-node small { display: block; }
.host-node strong { font-size: 13px; }
.host-node small { margin-top: 5px; color: var(--muted); font: 8px var(--mono); }
.pulse-line { position: relative; flex: 1; height: 1px; background: var(--ink); }
.pulse-line::after { content: "→"; position: absolute; top: -13px; left: 45%; padding: 2px 5px; background: var(--acid); font: 14px var(--mono); }

.workflow { background: var(--paper-soft); border-block: 1px solid var(--ink); }
.workflow .section-intro { grid-template-columns: .32fr 1.55fr; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); max-width: 1400px; padding: 0; margin: 0 auto; list-style: none; border: 1px solid var(--ink); }
.steps li { position: relative; min-height: 360px; padding: 33px; background: var(--paper); border-right: 1px solid var(--ink); }
.steps li:last-child { border-right: 0; }
.step-number { color: var(--muted); font: 700 11px var(--mono); }
.step-command { margin: 67px 0 55px; padding: 12px 14px; color: var(--acid); background: var(--ink); border-left: 4px solid var(--acid); font: 11px var(--mono); }
.steps h3 { margin: 0 0 11px; font-size: 25px; letter-spacing: -.04em; }
.steps p { margin: 0; color: var(--muted); font-size: 14px; }

.security {
  display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(60px, 10vw, 150px);
  align-items: center; padding: clamp(90px, 12vw, 170px) clamp(24px, 7vw, 110px);
  color: var(--paper); background: var(--ink);
}
.section-index.light { color: var(--acid); }
.security h2 { max-width: 680px; margin: 24px 0 30px; }
.security-copy > p:not(.section-index) { max-width: 600px; color: #afb2a7; font-size: 18px; }
.security-list { padding: 0; margin: 38px 0; list-style: none; }
.security-list li { padding: 13px 0; border-bottom: 1px solid #383b33; font-size: 14px; }
.security-list span { margin-right: 12px; color: var(--acid); }
.text-link { display: inline-flex; gap: 24px; padding-bottom: 4px; color: var(--acid); border-bottom: 1px solid var(--acid); font-size: 14px; font-weight: 700; }
.network-map {
  position: relative; min-height: 570px; border: 1px solid #4a4d43;
  background-image: radial-gradient(#52554a 1px, transparent 1px); background-size: 22px 22px;
}
.map-label { position: absolute; padding: 5px 8px; color: var(--ink); background: var(--acid); font: 700 8px var(--mono); letter-spacing: .1em; }
.map-label.top { top: 0; left: 0; }
.map-node {
  position: absolute; z-index: 2; display: flex; flex-direction: column; padding: 17px;
  color: var(--ink); background: var(--paper); border: 1px solid var(--paper); box-shadow: 7px 7px 0 var(--acid);
}
.map-node small { margin-bottom: 5px; color: var(--muted); font: 7px var(--mono); letter-spacing: .08em; }
.map-node strong { font-size: 17px; }
.map-node.browser { top: 72px; left: 10%; width: 155px; }
.map-node.center { top: 190px; left: 50%; width: 175px; transform: translateX(-50%); }
.map-node.center .mini-mark { width: 34px; height: 34px; margin: 0 0 12px; font-size: 10px; }
.map-node.host { bottom: 55px; right: 8%; width: 215px; }
.host-status { display: flex; align-items: center; gap: 8px; margin-top: 15px; padding-top: 10px; border-top: 1px solid var(--line); font: 8px var(--mono); }
.host-status .status-dot { width: 6px; height: 6px; }
.connector { position: absolute; z-index: 1; border-color: var(--acid); border-style: dashed; }
.connector span { position: absolute; padding: 3px 5px; color: var(--acid); background: var(--ink); font: 7px var(--mono); letter-spacing: .08em; }
.connector.horizontal { top: 124px; left: calc(10% + 155px); width: calc(40% - 70px); border-width: 1px 0 0; }
.connector.horizontal span { left: 30%; top: -12px; }
.connector.vertical { top: 309px; left: 50%; height: 110px; border-width: 0 0 0 1px; }
.connector.vertical span { top: 44px; left: -22px; transform: rotate(90deg); }

.closing { padding: clamp(100px, 14vw, 190px) 24px; text-align: center; background: var(--acid); border-bottom: 1px solid var(--ink); }
.closing .eyebrow { justify-content: center; }
.closing h2 { font-size: clamp(55px, 7.5vw, 110px); }
.closing p:not(.eyebrow) { max-width: 600px; margin: 30px auto; font-size: 18px; }
.closing .button { background: var(--paper); }
.site-footer { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 40px; padding: 42px clamp(24px, 5vw, 74px); background: var(--paper); }
.footer-brand { display: flex; align-items: center; gap: 13px; }
.footer-brand strong, .footer-brand small { display: block; }
.footer-brand small { margin-top: 2px; color: var(--muted); font-size: 11px; }
.site-footer nav { display: flex; gap: 30px; font-size: 12px; font-weight: 700; }
.site-footer > p { justify-self: end; color: var(--muted); font: 10px var(--mono); }

.not-found { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.not-found main { width: min(800px, 100%); padding: clamp(30px, 6vw, 70px); background: rgba(241,240,233,.94); border: 2px solid var(--ink); box-shadow: 14px 14px 0 var(--acid); }
.not-found .section-index { margin-top: 80px; }
.not-found h1 { margin: 20px 0 28px; font-size: clamp(50px, 8vw, 90px); }
.not-found main > p:not(.section-index) { margin-bottom: 35px; color: var(--muted); }

@media (max-width: 1050px) {
  .hero { grid-template-columns: 1fr; }
  .hero-copy { max-width: 800px; }
  .console-window { width: min(730px, 94%); margin: 25px auto; }
  .section-intro { grid-template-columns: 1fr; gap: 18px; }
  .section-intro > p:last-child { max-width: 650px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-wide { grid-column: span 2; }
  .security { grid-template-columns: 1fr; }
  .network-map { width: min(700px, 100%); }
}

@media (max-width: 760px) {
  .site-header { height: 66px; padding-inline: 18px; }
  .brand-mark { width: 38px; height: 38px; }
  .menu-toggle { display: block; }
  .site-nav {
    position: absolute; top: 65px; left: 0; right: 0; display: none; align-items: stretch;
    gap: 0; padding: 10px 18px 20px; background: var(--paper); border-bottom: 1px solid var(--ink);
  }
  .site-nav.open { display: flex; flex-direction: column; }
  .site-nav a { padding: 14px 4px; border-bottom: 1px solid var(--line) !important; }
  .site-nav .nav-cta { margin-top: 10px; padding-inline: 15px; text-align: center; }
  .hero { min-height: auto; padding: 70px 20px 85px; }
  .hero h1 { font-size: clamp(51px, 15vw, 72px); }
  .hero h1 em { white-space: normal; }
  .hero-facts { gap: 13px; justify-content: space-between; margin-top: 48px; }
  .hero-facts div { padding-left: 9px; }
  .hero-facts dd { font-size: 9px; }
  .console-window { width: calc(100% - 12px); box-shadow: 10px 10px 0 var(--ink); }
  .console-window::before { inset: -10px 15px 15px -10px; }
  .console-layout { min-height: 410px; grid-template-columns: 54px 1fr; }
  .console-sidebar { padding-inline: 6px; }
  .mini-mark { width: 32px; height: 32px; }
  .mini-nav { font-size: 0; }
  .mini-nav span { font-size: 15px; }
  .mini-user { width: 30px; height: 30px; }
  .console-main { padding: 20px 13px; }
  .new-session { display: none; }
  .session-top { grid-template-columns: 36px 1fr; }
  .agent-icon { width: 36px; height: 36px; }
  .live-pill, .idle-pill { display: none; }
  .terminal { font-size: 8px; overflow: hidden; }
  .signal-strip { justify-content: flex-start; }
  .section { padding: 90px 20px; }
  .section-intro { margin-bottom: 45px; }
  .section-intro h2, .security h2 { font-size: 45px; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-wide { grid-column: span 1; }
  .feature { min-height: 300px; padding: 26px; }
  .host-visual { align-items: stretch; flex-direction: column; margin-bottom: 45px; }
  .host-node { width: 100%; }
  .pulse-line { flex: none; width: 1px; height: 30px; margin-left: 50%; }
  .pulse-line::after { top: 5px; left: -12px; transform: rotate(90deg); }
  .steps { grid-template-columns: 1fr; }
  .steps li { min-height: auto; border-right: 0; border-bottom: 1px solid var(--ink); }
  .steps li:last-child { border-bottom: 0; }
  .step-command { margin: 40px 0 35px; }
  .security { padding: 90px 20px; }
  .network-map { min-height: 520px; }
  .map-node.browser { left: 6%; }
  .map-node.host { right: 5%; }
  .closing { padding: 100px 20px; }
  .closing h2 { font-size: 57px; }
  .site-footer { grid-template-columns: 1fr; gap: 30px; }
  .site-footer nav { flex-wrap: wrap; gap: 17px 25px; }
  .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; transition-duration: .01ms !important; }
}
