:root {
  --black: #0b0d0c;
  --black-soft: #121513;
  --white: #f8faf7;
  --paper: #edf0ea;
  --ink: #171b18;
  --muted: #647068;
  --line: #cfd5cf;
  --line-dark: #303732;
  --green: #b8ff3d;
  --green-deep: #77b718;
  --cyan: #55dfe2;
  --coral: #ff6f5b;
  --yellow: #ffd84a;
  --radius: 6px;
  --content: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  letter-spacing: 0;
}
body.dialog-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; letter-spacing: 0; }
button { color: inherit; }
svg { width: 1em; height: 1em; stroke-width: 1.8; }

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: 72px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 34px;
  color: var(--white);
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(11, 13, 12, 0.9);
  backdrop-filter: blur(18px);
}
.brand { display: inline-flex; align-items: center; gap: 11px; width: fit-content; }
.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 4px;
  background: var(--green);
  color: var(--black);
  font-size: 13px;
  font-weight: 900;
}
.brand-name { font-size: 15px; font-weight: 800; }
.site-nav { display: flex; align-items: center; gap: 30px; }
.site-nav a { color: #c7cec9; font-size: 14px; font-weight: 650; }
.site-nav a:hover, .site-nav a.active { color: var(--green); }
.header-cta {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 15px;
  border: 0;
  border-radius: 4px;
  background: var(--green);
  color: var(--black);
  font-size: 14px;
  font-weight: 850;
  cursor: pointer;
}
.nav-toggle {
  display: none;
  justify-self: end;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line-dark);
  border-radius: 4px;
  background: transparent;
  color: var(--white);
}

