:root {
  --ink: #111513;
  --paper: #f4f5f0;
  --white: #ffffff;
  --muted: #66706b;
  --line: #d7dcd6;
  --green: #38d486;
  --deep-green: #087a49;
  --coral: #f16f58;
  --cyan: #5fc9d5;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
.aibtest-loading .hero-slogan { visibility: hidden; }

.site-header {
  position: absolute;
  z-index: 10;
  inset: 0 0 auto;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5vw;
  color: var(--white);
  border-bottom: 1px solid rgba(255,255,255,.18);
}
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 750; font-size: 18px; }
.brand-mark { display: grid; grid-template-columns: 1fr 1fr; width: 35px; height: 24px; border: 1px solid currentColor; }
.brand-mark i { display: grid; place-items: center; font-style: normal; font-size: 10px; }
.brand-mark i + i { color: var(--ink); background: var(--green); }
.site-header nav { display: flex; gap: 32px; font-size: 13px; color: rgba(255,255,255,.72); }
.site-header nav a:hover { color: var(--white); }
.header-action { display: inline-flex; gap: 9px; align-items: center; font-size: 13px; font-weight: 700; padding-bottom: 5px; border-bottom: 1px solid var(--green); }
.header-action > span:last-child { color: var(--green); }
.header-tools { display: flex; align-items: center; gap: 22px; }
.language-switch { display: grid; grid-template-columns: 1fr 1fr; height: 28px; border: 1px solid rgba(255,255,255,.35); border-radius: 3px; overflow: hidden; }
.language-switch button { min-width: 42px; padding: 0 7px; color: rgba(255,255,255,.66); background: transparent; border: 0; cursor: pointer; font-size: 10px; }
.language-switch button + button { border-left: 1px solid rgba(255,255,255,.35); }
.language-switch button.active { color: var(--ink); background: var(--green); }

