@font-face {
  font-family: "Inter";
  src: url("fonts/inter-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Plex Mono";
  src: url("fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2");
  font-weight: 400 500; font-style: normal; font-display: swap;
}

:root {
  --bg: #13111c;
  --bg-band: #171522;
  --card: #1b1828;
  --card-2: #221e33;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .14);
  --text: #f4f2fa;
  --muted: #a8a3bd;
  --dim: #7a7591;
  --purple: #a77bff;
  --purple-strong: #c0a1ff;
  --purple-deep: #7b4ff0;
  --purple-soft: rgba(167, 123, 255, .14);
  --pink: #f17cc3;
  --green: #5ee0a0;
  --amber: #f5b85a;
  --red: #f4837d;
  --radius: 14px;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --wrap: 1180px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; }
h1 { font-size: clamp(2.3rem, 1.4rem + 3.6vw, 4rem); letter-spacing: -0.035em; line-height: 1.05; }
h2 { font-size: clamp(1.75rem, 1.3rem + 1.7vw, 2.6rem); letter-spacing: -0.03em; }
h3 { font-size: 1.12rem; letter-spacing: -0.01em; }
p { margin: 0; }

a { color: var(--purple-strong); text-underline-offset: 3px; }
a:hover { color: #fff; }
:focus-visible { outline: 2px solid var(--purple); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 20;
  background: var(--purple); color: #120d22; padding: 10px 14px; border-radius: 8px;
}
.skip:focus { top: 12px; }

svg { stroke-linecap: round; stroke-linejoin: round; }
.ico-sm { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.5; flex: none; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 20px;
  background: var(--purple-deep);
  background-image: linear-gradient(180deg, #8d63ff, #7445ea);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 10px;
  font: 600 .98rem/1 var(--sans);
  text-decoration: none; cursor: pointer;
  box-shadow: 0 6px 24px -8px rgba(123, 79, 240, .7), inset 0 1px 0 rgba(255, 255, 255, .18);
  transition: filter .15s ease, transform .15s ease;
}
.btn:hover { color: #fff; filter: brightness(1.12); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .65; cursor: progress; }
.btn-small { min-height: 38px; padding: 0 14px; font-size: .9rem; border-radius: 9px; }
.btn-ghost {
  background: rgba(255, 255, 255, .04); background-image: none;
  border-color: var(--line-2); box-shadow: none;
}
.btn-ghost:hover { background: rgba(255, 255, 255, .08); filter: none; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(19, 17, 28, .78);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 32px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 600; letter-spacing: -0.01em; }
.brand:hover { color: var(--text); }
.brand-mark { width: 28px; height: 28px; flex: none; }
.bm-frame { fill: rgba(167, 123, 255, .12); stroke: var(--purple); stroke-width: 1.6; }
.bm-inner { fill: none; stroke: var(--purple-strong); stroke-width: 1.4; stroke-dasharray: 3 2.6; }
.bm-dot { fill: #fff; }
.nav { display: flex; gap: 26px; margin-right: auto; }
.nav a { color: var(--muted); text-decoration: none; font-size: .93rem; font-weight: 500; }
.nav a:hover { color: var(--text); }

/* Hero */
.hero { position: relative; padding: 88px 0 96px; overflow: hidden; isolation: isolate; }
.hero-glow {
  position: absolute; inset: -20% -10% auto; height: 900px; z-index: -1; pointer-events: none;
  background:
    radial-gradient(520px 320px at 22% 18%, rgba(167, 123, 255, .28), transparent 70%),
    radial-gradient(460px 300px at 78% 8%, rgba(241, 124, 195, .18), transparent 70%),
    radial-gradient(700px 420px at 50% 62%, rgba(123, 79, 240, .16), transparent 72%);
  filter: blur(8px);
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1.2px);
  background-size: 24px 24px;
  mask-image: radial-gradient(ellipse 70% 55% at 50% 30%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 55% at 50% 30%, #000 30%, transparent 75%);
}
.hero-copy { max-width: 820px; margin: 0 auto; text-align: center; }
.pill {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 6px 14px 6px 10px; margin-bottom: 28px;
  border: 1px solid var(--line-2); border-radius: 999px;
  background: rgba(255, 255, 255, .04);
  color: var(--muted); font-size: .88rem; font-weight: 500; text-decoration: none;
}
.pill:hover { color: var(--text); border-color: rgba(167, 123, 255, .5); }
.pill-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(94, 224, 160, .18); }
.lead { margin: 24px auto 0; max-width: 62ch; color: var(--muted); font-size: 1.13rem; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 36px; }

/* App window */
.window {
  margin-top: 64px;
  border: 1px solid var(--line-2);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(34, 30, 51, .92), rgba(24, 21, 36, .96));
  box-shadow: 0 40px 120px -30px rgba(80, 40, 180, .55), 0 0 0 1px rgba(255, 255, 255, .02) inset;
  overflow: hidden;
}
.window-bar {
  display: flex; align-items: center; gap: 20px;
  min-height: 52px; padding: 0 18px;
  border-bottom: 1px solid var(--line);
  font-size: .9rem;
}
.window-title { display: flex; align-items: center; gap: 8px; font-weight: 500; white-space: nowrap; }
.window-title .ico-sm { color: var(--muted); }
.slash { color: var(--dim); }
.window-tabs { display: flex; gap: 4px; margin-right: auto; }
.tab { padding: 6px 12px; border-radius: 8px; color: var(--dim); font-weight: 500; }
.tab.is-active { color: var(--text); background: rgba(255, 255, 255, .06); }
.status {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 11px; border-radius: 999px;
  background: rgba(94, 224, 160, .1); color: var(--green);
  font-size: .82rem; font-weight: 500; white-space: nowrap;
}
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }

.window-body { display: grid; grid-template-columns: minmax(0, 1fr) 320px; min-height: 420px; }

.canvas {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: auto auto;
  align-items: center; justify-items: center;
  gap: 76px 48px;
  padding: 76px 36px 52px;
  margin: 18px;
  border: 1.5px dashed rgba(167, 123, 255, .45);
  border-radius: 16px;
  background-color: rgba(167, 123, 255, .025);
  background-image: radial-gradient(rgba(255, 255, 255, .09) 1px, transparent 1.2px);
  background-size: 18px 18px;
}
.canvas-frame-label {
  position: absolute; top: 16px; left: 18px;
  display: inline-flex; align-items: center; gap: 7px;
  color: var(--purple-strong); font-size: .82rem; font-weight: 500;
}
.edges { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.edge { fill: none; stroke: rgba(167, 123, 255, .45); stroke-width: 1.5; }
.edge-flow { fill: none; stroke: var(--purple-strong); stroke-width: 1.5; stroke-dasharray: 4 7; opacity: 0; transition: opacity .3s ease; }
.edge-flow.is-active { opacity: 1; animation: dash .7s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -11; } }
.packet { fill: #fff; filter: drop-shadow(0 0 6px rgba(192, 161, 255, .95)); }

.fnode {
  position: relative; z-index: 1;
  display: flex; align-items: center; gap: 12px;
  width: 100%; max-width: 236px;
  padding: 12px 14px;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: #211d31;
  box-shadow: 0 8px 24px -12px rgba(0, 0, 0, .6);
  transition: border-color .3s ease, box-shadow .3s ease;
}
.fnode[data-node="0"] { grid-column: 1; grid-row: 1; }
.fnode[data-node="1"] { grid-column: 2; grid-row: 1; }
.fnode[data-node="2"] { grid-column: 3; grid-row: 1; }
.fnode[data-node="3"] { grid-column: 3; grid-row: 2; }
.fnode[data-node="4"] { grid-column: 2; grid-row: 2; }
.fnode.is-active { border-color: var(--purple); box-shadow: 0 0 0 4px rgba(167, 123, 255, .16), 0 10px 30px -10px rgba(123, 79, 240, .7); }
.fnode-ico {
  display: grid; place-items: center; flex: none;
  width: 36px; height: 36px; border-radius: 9px;
  background: rgba(255, 255, 255, .05); border: 1px solid var(--line);
}
.fnode-ico svg { width: 20px; height: 20px; fill: none; stroke: var(--text); stroke-width: 1.5; }
.fnode-ai .fnode-ico { background: rgba(167, 123, 255, .18); border-color: rgba(167, 123, 255, .45); }
.fnode-ai .fnode-ico svg { stroke: var(--purple-strong); }
.fnode-text { display: grid; min-width: 0; }
.fnode-text strong { font-size: .92rem; font-weight: 600; }
.fnode-text small { color: var(--muted); font-size: .78rem; line-height: 1.35; overflow-wrap: anywhere; }

.logs { border-left: 1px solid var(--line); display: flex; flex-direction: column; min-width: 0; background: rgba(0, 0, 0, .14); }
.logs-head {
  display: flex; justify-content: space-between; gap: 10px;
  padding: 14px 16px; border-bottom: 1px solid var(--line);
  font-size: .82rem; font-weight: 500; color: var(--muted);
}
.logs-counter b { color: var(--green); font-weight: 600; }
.logs-list { list-style: none; margin: 0; padding: 10px 0; overflow: hidden; flex: 1; font-family: var(--mono); font-size: .76rem; line-height: 1.5; }
.logs-list li { display: grid; grid-template-columns: auto 1fr; gap: 10px; padding: 5px 16px; color: var(--muted); animation: logIn .35s ease both; }
.logs-list li time { color: var(--dim); }
.logs-list li.l-ai { color: var(--purple-strong); }
.logs-list li.l-ok { color: var(--green); }
@keyframes logIn { from { opacity: 0; transform: translateY(6px); } }

/* Sections */
.section { padding: 112px 0; position: relative; }
.section-band { background: var(--bg-band); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 760px; margin-bottom: 56px; }
.section-head h2 { margin-top: 14px; }
.section-head > p:last-child { margin-top: 18px; color: var(--muted); font-size: 1.06rem; max-width: 66ch; }
.kicker { display: inline-flex; align-items: center; gap: 8px; font-size: .92rem; font-weight: 600; }
.kicker-purple { color: var(--purple-strong); }
.kicker-pink { color: var(--pink); }
.kicker-green { color: var(--green); }
.kicker-amber { color: var(--amber); }

/* Compare panel */
.compare-panel {
  border: 1px solid var(--line-2); border-radius: 18px;
  background: linear-gradient(180deg, var(--card-2), var(--card));
  overflow: hidden;
}
.compare-top { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.segmented { display: inline-flex; padding: 4px; border-radius: 11px; background: rgba(0, 0, 0, .3); border: 1px solid var(--line); }
.segmented button {
  min-height: 36px; padding: 0 16px; border: 0; border-radius: 8px;
  background: transparent; color: var(--muted);
  font: 600 .9rem/1 var(--sans); cursor: pointer;
  transition: background-color .2s ease, color .2s ease;
}
.segmented button:hover { color: var(--text); }
.segmented button[aria-selected="true"] { background: rgba(255, 255, 255, .1); color: var(--text); }
.segmented button[data-mode="cloud"][aria-selected="true"] { color: var(--amber); }
.segmented button[data-mode="private"][aria-selected="true"] { color: var(--purple-strong); }
.compare-caption { color: var(--muted); font-size: .95rem; }

.scene { padding: 12px 20px 20px; }
.scene svg { display: block; width: 100%; max-width: 700px; height: auto; margin: 0 auto; }
.sc-company { fill: rgba(167, 123, 255, .05); stroke: rgba(167, 123, 255, .5); stroke-width: 1.5; stroke-dasharray: 6 5; }
.sc-label { fill: var(--purple-strong); font: 600 15px var(--sans); }
.sc-chip { fill: #241f37; stroke: var(--line-2); }
.sc-chip-ai { fill: rgba(167, 123, 255, .2); stroke: var(--purple); }
.sc-chip-t { fill: var(--text); font: 600 15px var(--sans); }
.sc-sub { fill: var(--muted); font: 400 12.5px var(--sans); }
.sc-net { stroke: var(--line-2); stroke-width: 1.5; stroke-dasharray: 2 6; }
.sc-net-t { fill: var(--dim); font: 500 12px var(--sans); }
.sc-cloud-box { fill: rgba(245, 184, 90, .07); stroke: var(--amber); stroke-width: 1.3; stroke-dasharray: 5 4; }
.sc-path { fill: none; stroke-width: 1.5; stroke-dasharray: 4 6; transition: opacity .4s ease; }
.sc-path-private { stroke: var(--purple); }
.sc-path-cloud { stroke: var(--amber); }
.sc-count { fill: var(--muted); font: 500 13px var(--sans); }
#sc-count { fill: var(--green); font-weight: 700; transition: fill .3s ease; }
.sc-packets circle { fill: #fff; }
.sc-private-ai, .sc-cloud, .sc-offline { transition: opacity .4s ease; }

.scene[data-mode="private"] .sc-cloud { opacity: .32; }
.scene[data-mode="private"] .sc-path-cloud { opacity: 0; }
.scene[data-mode="cloud"] .sc-private-ai { opacity: .15; }
.scene[data-mode="cloud"] .sc-path-private { opacity: 0; }
.scene[data-mode="cloud"] .sc-offline { opacity: 0; }
.scene[data-mode="cloud"] #sc-count { fill: var(--amber); }
.scene[data-mode="cloud"] .sc-packets circle { fill: var(--amber); }

/* Difference cards */
.diff-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.diff-card {
  padding: 20px 20px 24px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--card);
  transition: border-color .2s ease;
}
.diff-card:hover { border-color: var(--line-2); }
.diff-card h3 { margin-top: 20px; }
.diff-card p { margin-top: 8px; color: var(--muted); font-size: .94rem; }
.diff-visual {
  height: 150px; display: grid; place-items: center;
  border-radius: 10px; border: 1px solid var(--line);
  background-color: rgba(0, 0, 0, .2);
  background-image: radial-gradient(rgba(255, 255, 255, .06) 1px, transparent 1.2px);
  background-size: 14px 14px;
  overflow: hidden;
}
.diff-visual svg { width: 100%; height: 100%; }

/* Animations pause until visible */
[data-anim] * { animation-play-state: paused; }
[data-anim].is-visible * { animation-play-state: running; }

.v-frame { fill: none; stroke: rgba(167, 123, 255, .5); stroke-width: 1.4; stroke-dasharray: 5 4; }
.v-wall { stroke: var(--purple-strong); stroke-width: 3; animation: wallHit 2.4s ease-in-out infinite; }
.v-dot { fill: var(--purple-strong); }
.d1 { animation: bounce1 2.4s ease-in-out infinite; }
.d2 { animation: bounce2 2.4s ease-in-out infinite .3s; }
.d3 { animation: bounce3 2.4s ease-in-out infinite .6s; }
@keyframes bounce1 { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(142px); } }
@keyframes bounce2 { 0%, 100% { transform: translateX(-40px); } 50% { transform: translateX(102px); } }
@keyframes bounce3 { 0%, 100% { transform: translateX(-30px); } 50% { transform: translateX(122px); } }
@keyframes wallHit { 0%, 35%, 70%, 100% { opacity: .45; } 50% { opacity: 1; } }

.v-axis { stroke: var(--line-2); stroke-width: 1; }
.v-line-cloud { fill: none; stroke: var(--amber); stroke-width: 2; stroke-dasharray: 260; stroke-dashoffset: 260; animation: draw 3.6s ease-in-out infinite; }
.v-line-private { fill: none; stroke: var(--purple-strong); stroke-width: 2; stroke-dasharray: 200; stroke-dashoffset: 200; animation: draw 3.6s ease-in-out infinite; }
@keyframes draw { 0% { stroke-dashoffset: var(--len, 260); } 55%, 85% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 0; opacity: 0; } }
.v-line-private { --len: 200; }
.v-t { fill: var(--dim); font: 500 10.5px var(--sans); }
.v-t-cloud { fill: var(--amber); font-size: 11.5px; }
.v-t-private { fill: var(--purple-strong); font-size: 11.5px; }

.v-access { list-style: none; margin: 0; padding: 0 14px; width: 100%; display: grid; gap: 4px; font-size: .82rem; }
.v-access li {
  display: flex; align-items: center; gap: 10px;
  padding: 3px 10px; border-radius: 8px; background: rgba(255, 255, 255, .03);
  color: var(--muted);
  animation: accessIn 4.8s ease infinite;
}
.v-access li:nth-child(2) { animation-delay: .35s; }
.v-access li:nth-child(3) { animation-delay: .7s; }
.v-access li:nth-child(4) { animation-delay: 1.05s; }
.v-mark { width: 16px; height: 16px; border-radius: 50%; flex: none; position: relative; }
.ok .v-mark { background: rgba(94, 224, 160, .2); }
.ok .v-mark::after { content: ""; position: absolute; left: 5.5px; top: 3px; width: 4px; height: 8px; border: solid var(--green); border-width: 0 1.8px 1.8px 0; transform: rotate(45deg); }
.no .v-mark { background: rgba(244, 131, 125, .18); }
.no .v-mark::before, .no .v-mark::after { content: ""; position: absolute; left: 4px; top: 7.2px; width: 8px; height: 1.8px; background: var(--red); border-radius: 1px; transform: rotate(45deg); }
.no .v-mark::after { transform: rotate(-45deg); }
.no { text-decoration: line-through; text-decoration-color: rgba(244, 131, 125, .6); }
@keyframes accessIn { 0% { opacity: 0; transform: translateX(-8px); } 10%, 85% { opacity: 1; transform: none; } 100% { opacity: 0; } }

.v-log { list-style: none; margin: 0; padding: 0 16px; width: 100%; font: 500 .74rem/1.4 var(--mono); display: grid; gap: 6px; }
.v-log li { display: flex; gap: 10px; color: var(--text); animation: logLoop 4.8s steps(1) infinite; opacity: 0; }
.v-log li time { color: var(--dim); }
.v-log li:nth-child(1) { animation-name: log1; }
.v-log li:nth-child(2) { animation-name: log2; }
.v-log li:nth-child(3) { animation-name: log3; }
.v-log li:nth-child(4) { animation-name: log4; color: var(--green); }
@keyframes log1 { 0%, 100% { opacity: 0; } 5%, 92% { opacity: 1; } }
@keyframes log2 { 0%, 100% { opacity: 0; } 22%, 92% { opacity: 1; } }
@keyframes log3 { 0%, 100% { opacity: 0; } 39%, 92% { opacity: 1; } }
@keyframes log4 { 0%, 100% { opacity: 0; } 56%, 92% { opacity: 1; } }

.note {
  margin-top: 28px; max-width: 80ch;
  padding: 16px 18px; border-radius: 12px;
  border: 1px solid var(--line); background: rgba(255, 255, 255, .02);
  color: var(--muted); font-size: .95rem;
}

/* Use cases */
.usecases { border: 1px solid var(--line-2); border-radius: 18px; background: var(--card); overflow: hidden; }
.uc-tabs {
  display: flex; gap: 4px; padding: 10px; overflow-x: auto;
  border-bottom: 1px solid var(--line); scrollbar-width: none;
}
.uc-tabs::-webkit-scrollbar { display: none; }
.uc-tabs button {
  flex: none; min-height: 38px; padding: 0 14px;
  border: 0; border-radius: 9px; background: transparent;
  color: var(--muted); font: 600 .9rem/1 var(--sans); cursor: pointer;
}
.uc-tabs button:hover { color: var(--text); background: rgba(255, 255, 255, .04); }
.uc-tabs button[aria-selected="true"] { color: var(--text); background: rgba(167, 123, 255, .16); }
.uc-panel { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 40px; padding: 36px; align-items: center; }
.uc-text h3 { font-size: 1.45rem; letter-spacing: -0.02em; }
.uc-text p { margin-top: 12px; color: var(--muted); }
.uc-text .checks { margin-top: 20px; }
.uc-flow { display: grid; gap: 0; position: relative; }
.uc-step {
  position: relative;
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; border-radius: 11px;
  border: 1px solid var(--line); background: #201c2f;
  font-size: .93rem; color: var(--muted);
  transition: border-color .35s ease, color .35s ease, background-color .35s ease;
  animation: stepIn .4s ease both;
}
.uc-step + .uc-step { margin-top: 26px; }
.uc-step + .uc-step::before {
  content: ""; position: absolute; left: 31px; top: -27px; height: 26px;
  border-left: 1.5px dashed rgba(167, 123, 255, .45);
}
.uc-step .n {
  display: grid; place-items: center; flex: none;
  width: 34px; height: 34px; border-radius: 9px;
  background: rgba(255, 255, 255, .05); border: 1px solid var(--line);
  font: 500 .8rem var(--mono); color: var(--dim);
}
.uc-step .tag { margin-left: auto; font-size: .74rem; font-weight: 600; padding: 3px 8px; border-radius: 999px; background: rgba(255, 255, 255, .05); color: var(--dim); white-space: nowrap; }
.uc-step .tag-ai { background: rgba(167, 123, 255, .16); color: var(--purple-strong); }
.uc-step .tag-human { background: rgba(245, 184, 90, .14); color: var(--amber); }
.uc-step.is-active { border-color: var(--purple); color: var(--text); background: #261f3d; }
.uc-step.is-active .n { border-color: var(--purple); color: var(--purple-strong); }
.uc-step.is-done { color: var(--text); }
.uc-step.is-done .n { color: var(--green); border-color: rgba(94, 224, 160, .4); }
@keyframes stepIn { from { opacity: 0; transform: translateY(6px); } }

.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 28px; color: var(--muted); }
.checks li strong { color: var(--text); font-weight: 600; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .3em;
  width: 17px; height: 17px; border-radius: 50%;
  background: rgba(167, 123, 255, .16);
}
.checks li::after {
  content: ""; position: absolute; left: 6px; top: calc(.3em + 4px);
  width: 4px; height: 7px; border: solid var(--purple-strong); border-width: 0 1.7px 1.7px 0;
  transform: rotate(45deg);
}
.checks-small li { font-size: .95rem; }

.fit-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.fit { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.fit h3 { margin-bottom: 18px; }
.fit p { color: var(--muted); }
.fit p + p { margin-top: 12px; }

/* Services */
.services { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.service {
  padding: 24px; border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(180deg, var(--card-2), var(--card));
  transition: border-color .2s ease, transform .2s ease;
}
.service:hover { border-color: rgba(167, 123, 255, .45); transform: translateY(-2px); }
.service-ico {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 11px;
  background: rgba(167, 123, 255, .14); border: 1px solid rgba(167, 123, 255, .35);
}
.service-ico svg { width: 22px; height: 22px; fill: none; stroke: var(--purple-strong); stroke-width: 1.5; }
.service h3 { margin-top: 20px; }
.service p { margin-top: 10px; color: var(--muted); font-size: .94rem; }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.steps li::before {
  content: counter(step);
  display: grid; place-items: center;
  width: 32px; height: 32px; margin-bottom: 18px; border-radius: 9px;
  background: rgba(245, 184, 90, .12); border: 1px solid rgba(245, 184, 90, .35);
  color: var(--amber); font: 500 .9rem/1 var(--mono);
}
.steps p { margin-top: 8px; color: var(--muted); font-size: .94rem; }

/* Form */
.form-card {
  display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 56px;
  padding: 48px;
  border: 1px solid var(--line-2); border-radius: 22px;
  background:
    radial-gradient(600px 300px at 0% 0%, rgba(167, 123, 255, .14), transparent 70%),
    linear-gradient(180deg, var(--card-2), var(--card));
}
.form-intro p { margin-top: 16px; color: var(--muted); max-width: 46ch; }
.form-intro .checks { margin-top: 24px; }
.small { font-size: .88rem; color: var(--dim); }
.form-intro .small { margin-top: 28px; }

.form { display: grid; gap: 18px; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.field { display: grid; gap: 7px; }
.field label { font-weight: 500; font-size: .92rem; }
.req { color: var(--purple-strong); }
.hint { font-size: .85rem; color: var(--dim); }

input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  width: 100%; min-height: 46px; padding: 11px 13px;
  background: rgba(0, 0, 0, .28); color: var(--text);
  border: 1px solid var(--line-2); border-radius: 10px;
  font: 400 .98rem/1.4 var(--sans);
  transition: border-color .15s ease, box-shadow .15s ease;
}
textarea { resize: vertical; min-height: 140px; line-height: 1.55; }
select {
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23a8a3bd' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 13px center; padding-right: 38px;
}
select option { background: #1b1828; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--purple); box-shadow: 0 0 0 3px rgba(167, 123, 255, .22); }
[aria-invalid="true"] { border-color: var(--red) !important; }

.field-check { grid-template-columns: auto 1fr; align-items: start; gap: 12px; }
.field-check input { width: 19px; height: 19px; margin: 3px 0 0; accent-color: var(--purple); }
.field-check label { font-weight: 400; color: var(--muted); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }

.form-errors { border: 1px solid rgba(244, 131, 125, .6); background: rgba(244, 131, 125, .08); border-radius: 10px; padding: 14px 16px; }
.form-errors p { font-weight: 600; }
.form-errors ul { margin: 6px 0 0; padding-left: 20px; color: var(--muted); }

.form-success { padding: 36px; border-radius: 16px; border: 1px solid rgba(94, 224, 160, .4); background: rgba(94, 224, 160, .06); }
.form-success:focus { outline: none; }
.success-ico svg { width: 40px; height: 40px; fill: none; stroke: var(--green); stroke-width: 1.6; }
.form-success h3 { margin-top: 14px; font-size: 1.3rem; }
.form-success p { margin-top: 8px; color: var(--muted); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 56px 0 28px; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.footer-brand p { margin-top: 12px; color: var(--muted); font-size: .92rem; }
.footer-col { display: grid; align-content: start; gap: 10px; }
.footer-col h4 { font-size: .88rem; color: var(--text); margin-bottom: 4px; }
.footer-col a { color: var(--muted); text-decoration: none; font-size: .92rem; }
.footer-col a:hover { color: var(--text); }
.footer-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--dim); font-size: .85rem; }

/* Legal pages */
.legal { padding: 80px 0 112px; }
.legal .wrap { max-width: 760px; }
.legal h1 { font-size: clamp(2rem, 1.5rem + 2vw, 2.8rem); }
.legal h2 { font-size: 1.25rem; margin-top: 40px; letter-spacing: -0.01em; }
.legal p, .legal li { margin-top: 12px; color: var(--muted); }
.legal .updated { font-size: .9rem; color: var(--dim); }
.legal .placeholder { color: var(--amber); }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .v-log li, .v-access li { opacity: 1 !important; }
  .v-line-cloud, .v-line-private { stroke-dashoffset: 0 !important; }
}

/* Responsive */
@media (max-width: 1080px) {
  .diff-grid, .services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .window-body { grid-template-columns: 1fr; }
  .logs { border-left: 0; border-top: 1px solid var(--line); }
  .logs-list { max-height: 190px; }
  .window-tabs { display: none; }
  .window-title { margin-right: auto; }
}
@media (max-width: 860px) {
  .nav { display: none; }
  .header-inner { justify-content: space-between; }
  .hero { padding: 56px 0 72px; }
  .section { padding: 80px 0; }
  .uc-panel { grid-template-columns: 1fr; padding: 24px; gap: 28px; }
  .fit-grid { grid-template-columns: 1fr; }
  .form-card { grid-template-columns: 1fr; padding: 28px; gap: 36px; }
  .canvas { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 60px 28px; padding: 64px 20px 36px; }
  .fnode[data-node="0"] { grid-column: 1; grid-row: 1; }
  .fnode[data-node="1"] { grid-column: 2; grid-row: 1; }
  .fnode[data-node="2"] { grid-column: 2; grid-row: 2; }
  .fnode[data-node="3"] { grid-column: 1; grid-row: 2; }
  .fnode[data-node="4"] { grid-column: 1; grid-row: 3; }
}
@media (max-width: 600px) {
  .wrap { padding: 0 16px; }
  .hero-copy { text-align: left; }
  .hero-actions { justify-content: flex-start; }
  .window { margin-top: 48px; border-radius: 14px; }
  .window-title .slash, .window-title .muted { display: none; }
  .canvas { grid-template-columns: 1fr; gap: 34px; padding: 56px 16px 24px; margin: 12px; }
  .fnode[data-node] { grid-column: 1; grid-row: auto; max-width: none; }
  .diff-grid, .services, .steps, .field-row { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .scene { padding: 8px 10px 14px; }
  .form-card { padding: 22px 18px; border-radius: 18px; }
}
