/* Marduk marketing site. Brand palette from platform-docs/logo/README.md. */
:root {
  --obsidian: #0A0C12;
  --panel: #121826;
  --panel-2: #161D2E;
  --platinum: #EAEDF2;
  --steel: #7E8CA6;
  --steel-2: #A3AEC4;
  --indigo: #5E78F0;
  --indigo-hi: #9DB0FF;
  --violet: #A78BFA;
  --teal: #5EEAD4;
  --amber: #FBBF5E;
  --rose: #F87171;
  --line: rgba(157, 176, 255, 0.12);
  --line-2: rgba(157, 176, 255, 0.22);
  --glass: rgba(18, 24, 38, 0.62);
  --radius: 18px;
  --wrap: 1200px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --f-display: "Manrope", "Inter", system-ui, sans-serif;
  --f-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--obsidian);
  color: var(--platinum);
  font: 400 16px/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; }
h1, h2, h3, h4 { font-family: var(--f-display); margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
::selection { background: rgba(94, 120, 240, .45); }
:focus-visible { outline: 2px solid var(--indigo-hi); outline-offset: 3px; border-radius: 6px; }

/* ---------- ambient background ---------- */
.aurora { position: fixed; inset: 0; z-index: -2; overflow: hidden; pointer-events: none; }
.aurora span {
  position: absolute; border-radius: 50%; filter: blur(90px); opacity: .32;
  animation: drift 26s var(--ease) infinite alternate;
}
.aurora span:nth-child(1) { width: 720px; height: 720px; left: -180px; top: -260px; background: radial-gradient(circle, rgba(94,120,240,.55), transparent 65%); }
.aurora span:nth-child(2) { width: 620px; height: 620px; right: -200px; top: 120px; background: radial-gradient(circle, rgba(167,139,250,.35), transparent 65%); animation-delay: -8s; }
.aurora span:nth-child(3) { width: 520px; height: 520px; left: 30%; top: 70vh; background: radial-gradient(circle, rgba(94,234,212,.16), transparent 65%); animation-delay: -15s; }
@keyframes drift {
  0% { transform: translate3d(0,0,0) scale(1); }
  100% { transform: translate3d(60px, 40px, 0) scale(1.15); }
}
.silk {
  position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none;
  animation: silk-in 2.4s var(--ease) both;
}
@keyframes silk-in { from { opacity: 0; } }
.grain {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .06;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 20%, transparent 75%);
  opacity: .5;
}

/* reading veil: a soft obsidian halo behind text blocks so the silk never fights the copy */
.hero-copy, .section-head, .agent-copy, .stack-strip, .section-kicker { position: relative; isolation: isolate; }
.hero-copy::before, .section-head::before, .agent-copy::before, .section-kicker::before {
  content: ""; position: absolute; inset: -70px -90px; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, rgba(10,12,18,.82), rgba(10,12,18,.55) 55%, transparent);
}
@media (max-width: 720px) {
  .silk { opacity: .7; }
  .hero-copy::before, .section-head::before, .agent-copy::before { inset: -40px -16px; }
}

