:root {
  color-scheme: dark;
  --bg: #050807;
  --panel: #0b1210;
  --panel-2: #101a17;
  --ink: #edf7f1;
  --muted: #9fb1aa;
  --line: #243930;
  --green: #7be36d;
  --cyan: #75d5e6;
  --gold: #d9a46f;
  --coral: #ff7a59;
  --blue: #6f8cff;
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.34);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: "Space Grotesk", Inter, ui-sans-serif, system-ui, sans-serif; line-height: 1.45; }
a { color: inherit; }
img { max-width: 100%; }
body, a, button, p, h1, h2, h3, li, label, span, strong { overflow-wrap: anywhere; }
input, select, textarea, button, a, label { min-width: 0; }
.hero-shell { min-height: 94svh; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; overflow: hidden; padding: 20px 24px 0; background: linear-gradient(90deg, rgba(5,8,7,.98), rgba(5,8,7,.68)), url("/assets/webflow/kw-hero-run.jpg") center / cover no-repeat #050807; }
.top-nav { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 18px; width: min(1240px, 100%); margin: 0 auto; padding: 10px; border: 1px solid rgba(237,247,241,.18); border-radius: 8px; background: rgba(5,8,7,.58); backdrop-filter: blur(16px); }
.logo-link { display: inline-flex; align-items: center; gap: 10px; min-height: 46px; padding: 7px 10px; border-radius: 8px; color: var(--ink); text-decoration: none; }
.logo-mark { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid rgba(123,227,109,.7); border-radius: 8px; background: #edf7f1; color: #06100d; font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, monospace; font-size: 14px; font-weight: 900; }
.logo-copy { display: grid; line-height: 1.05; }
.logo-copy strong { font-size: 15px; }
.logo-copy small { color: var(--muted); font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, monospace; font-size: 10px; text-transform: uppercase; }
.nav-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px; }
.nav-links a { min-height: 36px; display: inline-flex; align-items: center; padding: 8px 10px; border-radius: 8px; color: rgba(237,247,241,.78); font-size: 13px; font-weight: 700; text-decoration: none; }
.nav-links a:hover { background: rgba(237,247,241,.1); color: var(--ink); }
.nav-links a.nav-cta { border: 1px solid rgba(123,227,109,.5); color: var(--green); }
.hero-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(420px, .82fr); gap: 30px; align-items: center; width: min(1240px, 100%); margin: 0 auto; padding: 28px 0 28px; }
.hero-copy { display: grid; justify-items: start; gap: 18px; }
.eyebrow { margin: 0; color: var(--green); font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, monospace; font-size: 12px; font-weight: 700; letter-spacing: 0; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 800px; margin-bottom: 0; font-size: clamp(44px, 6vw, 80px); line-height: .9; letter-spacing: 0; }
.hero-lede { max-width: 760px; margin-bottom: 0; color: rgba(237,247,241,.78); font-size: clamp(18px, 2vw, 22px); }
.hero-actions, .cta-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.button { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 10px 14px; border: 1px solid rgba(237,247,241,.28); border-radius: 8px; background: rgba(237,247,241,.08); color: var(--ink); font-weight: 800; text-decoration: none; transition: transform 160ms ease, border-color 160ms ease, background 160ms ease; }
.button:hover { transform: translateY(-1px); border-color: rgba(237,247,241,.64); background: rgba(237,247,241,.14); }
.button.primary { border-color: var(--green); background: var(--green); color: #071007; }
.hero-media { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) 190px; gap: 12px; align-items: start; }
.media-card { position: relative; height: 190px; min-height: 190px; margin: 0; overflow: hidden; border: 1px solid rgba(237,247,241,.18); border-radius: 8px; background: #0b1210; box-shadow: var(--shadow); }
.media-card img { width: 100%; height: 100%; min-height: 0; object-fit: cover; display: block; filter: saturate(1.04) contrast(1.03); }
.media-card figcaption { position: absolute; left: 12px; right: 12px; bottom: 12px; padding: 10px; border: 1px solid rgba(237,247,241,.16); border-radius: 8px; background: rgba(5,8,7,.72); color: var(--ink); font-size: 13px; font-weight: 800; backdrop-filter: blur(12px); }
.media-card-main { grid-column: 1 / -1; height: 200px; min-height: 200px; }
.gtm-console { overflow: hidden; border: 1px solid rgba(237,247,241,.18); border-radius: 8px; background: rgba(11,18,16,.88); box-shadow: var(--shadow); backdrop-filter: blur(18px); }
.console-header { display: flex; justify-content: space-between; gap: 10px; padding: 13px 14px; border-bottom: 1px solid rgba(237,247,241,.12); color: var(--muted); font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, monospace; font-size: 12px; }
.console-header strong { color: var(--cyan); }
.metric-stack { display: grid; }
.metric-row { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 14px; padding: 17px 16px; border-bottom: 1px solid rgba(237,247,241,.1); }
.metric-row:last-child { border-bottom: 0; }
.metric-row strong { color: var(--ink); font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, monospace; font-size: 28px; line-height: 1; }
.metric-row span { display: block; color: var(--ink); font-weight: 800; line-height: 1.16; }
.metric-row small { display: block; margin-top: 5px; color: var(--muted); font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, monospace; font-size: 11px; }
.hero-media .metric-stack { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hero-media .metric-row { grid-template-columns: 1fr; gap: 8px; padding: 12px; }
.hero-media .metric-row strong { font-size: 22px; }
.hero-media .metric-row span { font-size: 13px; }
.hero-media .metric-row small { font-size: 10px; }
.image-tiles { align-self: start; display: grid; gap: 12px; }
.image-tiles img { width: 100%; min-height: 0; aspect-ratio: 16 / 9; object-fit: cover; border: 1px solid rgba(237,247,241,.16); border-radius: 8px; background: var(--panel); }
.live-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; width: min(1240px, 100%); margin: 0 auto; overflow: hidden; border: 1px solid rgba(237,247,241,.16); border-bottom: 0; border-radius: 8px 8px 0 0; background: rgba(237,247,241,.1); backdrop-filter: blur(16px); }
.live-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.live-strip a { min-height: 54px; display: grid; align-items: center; padding: 12px 14px; color: rgba(237,247,241,.8); font-weight: 800; text-decoration: none; background: rgba(5,8,7,.58); }
.live-strip a:hover { color: var(--ink); background: rgba(123,227,109,.12); }
.band { padding: 78px 24px; border-top: 1px solid rgba(237,247,241,.1); }
.band > * { width: min(1240px, 100%); margin-left: auto; margin-right: auto; }
.section-heading { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1fr); gap: 26px; align-items: end; margin-bottom: 26px; }
.section-heading.compact { display: block; }
.section-heading h2, .cta-copy h2 { margin-bottom: 0; font-size: clamp(34px, 5vw, 72px); line-height: .94; letter-spacing: 0; }
.section-heading p:not(.eyebrow), .cta-copy p { margin-bottom: 0; color: var(--muted); font-size: 18px; }
.narrative-band { background: #07100e; }
.diagnostic-band, .modules-band, .pipeline-band { background: #07100e; }
.stage-band, .library-band { background: var(--panel); }
.matrix-band { background: #0a1512; }
.story-board { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.story-board article { overflow: hidden; border: 1px solid rgba(237,247,241,.14); border-radius: 8px; background: var(--panel-2); }
.story-board img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; border-bottom: 1px solid rgba(237,247,241,.12); }
.story-board span { display: inline-flex; margin: 16px 16px 10px; color: var(--cyan); font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, monospace; font-size: 12px; font-weight: 800; text-transform: uppercase; }
.story-board h3 { margin: 0 16px 8px; font-size: 28px; line-height: 1.02; }
.story-board p { margin: 0 16px 18px; color: var(--muted); }
.diagnostic-layout, .pipeline-layout { display: grid; grid-template-columns: minmax(0, .9fr) minmax(320px, .55fr); gap: 16px; align-items: stretch; }
.diagnostic-panel, .pipeline-controls, .diagnostic-output, .pipeline-output, .module-detail, .stage-detail, .decision-card, .library-card { border: 1px solid rgba(237,247,241,.14); border-radius: 8px; background: var(--panel-2); }
.diagnostic-panel, .pipeline-controls { display: grid; gap: 14px; padding: 18px; }
label { display: grid; gap: 8px; color: var(--ink); font-weight: 800; }
input[type="range"] { display: block; width: calc(100% - 2px); max-width: 100%; accent-color: var(--green); }
.diagnostic-output { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 18px; align-items: center; padding: 18px; }
.score-ring { width: 138px; height: 138px; display: grid; place-items: center; align-content: center; gap: 4px; border: 9px solid var(--green); border-radius: 999px; background: rgba(123,227,109,.08); }
.score-ring strong { font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, monospace; font-size: 36px; line-height: 1; }
.score-ring span { color: var(--muted); font-size: 11px; font-weight: 900; text-transform: uppercase; }
.pill { width: fit-content; display: inline-flex; margin-bottom: 10px; padding: 6px 9px; border-radius: 8px; background: rgba(117,213,230,.12); color: var(--cyan); font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, monospace; font-size: 12px; font-weight: 700; }
.diagnostic-output h3 { margin-bottom: 8px; font-size: 28px; line-height: 1.05; }
.diagnostic-output p { color: var(--muted); }
.module-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(340px, .48fr); gap: 16px; align-items: start; }
.module-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.module-card { min-height: 168px; display: grid; align-content: space-between; gap: 18px; padding: 16px; border: 1px solid rgba(237,247,241,.14); border-radius: 8px; background: var(--panel); color: var(--ink); text-align: left; font: inherit; cursor: pointer; }
.module-card.is-active { border-color: var(--green); background: rgba(123,227,109,.1); }
.module-card span { color: var(--cyan); font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, monospace; font-size: 12px; font-weight: 700; }
.module-card strong { display: block; font-size: 24px; line-height: 1.05; }
.module-card small { color: var(--muted); }
.module-detail { position: sticky; top: 16px; display: grid; gap: 14px; padding: 18px; }
.module-detail h3 { margin-bottom: 0; font-size: 34px; line-height: 1.02; }
.module-detail p { margin-bottom: 0; color: var(--muted); }
.list-grid { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.list-grid li { padding: 10px; border: 1px solid rgba(237,247,241,.12); border-radius: 8px; background: rgba(237,247,241,.05); }
.stage-layout { display: grid; grid-template-columns: minmax(220px, .34fr) minmax(0, 1fr); gap: 16px; }
.stage-tabs { display: grid; gap: 8px; }
.stage-tabs button { min-height: 52px; border: 1px solid rgba(237,247,241,.14); border-radius: 8px; background: var(--panel-2); color: var(--muted); font: inherit; font-weight: 800; cursor: pointer; }
.stage-tabs button.is-active { border-color: var(--green); color: var(--ink); background: rgba(123,227,109,.1); }
.stage-detail { min-height: 300px; display: grid; gap: 14px; padding: 20px; }
.stage-detail h3 { margin-bottom: 0; font-size: 38px; line-height: 1; }
.stage-detail p { color: var(--muted); font-size: 18px; }
.pipeline-output { display: grid; align-content: center; gap: 12px; padding: 18px; }
.pipeline-output strong { font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, monospace; font-size: clamp(38px, 5vw, 58px); line-height: 1; }
.pipeline-output > span { color: var(--muted); font-weight: 800; }
.pipeline-bars { display: grid; gap: 8px; margin-top: 8px; }
.pipeline-bar { display: grid; grid-template-columns: 100px minmax(0, 1fr) 80px; gap: 8px; align-items: center; color: var(--muted); font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, monospace; font-size: 11px; }
.pipeline-track { height: 10px; overflow: hidden; border-radius: 999px; background: rgba(237,247,241,.1); }
.pipeline-fill { height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--cyan), var(--green)); }
.decision-grid, .library-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.library-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.decision-card, .library-card { display: grid; gap: 12px; padding: 18px; }
.decision-card strong, .library-card strong { color: var(--green); font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, monospace; }
.decision-card h3, .library-card h3 { margin-bottom: 0; font-size: 24px; line-height: 1.05; }
.decision-card p, .library-card p { margin-bottom: 0; color: var(--muted); }
.cta-band { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: end; background: linear-gradient(90deg, rgba(5,8,7,.98), rgba(5,8,7,.48)), url("/assets/webflow/kw-hero-run.jpg") center / cover no-repeat; }
.cta-copy { width: min(820px, 100%); margin: 0; }
.site-footer { display: flex; justify-content: space-between; gap: 16px; padding: 28px 24px; border-top: 1px solid rgba(237,247,241,.12); color: var(--muted); }
.site-footer strong { color: var(--ink); }
.site-footer a { color: var(--green); font-weight: 800; text-decoration: none; }
@media (max-width: 1040px) {
  .hero-grid, .hero-media, .diagnostic-layout, .module-layout, .stage-layout, .pipeline-layout, .section-heading, .cta-band { grid-template-columns: 1fr; }
  .module-detail { position: static; }
  .library-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .story-board { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .hero-shell { min-height: auto; padding-inline: 14px; }
  .hero-grid { gap: 18px; padding: 24px 0 28px; align-items: start; }
  .hero-copy { gap: 14px; }
  .top-nav { align-items: stretch; flex-direction: column; }
  .nav-links { justify-content: flex-start; }
  h1 { font-size: 46px; line-height: .94; }
  .hero-lede { font-size: 17px; }
  .button { width: 100%; }
  .hero-media { display: none; }
  .media-card, .media-card img { min-height: 190px; }
  .image-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .console-header { padding: 10px 12px; }
  .metric-row { padding: 13px 14px; }
  .band { padding: 54px 14px; }
  .live-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .live-strip a { min-height: 46px; padding: 10px; font-size: 12px; }
  .module-grid, .decision-grid, .library-grid, .diagnostic-output { grid-template-columns: 1fr; }
  .metric-row { grid-template-columns: 1fr; }
  .pipeline-bar { grid-template-columns: 1fr; }
  .score-ring { width: 126px; height: 126px; }
  .site-footer { flex-direction: column; }
}