:root {
  --ink: #06080b;
  --panel: #10141a;
  --panel-2: #171c23;
  --line: #343b45;
  --paper: #f0f2f3;
  --muted: #9ca4ad;
  --red: #ff4b4f;
  --cyan: #39d4e7;
  --gold: #e7b955;
  --orange: #f17b35;
  --max: 1560px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; overflow-x: hidden; color: var(--paper); background: var(--ink); font-family: "Segoe UI", Arial, sans-serif; letter-spacing: 0; }
a { color: inherit; text-decoration: none; }
button, textarea { font: inherit; }

.topbar {
  position: fixed; z-index: 50; inset: 0 0 auto; height: 70px; display: grid;
  grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 clamp(18px, 4vw, 68px);
  border-bottom: 1px solid rgba(255,255,255,.12); background: rgba(6,8,11,.88); backdrop-filter: blur(16px);
}
.brand { width: fit-content; display: flex; align-items: center; gap: 11px; }
.brand-mark { width: 32px; height: 32px; display: grid; place-items: center; color: var(--ink); background: var(--paper); font-weight: 900; clip-path: polygon(0 0,100% 0,82% 100%,0 100%); }
.topbar nav { display: flex; gap: 34px; color: #b9c0c8; font-size: 11px; font-weight: 800; }
.topbar nav a:hover { color: white; }
.status { justify-self: end; color: #aab1b9; font-size: 10px; font-weight: 800; }
.status i, .console-status i { display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: #4de392; box-shadow: 0 0 12px #4de392; }

.hero { position: relative; min-height: 820px; height: min(940px, 100svh); overflow: hidden; isolation: isolate; }
.hero::before { content: ""; position: absolute; z-index: 3; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(6,8,11,.97) 0%, rgba(6,8,11,.78) 36%, rgba(6,8,11,.08) 70%), linear-gradient(0deg, rgba(6,8,11,.94), transparent 42%); }
.hero-grid { position: absolute; z-index: 4; inset: 0; opacity: .22; pointer-events: none; background-image: linear-gradient(rgba(255,255,255,.13) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.1) 1px, transparent 1px); background-size: 74px 74px; mask-image: linear-gradient(90deg, black, transparent 84%); }
.hero-portraits { position: absolute; inset: 0 0 0 34%; display: grid; grid-template-columns: repeat(7, minmax(190px, 1fr)); transform: skewX(-3deg); transform-origin: bottom; }
.hero-portraits img { width: 100%; height: 100%; object-fit: cover; object-position: center top; border-left: 1px solid rgba(255,255,255,.15); filter: saturate(.85) contrast(1.1); transform: scale(1.07) skewX(3deg); }
.hero-copy { position: absolute; z-index: 6; left: max(26px, calc((100vw - var(--max)) / 2)); top: 48%; width: min(760px, 54vw); transform: translateY(-45%); }
.eyebrow { margin: 0 0 17px; color: var(--cyan); font-size: 11px; font-weight: 900; }
.hero h1 { margin: 0; max-width: 900px; color: white; font-size: clamp(60px, 7vw, 126px); line-height: .84; font-weight: 900; }
.hero h1 span { color: transparent; -webkit-text-stroke: 1.5px var(--paper); }
.hero-copy > p:last-of-type { max-width: 610px; margin: 28px 0; color: #c3c9d0; font-size: 16px; line-height: 1.7; }
.hero-actions { display: flex; gap: 11px; flex-wrap: wrap; }
.button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; padding: 0 24px; border: 1px solid transparent; border-radius: 2px; color: inherit; font-size: 11px; font-weight: 900; text-transform: uppercase; cursor: pointer; transition: transform .2s ease; }
.button:hover { transform: translateY(-2px); }
.button.primary { color: #08090b; background: var(--red); }
.button.secondary { color: var(--paper); border-color: #747c86; background: rgba(6,8,11,.55); }
.hero-number { position: absolute; z-index: 6; right: 24px; top: 92px; writing-mode: vertical-rl; color: #a5adb5; font-size: 10px; }
.hero-rail { position: absolute; z-index: 6; left: max(26px, calc((100vw - var(--max)) / 2)); right: 28px; bottom: 26px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; }
.hero-rail span { padding: 12px 14px; border-top: 1px solid #6b727b; color: #b0b7bf; font-size: 9px; font-weight: 800; }
.hero-rail b { display: none; }

.signal-strip { min-height: 56px; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: clamp(10px, 2.2vw, 35px); padding: 12px 18px; border-block: 1px solid var(--line); background: #10141a; color: #aeb5bd; font-size: 9px; font-weight: 900; }
.signal-strip i { width: 5px; height: 5px; background: var(--red); transform: rotate(45deg); }
.signal-strip strong { color: white; }

.section { max-width: var(--max); margin: 0 auto; padding: 120px clamp(22px, 5vw, 80px); }
.section-heading { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: end; margin-bottom: 70px; }
.section-heading h2, .governance-copy h2 { margin: 0; color: white; font-size: clamp(44px, 5vw, 82px); line-height: .95; }
.section-heading > p { max-width: 570px; margin: 0; color: var(--muted); line-height: 1.75; }

.network-section { max-width: none; background: #0b0e12; }
.network-section > * { max-width: calc(var(--max) - 160px); margin-left: auto; margin-right: auto; }
.network-map { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.source-node, .core-node { position: relative; min-height: 190px; padding: 25px; border: 1px solid var(--line); background: var(--panel); }
.source-node span, .core-node span { color: var(--muted); font-size: 9px; font-weight: 900; }
.source-node h3, .core-node h3 { margin: 16px 0 9px; color: white; font-size: 30px; }
.source-node p, .core-node p { margin: 0; color: #aab2ba; font-size: 12px; line-height: 1.6; }
.source-node b { position: absolute; left: 25px; bottom: 20px; font-size: 9px; }
.a-node { box-shadow: inset 0 3px #e6e8ea; }
.b-node { box-shadow: inset 0 3px var(--cyan); }
.c-node { box-shadow: inset 0 3px var(--gold); }
.network-lines { position: relative; grid-column: 1/-1; justify-self: center; width: 67%; height: 54px; border-left: 1px solid var(--line); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.network-lines i:nth-child(2) { position: absolute; left: 50%; width: 1px; height: 54px; background: var(--line); }
.core-node { grid-column: 1/-1; justify-self: center; width: min(100%, 500px); min-height: 155px; border-color: var(--red); box-shadow: inset 5px 0 var(--red); }
.downlink { grid-column: 1/-1; justify-self: center; width: 1px; height: 50px; background: var(--line); }
.venture-chain { grid-column: 1/-1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.venture-chain div { min-height: 130px; padding: 20px; border-top: 2px solid var(--orange); background: var(--panel-2); }
.venture-chain span { display: block; color: var(--red); font-size: 9px; font-weight: 900; }
.venture-chain strong { display: block; margin: 12px 0 8px; font-size: 15px; }
.venture-chain small { color: var(--muted); }

.agents-section { padding-bottom: 90px; }
.agent-selector { display: flex; overflow-x: auto; border-bottom: 1px solid var(--line); }
.agent-tab { flex: 1 0 135px; min-height: 54px; padding: 0 14px; border: 0; border-top: 2px solid transparent; color: #858e98; background: transparent; font-size: 9px; font-weight: 900; cursor: pointer; }
.agent-tab.active { color: white; border-color: var(--red); background: var(--panel); }
.agent-stage { min-height: 660px; display: grid; grid-template-columns: minmax(350px, .9fr) 1.1fr; background: var(--panel); }
.agent-image { position: relative; overflow: hidden; min-height: 660px; }
.agent-image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 65%, var(--panel)); pointer-events: none; }
.agent-image img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.agent-copy { position: relative; align-self: center; padding: clamp(38px, 6vw, 90px); overflow: hidden; }
.agent-code { color: var(--red); font-size: 10px; font-weight: 900; }
.agent-copy h3 { position: relative; z-index: 2; margin: 14px 0 20px; max-width: 720px; color: white; font-size: clamp(38px, 4.6vw, 72px); line-height: .95; }
.agent-mission { position: relative; z-index: 2; max-width: 650px; color: #b3bbc3; line-height: 1.7; }
.agent-copy dl { position: relative; z-index: 2; margin-top: 35px; }
.agent-copy dl div { display: grid; grid-template-columns: 115px 1fr; gap: 20px; padding: 15px 0; border-top: 1px solid var(--line); }
.agent-copy dt { color: var(--muted); font-size: 9px; font-weight: 900; text-transform: uppercase; }
.agent-copy dd { margin: 0; color: #d2d7dc; font-size: 12px; line-height: 1.55; }
.agent-index { position: absolute; right: 20px; bottom: -35px; color: rgba(255,255,255,.035); font-size: 210px; font-weight: 900; }

.forge-section { max-width: none; color: var(--ink); background: var(--paper); }
.forge-section > * { max-width: calc(var(--max) - 160px); margin-left: auto; margin-right: auto; }
.light-heading h2 { color: var(--ink); }
.light-heading > p { color: #606870; }
.forge-console { border: 1px solid #848b92; background: #f8f9fa; box-shadow: 12px 12px 0 #cfd3d7; }
.console-head { min-height: 48px; display: flex; align-items: center; justify-content: space-between; padding: 0 18px; color: var(--paper); background: var(--ink); font-size: 9px; font-weight: 900; }
.console-status { color: #aeb5bc; }
#opportunity-form { padding: 28px; border-bottom: 1px solid #b9bec4; }
#opportunity-form label { display: block; margin-bottom: 10px; font-size: 10px; font-weight: 900; text-transform: uppercase; }
.input-row { display: grid; grid-template-columns: 1fr auto; gap: 12px; }
textarea { width: 100%; min-height: 96px; resize: vertical; padding: 16px; border: 1px solid #8c939a; border-radius: 0; color: var(--ink); background: white; line-height: 1.55; outline: none; }
textarea:focus { border-color: var(--red); box-shadow: 0 0 0 2px rgba(255,75,79,.15); }
.input-row .button { align-self: stretch; min-width: 150px; }
.sample-row { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px 28px; border-bottom: 1px solid #c2c7cc; }
.sample-row button { padding: 8px 10px; border: 1px solid #a0a7ae; color: #4d555d; background: transparent; font-size: 8px; font-weight: 900; cursor: pointer; }
.sample-row button:hover { color: var(--ink); border-color: var(--ink); }
.forge-output { min-height: 280px; padding: 28px; }
.empty-state { height: 210px; display: grid; place-items: center; align-content: center; border: 1px dashed #a3a9b0; color: #727a82; text-align: center; }
.empty-state span { font-size: 10px; font-weight: 900; }
.empty-state p { margin: 10px 0 0; font-size: 12px; }
.forge-result { display: grid; grid-template-columns: .75fr 1.25fr; gap: 25px; }
.result-summary { padding: 24px; color: var(--paper); background: var(--ink); box-shadow: inset 4px 0 var(--red); }
.result-label, .result-grid article span { color: #8f979f; font-size: 8px; font-weight: 900; }
.result-summary h3 { margin: 12px 0; font-size: 32px; }
.result-summary p { color: #a8b0b8; font-size: 12px; }
.source-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.source-tags span { padding: 6px 8px; color: #b9ecf2; background: #163039; font-size: 8px; font-weight: 900; }
.result-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.result-grid article { padding: 17px; border: 1px solid #b2b8be; background: white; }
.result-grid article strong { display: block; margin: 8px 0; font-size: 13px; }
.result-grid article p { margin: 0; color: #5b636b; font-size: 11px; line-height: 1.55; }
.human-warning { grid-column: 1/-1; padding: 14px 16px; border: 1px solid #d2ac55; color: #4e3909; background: #fff1cf; font-size: 10px; font-weight: 800; }

.governance-section { display: grid; grid-template-columns: .85fr 1.15fr; gap: 80px; }
.governance-copy { align-self: start; position: sticky; top: 110px; }
.governance-copy > p:last-child { max-width: 520px; color: var(--muted); line-height: 1.7; }
.gate-list article { min-height: 180px; display: grid; grid-template-columns: 130px 180px 1fr; gap: 24px; align-items: start; padding: 28px 0; border-top: 1px solid var(--line); }
.gate-list span { color: var(--red); font-size: 9px; font-weight: 900; }
.gate-list strong { font-size: 20px; }
.gate-list p { margin: 0; color: var(--muted); line-height: 1.65; }

footer { min-height: 145px; display: grid; grid-template-columns: 1fr 1fr auto; gap: 24px; align-items: center; padding: 28px clamp(22px, 5vw, 80px); border-top: 1px solid var(--line); color: #8e969e; background: #040507; font-size: 10px; }
footer div { display: flex; align-items: center; gap: 15px; }
footer strong { color: white; font-size: 24px; }
footer a { color: white; font-weight: 900; }

@media (max-width: 1000px) {
  .topbar { grid-template-columns: 1fr auto; }
  .topbar nav { display: none; }
  .hero-copy { width: min(740px, 72vw); }
  .hero-portraits { left: 20%; opacity: .75; }
  .section-heading, .governance-section { grid-template-columns: 1fr; gap: 28px; }
  .venture-chain { grid-template-columns: 1fr 1fr; }
  .agent-stage { grid-template-columns: .8fr 1.2fr; }
  .governance-copy { position: static; }
}

@media (max-width: 720px) {
  .topbar { height: 60px; padding: 0 16px; }
  .status { width: 8px; overflow: hidden; white-space: nowrap; font-size: 0; }
  .status i { margin: 0; }
  .hero { min-height: 790px; height: 100svh; }
  .hero::before { background: linear-gradient(0deg, rgba(6,8,11,.98) 0%, rgba(6,8,11,.58) 68%, rgba(6,8,11,.12)); }
  .hero-portraits { inset: 60px -120% 230px -25%; opacity: .82; }
  .hero-copy { left: 20px; right: 30px; top: auto; bottom: 78px; width: auto; transform: none; }
  .hero h1 { max-width: 100%; font-size: clamp(36px, 9.5vw, 46px); line-height: .92; overflow-wrap: anywhere; }
  .hero-copy > p:last-of-type { margin: 19px 0; font-size: 13px; }
  .hero-actions { display: grid; grid-template-columns: 1fr; }
  .hero-actions .button { width: 100%; }
  .hero-rail { left: 20px; right: 20px; bottom: 17px; grid-template-columns: repeat(4, 1fr); }
  .hero-rail span { padding: 8px 4px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 7px; }
  .signal-strip { gap: 9px; }
  .signal-strip span:nth-of-type(n+4), .signal-strip i:nth-of-type(n+4) { display: none; }
  .section { padding: 80px 20px; }
  .section-heading { margin-bottom: 42px; }
  .section-heading h2, .governance-copy h2 { font-size: 43px; }
  .network-section > *, .forge-section > * { max-width: none; }
  .network-map { grid-template-columns: 1fr; }
  .network-lines { display: none; }
  .core-node, .downlink, .venture-chain { grid-column: 1; }
  .core-node { width: 100%; margin-top: 8px; }
  .venture-chain { grid-template-columns: 1fr 1fr; }
  .agent-stage { min-height: 0; grid-template-columns: 1fr; }
  .agent-image { min-height: 500px; max-height: 550px; }
  .agent-image::after { background: linear-gradient(0deg, var(--panel), transparent 35%); }
  .agent-copy { padding: 32px 22px 46px; }
  .agent-copy dl div { grid-template-columns: 1fr; gap: 6px; }
  .agent-index { font-size: 150px; }
  .input-row { grid-template-columns: 1fr; }
  .input-row .button { min-height: 48px; }
  #opportunity-form, .sample-row, .forge-output { padding-left: 16px; padding-right: 16px; }
  .forge-result, .result-grid { grid-template-columns: 1fr; }
  .human-warning { grid-column: 1; }
  .gate-list article { grid-template-columns: 90px 1fr; }
  .gate-list article p { grid-column: 2; }
  footer { grid-template-columns: 1fr; align-items: start; }
}

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