/* ---------- shared atoms ---------- */
.glass {
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow: 0 30px 80px -30px rgba(0,0,0,.7), inset 0 1px 0 rgba(255,255,255,.04);
}
.grad {
  background: linear-gradient(100deg, var(--indigo-hi) 0%, var(--indigo) 40%, var(--violet) 75%, var(--indigo-hi) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: sheen 8s linear infinite;
}
@keyframes sheen { to { background-position: 200% center; } }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 600 12px/1 var(--f-body); letter-spacing: .16em; text-transform: uppercase; color: var(--indigo-hi);
}
.pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--indigo); box-shadow: 0 0 0 0 rgba(94,120,240,.6); animation: pulse 2s infinite; display: inline-block; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(94,120,240,0); } 100% { box-shadow: 0 0 0 0 rgba(94,120,240,0); } }
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px;
  font: 500 11px/1.2 var(--f-mono); color: var(--steel-2); border: 1px solid var(--line-2); background: rgba(94,120,240,.08);
}
.chip-ok { color: var(--teal); border-color: rgba(94,234,212,.35); background: rgba(94,234,212,.08); }
.chip-live { color: var(--indigo-hi); }
.chip-live .pulse { width: 6px; height: 6px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px; border-radius: 12px; font: 600 14px/1 var(--f-body);
  transition: transform .25s var(--ease), background .25s, border-color .25s, box-shadow .25s;
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn-lg { padding: 15px 24px; font-size: 15px; border-radius: 14px; }
.btn-primary {
  color: #fff;
  background: linear-gradient(180deg, #6E86F5, var(--indigo));
  box-shadow: 0 10px 30px -10px rgba(94,120,240,.8), inset 0 1px 0 rgba(255,255,255,.25);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 16px 40px -12px rgba(94,120,240,.95), inset 0 1px 0 rgba(255,255,255,.3); }
.btn-ghost { color: var(--platinum); border: 1px solid var(--line-2); background: rgba(255,255,255,.02); }
.btn-ghost:hover { border-color: rgba(157,176,255,.45); background: rgba(94,120,240,.08); }
.btn[aria-disabled="true"] { pointer-events: none; opacity: .75; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- nav ---------- */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 50; transition: background .3s, border-color .3s, backdrop-filter .3s; border-bottom: 1px solid transparent; }
.nav.scrolled { background: rgba(10,12,18,.72); backdrop-filter: blur(16px) saturate(150%); -webkit-backdrop-filter: blur(16px) saturate(150%); border-bottom-color: var(--line); }
.nav-inner { max-width: var(--wrap); margin: 0 auto; padding: 14px 24px; display: flex; align-items: center; gap: 32px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--platinum); }
.brand-iris { width: 30px; height: 27px; transition: transform .8s var(--ease); transform-origin: 50% 64%; } /* pivot on the core dot (50,50) of the 14.7 10 70.6 62.5 box */
.brand:hover .brand-iris { transform: rotate(120deg); }
.brand-word { width: 104px; height: 17px; }
.menu { display: flex; align-items: center; gap: 4px; margin-right: auto; }
.menu-link {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 10px;
  background: none; border: 0; color: var(--steel-2); font: 500 14px/1 var(--f-body); cursor: pointer; transition: color .2s, background .2s;
}
.menu-link:hover, .menu-item.open .menu-link { color: var(--platinum); background: rgba(255,255,255,.04); }
.caret { width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform .25s; }
.menu-item { position: relative; }
.menu-item.open .caret { transform: rotate(-135deg) translateY(-1px); }
.mega {
  position: absolute; top: calc(100% + 14px); left: -20px; width: 820px;
  display: grid; grid-template-columns: 1fr 1fr 1.05fr; gap: 8px; padding: 14px;
  background: rgba(16,21,33,.94); border: 1px solid var(--line-2); border-radius: 20px;
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 40px 100px -30px rgba(0,0,0,.85);
  opacity: 0; visibility: hidden; transform: translateY(-8px) scale(.98); transform-origin: top left;
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
}
.menu-item.open .mega { opacity: 1; visibility: visible; transform: none; }
.mega-label { font: 600 11px/1 var(--f-body); letter-spacing: .14em; text-transform: uppercase; color: var(--steel); padding: 10px 12px 8px; }
.mega-col a { display: block; padding: 10px 12px; border-radius: 12px; transition: background .2s; }
.mega-col a:hover { background: rgba(94,120,240,.1); }
.mega-col b { display: block; font: 600 14px/1.3 var(--f-body); color: var(--platinum); }
.mega-col span { display: block; font-size: 13px; color: var(--steel); margin-top: 3px; line-height: 1.4; }
.mega-feature {
  display: flex; flex-direction: column; gap: 6px; padding: 20px; border-radius: 14px;
  background: radial-gradient(120% 100% at 100% 0%, rgba(94,120,240,.35), transparent 60%), var(--panel);
  border: 1px solid var(--line-2);
}
.mf-iris { width: 40px; height: 36px; margin-bottom: 8px; }
.mega-feature b { font: 700 17px/1.3 var(--f-display); }
.mega-feature span { font-size: 13px; color: var(--steel-2); line-height: 1.5; }
.mega-feature em { margin-top: auto; padding-top: 12px; display: inline-flex; align-items: center; gap: 6px; font: 600 13px/1 var(--f-body); font-style: normal; color: var(--indigo-hi); }
.mega-feature em svg { width: 14px; height: 14px; }
.nav-cta { display: flex; gap: 10px; }
.menu-cta { display: none; }
.burger { display: none; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(255,255,255,.03); cursor: pointer; position: relative; margin-left: auto; }
.burger span { position: absolute; left: 12px; right: 12px; height: 1.5px; background: var(--platinum); transition: transform .3s var(--ease), top .3s; }
.burger span:nth-child(1) { top: 16px; } .burger span:nth-child(2) { top: 24px; }
.nav.menu-open .burger span:nth-child(1) { top: 20px; transform: rotate(45deg); }
.nav.menu-open .burger span:nth-child(2) { top: 20px; transform: rotate(-45deg); }

/* ---------- hero ---------- */
.hero { padding: 150px 0 40px; position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.02fr 1fr; gap: 64px; align-items: center; }
.hero h1 { font-size: clamp(40px, 5.6vw, 72px); line-height: 1.02; font-weight: 800; margin: 22px 0 22px; letter-spacing: -0.035em; }
.lede { font-size: clamp(16px, 1.4vw, 19px); color: var(--steel-2); max-width: 560px; line-height: 1.65; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-points { list-style: none; padding: 0; margin: 30px 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px; }
.hero-points li { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--steel-2); }
.hero-points svg { width: 16px; height: 16px; color: var(--teal); }
.hero-copy .reveal:nth-child(2) { transition-delay: .08s; }
.hero-copy .reveal:nth-child(3) { transition-delay: .16s; }
.hero-copy .reveal:nth-child(4) { transition-delay: .24s; }
.hero-copy .reveal:nth-child(5) { transition-delay: .32s; }

.hero-visual { position: relative; transition-delay: .2s; perspective: 1400px; }
.console { padding: 0; overflow: hidden; transform: rotateY(-6deg) rotateX(3deg); transition: transform 1s var(--ease); }
.hero-visual:hover .console { transform: rotateY(-2deg) rotateX(1deg); }
.console::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  background: conic-gradient(from var(--ang, 0deg), transparent 0 70%, rgba(157,176,255,.9) 80%, transparent 90%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  animation: spin-border 6s linear infinite;
}
@property --ang { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
@keyframes spin-border { to { --ang: 360deg; } }
.console-bar { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.dots { display: flex; gap: 6px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: #2A3245; }
.console-title { font: 500 12px/1 var(--f-mono); color: var(--steel-2); margin-right: auto; }
.stages { list-style: none; margin: 0; padding: 12px; display: grid; gap: 6px; }
.stage {
  display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: 12px; border: 1px solid transparent;
  transition: background .4s, border-color .4s, opacity .4s; opacity: .55;
}
.stage b { display: block; font: 600 14px/1.2 var(--f-body); }
.stage-state { display: block; font: 400 12px/1.3 var(--f-mono); color: var(--steel); margin-top: 3px; }
.stage-ico {
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  font: 600 11px/1 var(--f-mono); color: var(--steel-2); background: var(--panel-2); border: 1px solid var(--line);
  transition: all .4s;
}
.stage-tag { font: 500 11px/1 var(--f-mono); color: var(--steel); padding: 5px 8px; border-radius: 8px; background: rgba(255,255,255,.03); border: 1px solid var(--line); }
.stage.active { opacity: 1; background: rgba(94,120,240,.08); border-color: rgba(94,120,240,.3); }
.stage.active .stage-ico { color: #fff; background: var(--indigo); border-color: var(--indigo); box-shadow: 0 0 24px rgba(94,120,240,.6); }
.stage.active .stage-state { color: var(--indigo-hi); }
.stage.active .stage-state::after { content: ""; display: inline-block; width: 18px; text-align: left; animation: ellipsis 1.2s steps(4) infinite; }
@keyframes ellipsis { 0% { content: ""; } 25% { content: "."; } 50% { content: ".."; } 75% { content: "..."; } }
.stage.done { opacity: 1; }
.stage.done .stage-ico { color: var(--obsidian); background: var(--teal); border-color: var(--teal); }
.stage.done .stage-state { color: var(--teal); }
.term {
  margin: 0; padding: 14px 18px 18px; min-height: 132px; max-height: 132px; overflow: hidden;
  font: 400 12px/1.65 var(--f-mono); color: var(--steel-2); border-top: 1px solid var(--line); background: rgba(5,7,12,.5);
  white-space: pre-wrap;
}
.term .t-ok { color: var(--teal); } .term .t-hi { color: var(--indigo-hi); } .term .t-dim { color: #55607A; } .term .t-warn { color: var(--amber); }
.term .cursor { display: inline-block; width: 7px; height: 14px; background: var(--indigo-hi); vertical-align: -2px; animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.float-card { position: absolute; padding: 12px 16px; display: flex; flex-direction: column; gap: 4px; border-radius: 14px; animation: float 6s ease-in-out infinite; }
.fc-k { font: 600 10px/1 var(--f-body); letter-spacing: .14em; text-transform: uppercase; color: var(--steel); }
.fc-v { font: 500 13px/1.2 var(--f-mono); color: var(--steel-2); }
.fc-v b { color: var(--indigo-hi); font-weight: 600; }
.fc-1 { left: -48px; bottom: -34px; }
.fc-2 { right: -30px; top: -58px; animation-delay: -3s; }
@keyframes float { 50% { transform: translateY(-10px); } }

.stack-strip { margin-top: 90px; display: flex; align-items: center; gap: 28px; padding: 22px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ss-label { flex: none; font-size: 13px; color: var(--steel); max-width: 170px; line-height: 1.4; }
.marquee { overflow: hidden; flex: 1; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 56px; width: max-content; animation: marquee 38s linear infinite; }
.marquee-track span { font: 700 20px/1 var(--f-display); color: #4D5870; letter-spacing: -0.01em; transition: color .3s; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span:hover { color: var(--platinum); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- stats ---------- */
.stats { padding: 110px 0 40px; }
.section-kicker { font: 600 13px/1 var(--f-body); letter-spacing: .16em; text-transform: uppercase; color: var(--steel); text-align: center; margin-bottom: 40px; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; background: rgba(18,24,38,.35); }
.stat { padding: 34px 28px; display: flex; flex-direction: column; gap: 10px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat-n { font: 800 clamp(34px, 3.8vw, 52px)/1 var(--f-display); letter-spacing: -0.03em; background: linear-gradient(180deg, #fff, var(--indigo-hi)); -webkit-background-clip: text; background-clip: text; color: transparent; font-variant-numeric: tabular-nums; }
.stat-l { color: var(--steel); font-size: 14px; line-height: 1.5; }
.stat:nth-child(2) { transition-delay: .08s; } .stat:nth-child(3) { transition-delay: .16s; } .stat:nth-child(4) { transition-delay: .24s; }

/* ---------- section heads ---------- */
section { position: relative; }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 60px; }
.section-head h2 { font-size: clamp(32px, 4vw, 52px); line-height: 1.08; font-weight: 800; margin: 18px 0 18px; }
.section-head p:last-child { color: var(--steel-2); font-size: 17px; line-height: 1.65; }

/* ---------- pipeline flow ---------- */
.pipeline { padding: 120px 0 60px; }
.flow { position: relative; display: grid; grid-template-columns: repeat(7, 1fr); gap: 12px; }
.flow-line { position: absolute; left: 4%; right: 4%; top: 22px; width: 92%; height: 40px; transform: translateY(-50%); overflow: visible; }
.flow-line path { stroke: var(--line-2); stroke-width: 2; fill: none; vector-effect: non-scaling-stroke; }
.flow-line .flow-run { stroke: var(--indigo-hi); stroke-dasharray: 60 940; animation: run 5s linear infinite; filter: drop-shadow(0 0 6px var(--indigo)); }
@keyframes run { from { stroke-dashoffset: 1000; } to { stroke-dashoffset: 0; } }
.flow-step { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding-top: 0; }
.fs-n {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 8px;
  font: 600 13px/1 var(--f-mono); color: var(--indigo-hi); background: var(--obsidian); border: 1px solid var(--line-2);
  box-shadow: 0 0 0 6px var(--obsidian); transition: all .35s var(--ease); position: relative; z-index: 1;
}
.flow-step:hover .fs-n { background: var(--indigo); color: #fff; border-color: var(--indigo); box-shadow: 0 0 0 6px var(--obsidian), 0 0 30px rgba(94,120,240,.7); }
.flow-step b { font: 700 16px/1.2 var(--f-display); }
.flow-step small { font-size: 13px; color: var(--steel); line-height: 1.45; max-width: 150px; }

/* ---------- agents ---------- */
.agents { padding: 60px 0 40px; }
.agent { display: grid; grid-template-columns: 1fr 1.05fr; gap: 80px; align-items: center; padding: 70px 0; }
.agent.flip .agent-copy { order: 2; }
.agent-kicker { display: inline-flex; align-items: center; gap: 10px; font: 600 13px/1 var(--f-body); letter-spacing: .08em; text-transform: uppercase; color: var(--steel-2); }
.kdot { width: 10px; height: 10px; border-radius: 3px; }
.k1 { background: var(--teal); box-shadow: 0 0 14px var(--teal); }
.k2 { background: var(--indigo); box-shadow: 0 0 14px var(--indigo); }
.k3 { background: var(--rose); box-shadow: 0 0 14px var(--rose); }
.k4 { background: var(--amber); box-shadow: 0 0 14px var(--amber); }
.agent h3 { font-size: clamp(28px, 3.2vw, 42px); line-height: 1.1; font-weight: 800; margin: 18px 0 18px; }
.agent-copy > p:not(.agent-kicker) { color: var(--steel-2); font-size: 17px; line-height: 1.7; }
.tags { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { font: 500 12px/1 var(--f-body); color: var(--steel-2); padding: 8px 12px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(255,255,255,.02); }
.agent-visual { transition-delay: .12s; }
.agent > *, .hero-grid > * { min-width: 0; }
.rg i { min-width: 0; }
.mock { padding: 22px; transform-style: preserve-3d; transition: transform .5s var(--ease); will-change: transform; }
.mock::after {
  content: "Illustrative example"; display: block; margin-top: 16px;
  font: 500 10px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: #55607A;
}
.mock-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.mock-head b { font: 600 15px/1 var(--f-display); }
.mock-list { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 8px; }
.mock-list li { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 11px 12px; border-radius: 10px; background: rgba(255,255,255,.025); border: 1px solid var(--line); font-size: 13px; color: var(--steel-2); }
.mock-list em { font: 500 11px/1 var(--f-mono); color: var(--steel); font-style: normal; }
.sev { font: 600 10px/1 var(--f-mono); padding: 5px 7px; border-radius: 6px; text-transform: uppercase; }
.sev-h { color: var(--rose); background: rgba(248,113,113,.12); }
.sev-m { color: var(--amber); background: rgba(251,191,94,.12); }
.sev-l { color: var(--teal); background: rgba(94,234,212,.1); }

.risk-grid { display: grid; grid-template-columns: 22px 1fr; grid-template-rows: 1fr 22px; gap: 6px; }
.rg-axis-y { writing-mode: vertical-rl; transform: rotate(180deg); font: 500 10px/1 var(--f-mono); color: var(--steel); text-align: center; letter-spacing: .1em; text-transform: uppercase; }
.rg-axis-x { grid-column: 2; font: 500 10px/1 var(--f-mono); color: var(--steel); text-align: center; letter-spacing: .1em; text-transform: uppercase; align-self: center; }
.rg { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; }
.rg i { aspect-ratio: 2.1; border-radius: 7px; position: relative; display: grid; place-items: center; transition: transform .3s var(--ease); }
.rg i:hover { transform: scale(1.06); }
.rg .h0 { background: rgba(94,234,212,.08); }
.rg .h1 { background: rgba(94,234,212,.16); }
.rg .h2 { background: rgba(251,191,94,.16); }
.rg .h3 { background: rgba(251,191,94,.28); }
.rg .h4 { background: rgba(248,113,113,.32); }
.rg i[data-n]::after { content: "R-0" attr(data-n); font: 600 10px/1 var(--f-mono); color: var(--platinum); padding: 4px 6px; border-radius: 6px; background: rgba(10,12,18,.65); }
.rg i.hot { box-shadow: 0 0 0 1px rgba(248,113,113,.6), 0 0 24px rgba(248,113,113,.35); animation: throb 2.6s ease-in-out infinite; }
@keyframes throb { 50% { box-shadow: 0 0 0 1px rgba(248,113,113,.9), 0 0 34px rgba(248,113,113,.5); } }

.verdict { display: grid; gap: 2px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.v-row { display: flex; justify-content: space-between; padding: 12px 14px; font: 400 13px/1 var(--f-mono); color: var(--steel-2); background: rgba(255,255,255,.02); }
.v-row .ok { color: var(--teal); }
.v-row .ok::before { content: "● "; font-size: 9px; vertical-align: 1px; }
.director-note { margin: 16px 0 0; padding: 14px 16px; border-left: 2px solid var(--indigo); background: rgba(94,120,240,.07); border-radius: 0 10px 10px 0; font-size: 14px; color: var(--platinum); font-style: italic; line-height: 1.55; }

.bars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; height: 200px; align-items: end; padding: 30px 6px 0; }
.bar { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; }
.bar::before { content: ""; width: 100%; height: 0; border-radius: 10px 10px 4px 4px; background: linear-gradient(180deg, var(--rose), rgba(248,113,113,.25)); transition: height 1.2s var(--ease); }
.bar:nth-child(2)::before { background: linear-gradient(180deg, var(--amber), rgba(251,191,94,.22)); transition-delay: .12s; }
.bar:nth-child(3)::before { background: linear-gradient(180deg, var(--indigo-hi), rgba(94,120,240,.22)); transition-delay: .24s; }
.bar.zero::before { background: var(--teal); transition-delay: .36s; }
.in .bar::before { height: var(--h); }
.bar span { position: absolute; bottom: calc(var(--h) + 8px); font: 700 18px/1 var(--f-display); opacity: 0; transition: opacity .6s .9s, bottom 1.2s var(--ease); }
.in .bar span { opacity: 1; }
.bar.zero span { color: var(--teal); }
.bar em { position: absolute; bottom: -24px; font: 500 11px/1 var(--f-mono); color: var(--steel); font-style: normal; }
.agent#hardening .mock-list { margin-top: 40px; }

.cone { width: 100%; height: auto; overflow: visible; }
.cone-fill { transform-origin: 20px 93px; transform: scaleY(0); transition: transform 1.4s var(--ease); }
.in .cone-fill { transform: scaleY(1); }
.cone-mid { stroke: var(--indigo-hi); stroke-width: 2; stroke-dasharray: 4 6; fill: none; }
.cone-ticks line { stroke: var(--line-2); stroke-width: 1; }
.cone-labels text { fill: var(--steel); font: 500 11px var(--f-mono); }

/* ---------- memory graph ---------- */
.memory { padding: 120px 0 60px; }
.graph { max-width: 960px; margin: 0 auto; }
.graph-svg { width: 100%; height: auto; overflow: visible; }
.graph-svg .edges path { stroke: var(--line-2); stroke-width: 1.5; fill: none; }
.graph-svg .edges-run path { stroke: var(--indigo-hi); stroke-width: 2; fill: none; stroke-dasharray: 14 400; animation: edge 3.6s linear infinite; filter: drop-shadow(0 0 4px var(--indigo)); }
.graph-svg .edges-run path:nth-child(2) { animation-delay: -.9s; }
.graph-svg .edges-run path:nth-child(3) { animation-delay: -1.8s; }
.graph-svg .edges-run path:nth-child(4) { animation-delay: -2.7s; }
.graph-svg .edges-run path:nth-child(5) { animation-delay: -.4s; }
.graph-svg .edges-run path:nth-child(6) { animation-delay: -1.6s; }
.graph-svg .edges-run path:nth-child(7) { animation-delay: -2.4s; }
@keyframes edge { from { stroke-dashoffset: 414; } to { stroke-dashoffset: 0; } }
.graph-svg rect { fill: var(--panel); stroke: var(--line-2); }
.graph-svg .nodes-out rect { stroke: rgba(94,120,240,.45); }
.graph-svg text { fill: var(--platinum); font: 600 14px var(--f-body); text-anchor: middle; }
.graph-svg .core circle { fill: var(--panel); stroke: var(--indigo); stroke-width: 1.5; }
.graph-svg .core .core-dot { fill: var(--indigo); stroke: none; }
.graph-svg .core text { font: 600 12px var(--f-mono); fill: var(--indigo-hi); }
.core-glow { animation: breathe 4s ease-in-out infinite; transform-origin: 450px 180px; }
@keyframes breathe { 50% { transform: scale(1.12); opacity: .7; } }

/* ---------- autonomy ---------- */
.autonomy { padding: 120px 0 60px; }
.levels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.level {
  position: relative; padding: 30px; border-radius: 22px; border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(22,29,46,.75), rgba(18,24,38,.35));
  transition-delay: calc(var(--i) * .1s);
}
.level:hover { border-color: var(--line-2); }
.lv-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 26px; }
.lv-n { font: 800 44px/1 var(--f-display); color: transparent; -webkit-text-stroke: 1px rgba(157,176,255,.5); }
.lv-badge { font: 600 11px/1 var(--f-mono); padding: 6px 10px; border-radius: 999px; color: var(--teal); background: rgba(94,234,212,.1); border: 1px solid rgba(94,234,212,.3); }
.level:nth-child(2) .lv-badge { color: var(--indigo-hi); background: rgba(94,120,240,.1); border-color: rgba(94,120,240,.35); }
.lv-hot { color: var(--amber) !important; background: rgba(251,191,94,.1) !important; border-color: rgba(251,191,94,.35) !important; }
.level h4 { font-size: 21px; font-weight: 700; margin-bottom: 10px; }
.level p { color: var(--steel-2); font-size: 15px; line-height: 1.65; min-height: 75px; }
.lv-meter { margin: 26px 0 10px; height: 6px; border-radius: 6px; background: rgba(255,255,255,.05); overflow: hidden; }
.lv-meter span { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--indigo), var(--indigo-hi)); transition: width 1.3s var(--ease) .3s; }
.level.in .lv-meter span { width: var(--w); }
.level small { font: 500 12px/1 var(--f-mono); color: var(--steel); }

/* ---------- governance ---------- */
.governance { padding: 120px 0 60px; }
.gov-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.gov {
  position: relative; padding: 26px; border-radius: 18px; border: 1px solid var(--line); background: rgba(18,24,38,.5); overflow: hidden;
  transition: border-color .3s, transform .4s var(--ease);
}
.gov:hover { transform: translateY(-4px); border-color: var(--line-2); }
.spot::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 50%), rgba(94,120,240,.2), transparent 60%);
}
.spot:hover::before { opacity: 1; }
.gov-ico { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 20px; background: rgba(94,120,240,.1); border: 1px solid rgba(94,120,240,.3); }
.gov-ico svg { width: 20px; height: 20px; fill: none; stroke: var(--indigo-hi); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.gov h4 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.gov p { font-size: 14px; color: var(--steel); line-height: 1.6; }
.gov:nth-child(4n+2) { transition-delay: .06s; } .gov:nth-child(4n+3) { transition-delay: .12s; } .gov:nth-child(4n+4) { transition-delay: .18s; }
.standards { margin-top: 50px; display: flex; align-items: center; gap: 24px; flex-wrap: wrap; justify-content: center; }
.st-label { font: 600 12px/1 var(--f-body); letter-spacing: .14em; text-transform: uppercase; color: var(--steel); }
.standards ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.standards li { font: 600 12px/1 var(--f-mono); color: var(--steel-2); padding: 9px 12px; border-radius: 10px; border: 1px solid var(--line); background: rgba(255,255,255,.02); }

/* ---------- proof ---------- */
.proof { padding: 120px 0 60px; }
.proof-card { display: grid; grid-template-columns: 300px 1fr; gap: 56px; align-items: center; padding: 56px; position: relative; overflow: hidden; }
.proof-card::after { content: ""; position: absolute; width: 600px; height: 600px; left: -200px; top: -200px; background: radial-gradient(circle, rgba(94,120,240,.25), transparent 60%); pointer-events: none; }
.proof-iris { position: relative; z-index: 1; display: grid; place-items: center; aspect-ratio: 1; border-radius: 50%; border: 1px solid var(--line-2); background: radial-gradient(circle, rgba(94,120,240,.15), transparent 70%); }
.proof-iris::before, .proof-iris::after { content: ""; position: absolute; inset: 14%; border-radius: 50%; border: 1px dashed rgba(157,176,255,.22); animation: rot 40s linear infinite; }
.proof-iris::after { inset: 28%; animation-direction: reverse; animation-duration: 28s; }
.iris-spin { width: 52%; height: auto; overflow: visible; }
.iris-spin .blades { transform-origin: 50px 50px; animation: rot 14s linear infinite; }
@keyframes rot { to { transform: rotate(360deg); } }
.proof-copy { position: relative; z-index: 1; }
.proof blockquote { margin: 18px 0 20px; font: 700 clamp(26px, 3vw, 38px)/1.2 var(--f-display); letter-spacing: -0.02em; }
.proof-copy > p:not(.eyebrow) { color: var(--steel-2); font-size: 16px; line-height: 1.7; max-width: 640px; }
.proof-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.proof-pills span { font: 500 13px/1 var(--f-body); padding: 9px 14px; border-radius: 999px; color: var(--indigo-hi); background: rgba(94,120,240,.1); border: 1px solid rgba(94,120,240,.3); }

/* ---------- CTA ---------- */
.cta { padding: 100px 0 120px; }
.cta-card {
  position: relative; text-align: center; padding: 90px 32px; border-radius: 30px; overflow: hidden;
  border: 1px solid var(--line-2);
  background: radial-gradient(80% 120% at 50% 0%, rgba(94,120,240,.32), transparent 60%), linear-gradient(180deg, rgba(22,29,46,.9), rgba(10,12,18,.9));
}
.cta-card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 40px 40px; mask-image: radial-gradient(ellipse at center, #000, transparent 70%); -webkit-mask-image: radial-gradient(ellipse at center, #000, transparent 70%);
}
.cta-card > * { position: relative; }
.cta h2 { font-size: clamp(34px, 4.6vw, 60px); line-height: 1.05; font-weight: 800; }
.cta p { color: var(--steel-2); font-size: 17px; max-width: 560px; margin: 22px auto 0; line-height: 1.65; }
.cta .hero-ctas { justify-content: center; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 64px 0 34px; background: rgba(5,7,12,.6); }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.foot-brand p { color: var(--steel); font-size: 14px; margin-top: 16px; max-width: 300px; line-height: 1.6; }
.foot-col { display: flex; flex-direction: column; gap: 10px; }
.foot-col p { font: 600 12px/1 var(--f-body); letter-spacing: .14em; text-transform: uppercase; color: var(--steel); margin-bottom: 6px; }
.foot-col a { font-size: 14px; color: var(--steel-2); transition: color .2s; }
.foot-col a:hover { color: var(--platinum); }
.foot-base { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; font-size: 13px; color: var(--steel); }
.foot-dev { font-family: var(--f-mono); font-size: 12px; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .menu, .nav-cta { display: none; }
  .burger { display: block; }
  .nav.menu-open { background: rgba(10,12,18,.97); }
  .nav.menu-open .menu {
    display: flex; flex-direction: column; align-items: stretch; position: absolute; top: 100%; left: 0; right: 0;
    padding: 12px 24px 20px; background: rgba(10,12,18,.97); border-bottom: 1px solid var(--line); gap: 2px;
  }
  .nav.menu-open .menu-cta { display: flex; justify-content: center; margin-top: 10px; color: #fff; background: var(--indigo); border-radius: 12px; }
  .mega { position: static; width: auto; grid-template-columns: 1fr; display: none; opacity: 1; visibility: visible; transform: none; box-shadow: none; margin: 6px 0; }
  .menu-item.open .mega { display: grid; }
  .mega-feature { display: none; }
  .menu-link { padding: 12px 6px; font-size: 16px; justify-content: space-between; width: 100%; }
  .hero-grid { grid-template-columns: 1fr; gap: 56px; }
  .hero { padding-top: 120px; }
  .console { transform: none; }
  .agent, .agent.flip { grid-template-columns: 1fr; gap: 40px; padding: 50px 0; }
  .agent.flip .agent-copy { order: 0; }
  .gov-grid { grid-template-columns: repeat(2, 1fr); }
  .levels { grid-template-columns: 1fr; }
  .level p { min-height: 0; }
  .flow { grid-template-columns: repeat(4, 1fr); row-gap: 36px; }
  .flow-line { display: none; }
  .proof-card { grid-template-columns: 1fr; padding: 40px 28px; gap: 32px; }
  .proof-iris { max-width: 220px; margin: 0 auto; width: 100%; }
}
@media (max-width: 720px) {
  .wrap { padding: 0 16px; }
  .nav-inner { padding: 12px 16px; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .stat { border-bottom: 1px solid var(--line); padding: 24px 18px; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(3), .stat:nth-child(4) { border-bottom: 0; }
  .flow { grid-template-columns: 1fr 1fr; }
  .gov-grid { grid-template-columns: 1fr; }
  .float-card { display: none; }
  .stack-strip { flex-direction: column; align-items: flex-start; gap: 14px; margin-top: 60px; }
  .ss-label { max-width: none; }
  .marquee { width: 100%; }
  .stage { grid-template-columns: 34px 1fr; }
  .stage-tag { display: none; }
  .hero-ctas .btn { flex: 1 1 100%; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
  .foot-base { flex-direction: column; gap: 8px; }
  .cta-card { padding: 60px 20px; }
  .graph { overflow-x: auto; }
  .graph-svg { min-width: 620px; }
  .section-head { margin-bottom: 40px; }
  .agent h3 { margin: 14px 0; }
  .mock { padding: 16px; }
  .mock-list li { grid-template-columns: auto 1fr; }
  .mock-list em { display: none; }
}

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