.hero {
  position: relative;
  min-height: calc(100svh - 82px);
  max-height: 860px;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(390px, 0.72fr);
  align-items: end;
  gap: 48px;
  padding: 144px max(34px, calc((100vw - var(--content)) / 2)) 68px;
  color: var(--white);
  background: var(--black);
}
#agent-canvas, #apply-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-grid {
  position: absolute;
  inset: 72px 0 0;
  opacity: 0;
  pointer-events: none;
}
.hero-content, .runtime-window { position: relative; z-index: 2; }
.hero h1 {
  margin: 0;
  max-width: 820px;
  font-size: 76px;
  line-height: 0.98;
  font-weight: 900;
  letter-spacing: 0;
}
.hero h1::selection, .section-dark h2::selection { background: var(--green); color: var(--black); }
.hero-lead {
  max-width: 760px;
  margin: 28px 0 0;
  color: #c7cec9;
  font-size: 18px;
  line-height: 1.8;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 850;
  cursor: pointer;
}
.button-primary { background: var(--green); color: var(--black); }
.button-primary:hover { background: #ceff7b; }
.button-quiet { border-color: #48504b; color: var(--white); background: rgba(11, 13, 12, 0.55); }
.button-quiet:hover { border-color: var(--white); }
.hero-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  max-width: 790px;
  margin-top: 48px;
  border-top: 1px solid #39403b;
}
.hero-facts div { padding: 18px 18px 0 0; }
.hero-facts strong, .hero-facts span { display: block; }
.hero-facts strong { color: var(--green); font-size: 20px; }
.hero-facts span { margin-top: 5px; color: #929d95; font-size: 12px; }

.runtime-window {
  align-self: center;
  border: 1px solid #4a544c;
  border-radius: var(--radius);
  background: rgba(16, 20, 17, 0.88);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}
.runtime-head, .runtime-foot { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; }
.runtime-head { border-bottom: 1px solid #343b36; color: #abb5ad; font: 700 11px ui-monospace, SFMono-Regular, Menlo, monospace; }
.runtime-status { color: var(--green); }
.runtime-status b { display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: var(--green); animation: blink 1.2s infinite; }
.runtime-body { min-height: 284px; padding: 18px; font: 12px/1.7 ui-monospace, SFMono-Regular, Menlo, monospace; }
.runtime-body p { display: grid; grid-template-columns: 76px 64px 1fr; gap: 8px; margin: 0 0 13px; color: #bdc6bf; }
.runtime-body time { color: #657169; }
.runtime-body span { color: var(--cyan); }
.runtime-body p:nth-child(3n) span { color: var(--coral); }
.runtime-foot { justify-content: flex-start; gap: 18px; border-top: 1px solid #343b36; color: #7e8981; font-size: 10px; font-weight: 800; }
@keyframes blink { 50% { opacity: 0.25; } }

.section-light, .section-dark, .section-coral, .journey { padding: 116px max(34px, calc((100vw - var(--content)) / 2)); }
.section-light { background: var(--white); }
.section-dark { background: var(--black); color: var(--white); }
.section-coral { background: var(--coral); color: var(--black); }
.section-intro { max-width: 820px; }
.section-intro.inverse > p:last-child { color: #9fa9a1; }
.section-index { margin: 0 0 22px; color: var(--green-deep); font: 800 12px ui-monospace, SFMono-Regular, Menlo, monospace; text-transform: uppercase; }
.inverse .section-index { color: var(--green); }
.section-intro h2, .journey h2, .application h2, .fit h2 {
  margin: 0;
  font-size: 52px;
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: 0;
}
.section-intro > p:last-child, .journey-copy > p:last-child, .fit-copy > p:last-child { max-width: 710px; margin: 22px 0 0; color: var(--muted); font-size: 17px; line-height: 1.8; }

.promise-rail { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 70px; border-top: 1px solid var(--line); }
.promise-rail article { min-height: 250px; padding: 26px 24px 10px 0; border-right: 1px solid var(--line); }
.promise-rail article + article { padding-left: 24px; }
.promise-rail article:last-child { border-right: 0; }
.promise-rail article > span { color: var(--green-deep); font: 800 12px ui-monospace, monospace; }
.promise-rail h3 { margin: 70px 0 12px; font-size: 22px; }
.promise-rail p { margin: 0; color: var(--muted); line-height: 1.75; }

.projects { display: grid; gap: 18px; }
.projects > .section-intro { margin-bottom: 48px; }
.project-row {
  position: relative;
  min-height: 480px;
  display: grid;
  grid-template-columns: 1fr 0.94fr;
  gap: 64px;
  align-items: center;
  overflow: hidden;
  padding: 52px;
  border: 1px solid #303833;
  border-radius: var(--radius);
  background: var(--black-soft);
}
.project-row::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 6px; background: var(--project-color); }
.project-green { --project-color: var(--green); }
.project-cyan { --project-color: var(--cyan); }
.project-coral { --project-color: var(--coral); }
.project-copy { display: grid; grid-template-columns: 58px 1fr; gap: 22px; }
.project-number { color: var(--project-color); font: 850 14px ui-monospace, monospace; }
.project-type { margin: 0 0 14px; color: var(--project-color); font: 800 11px ui-monospace, monospace; }
.project-copy h3 { margin: 0; font-size: 35px; }
.project-copy div > p:not(.project-type) { margin: 18px 0 0; color: #aeb8b0; font-size: 16px; line-height: 1.8; }
.project-copy ul { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 28px 0 0; padding: 0; list-style: none; }
.project-copy li { color: #e0e5e1; font: 700 11px ui-monospace, monospace; }
.project-copy li::before { content: "+"; margin-right: 7px; color: var(--project-color); }

.runtime-map, .retrieval-visual, .agent-constellation { position: relative; min-height: 330px; border: 1px solid #3a423c; border-radius: var(--radius); background: #0d100e; }
.runtime-map { display: grid; place-items: center; }
.map-node { position: absolute; display: grid; place-items: center; height: 48px; padding: 0 18px; border: 1px solid #57625a; border-radius: 4px; background: #171c18; font: 750 11px ui-monospace, monospace; }
.map-entry { top: 36px; }
.map-runtime { top: 130px; border-color: var(--green); color: var(--green); }
.map-cluster { position: absolute; bottom: 34px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; width: calc(100% - 44px); }
.map-cluster span { display: grid; place-items: center; min-height: 42px; border: 1px solid #354038; color: #95a097; font: 650 9px ui-monospace, monospace; }
.map-line { position: absolute; left: 50%; width: 1px; background: #5b675e; }
.line-a { top: 84px; height: 46px; }.line-b { top: 178px; height: 66px; }
.map-pulse { position: absolute; left: calc(50% - 3px); width: 7px; height: 7px; border-radius: 50%; background: var(--green); animation: travel 2.2s linear infinite; }
.pulse-b { animation-delay: 1.1s; }
@keyframes travel { from { top: 82px; opacity: 0; } 12% { opacity: 1; } to { top: 242px; opacity: 0; } }

.retrieval-visual { padding: 26px; }
.query-line, .answer-line { padding: 14px; border: 1px solid #36413a; color: var(--cyan); font: 700 11px ui-monospace, monospace; }
.document-stack { display: grid; gap: 8px; margin: 22px 0; }
.document-stack div { display: grid; grid-template-columns: 52px 1fr; gap: 12px; padding: 15px; border-left: 3px solid var(--cyan); background: #181d19; }
.document-stack b { color: var(--cyan); font: 800 12px ui-monospace, monospace; }
.document-stack span { color: #c8d0ca; font-size: 12px; }
.answer-line { display: flex; align-items: center; gap: 9px; color: #c8d0ca; }

.agent-constellation { overflow: hidden; }
.agent-core, .agent-node { position: absolute; display: grid; place-items: center; border: 1px solid #465149; border-radius: 50%; font: 750 10px ui-monospace, monospace; }
.agent-core { inset: calc(50% - 60px); width: 120px; height: 120px; border-color: var(--coral); color: var(--coral); background: #171412; box-shadow: 0 0 0 20px rgba(255, 111, 91, 0.06); }
.agent-node { width: 76px; height: 76px; background: #161a17; color: #c9d1cb; }
.agent-node::after { content: ""; position: absolute; width: 54px; height: 1px; background: #465149; transform-origin: left; }
.node-planner { top: 25px; left: calc(50% - 38px); }.node-planner::after { left: 38px; top: 75px; transform: rotate(90deg); }
.node-searcher { top: 94px; right: 26px; }.node-searcher::after { right: 64px; top: 47px; transform: rotate(158deg); }
.node-reader { bottom: 26px; right: 74px; }.node-reader::after { right: 64px; top: 22px; transform: rotate(210deg); }
.node-writer { bottom: 26px; left: 74px; }.node-writer::after { left: 64px; top: 22px; transform: rotate(-30deg); }
.node-judge { top: 94px; left: 26px; }.node-judge::after { left: 64px; top: 47px; transform: rotate(22deg); }

.track-list { margin-top: 64px; border-top: 1px solid var(--line); }
.track-list article { display: grid; grid-template-columns: 58px 240px 1fr 180px; align-items: center; gap: 20px; min-height: 132px; border-bottom: 1px solid var(--line); }
.track-icon { width: 46px; height: 46px; display: grid; place-items: center; border: 1px solid var(--ink); border-radius: 50%; }
.track-icon svg { width: 20px; height: 20px; }
.track-list span { color: var(--green-deep); font: 800 10px ui-monospace, monospace; }
.track-list h3 { margin: 5px 0 0; font-size: 21px; }
.track-list p { color: var(--muted); line-height: 1.65; }
.track-list b { justify-self: end; font-size: 13px; }

.journey { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 90px; background: var(--paper); }
.journey-copy { position: sticky; top: 112px; align-self: start; }
.timeline { border-top: 1px solid #bbc3bc; }
.timeline article { display: grid; grid-template-columns: 62px 1fr 104px; gap: 20px; align-items: start; min-height: 154px; padding: 26px 0; border-bottom: 1px solid #bbc3bc; }
.timeline article > span { color: var(--green-deep); font: 850 13px ui-monospace, monospace; }
.timeline h3 { margin: 0; font-size: 20px; }
.timeline p { margin: 9px 0 0; color: var(--muted); line-height: 1.65; }
.timeline b { justify-self: end; font-size: 12px; }

.section-coral .section-index { color: var(--black); }
.support-grid { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 64px; border-top: 1px solid rgba(11, 13, 12, 0.45); border-left: 1px solid rgba(11, 13, 12, 0.45); }
.support-grid article { min-height: 250px; padding: 28px; border-right: 1px solid rgba(11, 13, 12, 0.45); border-bottom: 1px solid rgba(11, 13, 12, 0.45); }
.support-grid svg { width: 27px; height: 27px; }
.support-grid h3 { margin: 70px 0 12px; font-size: 21px; }
.support-grid p { margin: 0; line-height: 1.7; }

.proof-table { margin-top: 62px; border-top: 2px solid var(--ink); }
.proof-table > div { display: grid; grid-template-columns: 0.65fr 1.35fr 1fr; gap: 26px; min-height: 82px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.proof-table span { line-height: 1.55; }
.proof-table span:nth-child(2), .proof-table span:nth-child(3) { color: var(--muted); }
.proof-table .proof-head { min-height: 54px; font: 800 11px ui-monospace, monospace; }
.proof-table .proof-head span { color: var(--ink); }

.fit { padding-bottom: 100px; }
.fit-layout { display: grid; grid-template-columns: 1fr 0.9fr; gap: 100px; max-width: var(--content); margin: 0 auto; }
.fit-copy > p:last-child { color: #aab4ac; }
.fit-list { border-top: 1px solid var(--line-dark); }
.fit-list p { display: flex; align-items: center; gap: 13px; min-height: 70px; margin: 0; border-bottom: 1px solid var(--line-dark); color: #d5dbd6; }
.fit-list svg { color: var(--green); }

.faq-list { margin-top: 54px; border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 20px; cursor: pointer; font-size: 18px; font-weight: 800; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary svg { flex: 0 0 auto; transition: transform 180ms ease; }
.faq-list details[open] summary svg { transform: rotate(45deg); }
.faq-list details p { max-width: 780px; margin: -4px 0 28px; color: var(--muted); line-height: 1.75; }

.application { position: relative; min-height: 560px; overflow: hidden; display: grid; place-items: center; padding: 92px 30px; background: var(--black); color: var(--white); text-align: center; }
.application > div { position: relative; z-index: 2; }
.application h2 { font-size: 58px; }
.application p { margin: 20px 0 28px; color: #aeb7b0; font-size: 17px; }

footer { min-height: 110px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; padding: 24px max(34px, calc((100vw - var(--content)) / 2)); background: #050605; color: var(--white); border-top: 1px solid #303632; }
footer p { color: #808b83; font-size: 12px; }
footer > a:last-child { justify-self: end; display: inline-flex; align-items: center; gap: 8px; color: var(--green); font-size: 13px; font-weight: 800; }

.application-dialog { width: min(560px, calc(100vw - 28px)); padding: 0; border: 1px solid #3c453f; border-radius: var(--radius); background: var(--black-soft); color: var(--white); box-shadow: 0 30px 100px rgba(0, 0, 0, 0.55); }
.application-dialog::backdrop { background: rgba(3, 4, 3, 0.76); backdrop-filter: blur(8px); }
.application-dialog form { display: grid; gap: 17px; padding: 28px; }
.dialog-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 6px; }
.dialog-head span { color: var(--green); font: 800 10px ui-monospace, monospace; }
.dialog-head h2 { margin: 5px 0 0; font-size: 28px; }
.dialog-head button { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid #444d47; border-radius: 4px; background: transparent; color: var(--white); cursor: pointer; }
.application-dialog label { display: grid; gap: 8px; color: #cbd2cc; font-size: 13px; font-weight: 700; }
.application-dialog input, .application-dialog select, .application-dialog textarea { width: 100%; border: 1px solid #414a44; border-radius: 4px; padding: 12px 13px; background: #0d100e; color: var(--white); outline: none; }
.application-dialog input:focus, .application-dialog select:focus, .application-dialog textarea:focus { border-color: var(--green); }
.application-dialog textarea { resize: vertical; min-height: 86px; }
.dialog-submit { width: 100%; margin-top: 4px; }
.form-status { min-height: 20px; margin: 0; color: var(--green); font-size: 12px; line-height: 1.5; }

[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 600ms ease, transform 600ms ease; }
[data-reveal].is-visible { opacity: 1; transform: none; }

@media (max-width: 1040px) {
  .site-header { grid-template-columns: 1fr auto; }
  .site-nav { position: fixed; inset: 72px 0 auto; display: none; align-items: stretch; padding: 18px 24px 24px; background: var(--black); border-bottom: 1px solid var(--line-dark); }
  .site-nav.open { display: grid; }
  .site-nav a { min-height: 44px; display: flex; align-items: center; border-bottom: 1px solid var(--line-dark); }
  .header-cta { display: none; }
  .nav-toggle { display: grid; place-items: center; }
  .hero { grid-template-columns: 1fr; max-height: none; min-height: auto; padding-top: 142px; }
  .hero-content { max-width: 850px; }
  .runtime-window { width: min(620px, 100%); justify-self: end; }
  .promise-rail { grid-template-columns: repeat(2, 1fr); }
  .promise-rail article:nth-child(2) { border-right: 0; }
  .project-row { grid-template-columns: 1fr; }
  .runtime-map, .retrieval-visual, .agent-constellation { min-height: 350px; }
  .track-list article { grid-template-columns: 58px 210px 1fr; }
  .track-list b { display: none; }
  .journey { grid-template-columns: 1fr; gap: 50px; }
  .journey-copy { position: static; }
  .support-grid { grid-template-columns: repeat(2, 1fr); }
  footer { grid-template-columns: 1fr auto; }
  footer p { display: none; }
}

@media (max-width: 720px) {
  .site-header { height: 64px; padding: 0 18px; }
  .brand-mark { width: 34px; height: 34px; }
  .brand-name { font-size: 14px; }
  .site-nav { inset-block-start: 64px; }
  .hero { padding: 118px 20px 52px; gap: 38px; }
  .hero-grid { inset-block-start: 64px; }
  .hero h1 { font-size: 46px; }
  .hero-lead { font-size: 16px; line-height: 1.7; }
  .hero-actions { display: grid; }
  .hero-facts { grid-template-columns: repeat(2, 1fr); margin-top: 34px; }
  .runtime-body { min-height: 260px; padding: 14px; }
  .runtime-body p { grid-template-columns: 64px 52px 1fr; gap: 6px; font-size: 10px; }
  .runtime-foot { gap: 12px; }
  .section-light, .section-dark, .section-coral, .journey { padding: 78px 20px; }
  .section-intro h2, .journey h2, .fit h2 { font-size: 36px; }
  .section-intro > p:last-child, .journey-copy > p:last-child, .fit-copy > p:last-child { font-size: 15px; }
  .promise-rail { grid-template-columns: 1fr; margin-top: 44px; }
  .promise-rail article, .promise-rail article + article { min-height: 190px; padding: 24px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .promise-rail h3 { margin-top: 40px; }
  .project-row { min-height: 0; padding: 34px 24px 24px; gap: 34px; }
  .project-copy { grid-template-columns: 1fr; gap: 12px; }
  .project-copy h3 { font-size: 28px; }
  .project-copy ul { display: grid; grid-template-columns: 1fr; }
  .runtime-map, .retrieval-visual, .agent-constellation { min-height: 300px; }
  .map-cluster { grid-template-columns: repeat(2, 1fr); }
  .map-line.line-b { height: 42px; }
  .track-list article { grid-template-columns: 50px 1fr; gap: 12px; padding: 22px 0; }
  .track-list article > p { grid-column: 1 / -1; margin: 0; }
  .track-icon { width: 42px; height: 42px; }
  .timeline article { grid-template-columns: 52px 1fr; min-height: 0; }
  .timeline b { display: none; }
  .support-grid { grid-template-columns: 1fr; }
  .support-grid article { min-height: 210px; }
  .support-grid h3 { margin-top: 46px; }
  .proof-table > div { grid-template-columns: 1fr; gap: 8px; padding: 20px 0; }
  .proof-table .proof-head { display: none; }
  .fit-layout { grid-template-columns: 1fr; gap: 46px; }
  .application { min-height: 480px; padding: 70px 20px; }
  .application h2 { font-size: 38px; }
  footer { grid-template-columns: 1fr; justify-items: start; padding: 28px 20px; }
  footer > a:last-child { justify-self: start; }
  .application-dialog form { padding: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
}
