@import url("https://kynetra.dev/theme/v1/kynetra-theme.css");

:root {
  --nexus-canvas: var(--kx-color-canvas, #090a0b);
  --nexus-surface: var(--kx-color-surface-default, #111315);
  --nexus-raised: var(--kx-color-surface-raised, #17191c);
  --nexus-ink: var(--kx-color-text-primary, #f2f3f4);
  --nexus-muted: var(--kx-color-text-secondary, #9a9ea5);
  --nexus-faint: var(--kx-color-text-tertiary, #6f747c);
  --nexus-line: var(--kx-color-border-default, #2a2d31);
  --nexus-accent: #a8c7fa;
  --nexus-signal: #83d6ad;
  --nexus-shell: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--nexus-ink);
  background: var(--nexus-canvas);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
.shell { width: min(calc(100% - 48px), var(--nexus-shell)); margin-inline: auto; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 100; padding: 10px 14px; background: var(--nexus-ink); color: var(--nexus-canvas); }
.skip-link:focus { top: 16px; }
:focus-visible { outline: 2px solid var(--nexus-accent); outline-offset: 4px; }

.site-header { position: absolute; inset: 0 0 auto; z-index: 20; border-bottom: 1px solid color-mix(in srgb, var(--nexus-line) 70%, transparent); }
.nav-shell { height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-size: 15px; letter-spacing: -.01em; }
.brand strong { font-weight: 650; }
.brand-mark { position: relative; width: 22px; height: 22px; display: inline-block; }
.brand-mark i { position: absolute; display: block; width: 6px; height: 6px; border: 1px solid var(--nexus-ink); border-radius: 50%; }
.brand-mark i:nth-child(1) { left: 8px; top: 0; }
.brand-mark i:nth-child(2) { left: 0; bottom: 2px; }
.brand-mark i:nth-child(3) { right: 0; bottom: 2px; }
.brand-mark::before, .brand-mark::after { content: ""; position: absolute; height: 1px; width: 12px; background: var(--nexus-faint); transform-origin: left center; }
.brand-mark::before { left: 5px; top: 8px; transform: rotate(58deg); }
.brand-mark::after { left: 10px; top: 8px; transform: rotate(122deg); }
nav { display: flex; gap: 30px; margin-left: auto; }
nav a, .nav-cta { color: var(--nexus-muted); font-size: 13px; text-decoration: none; transition: color 160ms ease; }
nav a:hover, .nav-cta:hover { color: var(--nexus-ink); }
.nav-cta { padding: 9px 13px; border: 1px solid var(--nexus-line); color: var(--nexus-ink); }

.hero { min-height: 760px; padding: 152px 0 92px; overflow: hidden; border-bottom: 1px solid var(--nexus-line); }
.hero-grid { display: grid; grid-template-columns: minmax(0, .88fr) minmax(520px, 1.12fr); align-items: center; gap: 48px; }
.eyebrow { margin: 0 0 24px; color: var(--nexus-muted); font: 600 11px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .13em; text-transform: uppercase; }
.status-dot { display: inline-block; width: 6px; height: 6px; margin-right: 9px; border-radius: 50%; background: var(--nexus-signal); box-shadow: 0 0 0 4px color-mix(in srgb, var(--nexus-signal) 12%, transparent); }
h1, h2, h3, p { text-wrap: pretty; }
h1 { max-width: 720px; margin: 0; font-size: clamp(52px, 5.7vw, 86px); line-height: .98; letter-spacing: -.058em; font-weight: 590; }
h1 em { color: var(--nexus-muted); font-style: normal; font-weight: 420; }
.hero-lede { max-width: 600px; margin: 30px 0 0; color: var(--nexus-muted); font-size: clamp(18px, 1.7vw, 22px); line-height: 1.55; letter-spacing: -.018em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 18px; text-decoration: none; font-size: 13px; font-weight: 640; border: 1px solid var(--nexus-line); transition: background 160ms ease, color 160ms ease, border-color 160ms ease; }
.button-primary { background: var(--nexus-ink); color: var(--nexus-canvas); border-color: var(--nexus-ink); }
.button-primary:hover { background: var(--nexus-accent); border-color: var(--nexus-accent); }
.button-quiet { color: var(--nexus-muted); }
.button-quiet:hover { color: var(--nexus-ink); border-color: var(--nexus-faint); }
.availability { margin: 24px 0 0; color: var(--nexus-faint); font-size: 12px; }
.availability span { margin-right: 7px; color: var(--nexus-signal); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; text-transform: uppercase; letter-spacing: .08em; }

.truth-map { position: relative; min-height: 560px; border: 1px solid var(--nexus-line); background-color: var(--nexus-surface); background-image: linear-gradient(var(--nexus-line) 1px, transparent 1px), linear-gradient(90deg, var(--nexus-line) 1px, transparent 1px); background-size: 32px 32px; box-shadow: 24px 24px 0 color-mix(in srgb, var(--nexus-line) 34%, transparent); }
.map-toolbar { position: absolute; inset: 0 0 auto; height: 46px; display: flex; align-items: center; justify-content: space-between; padding: 0 15px; border-bottom: 1px solid var(--nexus-line); background: color-mix(in srgb, var(--nexus-surface) 92%, transparent); color: var(--nexus-muted); font: 10px ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .04em; }
.map-live { color: var(--nexus-signal); }
.map-live i { display: inline-block; width: 5px; height: 5px; margin-right: 5px; border-radius: 50%; background: currentColor; }
.connections { position: absolute; inset: 46px 0 0; width: 100%; height: calc(100% - 46px); }
.connections path { fill: none; stroke: var(--nexus-faint); stroke-width: 1; stroke-dasharray: 3 5; opacity: .7; vector-effect: non-scaling-stroke; }
.connections .pulse-path { stroke: var(--nexus-accent); stroke-dasharray: 18 170; opacity: .9; animation: trace-pulse 5s linear infinite; }
.node { position: absolute; z-index: 2; width: 168px; padding: 13px 14px; border: 1px solid var(--nexus-line); background: var(--nexus-raised); color: #f2f3f4; box-shadow: 0 10px 26px rgba(0,0,0,.18); }
.node strong, .node small, .node-kind { display: block; }
.node strong { margin-top: 7px; font-size: 13px; font-weight: 620; }
.node small { margin-top: 5px; color: #9a9ea5; font: 9px ui-monospace, SFMono-Regular, Menlo, monospace; }
.node-kind { color: var(--nexus-accent); font: 700 8px ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .12em; }
.node-page { left: 50%; top: 50%; width: 190px; transform: translate(-50%, -50%); border-color: var(--nexus-accent); }
.node-evidence { left: 5%; top: 17%; }
.node-claim { right: 3%; top: 16%; }
.node-agent { left: 4%; bottom: 18%; }
.node-event { right: 3%; bottom: 17%; }
.node-evidence .node-kind { color: var(--nexus-signal); }
.node-agent .node-kind { color: #d5b5fb; }
.node-event .node-kind { color: #f2c57c; }
.trace { position: absolute; inset: auto 0 0; display: flex; gap: 20px; padding: 12px 15px; border-top: 1px solid var(--nexus-line); background: var(--nexus-surface); color: var(--nexus-faint); font: 9px ui-monospace, SFMono-Regular, Menlo, monospace; }
.trace span:last-child { margin-left: auto; color: var(--nexus-signal); }

.comparison { border-bottom: 1px solid var(--nexus-line); }
.comparison-row { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 28px; align-items: center; min-height: 132px; }
.comparison p { margin: 0; color: var(--nexus-muted); font-size: 13px; line-height: 1.6; }
.comparison strong { display: block; color: var(--nexus-ink); font-weight: 610; }
.plus { color: var(--nexus-faint); font: 300 26px ui-monospace, SFMono-Regular, Menlo, monospace; }

.section { padding: 128px 0; border-bottom: 1px solid var(--nexus-line); }
.section-intro { max-width: 710px; }
.section-intro h2, .closing h2 { margin: 0; font-size: clamp(40px, 5vw, 66px); line-height: 1.03; letter-spacing: -.05em; font-weight: 560; }
.section-intro > p:last-child { max-width: 620px; margin: 25px 0 0; color: var(--nexus-muted); font-size: 17px; line-height: 1.65; }
.capability-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin-top: 72px; border: 1px solid var(--nexus-line); background: var(--nexus-line); }
.capability { min-height: 390px; padding: 36px; background: var(--nexus-canvas); overflow: hidden; }
.capability-wide { grid-column: 1 / -1; display: grid; grid-template-columns: .8fr 1.2fr; column-gap: 64px; align-items: start; }
.capability-label { color: var(--nexus-accent); font: 700 10px ui-monospace, SFMono-Regular, Menlo, monospace; text-transform: uppercase; letter-spacing: .12em; }
.capability h3 { max-width: 520px; margin: 22px 0 0; font-size: 30px; line-height: 1.15; letter-spacing: -.035em; font-weight: 560; }
.capability > p { max-width: 510px; margin: 18px 0 0; color: var(--nexus-muted); line-height: 1.65; font-size: 14px; }
.editor-sample { grid-column: 2; grid-row: 1 / span 4; display: grid; grid-template-columns: 40px 1fr; gap: 20px; min-height: 270px; padding: 30px; border: 1px solid var(--nexus-line); background: var(--nexus-surface); }
.editor-rail { display: flex; flex-direction: column; gap: 18px; padding-right: 15px; border-right: 1px solid var(--nexus-line); color: var(--nexus-faint); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.sample-kicker { display: block; margin-bottom: 44px; color: var(--nexus-faint); font: 9px ui-monospace, SFMono-Regular, Menlo, monospace; text-transform: uppercase; letter-spacing: .08em; }
.editor-sample strong { display: block; max-width: 440px; font-size: 26px; line-height: 1.2; letter-spacing: -.03em; }
.editor-sample p { color: var(--nexus-muted); font-size: 13px; line-height: 1.6; }
.citation { color: var(--nexus-signal); font: 9px ui-monospace, SFMono-Regular, Menlo, monospace; }
.mini-graph { position: relative; height: 120px; margin-top: 42px; border-top: 1px solid var(--nexus-line); }
.mini-graph::before, .mini-graph::after { content: ""; position: absolute; left: 18%; right: 16%; top: 55%; height: 1px; background: var(--nexus-faint); transform: rotate(-8deg); }
.mini-graph::after { left: 38%; right: 30%; top: 38%; transform: rotate(34deg); }
.mini-graph i { position: absolute; width: 11px; height: 11px; border: 2px solid var(--nexus-accent); border-radius: 50%; background: var(--nexus-canvas); }
.mini-graph i:nth-child(1) { left: 16%; top: 55%; }.mini-graph i:nth-child(2) { left: 38%; top: 38%; }.mini-graph i:nth-child(3) { left: 58%; top: 64%; }.mini-graph i:nth-child(4) { right: 14%; top: 42%; }.mini-graph i:nth-child(5) { left: 48%; top: 82%; border-color: var(--nexus-signal); }
.agent-row { display: flex; align-items: center; gap: 13px; margin-top: 52px; padding: 16px; border: 1px solid var(--nexus-line); background: var(--nexus-surface); }
.agent-row > span { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid #d5b5fb; color: #d5b5fb; font: 600 12px ui-monospace, SFMono-Regular, Menlo, monospace; }
.agent-row div { display: grid; gap: 4px; }.agent-row strong { font-size: 12px; }.agent-row small { color: var(--nexus-faint); font-size: 10px; }.agent-row b { margin-left: auto; color: var(--nexus-signal); font: 700 8px ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .08em; }

.truth-section { background: var(--nexus-surface); }
.truth-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 100px; align-items: start; }
.sticky-intro { position: sticky; top: 120px; }
.text-link { display: inline-block; margin-top: 30px; color: var(--nexus-ink); text-decoration: none; border-bottom: 1px solid var(--nexus-faint); padding-bottom: 5px; font-size: 13px; }
.truth-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--nexus-line); }
.truth-list li { display: grid; grid-template-columns: 54px 1fr; gap: 28px; padding: 34px 0; border-bottom: 1px solid var(--nexus-line); }
.truth-list li > span, .system-code { color: var(--nexus-faint); font: 10px ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .08em; }
.truth-list h3 { margin: 0; font-size: 20px; letter-spacing: -.025em; font-weight: 590; }
.truth-list p { margin: 10px 0 0; color: var(--nexus-muted); font-size: 14px; line-height: 1.65; }

.foundation-table { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 72px; border: 1px solid var(--nexus-line); }
.foundation-table article { min-height: 300px; display: flex; flex-direction: column; padding: 28px; border-right: 1px solid var(--nexus-line); }
.foundation-table article:last-child { border: 0; }
.foundation-table h3 { margin: 52px 0 0; font-size: 21px; letter-spacing: -.025em; }
.foundation-table p { color: var(--nexus-muted); font-size: 13px; line-height: 1.65; }
.foundation-table a { margin-top: auto; color: var(--nexus-faint); font-size: 11px; text-decoration: none; }
.foundation-table a:hover { color: var(--nexus-ink); }

.closing { padding: 148px 0; text-align: center; }
.closing-inner { display: flex; flex-direction: column; align-items: center; }
.closing h2 { max-width: 900px; }
.closing > .shell > p:not(.eyebrow) { max-width: 560px; margin: 26px 0 32px; color: var(--nexus-muted); font-size: 16px; }
footer { border-top: 1px solid var(--nexus-line); }
.footer-row { min-height: 104px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.footer-row p, .footer-row a { color: var(--nexus-faint); font-size: 11px; }
.footer-row .brand { color: var(--nexus-ink); font-size: 14px; }
.footer-row div { display: flex; gap: 22px; }.footer-row div a { text-decoration: none; }

@keyframes trace-pulse { to { stroke-dashoffset: -188; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .connections .pulse-path { animation: none; } }
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }.hero { padding-top: 140px; }.truth-map { min-height: 520px; }.comparison-row { grid-template-columns: 1fr; gap: 16px; padding-block: 32px; }.plus { display: none; }.truth-grid { grid-template-columns: 1fr; gap: 64px; }.sticky-intro { position: static; }.foundation-table { grid-template-columns: 1fr 1fr; }.foundation-table article:nth-child(2) { border-right: 0; }.foundation-table article:nth-child(-n+2) { border-bottom: 1px solid var(--nexus-line); }
}
@media (max-width: 720px) {
  .shell { width: min(calc(100% - 32px), var(--nexus-shell)); }.site-header nav { display: none; }.nav-cta { font-size: 0; }.nav-cta span { font-size: 13px; }.hero { min-height: auto; padding-bottom: 72px; }.hero-grid { gap: 64px; }.truth-map { min-height: 460px; margin-right: 8px; }.node { width: 132px; padding: 10px; }.node-page { width: 154px; }.node strong { font-size: 11px; }.node small { font-size: 7px; }.node-evidence, .node-agent { left: 2%; }.node-claim, .node-event { right: 2%; }.trace { gap: 8px; }.trace span:nth-child(2) { display: none; }.section { padding: 88px 0; }.capability-grid { grid-template-columns: 1fr; }.capability, .capability-wide { grid-column: auto; display: block; padding: 25px; }.editor-sample { margin-top: 34px; padding: 20px; }.foundation-table { grid-template-columns: 1fr; }.foundation-table article, .foundation-table article:nth-child(2) { min-height: 250px; border-right: 0; border-bottom: 1px solid var(--nexus-line); }.foundation-table article:last-child { border-bottom: 0; }.footer-row { padding-block: 28px; flex-wrap: wrap; }.footer-row p { order: 3; flex-basis: 100%; }
}
