/* VIA BV - site styles
   Radius system: cards/panels 18px, inputs 12px, buttons + chips full pill. */

:root {
  /* space grey */
  --bg: #1d1e21;
  --bg-2: #232428;
  --surface: #2a2b30;
  --surface-2: #33353a;
  --tint: #263131;          /* grey with a hint of teal, for active/hot states */
  --glass: rgba(42, 43, 48, 0.9);
  --glow: rgba(70, 160, 160, 0.16);
  --glow-strong: rgba(70, 160, 160, 0.3);
  --line: rgba(244, 242, 237, 0.08);
  --line-2: rgba(244, 242, 237, 0.14);
  --text: #f4f2ed;
  --muted: #a8aaaf;
  --faint: #76797f;
  /* gradient text: dark teal to light teal, shifts on hover */
  --g1: #1f8a82;
  --g2: #46c7b4;
  --g3: #b4f0e4;
  --brand: #05434e;
  --accent: #46c7b4;
  --accent-ink: #04161a;
  --accent-soft: rgba(70, 199, 180, 0.12);
  --radius: 18px;
  --radius-sm: 12px;
  --max: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  /* z-index scale */
  --z-nav: 40;
  --z-agent: 60;
  --z-grain: 80;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body::after { /* film grain, fixed and non-interactive */
  content: "";
  position: fixed; inset: 0;
  z-index: var(--z-grain);
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
img, svg, iframe { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--accent); color: var(--accent-ink); }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(80px, 11vw, 150px); position: relative; }
.mark { color: currentColor; }

h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.035em; line-height: 1.05; }
h2 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.55rem); letter-spacing: -0.02em; line-height: 1.2; }
p { margin: 0; }
.lead { color: var(--muted); font-size: clamp(1.05rem, 1.4vw, 1.2rem); max-width: 60ch; }
.muted { color: var(--muted); }
.eyebrow {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent);
}
.sec-head { display: grid; gap: 18px; margin-bottom: clamp(40px, 6vw, 72px); max-width: 760px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; white-space: nowrap;
  height: 50px; padding: 0 24px; border-radius: 999px;
  font-weight: 500; font-size: 16px; letter-spacing: -0.01em;
  transition: transform .5s var(--ease), background-color .3s, color .3s, border-color .3s, box-shadow .5s var(--ease);
  will-change: transform;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 10px 30px -12px rgba(70,199,180,.6); }
.btn-primary:hover { background: #5ad6c3; }
.btn-ghost { border: 1px solid var(--line-2); color: var(--text); }
.btn-ghost:hover { border-color: rgba(244,242,237,.35); background: rgba(244,242,237,.04); }
.btn i { font-size: 18px; }
.btn .arrow { transition: transform .5s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }
.link { display: inline-flex; align-items: center; gap: 8px; color: var(--accent); font-weight: 500; }
.link i { transition: transform .4s var(--ease); }
.link:hover i { transform: translateX(3px); }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: var(--z-nav);
  transition: background-color .4s, border-color .4s, backdrop-filter .4s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled { background: rgba(29, 30, 33, 0.72); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); border-color: var(--line); }
.nav-in { height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo img { height: 20px; width: auto; }
.nav-links { display: flex; gap: 30px; font-size: 15px; color: var(--muted); }
.nav-links a { transition: color .2s; }
.nav-links a:hover { color: var(--text); }
.nav .btn { height: 42px; padding: 0 18px; font-size: 15px; }
.nav-toggle { display: none; width: 42px; height: 42px; border-radius: 999px; border: 1px solid var(--line-2); align-items: center; justify-content: center; font-size: 20px; }
@media (max-width: 960px) {
  .nav-links, .nav .btn-primary { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav.open { background: var(--bg); }
  .nav.open .nav-links {
    display: grid; position: absolute; top: 72px; left: 0; right: 0; gap: 4px;
    padding: 12px var(--gutter) 28px; background: var(--bg); border-bottom: 1px solid var(--line); font-size: 20px; color: var(--text);
  }
  .nav.open .nav-links a { padding: 10px 0; }
}

/* ---------- hero ---------- */
.hero { min-height: 100dvh; display: flex; align-items: center; padding-top: 96px; padding-bottom: 48px; position: relative; overflow: hidden; }
.hero::before { /* brand-teal atmosphere */
  content: ""; position: absolute; inset: -20% -10% auto auto; width: 70vw; height: 70vw; max-width: 1000px; max-height: 1000px;
  background: radial-gradient(closest-side, var(--glow-strong), transparent 70%);
  pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: 1fr 1.12fr; align-items: center; gap: clamp(24px, 4vw, 64px); position: relative; }
.hero h1 { font-size: clamp(2.7rem, 6vw, 5.1rem); letter-spacing: -0.045em; line-height: 1; margin: 22px 0 24px; }
.hero h1 .soft { white-space: nowrap; }
.hero .lead { max-width: 44ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero-visual { position: relative; aspect-ratio: 4 / 3; }
.hero-visual svg { width: 100%; height: 100%; overflow: visible; }
@media (max-width: 900px) {
  .hero { padding-top: 104px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: 2; margin-inline: -8px; }
}

/* hero svg internals */
.chain-link { fill: none; stroke: var(--muted); stroke-width: 3; }
.strand { fill: none; stroke: rgba(244,242,237,.16); stroke-width: 2; stroke-linecap: round; }
.strand-out { stroke: var(--accent); stroke-width: 2.5; }
.chip { cursor: pointer; }
.chip-bg { fill: var(--glass); stroke: var(--line-2); transition: stroke .3s, fill .3s; }
.chip-tile { fill: rgba(244, 242, 237, .05); stroke: var(--line); transition: fill .3s, stroke .3s; }
.chip-ic { width: 36px; height: 36px; display: grid; place-items: center; font-size: 19px; color: var(--muted); transition: color .3s, transform .4s var(--ease); }
.chip-t { fill: var(--text); font-family: var(--font); font-size: 13.5px; font-weight: 500; letter-spacing: -0.01em; }
.chip-s { fill: var(--faint); font-family: var(--mono); font-size: 10px; letter-spacing: .02em; }
.chip-n { fill: var(--muted); }
.chip-dot { fill: #f0a08c; stroke: var(--bg-2); stroke-width: 2; transition: fill .4s; }
.chip-dot.ok { fill: var(--accent); }
.chip:hover .chip-bg, .chip.hot .chip-bg { stroke: rgba(70, 199, 180, .55); fill: var(--tint); }
.chip:hover .chip-tile, .chip.hot .chip-tile { fill: var(--accent-soft); stroke: rgba(70, 199, 180, .3); }
.chip:hover .chip-ic, .chip.hot .chip-ic { color: var(--accent); transform: scale(1.08); }
.chip-out .chip-bg { stroke: rgba(70, 199, 180, .45); }
.chip-out .chip-tile { fill: var(--accent-soft); stroke: rgba(70, 199, 180, .3); }
.chip-out .chip-ic { color: var(--accent); }
.chip-out .chip-n { fill: var(--accent); }
.chip-out { cursor: default; }
.strand { transition: stroke .3s; }
.strand.lit { stroke: rgba(70, 199, 180, .55); }
#hub { cursor: pointer; }
.hero-visual.turbo .hub-ring { stroke: var(--accent); fill: var(--tint); }
.hero-visual.turbo .strand { stroke: rgba(70, 199, 180, .35); }
.hub-ring { fill: var(--bg-2); stroke: var(--line-2); }
.hub-pulse { fill: none; stroke: var(--accent); opacity: .5; }
.packet { fill: var(--text); }
.packet.out { fill: var(--accent); }

/* ---------- manifesto ---------- */
.manifesto p {
  font-size: clamp(1.8rem, 4.2vw, 3.4rem); line-height: 1.15; letter-spacing: -0.035em; font-weight: 500; max-width: 22ch;
}
.manifesto .w { opacity: .18; transition: opacity .2s linear; }
.manifesto .w.hl { }
.manifesto-foot { margin-top: 48px; display: flex; gap: 48px; flex-wrap: wrap; color: var(--muted); }
.manifesto-foot div { max-width: 30ch; }
.manifesto-foot strong { display: block; color: var(--text); font-weight: 500; margin-bottom: 6px; }

/* ---------- bento (diensten) ---------- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.tile {
  position: relative; overflow: hidden; border-radius: var(--radius); background: var(--bg-2); border: 1px solid var(--line);
  padding: 30px; display: flex; flex-direction: column; min-height: 340px;
  transition: border-color .4s;
}
.tile:hover { border-color: var(--line-2); }
.tile::before { /* spotlight that follows the pointer */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(70,199,180,.09), transparent 60%);
}
.tile:hover::before { opacity: 1; }
.tile .t-body { margin-top: auto; display: grid; gap: 10px; position: relative; }
.tile p { color: var(--muted); max-width: 44ch; }
.tile .tag { font-family: var(--mono); font-size: 12px; color: var(--accent); }
.t-scan { grid-column: span 4; background: linear-gradient(140deg, var(--surface-2) 0%, var(--bg-2) 60%); }
.t-auto { grid-column: span 2; }
.t-agent { grid-column: span 2; }
.t-platform { grid-column: span 4; background: linear-gradient(200deg, var(--surface-2) 0%, var(--bg-2) 55%); }
.tile-visual { position: relative; flex: 1; min-height: 160px; margin: -6px -6px 22px; }
.tile-visual svg { width: 100%; height: 100%; }
@media (max-width: 900px) {
  .bento { grid-template-columns: 1fr; }
  .t-scan, .t-auto, .t-agent, .t-platform { grid-column: auto; }
}

/* scan map */
.pm-node rect { fill: var(--surface); stroke: var(--line-2); }
.pm-node text { fill: var(--muted); font-size: 11px; font-family: var(--mono); letter-spacing: -0.02em; }
.pm-node.hot rect { stroke: var(--accent); fill: rgba(70,199,180,.08); }
.pm-node.hot text { fill: var(--text); }
.pm-edge { stroke: rgba(244,242,237,.18); stroke-width: 1.5; fill: none; stroke-dasharray: 4 5; }
.pm-flag { fill: var(--accent); font-size: 11px; font-family: var(--mono); }

/* agent bubbles */
.bubbles { display: grid; gap: 10px; align-content: start; padding-top: 4px; }
.bub { max-width: 85%; padding: 10px 14px; border-radius: 16px; font-size: 14px; line-height: 1.45; }
.bub.u { justify-self: end; background: var(--surface-2); border-bottom-right-radius: 6px; }
.bub.a { background: var(--accent-soft); border: 1px solid rgba(70,199,180,.22); border-bottom-left-radius: 6px; }
.typing { display: inline-flex; gap: 4px; padding: 14px 16px; }
.typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: blink 1.2s infinite both; }
.typing span:nth-child(2) { animation-delay: .15s; } .typing span:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }

