:root {
  --ink: #11162c;
  --ink-2: #303856;
  --paper: #f3f4ff;
  --white: #ffffff;
  --teal: #444bea;
  --indigo: #7450e8;
  --lime: #aa95ff;
  --muted: #606985;
  --line: #e1e3f0;
  --line-dark: rgba(17, 22, 44, .16);
  --mono: ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
button { font: inherit; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 72px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 0 5vw;
  border-bottom: 1px solid var(--line-dark);
  background: rgba(247, 247, 255, .94);
  backdrop-filter: blur(18px);
}
.brand { display: flex; align-items: center; gap: 12px; width: fit-content; text-decoration: none; }
.brand-mark { display: grid; grid-template-columns: repeat(3, 7px); gap: 3px; align-items: end; height: 22px; }
.brand-mark i { display: block; width: 7px; background: var(--teal); border-radius: 1px; }
.brand-mark i:nth-child(1) { height: 11px; }
.brand-mark i:nth-child(2) { height: 21px; background: var(--indigo); }
.brand-mark i:nth-child(3) { height: 16px; }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 12px; letter-spacing: -.01em; }
.brand small { margin-top: 3px; color: var(--muted); font-family: var(--mono); font-size: 8px; letter-spacing: .12em; }
.site-header nav { display: flex; gap: 28px; }
.site-header nav a { color: var(--muted); font-size: 11px; font-weight: 700; text-decoration: none; }
.site-header nav a:hover { color: var(--ink); }
.header-cta { justify-self: end; padding: 10px 15px; border-radius: 8px; color: #fff; background: var(--ink); font-size: 10px; font-weight: 700; text-decoration: none; }
.header-cta span { margin-left: 5px; color: var(--lime); }

.hero { overflow: hidden; padding: clamp(72px, 10vw, 132px) 5vw 82px; color: #fff; background: var(--ink); }
.hero-grid { max-width: 1320px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(290px, .55fr); align-items: end; gap: 8vw; }
.kicker, .eyebrow { color: var(--teal); font-family: var(--mono); font-size: 10px; font-weight: 500; letter-spacing: .14em; }
.kicker { display: flex; align-items: center; gap: 9px; color: #bdc1df; }
.kicker span { width: 25px; height: 2px; background: var(--lime); }
.hero h1 { max-width: 920px; margin: 24px 0 25px; font-size: clamp(46px, 6.6vw, 94px); line-height: .97; letter-spacing: -.067em; }
.hero h1 em { color: var(--lime); font-style: normal; }
.hero-copy { max-width: 730px; margin: 0; color: #bdc1df; font-size: clamp(15px, 1.5vw, 19px); line-height: 1.75; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 34px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 18px; border-radius: 8px; font-size: 11px; font-weight: 800; text-decoration: none; transition: transform .16s ease, background .16s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: var(--ink); background: var(--lime); }
.button-ghost { color: #fff; border: 1px solid rgba(255,255,255,.22); }
.button-ghost:hover { background: rgba(255,255,255,.08); }

.system-card { border: 1px solid rgba(255,255,255,.16); border-radius: 14px; background: rgba(255,255,255,.045); box-shadow: 0 28px 75px rgba(0,0,0,.18); }
.system-card-head, .system-card-foot { display: flex; align-items: center; justify-content: space-between; padding: 14px 17px; font-family: var(--mono); font-size: 8px; letter-spacing: .1em; }
.system-card-head { border-bottom: 1px solid rgba(255,255,255,.12); color: #a2a9ca; }
.system-card-head b { color: var(--lime); }
.system-stat { display: grid; grid-template-columns: 90px 1fr; align-items: center; gap: 13px; padding: 20px 18px; border-bottom: 1px solid rgba(255,255,255,.1); }
.system-stat strong { color: #fff; font-size: 42px; line-height: 1; letter-spacing: -.07em; }
.system-stat span { color: #bdc1df; font-size: 11px; line-height: 1.4; }
.system-stat.accent strong { color: var(--lime); }
.system-card-foot { justify-content: flex-start; gap: 8px; color: #bdc1df; }
.pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 4px rgba(170,149,255,.14); }

.section { padding: 96px 5vw; }
.section > * { max-width: 1320px; margin-left: auto; margin-right: auto; }
.section-intro { display: grid; grid-template-columns: 1.35fr .65fr; align-items: end; gap: 8vw; margin-bottom: 42px; }
.section-intro h2, .director h2, .final-cta h2 { margin: 13px 0 0; font-size: clamp(34px, 4.2vw, 58px); line-height: 1.05; letter-spacing: -.055em; }
.section-intro > p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.75; }

.operating { background: var(--white); }
.flow { display: grid; grid-template-columns: repeat(4, 1fr 28px) 1fr; align-items: stretch; gap: 8px; }
.flow article { min-height: 210px; padding: 19px; border: 1px solid var(--line); border-radius: 11px; background: var(--paper); }
.flow article > span { float: right; color: #9299ae; font-family: var(--mono); font-size: 10px; }
.flow article > i { display: inline-flex; padding: 4px 6px; border-radius: 4px; color: var(--teal); background: #e3e5ff; font-family: var(--mono); font-size: 8px; font-style: normal; }
.flow h3 { margin: 58px 0 8px; font-size: 15px; }
.flow p { margin: 0; color: var(--muted); font-size: 11.5px; line-height: 1.6; }
.flow-arrow { align-self: center; color: var(--indigo); font-weight: 500; text-align: center; }

.workflow-expansion { color:#fff; background:var(--indigo); }
.workflow-expansion .eyebrow { color:#d7d9ff; }
.workflow-expansion .section-intro > p { color:#e2e3ff; }
.workflow-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; }
.workflow-grid article { min-height:280px; display:flex; flex-direction:column; padding:24px; border:1px solid rgba(255,255,255,.2); border-radius:12px; background:rgba(20,23,94,.18); }
.workflow-grid article.workflow-new { color:var(--ink); border-color:var(--lime); background:var(--lime); }
.workflow-grid span { color:#d7d9ff; font-family:var(--mono); font-size:8px; letter-spacing:.12em; }
.workflow-grid .workflow-new span { color:var(--indigo); }
.workflow-grid h3 { margin:42px 0 12px; font-size:19px; letter-spacing:-.035em; }
.workflow-grid p { margin:0; color:#e2e3ff; font-size:11px; line-height:1.68; }
.workflow-grid .workflow-new p { color:#3c4161; }
.workflow-grid code { margin-top:auto; padding-top:24px; color:#fff; font-family:var(--mono); font-size:9px; }
.workflow-grid .workflow-new code { color:var(--indigo); }

.team { background: var(--paper); }
.team-intro { align-items: center; }
.filters { justify-self: end; display: flex; flex-wrap: wrap; gap: 6px; }
.filter { padding: 8px 12px; border: 1px solid var(--line); border-radius: 24px; color: var(--muted); background: transparent; font-size: 9px; font-weight: 750; cursor: pointer; }
.filter:hover, .filter.active { border-color: var(--ink); color: #fff; background: var(--ink); }
.agent-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.agent-card { min-height: 386px; display: flex; flex-direction: column; padding: 27px; border: 1px solid var(--line); border-radius: 13px; background: var(--white); box-shadow: 0 12px 40px rgba(55,61,140,.045); }
.agent-card[hidden] { display: none; }
.card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 37px; }
.number { color: #9299ae; font-family: var(--mono); font-size: 10px; }
.status { padding: 5px 7px; border-radius: 4px; font-family: var(--mono); font-size: 7.5px; letter-spacing: .08em; }
.status.live { color: #343bd0; background: #e3e5ff; }
.status.concept { color: #654a9d; background: #eee9ff; }
.agent-card h3 { margin: 0 0 8px; font-size: clamp(19px, 2.1vw, 26px); letter-spacing: -.035em; }
.agent-card code { width: fit-content; color: var(--indigo); font-family: var(--mono); font-size: 10px; }
.agent-card > p { max-width: 620px; margin: 22px 0; color: var(--muted); font-size: 12.5px; line-height: 1.7; }
.agent-card dl { margin: auto 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.agent-card dl div { padding-top: 13px; border-top: 1px solid var(--line); }
.agent-card dt { margin-bottom: 6px; color: #9299ae; font-family: var(--mono); font-size: 8px; }
.agent-card dd { margin: 0; font-size: 10.5px; font-weight: 700; }
.guardrail { margin-top: 18px; padding: 10px 12px; border-left: 2px solid var(--teal); color: var(--muted); background: #f3f4ff; font-size: 9.5px; line-height: 1.55; }
.guardrail b { margin-right: 5px; color: var(--teal); }

.director { padding-top: 14px; padding-bottom: 14px; background: var(--paper); }
.director-panel { display: grid; grid-template-columns: 1fr .85fr; align-items: center; gap: 7vw; padding: clamp(34px, 5.5vw, 78px); border-radius: 16px; color: #fff; background: var(--indigo); }
.eyebrow.light { color: #d9dbff; }
.director-copy p { max-width: 610px; margin: 20px 0 0; color: #e1e2ff; font-size: 13px; line-height: 1.75; }
.director-copy code { color: #fff; font-family: var(--mono); font-size: .88em; }
.prompt-card { padding: 22px; border: 1px solid rgba(255,255,255,.25); border-radius: 10px; background: rgba(20,23,94,.2); }
.prompt-card > div { display: flex; align-items: center; justify-content: space-between; }
.prompt-card span { color: #d9dbff; font-family: var(--mono); font-size: 8px; letter-spacing: .1em; }
.prompt-card button { border: 0; color: var(--indigo); background: var(--lime); padding: 6px 9px; border-radius: 5px; font-size: 8px; font-weight: 800; cursor: pointer; }
.prompt-card p { margin: 22px 0 0; color: #fff; font-family: var(--mono); font-size: 11px; line-height: 1.75; }

.governance { background: var(--white); }
.governance-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.governance-grid article { min-height: 236px; padding: 23px; border-top: 3px solid var(--ink); background: var(--paper); }
.governance-grid article:nth-child(2) { border-color: var(--indigo); }
.governance-grid article:nth-child(3) { border-color: var(--teal); }
.governance-grid article:nth-child(4) { border-color: var(--lime); }
.governance-grid span { color: var(--indigo); font-family: var(--mono); font-size: 8px; letter-spacing: .1em; }
.governance-grid h3 { margin: 64px 0 9px; font-size: 16px; }
.governance-grid p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.65; }

.final-cta { display: flex; align-items: end; justify-content: space-between; gap: 40px; padding: 80px 5vw; color: #fff; background: var(--ink); }
.final-cta > div { max-width: 850px; }
.final-cta h2 { font-size: clamp(32px, 4vw, 56px); }
.button-lime { flex: 0 0 auto; color: var(--ink); background: var(--lime); }
.button-lime span { margin-left: 10px; }
footer { display: flex; justify-content: space-between; gap: 40px; padding: 24px 5vw; color: #9299ae; background: #0f1429; font-size: 9px; line-height: 1.6; }
footer p { max-width: 720px; margin: 0; }
footer span { text-align: right; }
.toast { position: fixed; right: 20px; bottom: 20px; z-index: 30; padding: 10px 14px; border-radius: 7px; color: var(--ink); background: var(--lime); font-size: 10px; font-weight: 800; opacity: 0; transform: translateY(8px); transition: .2s ease; pointer-events: none; }
.toast.show { opacity: 1; transform: none; }

@media (max-width: 980px) {
  .site-header { grid-template-columns: 1fr auto; }
  .site-header nav { display: none; }
  .hero-grid, .section-intro, .director-panel { grid-template-columns: 1fr; }
  .system-card { max-width: 460px; margin-top: 18px; }
  .flow, .workflow-grid { grid-template-columns: 1fr 1fr; }
  .flow-arrow { display: none; }
  .governance-grid { grid-template-columns: repeat(2, 1fr); }
  .filters { justify-self: start; }
  .final-cta { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 680px) {
  .site-header { min-height: 64px; padding: 0 18px; }
  .brand strong { font-size: 10.5px; }
  .brand small { display: none; }
  .header-cta { padding: 9px 11px; }
  .hero, .section { padding-left: 20px; padding-right: 20px; }
  .hero { padding-top: 72px; }
  .hero h1 { font-size: clamp(43px, 13vw, 64px); }
  .agent-grid, .flow, .governance-grid, .workflow-grid { grid-template-columns: 1fr; }
  .workflow-grid article { min-height:auto; }
  .workflow-grid code { margin-top:28px; }
  .agent-card { min-height: auto; }
  .agent-card dl { margin-top: 18px; }
  .director { padding-left: 8px; padding-right: 8px; }
  .director-panel { padding: 34px 22px; }
  .final-cta { padding: 62px 20px; }
  footer { flex-direction: column; padding: 22px 20px; }
  footer span { text-align: left; }
}

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