:root {
  --bg: #08090b;
  --bg-raised: #0d0f12;
  --surface: rgba(255, 255, 255, .025);
  --surface-hover: rgba(255, 255, 255, .045);
  --text: #f4f5f7;
  --text-secondary: #a4a8b2;
  --text-muted: #7a7f8a;
  --line: rgba(255, 255, 255, .09);
  --line-soft: rgba(255, 255, 255, .055);
  --accent: #6268d2;
  --accent-hover: #575dc4;
  --success: #51c995;
  --shell: min(1180px, calc(100% - 48px));
  --radius-sm: 7px;
  --radius: 12px;
  --font: ui-sans-serif, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: ui-monospace, 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: clip;
  color: var(--text);
  background: var(--bg);
  font-family: var(--font);
  font-feature-settings: "ss03";
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: linear-gradient(to bottom, black, transparent 75%);
}
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
.shell { width: var(--shell); margin-inline: auto; }
.mono { font-family: var(--mono); }
.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; transform: translateY(-150%); padding: 10px 14px; border-radius: 6px; background: var(--text); color: var(--bg); text-decoration: none; }
.skip-link:focus { transform: translateY(0); }
:focus-visible { outline: 2px solid #aeb2ff; outline-offset: 3px; }

.site-header { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid transparent; background: rgba(8,9,11,.78); backdrop-filter: blur(14px); transition: border-color .25s; }
.site-header.is-scrolled { border-color: var(--line-soft); }
.nav { height: 72px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-size: 16px; font-weight: 600; letter-spacing: -.03em; text-decoration: none; }
.brand-dim { color: var(--text-muted); font-weight: 400; }
.brand-mark { display: grid; grid-template-columns: repeat(3, 3px); align-items: end; gap: 2px; width: 14px; height: 14px; transform: skew(-16deg); }
.brand-mark i { display: block; background: var(--text); border-radius: 1px; }
.brand-mark i:nth-child(1) { height: 7px; opacity: .55; }
.brand-mark i:nth-child(2) { height: 11px; opacity: .75; }
.brand-mark i:nth-child(3) { height: 14px; }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a { color: var(--text-secondary); font-size: 14px; text-decoration: none; transition: color .2s; }
.nav-links a:hover { color: var(--text); }
.nav-links .nav-cta { min-height: 38px; display: inline-flex; align-items: center; gap: 10px; padding: 0 14px; color: var(--text); border: 1px solid var(--line); border-radius: var(--radius-sm); background: rgba(255,255,255,.035); }
.menu-button { display: none; width: 44px; height: 44px; border: 0; border-radius: 7px; background: transparent; }
.menu-button > span:not(.sr-only) { display: block; width: 18px; height: 1px; margin: 5px auto; background: var(--text); transition: transform .2s; }

.hero { position: relative; min-height: 760px; display: grid; grid-template-columns: 1.08fr .92fr; gap: 76px; align-items: center; padding-block: 92px 110px; }
.hero::after { content: ""; position: absolute; z-index: -1; width: 480px; height: 480px; top: 80px; left: 5%; background: radial-gradient(circle, rgba(112,119,236,.13), transparent 68%); filter: blur(10px); }
.eyebrow, .kicker { margin: 0 0 24px; color: var(--text-secondary); font-size: 11px; letter-spacing: .11em; text-transform: uppercase; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; padding: 7px 10px; border: 1px solid var(--line-soft); border-radius: 999px; background: rgba(255,255,255,.02); letter-spacing: .05em; text-transform: none; }
.status-dot, .pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 4px rgba(81,201,149,.1); }
h1, h2, h3, p { text-wrap: pretty; }
h1 { max-width: 660px; margin: 0; font-size: clamp(46px, 5.2vw, 72px); line-height: 1.03; letter-spacing: -.055em; font-weight: 500; }
h1 span, .cta-card h2 span { color: var(--text-muted); }
.hero-lede { max-width: 590px; margin: 30px 0 0; color: var(--text-secondary); font-size: 18px; line-height: 1.65; letter-spacing: -.012em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 36px; }
.button { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 14px; padding: 0 18px; border: 1px solid transparent; border-radius: var(--radius-sm); font-size: 14px; font-weight: 500; text-decoration: none; transition: transform .2s, background .2s, border-color .2s; }
.button:hover { transform: translateY(-1px); }
.button-primary { background: var(--accent); color: white; box-shadow: inset 0 1px rgba(255,255,255,.18), 0 8px 30px rgba(67,73,177,.2); }
.button-primary:hover { background: var(--accent-hover); }
.button-ghost { border-color: var(--line); background: rgba(255,255,255,.025); color: var(--text-secondary); }
.button-ghost:hover { border-color: rgba(255,255,255,.16); background: rgba(255,255,255,.045); color: var(--text); }