/* mini nodes */
.mini-flow { display: flex; align-items: center; justify-content: center; height: 100%; gap: 0; }
.mn { width: 54px; height: 54px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line-2); display: grid; place-items: center; font-size: 22px; color: var(--text); position: relative; z-index: 1; }
.mn.on { border-color: var(--accent); color: var(--accent); }
.mn-line { width: 34px; height: 2px; background: rgba(244,242,237,.15); position: relative; overflow: hidden; }
.mn-line::after { content: ""; position: absolute; inset: 0; width: 40%; background: var(--accent); animation: run 1.8s var(--ease) infinite; }
@keyframes run { from { transform: translateX(-100%); } to { transform: translateX(260%); } }

/* platform layers */
.layers { position: relative; height: 100%; min-height: 190px; perspective: 900px; }
.layer {
  position: absolute; left: 50%; top: 50%; width: min(60%, 360px); aspect-ratio: 16 / 9; border-radius: 14px;
  border: 1px solid var(--line-2); background: var(--glass); backdrop-filter: blur(6px);
  transform: translate(-50%, -50%) rotateX(52deg) rotateZ(-32deg) translateZ(calc(var(--i) * 34px));
  transition: transform .9s var(--ease);
  display: grid; grid-template-columns: 26% 1fr; gap: 8px; padding: 10px;
}
.layer::before, .layer::after { content: ""; border-radius: 8px; background: rgba(244,242,237,.06); }
.layer.top { border-color: rgba(70,199,180,.5); }
.layer.top::after { background: linear-gradient(120deg, rgba(70,199,180,.25), rgba(70,199,180,.05)); }
.t-platform:hover .layer { transform: translate(-50%, -50%) rotateX(52deg) rotateZ(-32deg) translateZ(calc(var(--i) * 58px)); }
.layer-label { position: absolute; right: 6%; font-family: var(--mono); font-size: 12px; color: var(--muted); }