.hero {
  position: relative;
  min-height: calc(100svh - 54px);
  max-height: 860px;
  height: 780px;
  overflow: hidden;
  color: var(--white);
  background: #1a1d1b url('/assets/hero-control-plane.png') center center / cover no-repeat;
}
.hero-shade { position: absolute; inset: 0; background: rgba(8,10,9,.28); }
.hero-content { position: relative; z-index: 2; width: min(720px, 52vw); padding: 155px 0 145px 6.5vw; }
.eyebrow, .kicker { margin: 0; color: var(--green); text-transform: uppercase; font-size: 11px; font-weight: 800; letter-spacing: 0; }
.eyebrow { display: flex; align-items: center; gap: 10px; }
.eyebrow > span:first-child { flex: 0 0 24px; width: 24px; height: 2px; background: var(--green); }
.hero h1 { margin: 24px 0 22px; max-width: 680px; font-size: 62px; line-height: 1.02; letter-spacing: 0; font-weight: 520; }
.hero h1 strong { display: block; margin-bottom: 8px; font-weight: 800; color: var(--green); }
.hero-copy { max-width: 590px; margin: 0; color: rgba(255,255,255,.74); font-size: 17px; line-height: 1.7; }
.hero-actions { display: flex; align-items: center; gap: 24px; margin-top: 34px; }
.primary-action { display: inline-flex; align-items: center; justify-content: space-between; gap: 28px; min-width: 232px; padding: 15px 18px; color: var(--ink); background: var(--green); border: 1px solid var(--green); font-size: 13px; font-weight: 800; }
.primary-action:hover { background: #5ae09b; }
.secondary-action { display: inline-flex; align-items: center; gap: 12px; padding: 14px 0; font-size: 13px; color: rgba(255,255,255,.8); border-bottom: 1px solid rgba(255,255,255,.3); }
.secondary-action:hover { color: var(--white); border-color: var(--white); }
.hero-signal { position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(4, 1fr); min-height: 94px; padding: 0 5vw; background: rgba(13,16,14,.86); border-top: 1px solid rgba(255,255,255,.16); backdrop-filter: blur(12px); }
.hero-signal > div { display: grid; grid-template-columns: 28px 1fr; align-content: center; padding: 18px 22px; border-right: 1px solid rgba(255,255,255,.12); }
.hero-signal > div:last-child { border: 0; }
.hero-signal span { grid-row: 1 / 3; color: var(--green); font-size: 10px; }
.hero-signal strong { font-size: 13px; }
.hero-signal small { margin-top: 4px; color: rgba(255,255,255,.5); font-size: 11px; }

.status-band { min-height: 54px; display: flex; align-items: center; gap: 24px; padding: 0 5vw; color: var(--white); background: var(--ink); font-size: 11px; }
.status-band > div { display: flex; align-items: center; gap: 9px; }
.status-band p { color: #a8b0ab; }
.status-band code { margin-left: auto; color: var(--cyan); }
.status-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(56,212,134,.12); }
.status-dot.warning { background: var(--coral); box-shadow: none; }
.copy-button { display: inline-flex; align-items: center; gap: 7px; padding: 7px 9px; color: var(--white); background: transparent; border: 1px solid #404641; border-radius: 3px; cursor: pointer; font-size: 11px; }

.section { padding: 110px 6.5vw; }
.section-heading { display: grid; grid-template-columns: .65fr 1.3fr 1fr; gap: 5vw; align-items: start; }
.section-heading h2, .protocol h2, .resources h2 { margin: 0; font-size: 42px; line-height: 1.14; letter-spacing: 0; }
.section-heading > p:last-child, .protocol-copy > p, .resources-inner > p { margin: 0; color: var(--muted); line-height: 1.75; font-size: 15px; }
.workflow-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin: 82px 0 0; padding: 0; list-style: none; border-top: 1px solid #bfc6c0; border-bottom: 1px solid #bfc6c0; }
.workflow-steps li { position: relative; min-height: 260px; padding: 26px 30px 30px 0; border-right: 1px solid var(--line); }
.workflow-steps li + li { padding-left: 30px; }
.workflow-steps li:last-child { border: 0; }
.workflow-steps li > span { font-family: ui-monospace, monospace; color: var(--deep-green); font-size: 11px; }
.workflow-steps h3 { margin: 55px 0 12px; font-size: 21px; }
.workflow-steps p { max-width: 240px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.65; }
.workflow-steps b { position: absolute; z-index: 2; right: -14px; top: 73px; display: grid; place-items: center; width: 28px; height: 28px; color: var(--ink); background: var(--green); border-radius: 50%; font-size: 12px; }

.protocol { padding: 100px 6.5vw; color: var(--white); background: #171b19; }
.protocol-inner { display: grid; grid-template-columns: .85fr 1.15fr; gap: 8vw; align-items: center; max-width: 1400px; margin: auto; }
.protocol-copy h2 { margin: 18px 0 23px; }
.protocol-copy > p { color: #aab2ad; }
.protocol dl { margin: 42px 0 0; border-top: 1px solid #3a413d; }
.protocol dl div { display: grid; grid-template-columns: 120px 1fr; padding: 15px 0; border-bottom: 1px solid #3a413d; font-size: 12px; }
.protocol dt { color: #77827c; }
.protocol dd { margin: 0; }
.terminal { overflow: hidden; background: #0a0d0c; border: 1px solid #3b443f; border-radius: 6px; box-shadow: 0 28px 70px rgba(0,0,0,.3); }
.terminal-bar { height: 44px; display: flex; align-items: center; gap: 7px; padding: 0 15px; color: #7d8881; background: #212622; border-bottom: 1px solid #353c37; }
.terminal-bar > span { width: 8px; height: 8px; border-radius: 50%; background: #68706b; }
.terminal-bar > span:first-child { background: var(--coral); }
.terminal-bar > span:nth-child(2) { background: #e0b85f; }
.terminal-bar > span:nth-child(3) { background: var(--green); }
.terminal-bar small { margin-left: auto; font-family: ui-monospace, monospace; }
.terminal pre { min-height: 360px; margin: 0; padding: 38px; overflow: auto; font-size: 13px; line-height: 1.8; font-family: "SFMono-Regular", Consolas, monospace; }
.terminal i { color: var(--green); font-style: normal; }
.terminal em { display: inline-block; min-width: 120px; color: var(--cyan); font-style: normal; }
.terminal strong { color: var(--green); font-weight: 600; }

.section-heading.compact { grid-template-columns: .7fr 1.3fr; max-width: 940px; }
.capability-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 65px; }
.capability-grid article { min-height: 260px; padding: 28px; background: var(--white); border: 1px solid var(--line); border-radius: 4px; }
.capability-grid article:nth-child(2) { border-top: 3px solid var(--coral); }
.capability-grid article:nth-child(3) { border-top: 3px solid var(--cyan); }
.capability-grid article:first-child { border-top: 3px solid var(--green); }
.capability-grid span { color: var(--deep-green); font-family: ui-monospace, monospace; font-size: 10px; }
.capability-grid h3 { margin: 66px 0 13px; font-size: 20px; }
.capability-grid p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.7; }

.resources { padding: 105px 6.5vw; color: var(--white); background: #27322d; }
.resources-inner { max-width: 1240px; margin: auto; }
.resources h2 { max-width: 700px; margin: 18px 0 38px; }
.resource-url { display: flex; align-items: center; justify-content: space-between; padding: 22px 0; border-top: 1px solid #58615c; border-bottom: 1px solid #58615c; color: var(--green); }
.resource-url code { overflow-wrap: anywhere; font-size: 15px; }
.resource-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 42px; background: #56605b; }
.resource-links a { display: flex; flex-direction: column; gap: 8px; min-height: 125px; padding: 25px; background: #27322d; }
.resource-links a:hover { background: #303d37; }
.resource-links strong { font-size: 14px; }
.resource-links span { color: #aab3ae; font-size: 11px; }

footer { min-height: 110px; display: flex; align-items: center; gap: 38px; padding: 0 5vw; color: var(--white); background: var(--ink); }
footer p { color: #929d97; font-size: 12px; }
footer > span { margin-left: auto; color: #6e7872; font-size: 11px; }
.network-links { display: flex; align-items: center; gap: 17px; margin-left: auto; font-size: 11px; }
.network-links > span { color: #6e7872; }
.network-links a { color: #b9c1bc; border-bottom: 1px solid transparent; }
.network-links a:hover { color: var(--green); border-color: var(--green); }
.privacy-link { color: #929d97; font-size: 11px; border-bottom: 1px solid #4a514d; }
.privacy-link:hover { color: var(--green); border-color: var(--green); }
.privacy-page { min-height: 100vh; padding: 88px 6.5vw; color: var(--white); background: var(--ink); }
.privacy-header { display: flex; align-items: center; justify-content: space-between; max-width: 980px; margin: 0 auto 75px; }
.privacy-header a:last-child { color: var(--green); font-size: 12px; }
.privacy-content { max-width: 980px; margin: auto; }
.privacy-content h1 { max-width: 700px; margin: 20px 0 52px; font-size: 52px; line-height: 1.08; letter-spacing: 0; }
.privacy-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 55px; padding-top: 38px; border-top: 1px solid #3a413d; }
.privacy-grid h2 { margin: 0 0 24px; font-size: 20px; }
.privacy-grid h3 { margin: 28px 0 10px; color: var(--green); font-size: 12px; }
.privacy-grid p, .privacy-grid li { color: #aab2ad; font-size: 13px; line-height: 1.75; }
.privacy-grid ul { padding-left: 18px; }
.privacy-updated { margin-top: 52px; color: #6e7872; font-size: 11px; }
.toast { position: fixed; z-index: 20; left: 50%; bottom: 22px; padding: 11px 15px; color: var(--ink); background: var(--green); border-radius: 3px; opacity: 0; transform: translate(-50%, 20px); pointer-events: none; transition: .2s ease; font-size: 12px; font-weight: 700; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 1000px) {
  .hero { height: 740px; }
  .hero-content { width: 68vw; }
  .hero h1 { font-size: 50px; }
  .hero-signal { grid-template-columns: repeat(2, 1fr); }
  .hero-signal > div { min-height: 74px; }
  .section-heading { grid-template-columns: 1fr 1.5fr; }
  .section-heading > p:last-child { grid-column: 2; }
  .workflow-steps { grid-template-columns: repeat(2, 1fr); }
  .workflow-steps li:nth-child(2) { border-right: 0; }
  .workflow-steps li:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .protocol-inner { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .site-header { height: 62px; padding: 0 20px; }
  .site-header nav { display: none; }
  .header-action { font-size: 12px; }
  .header-tools { gap: 12px; }
  .hero { height: auto; min-height: 760px; background-position: 63% center; }
  .hero-shade { background: rgba(8,10,9,.72); }
  .hero-content { width: auto; padding: 118px 22px 235px; }
  .hero h1 { margin-top: 20px; font-size: 40px; line-height: 1.08; }
  .hero-copy { font-size: 15px; }
  .hero-actions { align-items: stretch; flex-direction: column; gap: 8px; }
  .primary-action { width: 100%; }
  .secondary-action { width: max-content; }
  .hero-signal { grid-template-columns: 1fr 1fr; padding: 0; }
  .hero-signal > div { min-height: 90px; padding: 14px; }
  .hero-signal > div:nth-child(2) { border-right: 0; }
  .hero-signal strong { font-size: 12px; }
  .status-band { min-height: 72px; flex-wrap: wrap; gap: 10px 18px; padding: 12px 20px; }
  .status-band p { display: none; }
  .status-band code { order: 3; width: calc(100% - 62px); margin: 0; overflow: hidden; text-overflow: ellipsis; }
  .section { padding: 78px 22px; }
  .section-heading, .section-heading.compact { display: block; }
  .section-heading h2, .protocol h2, .resources h2 { margin: 15px 0 20px; font-size: 33px; }
  .workflow-steps { grid-template-columns: 1fr; margin-top: 48px; }
  .workflow-steps li, .workflow-steps li + li { min-height: 190px; padding: 23px 10px; border-right: 0; border-bottom: 1px solid var(--line); }
  .workflow-steps h3 { margin-top: 32px; }
  .workflow-steps b { display: none; }
  .protocol { padding: 78px 22px; }
  .terminal pre { min-height: 320px; padding: 24px 18px; font-size: 11px; }
  .capability-grid, .resource-links { grid-template-columns: 1fr; }
  .capability-grid article { min-height: 220px; }
  .capability-grid h3 { margin-top: 42px; }
  .resources { padding: 78px 22px; }
  .resource-url code { max-width: 85%; font-size: 12px; }
  footer { min-height: 145px; align-items: flex-start; flex-direction: column; gap: 12px; padding: 30px 22px; }
  footer > span { margin: 8px 0 0; }
  .network-links { align-items: flex-start; flex-wrap: wrap; gap: 12px 18px; margin: 8px 0 0; }
  .network-links > span { flex-basis: 100%; }
  .privacy-page { padding: 35px 22px 70px; }
  .privacy-header { margin-bottom: 58px; }
  .privacy-content h1 { font-size: 38px; }
  .privacy-grid { grid-template-columns: 1fr; gap: 38px; }
}

@media (max-width: 460px) {
  .header-action { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