.system-panel { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: #0c0e11; box-shadow: 0 30px 80px rgba(0,0,0,.35), inset 0 1px rgba(255,255,255,.025); }
.system-panel::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(120deg, rgba(255,255,255,.025), transparent 35%); }
.panel-bar, .panel-footer { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--line-soft); color: var(--text-muted); font-size: 10px; }
.panel-title { display: flex; align-items: center; gap: 10px; color: var(--text-secondary); font-size: 12px; }
.pulse { width: 6px; height: 6px; animation: breathe 2s ease-in-out infinite; }
.flow { padding: 8px; }
.flow-item { position: relative; display: grid; grid-template-columns: 34px 1fr 24px; gap: 10px; align-items: center; min-height: 76px; padding: 12px 11px; border-radius: 8px; }
.flow-item + .flow-item::before { content: ""; position: absolute; width: 1px; height: 18px; top: -9px; left: 27px; background: var(--line); }
.flow-item.active { border: 1px solid rgba(112,119,236,.28); background: rgba(112,119,236,.065); box-shadow: inset 0 0 20px rgba(112,119,236,.025); }
.flow-index { color: var(--text-muted); font-size: 10px; }
.flow-item strong { display: block; margin-bottom: 5px; font-size: 13px; font-weight: 500; }
.flow-item small { display: block; color: var(--text-muted); font-size: 11px; }
.check { color: var(--success); font-size: 12px; }
.pending-mark { color: var(--text-muted); }
.loader { width: 13px; height: 13px; border: 1px solid rgba(112,119,236,.32); border-top-color: #969bf8; border-radius: 50%; animation: spin 1s linear infinite; }
.panel-footer { border-top: 1px solid var(--line-soft); border-bottom: 0; }

.team-section { padding-block: 120px; }
.section-heading { display: grid; grid-template-columns: 1.35fr .65fr; gap: 80px; align-items: end; margin-bottom: 56px; }
.section-heading h2, .method-intro h2 { margin: 0; font-size: clamp(34px, 4vw, 50px); line-height: 1.08; letter-spacing: -.045em; font-weight: 500; }
.section-heading > p, .method-intro > p { margin: 0; color: var(--text-secondary); font-size: 16px; line-height: 1.65; }
.team-grid { display: grid; grid-template-columns: 1.15fr .85fr .85fr; grid-template-rows: repeat(2, minmax(310px, auto)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.agent-card { position: relative; overflow: hidden; display: flex; flex-direction: column; min-width: 0; padding: 24px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); transition: background .3s; }
.agent-card:hover { background: var(--surface-hover); }
.agent-featured { grid-row: span 2; padding: 28px; }
.agent-wide { grid-column: span 2; display: grid; grid-template-columns: 1fr .8fr; grid-template-rows: auto 1fr; gap: 10px 40px; }
.agent-wide .agent-top { grid-column: 1 / -1; }
.agent-top { display: flex; justify-content: space-between; align-items: center; }
.agent-code, .agent-role { color: var(--text-muted); font-size: 10px; letter-spacing: .12em; }
.availability { display: inline-flex; align-items: center; gap: 7px; color: var(--text-secondary); font-size: 10px; }
.availability i, .agent-signal { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--success); box-shadow: 0 0 8px rgba(81,201,149,.5); }
.agent-visual { position: relative; display: grid; place-items: center; height: 280px; margin-block: 28px 18px; }
.glyph { position: relative; z-index: 2; display: grid; place-items: center; width: 80px; height: 80px; border: 1px solid rgba(112,119,236,.28); border-radius: 50%; background: rgba(112,119,236,.09); color: #a8acf8; font-family: var(--mono); font-size: 17px; box-shadow: 0 0 40px rgba(112,119,236,.12); }
.orbit { position: absolute; border: 1px solid var(--line-soft); border-radius: 50%; }
.orbit::after { content: ""; position: absolute; top: 12%; left: 14%; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.orbit-a { width: 170px; height: 170px; animation: spin 14s linear infinite; }
.orbit-b { width: 250px; height: 250px; border-style: dashed; opacity: .55; animation: spin 22s linear infinite reverse; }
.agent-copy { margin-top: auto; }
.agent-role { margin: 0 0 10px; color: #7f84d9; }
.agent-copy h3 { margin: 0 0 12px; font-size: 28px; letter-spacing: -.035em; font-weight: 500; }
.agent-copy > p:not(.agent-role) { max-width: 450px; margin: 0; color: var(--text-secondary); font-size: 14px; line-height: 1.6; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 20px 0 0; padding: 0; list-style: none; }
.tags li { padding: 5px 8px; border: 1px solid var(--line-soft); border-radius: 4px; color: var(--text-muted); font-size: 10px; }
.mini-chart { height: 54px; display: flex; align-items: end; gap: 5px; margin-top: 20px; opacity: .5; }
.mini-chart i { flex: 1; border-top: 1px solid #8389ef; background: linear-gradient(to top, transparent, rgba(112,119,236,.25)); }
.mini-chart i:nth-child(1) { height: 20%; } .mini-chart i:nth-child(2) { height: 38%; } .mini-chart i:nth-child(3) { height: 31%; } .mini-chart i:nth-child(4) { height: 56%; } .mini-chart i:nth-child(5) { height: 49%; } .mini-chart i:nth-child(6) { height: 82%; } .mini-chart i:nth-child(7) { height: 72%; }
.review-lines { position: relative; display: grid; gap: 7px; margin-top: 25px; opacity: .55; }
.review-lines span { display: block; height: 1px; background: linear-gradient(to right, var(--text-muted) 60%, transparent 60%); }
.review-lines span:nth-child(2) { width: 77%; } .review-lines span:nth-child(3) { width: 90%; }
.review-lines b { position: absolute; right: 5px; bottom: -2px; display: grid; place-items: center; width: 22px; height: 22px; border: 1px solid rgba(81,201,149,.3); border-radius: 50%; color: var(--success); font-size: 10px; }
.terminal-art { align-self: end; min-height: 150px; padding: 20px; border: 1px solid var(--line-soft); border-radius: 8px; background: rgba(0,0,0,.22); color: var(--text-muted); font-size: 11px; line-height: 1.7; }
.terminal-art p { margin: 0; }.terminal-art span { color: #a5a9f8; }.terminal-art i { color: var(--success); font-style: normal; }.cursor { display: inline-block; width: 6px; height: 12px; margin-top: 6px; background: var(--text-muted); animation: blink 1s steps(2) infinite; }

.method-section { border-block: 1px solid var(--line-soft); background: #0b0d10; }
.method-inner { display: grid; grid-template-columns: .85fr 1.15fr; gap: 110px; padding-block: 120px; }
.method-intro { position: sticky; top: 130px; align-self: start; }
.method-intro > p { max-width: 430px; margin-top: 28px; }
.method-list { margin: 0; padding: 0; list-style: none; counter-reset: none; }
.method-list li { display: grid; grid-template-columns: 44px 1fr; gap: 20px; padding: 29px 0; border-top: 1px solid var(--line); }
.method-list li:last-child { border-bottom: 1px solid var(--line); }
.step { padding-top: 5px; color: var(--text-muted); font-size: 10px; }
.method-list h3 { margin: 0 0 8px; font-size: 20px; font-weight: 500; letter-spacing: -.02em; }
.method-list p { max-width: 520px; margin: 0; color: var(--text-secondary); font-size: 14px; line-height: 1.65; }

.cta-section { padding-block: 120px; }
.cta-card { position: relative; overflow: hidden; min-height: 440px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: clamp(32px, 7vw, 84px); border: 1px solid var(--line); border-radius: 14px; background: #0d0f13; }
.cta-card::before { content: ""; position: absolute; right: -8%; bottom: -45%; width: 570px; height: 570px; border: 1px solid rgba(112,119,236,.15); border-radius: 50%; box-shadow: 0 0 0 80px rgba(112,119,236,.02), 0 0 0 160px rgba(112,119,236,.015); }
.cta-card > *:not(.cta-grid) { position: relative; z-index: 2; }
.cta-card h2 { max-width: 740px; margin: 0; font-size: clamp(38px, 5vw, 60px); line-height: 1.04; letter-spacing: -.05em; font-weight: 500; }
.cta-card > p:not(.kicker) { max-width: 520px; margin: 25px 0 30px; color: var(--text-secondary); line-height: 1.65; }
.cta-grid { position: absolute; inset: 0 0 0 58%; border-left: 1px solid var(--line-soft); background-image: linear-gradient(var(--line-soft) 1px, transparent 1px), linear-gradient(90deg, var(--line-soft) 1px, transparent 1px); background-size: 40px 40px; mask-image: radial-gradient(circle at center, black, transparent 72%); opacity: .5; }
.site-footer { border-top: 1px solid var(--line-soft); }
.footer-inner { min-height: 110px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; }
.footer-inner > p { color: var(--text-muted); font-size: 12px; text-align: center; }
.deployed-badge { justify-self: end; display: inline-flex; align-items: center; gap: 8px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--text-secondary); font-size: 10px; }
.deployed-badge i { width: 6px; height: 6px; border-radius: 50%; background: var(--success); box-shadow: 0 0 8px rgba(81,201,149,.6); }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes breathe { 50% { opacity: .45; box-shadow: 0 0 0 6px rgba(81,201,149,.06); } }

@media (max-width: 900px) {
  :root { --shell: min(100% - 32px, 720px); }
  .hero { min-height: auto; grid-template-columns: 1fr; gap: 70px; padding-block: 80px 100px; }
  .hero-copy { max-width: 680px; }
  .system-panel { max-width: 600px; }
  .section-heading { grid-template-columns: 1fr; gap: 24px; }
  .section-heading > p { max-width: 560px; }
  .team-grid { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .agent-featured { grid-column: span 2; grid-row: auto; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto 1fr; gap: 20px; }
  .agent-featured .agent-top { grid-column: 1 / -1; }
  .agent-visual { grid-row: 2; grid-column: 2; height: 250px; }
  .agent-featured .agent-copy { grid-row: 2; grid-column: 1; align-self: end; }
  .method-inner { grid-template-columns: 1fr; gap: 60px; }
  .method-intro { position: static; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-inner > p { display: none; }
}

@media (max-width: 640px) {
  :root { --shell: calc(100% - 32px); }
  .nav { height: 64px; }
  .menu-button { display: block; position: relative; z-index: 2; color: var(--text); }
  .nav-links { position: fixed; top: 64px; left: 0; right: 0; display: grid; gap: 0; padding: 8px 16px 18px; border-bottom: 1px solid var(--line); background: rgba(8,9,11,.98); transform: translateY(-140%); visibility: hidden; transition: transform .25s, visibility .25s; }
  .nav-links.is-open { transform: translateY(0); visibility: visible; }
  .nav-links a { min-height: 52px; display: flex; align-items: center; padding: 0 12px; border-bottom: 1px solid var(--line-soft); }
  .nav-links .nav-cta { margin-top: 10px; justify-content: space-between; }
  .menu-button[aria-expanded="true"] > span:nth-of-type(2) { transform: translateY(3px) rotate(45deg); }
  .menu-button[aria-expanded="true"] > span:nth-of-type(3) { transform: translateY(-3px) rotate(-45deg); }
  .hero { gap: 60px; padding-block: 64px 80px; }
  .hero::after { width: 280px; height: 280px; left: 0; }
  h1 { font-size: clamp(40px, 13vw, 56px); }
  .hero-lede { font-size: 16px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .system-panel { margin-inline: -4px; }
  .panel-footer { display: none; }
  .team-section, .cta-section { padding-block: 84px; }
  .team-grid { grid-template-columns: 1fr; }
  .agent-featured, .agent-wide { grid-column: auto; display: flex; }
  .agent-featured .agent-top, .agent-featured .agent-copy, .agent-visual { grid-column: auto; grid-row: auto; }
  .agent-visual { height: 240px; }
  .agent-card { min-height: 330px; }
  .agent-wide .agent-top { order: -2; }
  .agent-wide .agent-copy { order: -1; margin-top: 70px; }
  .terminal-art { width: 100%; margin-top: 30px; }
  .method-inner { padding-block: 84px; gap: 50px; }
  .method-list li { grid-template-columns: 32px 1fr; }
  .cta-card { min-height: 480px; padding: 32px 24px; }
  .cta-grid { inset: 58% 0 0; border-left: 0; border-top: 1px solid var(--line-soft); }
  .footer-inner { min-height: 140px; grid-template-columns: 1fr; align-content: center; }
  .deployed-badge { 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; }
}