/* ---------- automation flows ---------- */
.flows { display: grid; grid-template-columns: 300px 1fr; gap: 20px; }
.flow-tabs { display: grid; gap: 8px; align-content: start; }
.flow-tab {
  text-align: left; padding: 18px 20px; border-radius: var(--radius); border: 1px solid var(--line); background: transparent;
  display: grid; gap: 4px; transition: border-color .3s, background-color .3s;
}
.flow-tab strong { font-weight: 500; display: flex; align-items: center; gap: 10px; }
.flow-tab span { color: var(--muted); font-size: 14px; }
.flow-tab i { font-size: 20px; color: var(--faint); transition: color .3s; }
.flow-tab[aria-selected="true"] { border-color: rgba(70,199,180,.45); background: var(--accent-soft); }
.flow-tab[aria-selected="true"] i { color: var(--accent); }
.flow-tab:hover:not([aria-selected="true"]) { background: rgba(244,242,237,.03); }
.flow-stage { border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg-2); overflow: hidden; display: grid; grid-template-rows: auto 1fr auto; min-height: 520px; }
.stage-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: 12px; color: var(--muted); }
.stage-bar .run { display: inline-flex; align-items: center; gap: 8px; color: var(--accent); }
.stage-bar .run::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(70,199,180,.6); animation: ping 1.6s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(70,199,180,.5); } 100% { box-shadow: 0 0 0 10px rgba(70,199,180,0); } }
.stage-canvas {
  position: relative; min-height: 340px;
  background-image: radial-gradient(rgba(244,242,237,.07) 1px, transparent 1px); background-size: 22px 22px;
}
.stage-canvas svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.f-edge { fill: none; stroke: rgba(244,242,237,.16); stroke-width: 2; }
.f-edge.lit { stroke: rgba(70,199,180,.55); }
.fn-wrap .fn { margin: 16px; height: calc(100% - 32px); }
.fn {
  height: 100%; display: grid; grid-template-columns: 32px 1fr; gap: 10px; align-items: center; padding: 0 10px;
  border-radius: 14px; background: var(--surface); border: 1px solid var(--line-2);
  transition: border-color .3s, background-color .3s, transform .4s var(--ease), box-shadow .4s;
}
.fn > i { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--bg-2); color: var(--muted); font-size: 18px; transition: color .3s, background-color .3s; }
.fn b { display: block; font-size: 13px; font-weight: 500; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fn span { display: block; font-size: 11px; font-family: var(--mono); color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fn.active { border-color: var(--accent); background: var(--tint); transform: translateY(-2px); box-shadow: 0 10px 30px -10px rgba(70,199,180,.45); }
.fn.active > i, .fn.done > i { color: var(--accent); background: var(--accent-soft); }
.fn.done { border-color: rgba(70,199,180,.4); }
.fn.branch { border-style: dashed; opacity: .75; }
.f-packet { fill: var(--accent); }
.stage-foot { display: grid; grid-template-columns: 1fr 1fr 1.4fr; border-top: 1px solid var(--line); }
.stage-foot > div { padding: 18px 20px; display: grid; gap: 2px; }
.stage-foot > div + div { border-left: 1px solid var(--line); }
.stage-foot .k { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.stage-foot .v { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.stage-foot .v.acc { color: var(--accent); }
.log { font-family: var(--mono); font-size: 12px; color: var(--muted); display: grid; gap: 3px; align-content: start; max-height: 92px; overflow: hidden; }
.log .ok { color: var(--accent); }
.note { font-size: 13px; color: var(--faint); margin-top: 14px; }
@media (max-width: 900px) {
  .flows { grid-template-columns: 1fr; }
  .flow-tabs { grid-auto-flow: column; grid-auto-columns: 78%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; }
  .flow-tab { scroll-snap-align: start; }
  .stage-canvas { min-height: 300px; }
  .stage-foot { grid-template-columns: 1fr 1fr; }
  .stage-foot > div:last-child { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--line); }
}

/* ---------- werkwijze ---------- */
.process { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(32px, 6vw, 96px); }
.process-intro { position: sticky; top: 120px; align-self: start; display: grid; gap: 20px; }
.steps { position: relative; padding-left: 56px; display: grid; gap: 72px; }
.steps-line { position: absolute; left: 15px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.steps-line span { position: absolute; inset: 0; background: var(--accent); transform-origin: top; transform: scaleY(0); }
.step { position: relative; display: grid; gap: 12px; }
.step-dot { position: absolute; left: -56px; top: 0; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--bg); display: grid; place-items: center; color: var(--muted); font-size: 16px; transition: border-color .4s, color .4s; }
.step.on .step-dot { border-color: var(--accent); color: var(--accent); }
.step h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); }
.step p { color: var(--muted); max-width: 48ch; }
.step ul { list-style: none; padding: 0; margin: 6px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.step li { font-size: 13px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
@media (max-width: 900px) {
  .process { grid-template-columns: 1fr; }
  .process-intro { position: static; }
}

/* ---------- cases (sticky stack) ---------- */
.cases { display: grid; gap: 28px; }
.case {
  position: sticky; top: 96px;
  border-radius: 24px; border: 1px solid var(--line); background: var(--bg-2); overflow: hidden;
  display: grid; grid-template-columns: 1fr 1.25fr; min-height: min(640px, 78vh);
  box-shadow: 0 -30px 60px -30px rgba(0,0,0,.6);
}
.case:nth-child(2) { top: 120px; background: var(--surface); }
.case-info { padding: clamp(28px, 4vw, 52px); display: flex; flex-direction: column; gap: 20px; }
.case-info .meta { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { font-size: 13px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--muted); white-space: nowrap; }
.pill.acc { border-color: rgba(70,199,180,.4); color: var(--accent); }
.case h3 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); letter-spacing: -0.035em; }
.case-stats { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 32px; margin-top: auto; padding-top: 24px; border-top: 1px solid var(--line); }
.case-stats b { display: block; font-size: 28px; font-weight: 600; letter-spacing: -0.03em; }
.case-stats span { font-size: 13px; color: var(--muted); }
.case-visual { position: relative; background: radial-gradient(120% 80% at 70% 30%, var(--glow-strong), transparent 70%); display: grid; place-items: center; padding: 40px 0 40px 24px; overflow: hidden; }
@media (max-width: 900px) {
  .case { position: relative; top: 0 !important; grid-template-columns: 1fr; }
  .case-visual { padding: 24px; min-height: 300px; }
  .case-stats { grid-template-columns: repeat(3, 1fr); gap: 16px; }
}

/* device frames */
.laptop { width: 112%; margin-right: -14%; filter: drop-shadow(0 40px 60px rgba(0,0,0,.5)); transform: perspective(1400px) rotateY(-14deg) rotateX(4deg); transition: transform 1s var(--ease); }
.case:hover .laptop { transform: perspective(1400px) rotateY(-6deg) rotateX(2deg); }
.laptop-screen { border-radius: 14px 14px 0 0; border: 10px solid #1b1f22; border-bottom-width: 14px; background: #fff; aspect-ratio: 16 / 10; overflow: hidden; position: relative; }
.laptop-screen iframe { width: 250%; height: 250%; max-width: none; border: 0; transform: scale(.4); transform-origin: 0 0; pointer-events: none; }
.laptop-base { height: 14px; margin-inline: -6%; background: linear-gradient(#2a3035, #15191c); border-radius: 0 0 16px 16px; }
.phone { position: absolute; width: 27%; aspect-ratio: 9 / 19.5; border-radius: 30px; border: 8px solid #1b1f22; background: var(--surface); overflow: hidden; box-shadow: 0 30px 60px rgba(0,0,0,.55); }
.slot { /* explicit placeholder for real screenshots */
  display: grid; place-items: center; text-align: center; gap: 8px; padding: 16px;
  background: repeating-linear-gradient(135deg, rgba(244,242,237,.03) 0 10px, transparent 10px 20px), var(--surface);
  color: var(--faint); font-family: var(--mono); font-size: 12px; line-height: 1.4; height: 100%;
}
.slot i { font-size: 26px; color: var(--muted); }


/* ---------- about ---------- */
.about { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.portrait { aspect-ratio: 4 / 5; border-radius: 24px; overflow: hidden; border: 1px solid var(--line); position: relative; }
.portrait .slot { font-size: 13px; }
.about-mark { position: relative; aspect-ratio: 4 / 5; border-radius: 24px; border: 1px solid var(--line); overflow: hidden; display: grid; grid-template-rows: 1fr auto auto; padding: clamp(22px, 3vw, 34px); background: radial-gradient(80% 60% at 50% 35%, var(--glow-strong), transparent 70%), var(--bg-2); }
.am-logo { display: grid; place-items: center; }
.am-logo svg { width: 58%; height: auto; color: var(--accent); filter: drop-shadow(0 20px 40px rgba(70,199,180,.35)); animation: am-float 7s ease-in-out infinite; }
@keyframes am-float { 50% { transform: translateY(-10px) rotate(-1.5deg); } }
.am-name { margin: 0 0 18px; text-align: center; font-family: var(--mono); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.am-facts { margin: 0; display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.am-facts > div { padding: 14px 4px 0; min-width: 0; }
.am-facts > div:nth-child(n+3) { padding-top: 12px; }
.am-facts dt { font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.am-facts dd { margin: 2px 0 0; font-size: 14px; color: var(--text); }
@media (max-width: 900px) { .about-mark { aspect-ratio: auto; min-height: 380px; } }
.about-body { display: grid; gap: 22px; }
.about-body h2 { font-size: clamp(2rem, 4vw, 3.1rem); }
.about-body p { color: var(--muted); max-width: 56ch; }
.creds { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-top: 8px; }
.creds div { background: var(--bg); padding: 18px 20px; display: grid; gap: 4px; }
.creds b { font-weight: 500; }
.creds span { font-size: 14px; color: var(--muted); }
.stack { display: flex; flex-wrap: wrap; align-items: center; gap: 26px; margin-top: 8px; opacity: .75; }
.stack img { height: 22px; width: auto; }
@media (max-width: 900px) {
  .about { grid-template-columns: 1fr; }
  .portrait { max-width: 420px; }
  .creds { grid-template-columns: 1fr; }
}

/* ---------- reviews ---------- */
.reviews { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(300px, 420px); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
.review { scroll-snap-align: start; border-radius: var(--radius); border: 1px dashed var(--line-2); padding: 28px; display: grid; gap: 22px; align-content: space-between; min-height: 250px; background: rgba(244,242,237,.015); }
.review blockquote { margin: 0; font-size: 19px; line-height: 1.45; letter-spacing: -0.01em; }
.review.ph blockquote { color: var(--faint); }
.review figcaption { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--muted); }
.review figcaption .av { width: 40px; height: 40px; border-radius: 50%; border: 1px dashed var(--line-2); display: grid; place-items: center; color: var(--faint); }
.review figcaption b { color: var(--text); font-weight: 500; display: block; }
.review.real { border-style: solid; background: var(--bg-2); }

/* ---------- pricing ---------- */
.plans { display: grid; grid-template-columns: 1fr 1.15fr 1fr; gap: 16px; align-items: stretch; }
.plan { border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg-2); padding: 32px; display: flex; flex-direction: column; gap: 22px; }
.plan.feat { border-color: rgba(70,199,180,.45); background: linear-gradient(180deg, var(--tint), var(--bg-2) 70%); transform: translateY(-12px); }
.plan h3 { display: flex; justify-content: space-between; align-items: center; }
.plan .price { font-size: 40px; font-weight: 600; letter-spacing: -0.04em; line-height: 1; }
.plan .price small { font-size: 15px; color: var(--muted); font-weight: 400; letter-spacing: 0; }
.plan .from { font-size: 13px; color: var(--muted); font-family: var(--mono); }
.plan ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; color: var(--muted); font-size: 15px; }
.plan li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; }
.plan li i { color: var(--accent); font-size: 18px; margin-top: 2px; }
.plan .btn { margin-top: auto; justify-content: center; }
@media (max-width: 960px) {
  .plans { grid-template-columns: 1fr; }
  .plan.feat { transform: none; }
}

/* ---------- faq ---------- */
.faq { display: grid; grid-template-columns: 1fr 1.5fr; gap: clamp(32px, 6vw, 96px); }
.faq-list { display: grid; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 0; display: flex; justify-content: space-between; align-items: center; gap: 20px; font-size: 18px; font-weight: 500; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { font-size: 18px; color: var(--muted); transition: transform .4s var(--ease); }
.faq details[open] summary i { transform: rotate(45deg); color: var(--accent); }
.faq details p { color: var(--muted); padding: 0 0 24px; max-width: 62ch; }
@media (max-width: 900px) { .faq { grid-template-columns: 1fr; } }

/* ---------- final cta ---------- */
.cta-final { text-align: center; }
.cta-box { border-radius: 28px; border: 1px solid var(--line); padding: clamp(48px, 8vw, 110px) var(--gutter); position: relative; overflow: hidden; background: radial-gradient(80% 120% at 50% 0%, var(--glow-strong), var(--bg-2) 70%); }
.cta-box .mark-bg { position: absolute; width: 60%; right: -12%; bottom: -30%; color: rgba(244,242,237,.035); pointer-events: none; }
.cta-box h2 { font-size: clamp(2.2rem, 5vw, 4.2rem); max-width: 18ch; margin: 0 auto 20px; }
.cta-box .lead { margin: 0 auto; }
.cta-box .hero-cta { justify-content: center; }

/* ---------- footer ---------- */
.footer { padding: 64px 0 40px; border-top: 1px solid var(--line); margin-top: 40px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 32px; }
.foot-grid h4 { font-size: 13px; font-family: var(--mono); font-weight: 400; color: var(--faint); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 14px; }
.foot-grid a { display: block; color: var(--muted); padding: 4px 0; font-size: 15px; }
.foot-grid a:hover { color: var(--text); }
.foot-grid p { color: var(--muted); font-size: 15px; max-width: 32ch; margin-top: 16px; }
.foot-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 56px; color: var(--faint); font-size: 14px; }
@media (max-width: 800px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-grid > div:first-child { grid-column: 1 / -1; } }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); }
.reveal.in { opacity: 1; transform: none; transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: calc(var(--d, 0) * 80ms); }

/* ---------- agent launcher + panel ---------- */
.agent-fab {
  position: fixed; right: 20px; bottom: 20px; z-index: var(--z-agent);
  display: inline-flex; align-items: center; gap: 10px; height: 54px; padding: 0 20px 0 8px; border-radius: 999px;
  background: var(--text); color: var(--accent-ink); font-weight: 500; box-shadow: 0 20px 40px -12px rgba(0,0,0,.6);
  transition: transform .5s var(--ease), opacity .3s;
}
.agent-fab:hover { transform: translateY(-2px); }
.agent-fab .fab-ic { width: 40px; height: 40px; border-radius: 50%; background: var(--brand); color: var(--text); display: grid; place-items: center; }
.agent-fab .fab-ic svg { width: 22px; height: 14px; }
.agent-open .agent-fab { opacity: 0; pointer-events: none; transform: scale(.9); }

.agent {
  position: fixed; z-index: var(--z-agent); right: 20px; bottom: 20px; width: min(440px, calc(100vw - 32px)); height: min(720px, calc(100dvh - 40px));
  border-radius: 24px; border: 1px solid var(--line-2); background: rgba(8, 22, 27, .96); backdrop-filter: blur(20px);
  box-shadow: 0 40px 100px -20px rgba(0,0,0,.75); display: grid; grid-template-rows: auto 1fr auto; overflow: hidden;
  opacity: 0; transform: translateY(20px) scale(.98); pointer-events: none; transform-origin: bottom right;
  transition: opacity .35s var(--ease), transform .5s var(--ease);
}
.agent-open .agent { opacity: 1; transform: none; pointer-events: auto; }
@media (max-width: 560px) {
  .agent { right: 0; bottom: 0; width: 100vw; height: 100dvh; border-radius: 0; border: 0; }
}
.ag-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.ag-head .av { width: 38px; height: 38px; border-radius: 12px; background: var(--brand); display: grid; place-items: center; }
.ag-head .av svg { width: 22px; height: 14px; color: var(--text); }
.ag-head .ttl { flex: 1; line-height: 1.25; }
.ag-head .ttl b { font-weight: 600; display: block; }
.ag-head .ttl span { font-size: 13px; color: var(--muted); }
.ag-head .ttl .demo { color: #e9c983; }
.ag-ic { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; color: var(--muted); font-size: 18px; }
.ag-ic:hover { background: rgba(244,242,237,.06); color: var(--text); }
.ag-progress { height: 2px; background: var(--line); position: relative; }
.ag-progress span { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--accent); transition: width .6s var(--ease); }
.ag-body { overflow-y: auto; padding: 18px 16px 8px; display: flex; flex-direction: column; gap: 12px; overscroll-behavior: contain; }
.msg { max-width: 88%; padding: 11px 15px; border-radius: 18px; font-size: 15px; line-height: 1.5; animation: msgIn .5s var(--ease) both; white-space: pre-wrap; }
@keyframes msgIn { from { opacity: 0; transform: translateY(8px); } }
.msg.bot { background: var(--surface); border-bottom-left-radius: 6px; }
.msg.me { align-self: flex-end; background: var(--accent); color: var(--accent-ink); border-bottom-right-radius: 6px; }
.msg.err { background: rgba(232,120,96,.12); color: #f0a08c; }
.quick { display: flex; flex-wrap: wrap; gap: 8px; animation: msgIn .5s var(--ease) both; }
.quick button { padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 14px; color: var(--text); transition: border-color .2s, background-color .2s; text-align: left; }
.quick button:hover { border-color: var(--accent); background: var(--accent-soft); }
.start-cards { display: grid; gap: 10px; }
.start-card { display: grid; grid-template-columns: 40px 1fr 16px; gap: 14px; align-items: center; padding: 16px; border-radius: 16px; border: 1px solid var(--line); background: rgba(244,242,237,.02); text-align: left; transition: border-color .3s, background-color .3s; }
.start-card:hover { border-color: rgba(70,199,180,.5); background: var(--accent-soft); }
.start-card .ic { width: 40px; height: 40px; border-radius: 12px; background: var(--surface-2); display: grid; place-items: center; font-size: 20px; color: var(--accent); }
.start-card b { display: block; font-weight: 500; }
.start-card span { font-size: 13px; color: var(--muted); }
.start-card > i { color: var(--faint); }
.ag-intro { padding: 4px 2px 6px; }
.ag-intro h4 { font-size: 22px; letter-spacing: -0.03em; margin-bottom: 6px; }
.ag-intro p { color: var(--muted); font-size: 15px; }
.ag-foot { border-top: 1px solid var(--line); padding: 12px; }
.ag-form { display: flex; gap: 8px; align-items: flex-end; }
.ag-form label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.ag-form textarea { flex: 1; resize: none; min-height: 46px; max-height: 120px; padding: 12px 14px; border-radius: var(--radius-sm); border: 1px solid var(--line-2); background: var(--bg-2); color: var(--text); font: inherit; font-size: 15px; line-height: 1.4; }
.ag-form textarea::placeholder { color: var(--faint); }
.ag-form textarea:focus { outline: none; border-color: var(--accent); }
.ag-send { width: 46px; height: 46px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-size: 20px; flex: none; }
.ag-send:disabled { opacity: .4; cursor: default; }
.ag-mic { width: 46px; height: 46px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--muted); display: grid; place-items: center; font-size: 20px; flex: none; transition: color .2s, border-color .2s, background-color .2s; }
.ag-mic:hover { color: var(--text); border-color: rgba(244,242,237,.3); }
.ag-mic.on { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); animation: mic-ping 1.4s infinite; }
@keyframes mic-ping { 0% { box-shadow: 0 0 0 0 rgba(70,199,180,.55); } 100% { box-shadow: 0 0 0 14px rgba(70,199,180,0); } }
.ag-ic[aria-pressed="true"] { color: var(--accent); }
.ag-legal { font-size: 11px; color: var(--faint); text-align: center; margin-top: 8px; }

/* scan report card */
.report { border-radius: 18px; border: 1px solid rgba(70,199,180,.35); background: linear-gradient(180deg, var(--tint), var(--surface)); padding: 18px; display: grid; gap: 14px; animation: msgIn .6s var(--ease) both; }
.report-h { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.report-h b { font-size: 17px; letter-spacing: -0.02em; display: block; }
.report-h span { font-size: 12px; color: var(--muted); font-family: var(--mono); }
.report-total { text-align: right; }
.report-total b { font-size: 26px; color: var(--accent); letter-spacing: -0.03em; }
.opp { border-radius: 14px; background: rgba(29,30,33,.6); border: 1px solid var(--line); padding: 14px; display: grid; gap: 6px; }
.opp-top { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.opp-top b { font-weight: 500; font-size: 15px; }
.opp-top span { font-family: var(--mono); font-size: 12px; color: var(--accent); white-space: nowrap; }
.opp p { font-size: 13px; color: var(--muted); line-height: 1.5; }
.opp .tools { display: flex; flex-wrap: wrap; gap: 6px; }
.opp .tools span { font-size: 11px; font-family: var(--mono); padding: 3px 8px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--muted); }
.report-actions { display: grid; gap: 8px; }
.report-actions .btn { height: 44px; justify-content: center; font-size: 15px; }
.report small { font-size: 11px; color: var(--faint); line-height: 1.45; }
.mail-form { display: grid; gap: 6px; }
.mail-form label { font-size: 13px; color: var(--muted); }
.mail-form .row { display: flex; gap: 8px; }
.mail-form input { flex: 1; height: 44px; padding: 0 14px; border-radius: var(--radius-sm); border: 1px solid var(--line-2); background: var(--bg-2); color: var(--text); font: inherit; font-size: 15px; }
.mail-form input:focus { outline: none; border-color: var(--accent); }
.mail-form .hint { font-size: 12px; color: var(--faint); }
.mail-form .hint.err { color: #f0a08c; }
.mail-form .hint.ok { color: var(--accent); }
.tracker { list-style: none; margin: 0; padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(70,199,180,.3); background: rgba(29,30,33,.6); display: grid; gap: 8px; }
.tracker li { display: grid; grid-template-columns: 20px 1fr auto; align-items: center; gap: 8px; font-size: 13px; color: var(--faint); transition: color .3s; }
.tracker li i { font-size: 17px; }
.tracker li.run { color: var(--muted); } .tracker li.run i { color: var(--accent); animation: blink 1s infinite; }
.tracker li.ok { color: var(--text); } .tracker li.ok i { color: var(--accent); }
.tracker li.bad i { color: #f0a08c; }
.tracker small { font-family: var(--mono); font-size: 11px; color: var(--faint); }
.mail-form .hint a { text-decoration: underline; text-underline-offset: 2px; }
.foot-bottom a { transition: color .2s; }
.foot-bottom a:hover { color: var(--text); }

/* ---------- case pages ---------- */
.page-hero { padding-top: 150px; padding-bottom: 60px; }
.crumb { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 15px; margin-bottom: 32px; }
.crumb:hover { color: var(--text); }
.page-hero h1 { font-size: clamp(2.6rem, 6vw, 5rem); letter-spacing: -0.045em; max-width: 16ch; margin: 18px 0 24px; }
.cs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cs-card { border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg-2); padding: 30px; display: grid; gap: 12px; align-content: start; }
.cs-card i.big { font-size: 28px; color: var(--accent); }
.cs-card p { color: var(--muted); }
.cs-card.wide { grid-column: 1 / -1; }
.cs-split { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.cs-split .sticky { position: sticky; top: 120px; display: grid; gap: 18px; }
.cs-list { display: grid; gap: 1px; background: var(--line); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.cs-list div { background: var(--bg); padding: 22px 24px; display: grid; grid-template-columns: 28px 1fr; gap: 14px; }
.cs-list i { font-size: 22px; color: var(--accent); margin-top: 2px; }
.cs-list b { font-weight: 500; display: block; margin-bottom: 4px; }
.cs-list span { color: var(--muted); font-size: 15px; }
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.shots { display: flex; justify-content: center; gap: clamp(20px, 5vw, 64px); }
.shots figure { margin: 0; display: grid; gap: 16px; justify-items: center; width: min(280px, 62vw); }
.shots .phone { position: relative; width: 100%; transition: transform .8s var(--ease); }
.shots figure:first-child .phone { transform: rotate(-3deg) translateY(16px); }
.shots figure:last-child .phone { transform: rotate(3deg); }
.shots figure:hover .phone { transform: none; }
.shots figcaption { font-family: var(--mono); font-size: 12px; color: var(--faint); letter-spacing: .04em; }
@media (max-width: 600px) { .shots .phone { border-width: 5px; border-radius: 22px; } }
.big-shot { border-radius: 24px; border: 1px solid var(--line); overflow: hidden; background: #fff; aspect-ratio: 16 / 9; position: relative; }
.big-shot iframe { width: 200%; height: 200%; max-width: none; transform: scale(.5); transform-origin: 0 0; border: 0; }
.flowline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: f; }
.flowline div { border-radius: var(--radius); border: 1px solid var(--line); padding: 24px; display: grid; gap: 10px; position: relative; background: var(--bg-2); }
.flowline div i { font-size: 24px; color: var(--accent); }
.flowline div p { color: var(--muted); font-size: 15px; }
.flowline div:not(:last-child)::after { content: ""; position: absolute; right: -17px; top: 50%; width: 18px; height: 2px; background: var(--accent); opacity: .5; }
@media (max-width: 900px) {
  .cs-grid, .cs-split, .flowline { grid-template-columns: 1fr; }
  .cs-split .sticky { position: static; }
  .flowline div:not(:last-child)::after { display: none; }
}
.quote-big { font-size: clamp(1.6rem, 3.4vw, 2.6rem); letter-spacing: -0.03em; line-height: 1.2; max-width: 28ch; }
.quote-by { color: var(--muted); margin-top: 20px; }

/* ---------- text pages (privacy) ---------- */
.prose { max-width: 720px; }
.prose h2 { font-size: clamp(1.3rem, 2vw, 1.6rem); letter-spacing: -0.02em; margin: 48px 0 14px; }
.prose p, .prose li { color: var(--muted); }
.prose p + p { margin-top: 14px; }
.prose ul { display: grid; gap: 12px; padding-left: 20px; margin-top: 4px; }
.prose li::marker { color: var(--accent); }
.prose b { color: var(--text); font-weight: 500; }
.slot-inline { font-family: var(--mono); font-size: .85em; color: var(--faint); border: 1px dashed var(--line-2); border-radius: 6px; padding: 1px 6px; }

/* ---------- 404 ---------- */
.nf { min-height: 100dvh; display: flex; align-items: center; padding-block: 48px; }
.nf .logo { display: inline-block; margin-bottom: 64px; }
.nf h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); letter-spacing: -0.045em; line-height: 1.02; max-width: 16ch; margin: 16px 0 20px; }
.nf-chain { width: min(320px, 80%); height: auto; display: block; margin-bottom: 40px; }
.nf-broken { stroke: var(--accent); animation: nf-sway 3.2s var(--ease) infinite alternate; transform-box: fill-box; transform-origin: left center; }
@keyframes nf-sway { from { rotate: 0deg; } to { rotate: 6deg; } }

/* ---------- AI-lab (assets/js/lab.js) ---------- */
.lab { border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2); overflow: hidden; }
.lab-tabs { display: flex; gap: 4px; padding: 8px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.lab-tabs [role=tab] { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 10px; color: var(--muted); font-size: 15px; white-space: nowrap; transition: color .2s, background-color .2s; }
.lab-tabs [role=tab] i { font-size: 18px; }
.lab-tabs [role=tab]:hover { color: var(--text); }
.lab-tabs [role=tab][aria-selected="true"] { background: var(--accent-soft); color: var(--text); }
.lab-tabs [role=tab][aria-selected="true"] i { color: var(--accent); }
.lab-panel { display: grid; grid-template-columns: 1fr 1.25fr; min-height: 420px; }
.lab-panel[hidden] { display: none; }
.lab-in { padding: 24px; display: grid; gap: 16px; align-content: start; border-right: 1px solid var(--line); }
.lab-out { padding: 24px; min-width: 0; }
.lab-drop { position: relative; display: grid; justify-items: center; gap: 6px; text-align: center; padding: 34px 20px; border-radius: 16px; border: 1.5px dashed var(--line-2); background: rgba(244,242,237,.02); cursor: pointer; transition: border-color .2s, background-color .2s; }
.lab-drop:hover, .lab-drop.over { border-color: var(--accent); background: var(--accent-soft); }
.lab-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.lab-drop i { font-size: 32px; color: var(--accent); }
.lab-drop span { font-size: 13px; color: var(--faint); }
.lab-samples { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; color: var(--faint); }
.lab-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.lab-steps li { font-family: var(--mono); font-size: 11px; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--faint); transition: all .3s; }
.lab-steps li.run { border-color: var(--accent); color: var(--text); }
.lab-steps li.ok { border-color: rgba(70,199,180,.4); background: var(--accent-soft); color: var(--accent); }
.lab-steps li.ok::before { content: "✓ "; }
.lab-empty { height: 100%; min-height: 200px; display: grid; place-content: center; justify-items: center; gap: 10px; text-align: center; color: var(--faint); margin: 0; max-width: 36ch; margin-inline: auto; }
.lab-empty i { font-size: 34px; }
.lab-msg { color: #e9c983; margin: 0; }
.lab-badge { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 12px; padding: 5px 10px; border-radius: 999px; }
.lab-badge.peppol, .lab-badge.ai { color: var(--accent); background: var(--accent-soft); border: 1px solid rgba(70,199,180,.3); }
.lab-badge.demo { color: #e9c983; background: rgba(233,201,131,.08); border: 1px solid rgba(233,201,131,.3); }
.inv, .co { display: grid; gap: 16px; animation: msgIn .6s var(--ease) both; }
.inv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px 18px; margin: 0; }
.inv-grid dt { font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); }
.inv-grid dd { margin: 2px 0 0; font-size: 15px; font-weight: 500; overflow-wrap: anywhere; }
.inv-lines { width: 100%; border-collapse: collapse; font-size: 14px; }
.inv-lines td { padding: 8px 0; border-top: 1px solid var(--line); color: var(--muted); }
.inv-lines td:last-child { text-align: right; color: var(--text); font-variant-numeric: tabular-nums; white-space: nowrap; padding-left: 12px; }
.inv-tot { display: flex; flex-wrap: wrap; gap: 8px 22px; padding: 14px 16px; border-radius: 12px; background: var(--surface); font-size: 14px; color: var(--muted); }
.inv-tot b { color: var(--text); font-weight: 600; margin-left: 4px; font-variant-numeric: tabular-nums; }
.inv-tot .acc b { color: var(--accent); }
.inv-checks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.inv-checks li { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.inv-checks i { font-size: 18px; }
.inv-checks .ok i { color: var(--accent); } .inv-checks .bad i { color: #f0a08c; } .inv-checks .na i { color: var(--faint); }
.inv-book { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 12px; border: 1px solid rgba(70,199,180,.3); background: var(--tint); font-size: 14px; color: var(--muted); }
.inv-book i { font-size: 20px; color: var(--accent); }
.inv-book b { display: block; color: var(--text); font-weight: 500; }
.inv-note { display: flex; gap: 8px; margin: 0; font-size: 14px; color: #e9c983; }
.co-form { display: grid; gap: 8px; }
.co-form label { font-size: 14px; color: var(--muted); }
.co-form .row { display: flex; gap: 8px; }
.co-form input { flex: 1; min-width: 0; height: 50px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--bg); color: var(--text); font: inherit; }
.co-form input:focus { outline: none; border-color: var(--accent); }
.co-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.co-head b { display: block; font-size: 20px; letter-spacing: -0.02em; }
.co-head span { color: var(--faint); font-size: 14px; }
.co-tot { text-align: right; } .co-tot b { color: var(--accent); }
.co > p { color: var(--muted); margin: 0; }
.co-load { display: flex; align-items: center; gap: 12px; color: var(--muted); }
.co-load span { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line-2); border-top-color: var(--accent); animation: spin360 .8s linear infinite; }
@keyframes spin360 { to { transform: rotate(360deg); } }
.lab-in.talk { justify-items: center; text-align: center; align-content: center; }
.talk-btn { position: relative; width: 112px; height: 112px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-size: 42px; box-shadow: 0 20px 50px -14px rgba(70,199,180,.6); transition: transform .4s var(--ease); }
.talk-btn:hover { transform: scale(1.06); }
.talk-btn span { position: absolute; inset: -10px; border-radius: 50%; border: 2px solid var(--accent); opacity: 0; animation: talk-ring 2.2s var(--ease) infinite; }
@keyframes talk-ring { 0% { opacity: .7; transform: scale(.85); } 100% { opacity: 0; transform: scale(1.3); } }
.talk-try { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; align-content: center; height: 100%; }
.talk-try li { padding: 14px 18px; border-radius: 14px 14px 14px 4px; background: var(--surface); border: 1px solid var(--line); color: var(--muted); font-size: 15px; }
.lab-tabs .soon { font-family: var(--mono); font-size: 10px; padding: 2px 7px; border-radius: 999px; border: 1px solid rgba(70,199,180,.4); color: var(--accent); }
.wa-ic { width: 84px; height: 84px; border-radius: 26px; display: grid; place-items: center; font-size: 42px; color: #fff; background: #25d366; opacity: .85; }
.wa-chat { display: grid; gap: 10px; align-content: center; height: 100%; padding: 16px; border-radius: 16px; background: #0b141a; filter: saturate(.8); }
.wa-msg { max-width: 80%; padding: 9px 12px; border-radius: 10px; font-size: 14px; line-height: 1.45; color: #e9edef; }
.wa-msg.in { background: #202c33; border-top-left-radius: 2px; }
.wa-msg.out { justify-self: end; background: #005c4b; border-top-right-radius: 2px; }
.lab.busy .lab-drop, .lab.busy .lab-samples button { pointer-events: none; opacity: .6; }
@media (max-width: 900px) {
  .lab-panel { grid-template-columns: 1fr; min-height: 0; }
  .lab-in { border-right: 0; border-bottom: 1px solid var(--line); }
  .inv-grid { grid-template-columns: 1fr 1fr; }
  .inv-checks { grid-template-columns: 1fr; }
}

/* ---------- sector pages + motorkap ---------- */
.sec-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.sec-tabs a.pill { transition: border-color .2s, color .2s; }
.sec-tabs a.pill:hover { color: var(--text); border-color: rgba(244,242,237,.35); }
.sec-flows { grid-template-columns: repeat(3, 1fr); }
.sec-gain { font-family: var(--mono); font-size: 13px; color: var(--accent); margin-top: 4px; }
.sec-case { display: flex; align-items: center; gap: 16px; padding: 22px 26px; border-radius: var(--radius); border: 1px solid rgba(70,199,180,.3); background: linear-gradient(90deg, var(--tint), var(--bg-2)); transition: transform .4s var(--ease), border-color .2s; }
.sec-case:hover { transform: translateY(-2px); border-color: var(--accent); }
.sec-case b { flex: 1; font-weight: 500; }
.sec-case > i { font-size: 20px; color: var(--accent); }
.sectors { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 22px; color: var(--muted); font-size: 15px; }
.sectors a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--text); font-size: 14px; transition: border-color .2s, background-color .2s; }
.sectors a:hover { border-color: rgba(70,199,180,.5); background: var(--accent-soft); }
.sectors a i { color: var(--accent); font-size: 16px; }
.mk-live { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2); }
.mk-live > div { padding: 22px 24px; display: grid; gap: 4px; }
.mk-live > div + div { border-left: 1px solid var(--line); }
.mk-live .k { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.mk-live .v { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 600; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.mk-live .v.acc { color: var(--accent); }
.mk-arch { border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2); background-image: radial-gradient(rgba(244,242,237,.06) 1px, transparent 1px); background-size: 20px 20px; padding: clamp(12px, 3vw, 32px); overflow-x: auto; }
.mk-arch svg { width: 100%; min-width: 640px; height: auto; color: rgba(70,199,180,.7); }
.mk-edges path { fill: none; stroke: currentColor; stroke-width: 2; stroke-dasharray: 5 6; animation: mk-dash 1.2s linear infinite; }
@keyframes mk-dash { to { stroke-dashoffset: -22; } }
.mk-node rect { fill: var(--surface); stroke: var(--line-2); }
.mk-node.hl rect { stroke: var(--accent); fill: var(--tint); }
.mk-node text { fill: var(--text); font-family: var(--font); font-size: 16px; font-weight: 500; text-anchor: middle; }
.mk-node text.s { fill: var(--faint); font-family: var(--mono); font-size: 11.5px; font-weight: 400; }
.mk-dot { fill: var(--accent); }
.mk-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 900px) {
  .sec-flows, .mk-grid { grid-template-columns: 1fr; }
  .mk-live { grid-template-columns: 1fr 1fr; }
  .mk-live > div:nth-child(3) { border-left: 0; }
  .mk-live > div:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (prefers-reduced-motion: reduce) { .mk-edges path { animation: none; } .mk-dot { display: none; } }
@media (max-width: 700px) { .mk-arch::after { content: "Veeg opzij om alles te zien"; display: block; margin-top: 10px; font-family: var(--mono); font-size: 11px; color: var(--faint); position: sticky; left: 0; } }

/* ---------- flow builder (assets/js/builder.js) ---------- */
.builder { display: grid; grid-template-columns: 290px 1fr; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2); overflow: hidden; }
.b-pal { border-right: 1px solid var(--line); padding: 14px; display: grid; gap: 14px; align-content: start; max-height: 640px; overflow-y: auto; }
.b-cat { display: grid; gap: 6px; }
.b-cat > span { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); padding: 0 4px; }
.b-block { display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 10px; text-align: left; padding: 8px 10px 8px 8px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); cursor: grab; transition: border-color .2s, background-color .2s, transform .3s var(--ease); }
.b-block:hover { border-color: rgba(70,199,180,.4); background: var(--tint); transform: translateX(3px); }
.b-block:active { cursor: grabbing; }
.b-block > i:first-child { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-size: 18px; background: rgba(244,242,237,.05); color: var(--accent); }
.b-block b { display: block; font-size: 14px; font-weight: 500; line-height: 1.2; }
.b-block small { font-size: 12px; color: var(--faint); }
.b-add { color: var(--faint); font-size: 16px; }
.b-main { display: grid; grid-template-rows: auto 1fr auto auto; min-width: 0; }
.b-tpl { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.b-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--muted); transition: all .2s; }
.b-chip:hover { color: var(--text); border-color: rgba(70,199,180,.5); }
.b-chip.ghost { margin-left: auto; }
.b-canvas { position: relative; min-height: 260px; padding: 28px 20px; background-image: radial-gradient(rgba(244,242,237,.06) 1px, transparent 1px); background-size: 20px 20px; transition: background-color .2s, box-shadow .2s; display: flex; align-items: center; }
.b-canvas.over { background-color: rgba(70,199,180,.05); box-shadow: inset 0 0 0 2px rgba(70,199,180,.4); }
.b-flow { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 34px 38px; align-items: center; width: 100%; }
.b-node { position: relative; display: flex; align-items: center; gap: 10px; padding: 10px 34px 10px 10px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--surface); transition: border-color .3s, box-shadow .3s, transform .3s var(--ease); }
.b-node:not(:last-child)::after { content: ""; position: absolute; left: 100%; top: 50%; width: 38px; height: 2px; background: linear-gradient(90deg, var(--line-2), rgba(70,199,180,.5)); }
.b-node > i { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-size: 18px; background: rgba(244,242,237,.05); color: var(--muted); transition: color .3s, background-color .3s; }
.b-node.trig > i { color: var(--accent); }
.b-node b { display: block; font-size: 13.5px; font-weight: 500; line-height: 1.2; }
.b-node small { font-family: var(--mono); font-size: 10.5px; color: var(--faint); }
.b-x { position: absolute; right: 6px; top: 6px; width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; color: var(--faint); font-size: 12px; }
.b-x:hover { color: var(--text); background: rgba(244,242,237,.08); }
.b-node.run { border-color: var(--accent); transform: translateY(-3px); box-shadow: 0 12px 30px -10px rgba(70,199,180,.55); }
.b-node.run > i, .b-node.ok > i { color: var(--accent); background: var(--accent-soft); }
.b-node.ok { border-color: rgba(70,199,180,.4); }
.b-empty { position: absolute; inset: 0; margin: 0; display: grid; place-content: center; justify-items: center; gap: 8px; color: var(--faint); font-size: 15px; text-align: center; padding: 20px; pointer-events: none; }
.b-empty i { font-size: 28px; }
.b-canvas.has .b-empty { display: none; }
.b-foot { display: grid; grid-template-columns: auto auto 1fr; align-items: center; gap: 0; border-top: 1px solid var(--line); }
.b-foot > div:not(.b-actions) { padding: 14px 20px; display: grid; gap: 2px; border-right: 1px solid var(--line); }
.b-foot .k { font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); }
.b-foot .v { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; } .b-foot .v.acc { color: var(--accent); }
.b-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; padding: 12px 16px; }
.b-actions .btn { height: 42px; padding: 0 16px; font-size: 14px; }
.b-actions .btn:disabled { opacity: .4; pointer-events: none; }
.b-log { font-family: var(--mono); font-size: 12px; color: var(--muted); padding: 12px 20px; border-top: 1px solid var(--line); min-height: 44px; max-height: 140px; overflow-y: auto; display: grid; gap: 3px; }
.b-log .ok { color: var(--accent); }
.b-log .warn { color: #e9c983; }
.b-log .done { color: var(--accent); margin-top: 4px; }
@media (max-width: 900px) {
  .builder { grid-template-columns: 1fr; }
  .b-pal { border-right: 0; border-bottom: 1px solid var(--line); max-height: none; grid-auto-flow: column; grid-auto-columns: minmax(220px, 1fr); overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; }
  .b-cat { scroll-snap-align: start; align-content: start; }
  .b-flow { flex-direction: column; align-items: stretch; gap: 26px; }
  .b-node:not(:last-child)::after { left: 27px; top: 100%; width: 2px; height: 26px; background: linear-gradient(180deg, var(--line-2), rgba(70,199,180,.5)); }
  .b-foot { grid-template-columns: 1fr 1fr; }
  .b-foot > div:nth-child(2) { border-right: 0; }
  .b-actions { grid-column: 1 / -1; justify-content: stretch; border-top: 1px solid var(--line); }
  .b-actions .btn { flex: 1; justify-content: center; }
}

/* ---------- 3D chain between hero and manifesto (assets/js/chain3d.js) ---------- */
.chain3d { position: relative; height: clamp(180px, 22vw, 320px); margin: clamp(-48px, -3vw, -16px) 0; cursor: grab; opacity: 0; transition: opacity 1.2s var(--ease); }
.chain3d.ready { opacity: 1; }
.chain3d canvas { display: block; width: 100%; height: 100%;
  /* soft fade top and bottom, so the halves that swing away never hit a hard edge */
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 12%, #000 72%, transparent 100%);
          mask-image: linear-gradient(to bottom, transparent 0, #000 12%, #000 72%, transparent 100%); }
.chain3d::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, var(--bg), transparent 8%, transparent 92%, var(--bg)); }

/* ---------- journey: één factuur, twee werelden (assets/js/journey.js) ---------- */
.journey { padding-top: clamp(80px, 11vw, 150px); }
.j-pin { min-height: 100dvh; display: flex; align-items: center; padding-block: 88px 32px; }
.j-stage { display: grid; gap: 18px; }
.j-lane { position: relative; border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg-2); padding: 18px 20px 22px; }
.j-lane.auto { border-color: rgba(70,199,180,.28); background: linear-gradient(180deg, var(--tint), var(--bg-2)); }
.j-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; }
.j-label { display: inline-flex; align-items: center; gap: 10px; font-weight: 500; }
.j-label i { font-size: 18px; color: var(--muted); }
.j-label svg { width: 24px; height: auto; color: var(--accent); }
.j-clock { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 14px; color: var(--muted); }
.j-clock b { font-weight: 500; color: var(--text); font-variant-numeric: tabular-nums; }
.auto .j-clock b, .auto .j-clock i { color: var(--accent); }
.j-track { position: relative; display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; padding-top: 6px; }
.j-line { position: absolute; left: calc(100% / 12); right: calc(100% / 12); top: 28px; height: 2px; background: var(--line-2); }
.j-line span { position: absolute; inset: 0; transform-origin: left; transform: scaleX(0); background: var(--muted); }
.auto .j-line span { background: var(--accent); }
.j-st { position: relative; display: grid; justify-items: center; text-align: center; gap: 4px; }
.j-st > i { position: relative; z-index: 1; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-size: 21px; background: var(--surface); border: 1px solid var(--line-2); color: var(--faint); transition: color .3s, border-color .3s, background-color .3s, transform .4s var(--ease); }
.j-st b { font-size: 13.5px; font-weight: 500; color: var(--muted); margin-top: 6px; line-height: 1.25; }
.j-st small { font-family: var(--mono); font-size: 11px; color: var(--faint); }
.j-st.on > i { color: var(--text); border-color: rgba(244,242,237,.3); }
.auto .j-st.on > i { color: var(--accent); border-color: rgba(70,199,180,.45); background: var(--accent-soft); }
.j-st.now > i { transform: scale(1.12); }
.j-flag { position: absolute; top: -26px; left: 50%; translate: -50% 0; white-space: nowrap; font-style: normal; font-family: var(--mono); font-size: 11px; color: #f0a08c; background: rgba(232,120,96,.12); border: 1px solid rgba(232,120,96,.3); padding: 2px 8px; border-radius: 999px; opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .4s var(--ease); }
.j-st.on .j-flag { opacity: 1; transform: none; }
.j-doc { position: absolute; top: 6px; left: 0; z-index: 2; width: 46px; height: 46px; margin-left: -23px; border-radius: 14px; display: grid; place-items: center; font-size: 22px; color: var(--accent-ink); background: var(--text); box-shadow: 0 10px 30px -8px rgba(0,0,0,.6); pointer-events: none; }
.manual .j-doc { background: #e9e5dc; }
.auto .j-doc { background: var(--accent); box-shadow: 0 10px 30px -8px rgba(70,199,180,.6); }
.auto.looping .j-doc { animation: j-pulse .5s ease-in-out infinite alternate; }
@keyframes j-pulse { to { box-shadow: 0 10px 40px -4px rgba(70,199,180,.85); } }
.j-done { position: absolute; right: 20px; bottom: -13px; margin: 0; font-family: var(--mono); font-size: 12px; color: var(--accent); background: var(--bg); border: 1px solid rgba(70,199,180,.35); padding: 4px 10px; border-radius: 999px; opacity: 0; transform: translateY(6px); transition: opacity .4s, transform .5s var(--ease); }
.j-done.in { opacity: 1; transform: none; }
.j-sum { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: var(--radius); margin-top: 10px; }
.j-sum > div { padding: 16px 20px; display: grid; gap: 2px; }
.j-sum > div + div { border-left: 1px solid var(--line); }
.j-sum .k { font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); margin-bottom: 4px; }
.j-sum .v { font-size: 18px; font-weight: 600; letter-spacing: -0.02em; color: var(--muted); font-variant-numeric: tabular-nums; }
.j-sum .v.acc { color: var(--accent); }
.j-sum .v small { font-size: 13px; font-weight: 400; color: var(--faint); }
.journey .note { margin-top: 4px; }
@media (max-width: 760px) {
  .j-pin { padding-top: 76px; }
  .j-lane { padding: 14px 12px 18px; }
  .j-track { gap: 2px; }
  .j-st > i, .j-doc { width: 38px; height: 38px; border-radius: 11px; font-size: 18px; }
  .j-doc { margin-left: -19px; }
  .j-line { top: 24px; }
  .j-st b { font-size: 10px; hyphens: auto; -webkit-hyphens: auto; overflow-wrap: anywhere; padding-inline: 1px; }
  .j-st small, .j-flag { display: none; }
  .j-clock { font-size: 12px; }
  .j-done { position: static; display: inline-block; margin-top: 12px; }
  .j-sum { grid-template-columns: 1fr; }
  .j-sum > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .j-sum > div { padding: 10px 14px; grid-template-columns: 1fr auto auto; align-items: baseline; gap: 10px; }
  .j-sum .k { grid-column: 1 / -1; margin: 0; }
  .j-sum .v { font-size: 15px; }
}

/* ---------- gradient text: dark to light teal; on hover the colours shift and a highlight follows the pointer ---------- */
/* registered so the colours themselves can transition (browsers without @property just switch instantly) */
@property --ga { syntax: "<color>"; inherits: true; initial-value: #1f8a82; }
@property --gb { syntax: "<color>"; inherits: true; initial-value: #46c7b4; }
@property --hl { syntax: "<color>"; inherits: true; initial-value: rgba(255, 255, 255, 0); }
.grad {
  --ga: var(--g1); --gb: var(--g2); --hl: rgba(255, 255, 255, 0);
  background:
    radial-gradient(circle at var(--mx, 50%) 55%, var(--hl), transparent 2.2em),
    linear-gradient(90deg, var(--ga), var(--gb));
  -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
  transition: --ga .7s var(--ease), --gb .7s var(--ease), --hl .5s var(--ease);
  padding-bottom: .06em; /* keep descenders inside the clip */
}
.grad:hover { --ga: var(--g2); --gb: var(--g3); --hl: rgba(255, 255, 255, .95); }

/* =========================================================
   FX LAYER (assets/js/fx.js): palette, toasts, secrets, micro-interactions
   ========================================================= */
.cmdk { display: inline-flex; align-items: center; gap: 4px; height: 42px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--muted); margin-left: auto; margin-right: -12px; transition: border-color .2s, color .2s; }
.cmdk:hover { border-color: rgba(244,242,237,.3); color: var(--text); }
.cmdk i { display: none; font-size: 20px; }
kbd { font-family: var(--mono); font-size: 11px; line-height: 1; padding: 4px 6px; border-radius: 6px; border: 1px solid var(--line-2); background: rgba(244,242,237,.04); color: var(--muted); }
@media (max-width: 960px) {
  .cmdk { width: 42px; padding: 0; justify-content: center; margin-right: 0; }
  .cmdk kbd { display: none; }
  .cmdk i { display: block; }
  .nav-in { gap: 10px; }
  .logo { margin-right: auto; }
}

.palette { position: fixed; inset: 0; z-index: calc(var(--z-agent) + 5); display: grid; place-items: start center; padding: 14vh var(--gutter) 24px; visibility: hidden; transition: visibility 0s .35s; }
.palette.open { visibility: visible; transition: none; }
.pal-scrim { position: absolute; inset: 0; background: rgba(3, 10, 13, .6); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; transition: opacity .25s; }
.pal-box { position: relative; width: min(620px, 100%); max-height: 70vh; display: grid; grid-template-rows: auto 1fr auto; border-radius: var(--radius); border: 1px solid var(--line-2); background: rgba(35, 36, 40, .94); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); box-shadow: 0 40px 120px -20px rgba(0,0,0,.7); overflow: hidden; opacity: 0; transform: translateY(-8px) scale(.98); transition: opacity .25s var(--ease), transform .35s var(--ease); }
.palette.open .pal-scrim { opacity: 1; }
.palette.open .pal-box { opacity: 1; transform: none; }
.pal-in { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.pal-in i { font-size: 20px; color: var(--faint); }
.pal-in input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: var(--text); font: inherit; font-size: 17px; }
.pal-in input::placeholder { color: var(--faint); }
.pal-list { overflow-y: auto; padding: 8px; overscroll-behavior: contain; }
.pal-g { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); padding: 12px 10px 6px; }
.pal-item { width: 100%; display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 10px; text-align: left; font-size: 15px; color: var(--muted); }
.pal-item i { font-size: 18px; color: var(--faint); }
.pal-item.on, .pal-item:hover { background: var(--accent-soft); color: var(--text); }
.pal-item.on i { color: var(--accent); }
.pal-empty { padding: 14px 10px; margin: 0; color: var(--faint); font-size: 14px; }
.pal-sec { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 0 4px 6px; }
.pal-sec > div { display: flex; gap: 10px; align-items: flex-start; padding: 10px; border-radius: 10px; border: 1px dashed var(--line-2); font-size: 13px; line-height: 1.45; color: var(--faint); }
.pal-sec > div.ok { border-style: solid; border-color: rgba(70,199,180,.3); background: var(--accent-soft); color: var(--muted); }
.pal-sec i { font-size: 16px; margin-top: 2px; }
.pal-sec .ok i { color: var(--accent); }
.pal-sec b { display: block; color: var(--text); font-weight: 500; }
.pal-foot { display: flex; justify-content: space-between; gap: 12px; padding: 10px 16px; border-top: 1px solid var(--line); font-size: 12px; color: var(--faint); }
.pal-foot span { display: inline-flex; align-items: center; gap: 6px; }
.pal-secrets i { color: var(--accent); }
@media (max-width: 600px) { .pal-sec { grid-template-columns: 1fr; } .pal-foot > span:last-child { display: none; } .palette { padding-top: 10vh; } }

