/* Layout idea: the page is the app opened up. A dotted canvas grid runs behind the hero, where a
   real-looking pipeline carries data source → transform → sink (the logo's three steps). Below it,
   quiet sections in the app's mono small-caps vocabulary; salmon is the only accent. */
:root {
  --bg: #0e0f11;
  --panel: #16181b;
  --line: #2a2c31;
  --ink: #eceae7;
  --muted: #9a958f;
  --accent: #ffb59e;
  --good: #22c55e;
  --miss: #f25555;
  --c-trigger: #f59e0b;
  --c-source: #34d399;
  --c-transform: #60a5fa;
  --c-sink: #c084fc;
  --c-chart: #fb7185;
  --display: "Poppins", "Helvetica Neue", Arial, sans-serif;
  --body: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font: 16px/1.6 var(--body); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.label { font: 500 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
h1, h2 { font-family: var(--display); font-weight: 300; text-wrap: balance; margin: 0; letter-spacing: -.02em; }
h3 { font: 500 17px/1.3 var(--body); margin: 0; }
p { margin: 0; }
.num { font-variant-numeric: tabular-nums; }


/* nav */
nav .wrap { display: flex; align-items: center; gap: 28px; height: 72px; }
nav .logo svg { height: 30px; width: auto; display: block; }
nav .links { display: flex; gap: 24px; margin-left: auto; font-size: 14px; color: var(--muted); }
nav .links a { text-decoration: none; }
nav .links a:hover { color: var(--ink); }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 6px; font: 500 14px/1 var(--body); text-decoration: none; border: 1px solid var(--line); cursor: pointer; background: transparent; color: var(--ink); }
.btn:hover { border-color: var(--muted); }
.btn.primary { background: var(--accent); color: #2a140c; border-color: var(--accent); }
.btn.primary:hover { background: #ffc6b4; }

/* hero */
.hero { position: relative; border-bottom: 1px solid var(--line);
  background-image: radial-gradient(circle, #24262b 1px, transparent 1.2px); background-size: 16px 16px; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; padding-top: 64px; padding-bottom: 72px; align-items: center; }
.hero h1 { font-size: clamp(40px, 5.4vw, 68px); line-height: 1.04; font-weight: 200; }
.hero h1 em { font-style: normal; color: var(--accent); font-weight: 300; }
.hero .sub { margin-top: 22px; font-size: 18px; color: #c9c4be; max-width: 34em; }
.hero .ctas { display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap; }
.hero .note { margin-top: 18px; font: 12px/1.5 var(--mono); color: var(--muted); }

/* the canvas */
.canvas { position: relative; aspect-ratio: 16 / 13; background: rgba(14,15,17,.72); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.canvas .bar { position: absolute; inset: 0 0 auto 0; height: 36px; display: flex; align-items: center; gap: 10px; padding: 0 12px; border-bottom: 1px solid var(--line); background: var(--panel); font: 11px/1 var(--mono); color: var(--muted); }
.canvas .bar .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 3px rgba(34,197,94,.15); }
.canvas .bar .name { color: var(--ink); }
.canvas .bar .right { margin-left: auto; }
.canvas svg.edges { position: absolute; inset: 0; width: 100%; height: 100%; }
.edges .e path { fill: none; stroke: #3a3d44; stroke-width: 1.4; }
.edges .e.f path { stroke: var(--accent); stroke-width: 2; stroke-dasharray: 3 14; stroke-linecap: round; animation: flow 1.6s linear infinite; opacity: .9; }
@keyframes flow { to { stroke-dashoffset: -34; } }
.node { position: absolute; width: 17%; min-width: 96px; background: var(--panel); border: 1px solid var(--line); border-radius: 7px; padding: 8px 10px; font: 11px/1.35 var(--mono); }
.node .kind { display: inline-block; font-size: 9px; letter-spacing: .12em; padding: 2px 5px; border-radius: 3px; margin-bottom: 5px; }
.node .t { color: var(--ink); font-family: var(--body); font-size: 12px; font-weight: 500; line-height: 1.25; }
.node .s { color: var(--muted); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.node.active { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255,181,158,.12); }
.k-trigger { color: var(--c-trigger); background: rgba(245,158,11,.12); }
.k-source { color: var(--c-source); background: rgba(52,211,153,.12); }
.k-transform { color: var(--c-transform); background: rgba(96,165,250,.12); }
.k-sink { color: var(--c-sink); background: rgba(192,132,252,.12); }
.k-chart { color: var(--c-chart); background: rgba(251,113,133,.12); }
.k-model { color: #22d3ee; background: rgba(34,211,238,.12); }
.node svg.spark { display: block; width: 100%; height: 34px; margin-top: 4px; }
.probe { position: absolute; left: 3%; right: 3%; bottom: 4%; background: #121316; border: 1px solid var(--line); border-radius: 7px; font: 10.5px/1.5 var(--mono); }
.probe .head { display: flex; justify-content: space-between; padding: 7px 10px; border-bottom: 1px solid var(--line); color: var(--muted); }
.probe .head b { color: var(--accent); font-weight: 500; }
.probe table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.probe th, .probe td { text-align: right; padding: 3px 10px; white-space: nowrap; }
.probe th:first-child, .probe td:first-child { text-align: left; }
.probe th { color: var(--muted); font-weight: 400; }
.probe tr.new td { color: var(--accent); animation: fresh 3.2s ease-in-out infinite; }
@keyframes fresh { 0%, 100% { background: transparent; } 50% { background: rgba(255,181,158,.07); } }
.probe .foot { padding: 6px 10px; border-top: 1px solid var(--line); color: var(--muted); }

/* facts strip */
.facts { border-bottom: 1px solid var(--line); }
.facts .wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
.fact { padding: 28px 0 28px 24px; border-left: 1px solid var(--line); }
.fact:first-child { border-left: 0; padding-left: 0; }
.fact .v { font: 300 34px/1.1 var(--display); }
.fact .d { margin-top: 6px; font-size: 14px; color: var(--muted); }

section { padding: 96px 0; border-bottom: 1px solid var(--line); }
.sec-head { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 48px; margin-bottom: 48px; align-items: end; }
.sec-head h2 { font-size: clamp(30px, 3.6vw, 44px); line-height: 1.1; margin-top: 12px; }
.sec-head p { color: #c9c4be; max-width: 38em; }

/* how it works: the three steps of the mark */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.step { padding: 28px; background: var(--panel); border-left: 1px solid var(--line); display: grid; gap: 14px; align-content: start; }
.step:first-child { border-left: 0; }
.step .mark { display: flex; gap: 4px; align-items: flex-end; height: 22px; }
.step .mark i { display: block; width: 10px; height: 10px; border-radius: 2px; background: #3a3d44; }
.step .mark i:nth-child(2) { margin-bottom: 6px; } .step .mark i:nth-child(3) { margin-bottom: 12px; }
.step:nth-child(1) .mark i:nth-child(1), .step:nth-child(2) .mark i:nth-child(2), .step:nth-child(3) .mark i:nth-child(3) { background: var(--accent); }
.step ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; color: #c9c4be; font-size: 15px; }
.step li { padding-left: 16px; position: relative; }
.step li::before { content: ""; position: absolute; left: 0; top: .7em; width: 7px; height: 1px; background: var(--muted); }
.step code { font: 13px var(--mono); color: var(--ink); }

/* replaces */
.swap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.swap article { border: 1px solid var(--line); border-radius: 10px; background: var(--panel); padding: 24px; display: grid; gap: 14px; align-content: start; }
.swap .was { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-bottom: 14px; border-bottom: 1px dashed var(--line); }
.swap .was b { font: 400 15px/1 var(--mono); color: var(--muted); text-decoration: line-through; text-decoration-color: var(--accent); text-decoration-thickness: 1.5px; }
.swap h3 { font: 300 22px/1.25 var(--display); }
.swap ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; color: #c9c4be; font-size: 15px; }
.swap li { padding-left: 16px; position: relative; }
.swap li::before { content: ""; position: absolute; left: 0; top: .7em; width: 7px; height: 1px; background: var(--accent); }
.keep { margin-top: 28px; max-width: 60em; color: #c9c4be; font-size: 15px; padding: 16px 20px; border-left: 2px solid var(--line); }
.keep b { color: var(--ink); font-weight: 500; }

/* use cases */
.cases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.case { border: 1px solid var(--line); border-radius: 10px; padding: 24px; display: grid; gap: 16px; align-content: start; background: var(--panel); }
.case .q { font: 300 21px/1.35 var(--display); }
.case dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 14px; }
.case dt { font: 500 10.5px/1.9 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.case dd { margin: 0; color: #c9c4be; }
.chip.live { border-style: solid; border-color: var(--accent); color: var(--accent); text-decoration: none; }
.chip.live:hover { background: rgba(255,181,158,.08); }
.chip { display: inline-flex; align-items: center; gap: 6px; font: 11px/1 var(--mono); padding: 6px 8px; border-radius: 4px; border: 1px dashed var(--line); color: var(--muted); justify-self: start; }

/* measured */
.measured { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 32px; align-items: stretch; }
.chart { border: 1px solid var(--line); border-radius: 10px; background: var(--panel); padding: 20px 20px 12px; }
.chart .top { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.chart svg { display: block; width: 100%; height: auto; margin-top: 12px; }
.legend { display: flex; gap: 18px; flex-wrap: wrap; font: 11px/1 var(--mono); color: var(--muted); margin-top: 8px; }
.legend span { display: inline-flex; gap: 6px; align-items: center; }
.legend i { width: 14px; height: 8px; display: inline-block; border-radius: 2px; }
.stats { display: grid; gap: 16px; align-content: start; }
.stat { border: 1px solid var(--line); border-radius: 10px; padding: 20px; background: var(--panel); }
.stat .v { font: 300 40px/1 var(--display); }
.stat .v small { font-size: 18px; color: var(--muted); }
.stat p { margin-top: 10px; font-size: 14px; color: #c9c4be; }
.stat .src { margin-top: 10px; font: 11px/1.5 var(--mono); color: var(--muted); }

/* ai */
.ai { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: center; }
.ai ul { margin: 24px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; color: #c9c4be; }
.ai li b { color: var(--ink); font-weight: 500; }
.chat { border: 1px solid var(--line); border-radius: 10px; background: var(--panel); padding: 20px; display: grid; gap: 12px; font-size: 14.5px; }
.msg { max-width: 88%; padding: 12px 14px; border-radius: 8px; }
.msg.you { justify-self: end; background: #2a2320; border: 1px solid #3d302a; }
.msg.tool { font: 12px/1.6 var(--mono); color: var(--muted); background: #121316; border: 1px solid var(--line); max-width: 100%; }
.msg.tool b { color: var(--c-source); font-weight: 400; }
.msg.bot { background: #1b1d21; border: 1px solid var(--line); }

/* infra */
.infra { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.infra div { border-top: 1px solid var(--accent); padding-top: 16px; display: grid; gap: 8px; }
.infra p { color: #c9c4be; font-size: 15px; }

/* cta */
.cta { padding: 96px 0; }
.cta .box { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 48px; border: 1px solid var(--line); border-radius: 12px; padding: 48px; background: radial-gradient(ellipse at 0% 0%, rgba(255,181,158,.08), transparent 55%), var(--panel); }
.cta h2 { font-size: clamp(30px, 3.4vw, 42px); line-height: 1.1; }
.cta p { color: #c9c4be; margin-top: 14px; }
form { display: grid; gap: 12px; }
.field { display: grid; gap: 6px; }
.field label { font: 500 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.field input, .field textarea { width: 100%; padding: 11px 12px; border-radius: 6px; border: 1px solid var(--line); background: #101114; color: var(--ink); font: 15px var(--body); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.fine { font-size: 12.5px; color: var(--muted); }
#form-msg { font: 13px/1.5 var(--mono); color: var(--accent); min-height: 1.5em; }

footer { border-top: 1px solid var(--line); padding: 40px 0 56px; color: var(--muted); font-size: 13px; }
footer .wrap { display: grid; grid-template-columns: auto 1fr auto; gap: 32px; align-items: start; }
footer svg { height: 22px; width: auto; display: block; opacity: .9; }
footer .links { display: flex; gap: 20px; }

@media (max-width: 960px) {
  .hero .wrap, .sec-head, .measured, .ai, .cta .box { grid-template-columns: 1fr; }
  .cases, .infra { grid-template-columns: 1fr 1fr; }
  .swap { grid-template-columns: 1fr; }
  .facts .wrap { grid-template-columns: 1fr 1fr; }
  .fact:nth-child(3) { border-left: 0; padding-left: 0; }
  nav .links { display: none; }
}
@media (max-width: 640px) {
  .steps, .cases, .infra { grid-template-columns: 1fr; }
  .step { border-left: 0; border-top: 1px solid var(--line); }
  .step:first-child { border-top: 0; }
  .canvas { aspect-ratio: auto; height: 560px; }
  .canvas svg.edges { display: none; }
  .node { position: relative; left: auto !important; top: auto !important; width: auto; margin: 10px 12px 0; }
  .canvas .nodes { padding-top: 40px; }
  .probe { position: relative; right: auto; bottom: auto; width: auto; margin: 10px 12px; }
  .cta .box { padding: 28px; }
  footer .wrap { grid-template-columns: 1fr; }
  section { padding: 64px 0; }
}
@media (prefers-reduced-motion: reduce) {
  .edges .e.f path, .probe tr.new td { animation: none; }
}

.mt18 { margin-top: 18px; }
.mt12 { margin-top: 12px; }
.h2-section { font-size: clamp(30px, 3.6vw, 44px); line-height: 1.1; margin-top: 12px; }
.mail-note { font: 13px/1.6 var(--mono); color: var(--muted); margin-top: 18px; }
.legend i.swatch-band { background: rgba(255,181,158,.22); }
.legend i.swatch-price { background: #eceae7; height: 2px; }
.legend i.swatch-miss { background: #f25555; width: 8px; border-radius: 50%; }
.legend i.swatch-cone { background: rgba(255,181,158,.45); }
.node.n1 { left: 2%; top: 30%; }
.node.n2 { left: 22%; top: 13%; }
.node.n3 { left: 22%; top: 40%; }
.node.n4 { left: 42%; top: 27%; }
.node.n5 { left: 62%; top: 27%; }
.node.n6 { left: 82%; top: 11%; }
.node.n7 { left: 82%; top: 40%; }
figure { margin: 0; }
@media (max-width: 640px) {
  .canvas .bar > span:not(.dot):not(.name) { display: none; }
  .canvas .bar .name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}
@media (max-width: 640px) {
  .canvas { height: auto; aspect-ratio: auto; padding-bottom: 12px; }
  .facts .wrap { grid-template-columns: 1fr; }
  .fact, .fact:nth-child(3) { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding: 20px 0; }
  .fact:first-child { border-top: 0; }
}