.toasts { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: calc(var(--z-agent) + 10); display: grid; gap: 10px; width: min(420px, calc(100% - 32px)); pointer-events: none; }
.toast { display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; background: rgba(42, 43, 48, .96); border: 1px solid rgba(70,199,180,.3); box-shadow: 0 20px 60px -15px rgba(0,0,0,.6); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); pointer-events: auto; opacity: 0; transform: translateY(16px) scale(.97); transition: opacity .4s var(--ease), transform .5s var(--ease); }
.toast.in { opacity: 1; transform: none; }
.toast > i { font-size: 22px; color: var(--accent); margin-top: 1px; }
.toast b { display: block; font-weight: 500; }
.toast span { display: block; color: var(--muted); font-size: 14px; line-height: 1.5; }
.toast .link { margin-top: 8px; font-size: 14px; }
.toast em { display: block; margin-top: 6px; font-style: normal; font-family: var(--mono); font-size: 11px; letter-spacing: .04em; color: var(--accent); }
@media (max-width: 700px) { .toasts { bottom: 92px; } }

.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: calc(var(--z-nav) + 1); background: linear-gradient(90deg, var(--brand), var(--accent)); transform-origin: left; transform: scaleX(0); pointer-events: none; }

.cursor-glow { position: fixed; left: 0; top: 0; width: 520px; height: 520px; margin: -260px 0 0 -260px; border-radius: 50%; pointer-events: none; z-index: 0; background: radial-gradient(closest-side, rgba(70,199,180,.07), transparent 70%); opacity: 0; transition: opacity .6s; }
.cursor-glow.on { opacity: 1; }
main, .footer { position: relative; z-index: 1; }

.btn-primary { position: relative; overflow: hidden; transition: translate .5s var(--ease), background-color .2s, transform .2s; }
.btn-primary::after { content: ""; position: absolute; inset: 0; background: radial-gradient(120px circle at var(--sx, 50%) 50%, rgba(255,255,255,.35), transparent 60%); opacity: 0; transition: opacity .3s; pointer-events: none; }
.btn-primary:hover::after { opacity: 1; }

.sig { cursor: pointer; user-select: none; }
.sig:hover { color: var(--muted); }

.rain { position: fixed; inset: 0; width: 100%; height: 100%; z-index: calc(var(--z-agent) + 8); pointer-events: none; }

html.blueprint body { background-color: #1d2326; background-image: linear-gradient(rgba(70,199,180,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(70,199,180,.07) 1px, transparent 1px); background-size: 24px 24px; }
html.blueprint main *:not(svg *):not(i) { outline: 1px dashed rgba(70,199,180,.28); outline-offset: -1px; }
html.blueprint main section { outline: 1px solid rgba(70,199,180,.5); }
html.blueprint main img, html.blueprint main .slot, html.blueprint main iframe { filter: grayscale(1) brightness(.7); }

/* ---------- print (scan report as PDF) ---------- */
@media print {
  body { background: #fff; color: #111; }
  body::after, .nav, main, .footer, .agent-fab, .ag-head, .ag-foot, .ag-progress { display: none !important; }
  .agent { position: static; opacity: 1; transform: none; width: auto; height: auto; box-shadow: none; border: 0; background: #fff; display: block; }
  .ag-body { overflow: visible; }
  .ag-body > :not(.report) { display: none !important; }
  .report { background: #fff; border-color: #ccc; color: #111; }
  .opp { background: #f6f6f6; border-color: #ddd; }
  .opp p, .report small, .report-h span { color: #444; }
  .report-actions { display: none; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
  .manifesto .w { opacity: 1; }
  .case { position: relative; top: 0 !important; }
}
