:root {
  --navy: #070a1f;
  --navy-2: #0d1238;
  --indigo: #24135a;
  --purple: #8b5cf6;
  --magenta: #c13bd8;
  --dawn: #7cc4ff;
  --dawn-2: #4f8cff;
  --lilac: #c084fc;
  --text: #eef0ff;
  --muted: #a8acd6;
  --glass: rgba(20, 22, 60, 0.55);
  --line: rgba(160, 170, 255, 0.16);
  --grad: linear-gradient(120deg, var(--dawn) 0%, var(--purple) 55%, var(--magenta) 100%);
  --mx: 50vw;
  --my: 30vh;
  --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--navy);
  color: var(--text);
  font: 16px/1.6 "Inter", system-ui, sans-serif;
  overflow-x: hidden;
}
h1, h2, h3, .brand { font-family: "Space Grotesk", "Inter", sans-serif; }
em {
  font-style: italic;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  padding-right: .06em;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }

/* ---------- Background: navy → purple → magenta dawn ---------- */
.sky {
  position: fixed; inset: 0; z-index: -3;
  background:
    radial-gradient(120% 55% at 50% 118%, rgba(200, 60, 190, .30) 0%, rgba(120, 50, 210, .18) 38%, transparent 70%),
    radial-gradient(80% 50% at 85% 8%, rgba(79, 140, 255, .10), transparent 70%),
    linear-gradient(180deg, #020309 0%, #050822 40%, #120a33 76%, #1f0c40 100%);
}
#stars { position: fixed; inset: 0; z-index: -2; width: 100%; height: 100%; }
.cursor-light {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(124, 196, 255, .16), rgba(139, 92, 246, .10) 40%, transparent 70%);
  transition: background .08s linear;
}

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px clamp(20px, 5vw, 64px);
  backdrop-filter: blur(14px);
  background: linear-gradient(180deg, rgba(7, 10, 31, .75), rgba(7, 10, 31, .25));
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.15rem; }
.brand-mark { width: 26px; height: 26px; animation: spin 18s linear infinite; }
.nav-links { display: flex; gap: 26px; align-items: center; font-size: .95rem; color: var(--muted); }
.nav-links a:hover { color: var(--text); }

/* ---------- Pills ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 11px 20px; border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .04);
  color: var(--text); cursor: pointer; font-weight: 500;
  transition: transform .2s, border-color .2s, box-shadow .2s, background .2s;
}
.pill:hover { transform: translateY(-2px); border-color: rgba(192, 132, 252, .6); box-shadow: 0 8px 30px rgba(139, 92, 246, .25); }
.pill-solid { background: var(--grad); border-color: transparent; color: #fff; box-shadow: 0 6px 28px rgba(139, 92, 246, .45); }
.pill-solid:hover { box-shadow: 0 10px 40px rgba(193, 59, 216, .55); }
.nav-links .pill { padding: 8px 16px; color: #fff; }

/* ---------- Hero ---------- */
.hero {
  min-height: 0;
  display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 40px;
  padding: 24px clamp(20px, 6vw, 90px) 10px;
  max-width: 1320px; margin: 0 auto;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  text-transform: uppercase; letter-spacing: .16em; font-size: .75rem; font-weight: 600;
  color: var(--dawn); margin: 0 0 14px;
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: #5df2b0; box-shadow: 0 0 12px #5df2b0; animation: pulse 1.8s infinite; }
h1 { font-size: clamp(2.3rem, 4.2vw, 3.6rem); line-height: 1.03; letter-spacing: -.03em; margin: 0 0 18px; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 34ch; margin: 0 0 30px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-row.center { justify-content: center; }

.hero-stage { position: relative; height: 470px; display: grid; place-items: center; }
.halo {
  position: absolute; width: 360px; height: 360px; border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 92, 246, .55), rgba(79, 140, 255, .25) 45%, transparent 70%);
  filter: blur(20px); animation: breathe 6s ease-in-out infinite;
}
.orbit { position: absolute; border: 1px dashed rgba(160, 170, 255, .22); border-radius: 50%; animation: spin 30s linear infinite; }
.orbit-1 { width: 410px; height: 410px; }
.orbit-2 { width: 310px; height: 310px; animation-duration: 20s; animation-direction: reverse; }
.orbit span { position: absolute; top: -5px; left: 50%; width: 10px; height: 10px; border-radius: 50%; background: var(--dawn); box-shadow: 0 0 16px var(--dawn); }
.orbit-2 span { background: var(--lilac); box-shadow: 0 0 16px var(--lilac); }

.robot {
  position: relative; z-index: 2;
  width: 250px; border: 0; padding: 0; background: none; cursor: pointer;
  animation: float 5s ease-in-out infinite;
  transition: filter .3s, translate .5s ease, scale .5s ease;
  filter: drop-shadow(0 20px 50px rgba(139, 92, 246, .45));
}
.hero-stage.chat-open .robot { translate: -70% -22%; scale: .55; }
.hero-stage.chat-open .halo { translate: -30% -14%; scale: .7; transition: translate .5s, scale .5s; }
.robot:hover, .robot:focus-visible { filter: drop-shadow(0 20px 70px rgba(124, 196, 255, .65)); outline: none; }
.robot svg { width: 100%; height: auto; display: block; overflow: visible; }
.robot .head { transform-origin: 160px 200px; transition: transform .25s ease-out; }
.robot .eye { transition: transform .12s ease-out; }
.robot .lid { transform-box: fill-box; transform-origin: center; }
.robot.blink .lid { animation: blink .18s ease-in-out; }
.robot .core { transform-box: fill-box; transform-origin: center; animation: pulse 2.4s ease-in-out infinite; }
.robot .antenna-tip.glow { animation: pulse 1.6s ease-in-out infinite; }
.robot .arm { transform-box: fill-box; transform-origin: 50% 8%; }
.robot.talking .arm-right { animation: wave 1.2s ease-in-out infinite; }
.robot.talking .mouth { animation: talk .28s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: center; }
.robot.thinking .core { animation-duration: .6s; }
.robot-shadow { position: absolute; left: 50%; bottom: -26px; width: 180px; height: 22px; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(rgba(10, 6, 40, .7), transparent 70%); }

.speech {
  position: absolute; top: 30px; right: 0; z-index: 3; max-width: 240px;
  padding: 12px 16px; border-radius: 18px 18px 4px 18px;
  background: var(--glass); border: 1px solid var(--line); backdrop-filter: blur(10px);
  font-size: .92rem; animation: pop .5s ease-out both .6s;
}

/* ---------- Chat panel ---------- */
.chat {
  position: absolute; z-index: 5; right: -10px; bottom: -10px;
  width: min(390px, 92vw); height: 470px;
  display: flex; flex-direction: column;
  border-radius: var(--radius);
  background: rgba(14, 14, 46, .93);
  border: 1px solid rgba(160, 170, 255, .25);
  backdrop-filter: blur(18px);
  box-shadow: 0 30px 80px rgba(5, 3, 30, .7), 0 0 0 1px rgba(255, 255, 255, .03) inset, 0 0 60px rgba(139, 92, 246, .25);
  animation: pop .35s ease-out both;
}
.chat[hidden] { display: none; }
.chat-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.chat-id { display: flex; gap: 10px; align-items: center; }
.chat-id small { display: block; color: var(--muted); font-size: .75rem; line-height: 1.2; }
.status-dot { width: 10px; height: 10px; border-radius: 50%; background: #ffc857; box-shadow: 0 0 10px #ffc857; }
.status-dot.live { background: #5df2b0; box-shadow: 0 0 10px #5df2b0; }
.icon-btn { background: none; border: 0; cursor: pointer; color: var(--muted); font-size: 1rem; padding: 6px; border-radius: 8px; }
.icon-btn:hover { color: var(--text); background: rgba(255, 255, 255, .06); }
.chat-log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; scrollbar-width: thin; }
.msg { max-width: 85%; padding: 10px 14px; border-radius: 16px; font-size: .93rem; line-height: 1.5; white-space: pre-wrap; word-wrap: break-word; animation: rise .25s ease-out; }
.msg.bot { align-self: flex-start; background: rgba(124, 196, 255, .1); border: 1px solid rgba(124, 196, 255, .18); border-bottom-left-radius: 4px; }
.msg.user { align-self: flex-end; background: var(--grad); border-bottom-right-radius: 4px; }
.msg.typing::after { content: "▍"; animation: caret .8s steps(1) infinite; color: var(--dawn); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 14px 10px; }
.chip { font-size: .8rem; padding: 6px 11px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255, 255, 255, .04); cursor: pointer; color: var(--muted); }
.chip:hover { color: var(--text); border-color: rgba(192, 132, 252, .6); }
.chat-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); }
.chat-form input {
  flex: 1; padding: 11px 14px; border-radius: 999px; border: 1px solid var(--line);
  background: rgba(255, 255, 255, .05); color: var(--text); font: inherit; font-size: .93rem; outline: none;
}
.chat-form input:focus { border-color: rgba(124, 196, 255, .6); box-shadow: 0 0 0 3px rgba(124, 196, 255, .15); }
.send { width: 44px; border-radius: 50%; border: 0; background: var(--grad); cursor: pointer; color: #fff; }
.send:disabled { opacity: .5; cursor: default; }

/* ---------- Sections ---------- */
.section { max-width: 1180px; margin: 0 auto; padding: 100px clamp(20px, 5vw, 48px); }
.section h2 { font-size: clamp(2rem, 4vw, 3.2rem); letter-spacing: -.025em; line-height: 1.08; margin: 0 0 14px; }
.section-lead { color: var(--muted); font-size: 1.08rem; max-width: 60ch; margin: 0 0 40px; }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.card {
  position: relative; padding: 28px 24px; border-radius: var(--radius);
  background: var(--glass); border: 1px solid var(--line); backdrop-filter: blur(10px);
  overflow: hidden; transition: transform .3s, border-color .3s;
}
.card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(300px circle at var(--cx, 50%) var(--cy, 50%), rgba(139, 92, 246, .28), transparent 60%);
}
.card:hover { transform: translateY(-4px); border-color: rgba(192, 132, 252, .45); }
.card:hover::before { opacity: 1; }
.card .ico { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: rgba(124, 196, 255, .12); margin-bottom: 18px; font-size: 1.3rem; }
.card h3 { margin: 0 0 8px; font-size: 1.2rem; }
.card p { margin: 0; color: var(--muted); font-size: .95rem; }

.split { display: grid; grid-template-columns: 1fr 1.1fr; gap: 50px; align-items: center; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ticks li::before { content: "✦"; color: var(--lilac); margin-right: 10px; }
.terminal { border-radius: var(--radius); background: rgba(6, 7, 26, .85); border: 1px solid var(--line); box-shadow: 0 30px 80px rgba(5, 3, 30, .6), 0 0 50px rgba(79, 140, 255, .12); overflow: hidden; }
.term-bar { display: flex; gap: 7px; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.term-bar i { width: 11px; height: 11px; border-radius: 50%; background: #3a3f6e; }
.term-bar i:nth-child(1) { background: #ff6b8b; } .term-bar i:nth-child(2) { background: #ffc857; } .term-bar i:nth-child(3) { background: #5df2b0; }
.term-bar span { margin-left: 8px; font: 500 .8rem "JetBrains Mono", monospace; color: var(--muted); }
#term { margin: 0; padding: 20px; min-height: 300px; font: 400 .86rem/1.7 "JetBrains Mono", monospace; white-space: pre-wrap; color: #cfd6ff; }
#term .k { color: var(--dawn); } #term .s { color: #5df2b0; } #term .p { color: var(--lilac); } #term .c { color: #6c719e; }

.steps { list-style: none; padding: 0; margin: 30px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; counter-reset: step; }
.steps li { position: relative; padding: 26px 22px 22px; border-radius: var(--radius); border: 1px solid var(--line); background: rgba(255, 255, 255, .025); }
.steps li::before { counter-increment: step; content: "0" counter(step); font: 600 .85rem "JetBrains Mono", monospace; color: var(--dawn); display: block; margin-bottom: 14px; }
.steps h3 { margin: 0 0 6px; } .steps p { margin: 0; color: var(--muted); font-size: .95rem; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; margin-top: 30px; }
.stat { padding: 28px 24px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--glass); }
.stat b { display: block; font: 700 clamp(2.4rem, 4vw, 3.4rem)/1 "Space Grotesk", sans-serif; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 8px; }
.stat span { color: var(--muted); }
.footnote { color: #7a7fae; font-size: .8rem; margin-top: 16px; }

.faq { display: grid; gap: 12px; max-width: 820px; }
.faq details { border: 1px solid var(--line); border-radius: 16px; background: rgba(255, 255, 255, .03); padding: 4px 20px; transition: border-color .2s; }
.faq details[open] { border-color: rgba(192, 132, 252, .45); }
.faq summary { cursor: pointer; padding: 14px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; }
.faq summary::after { content: "+"; color: var(--lilac); font-size: 1.3rem; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { margin: 0 0 16px; color: var(--muted); }

.contact { text-align: center; }
.contact .section-lead { margin: 0 auto 30px; }

.footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding: 30px clamp(20px, 5vw, 64px); border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
.muted { color: #6c719e; }

/* ---------- Animations ---------- */
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-16px); } }
@keyframes breathe { 0%, 100% { transform: scale(1); opacity: .9; } 50% { transform: scale(1.08); opacity: 1; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .55; transform: scale(.88); } }
@keyframes blink { 50% { transform: scaleY(.1); } }
@keyframes wave { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(-22deg); } }
@keyframes talk { from { transform: scaleY(1); } to { transform: scaleY(2.2); } }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes caret { 50% { opacity: 0; } }

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .hero { grid-template-columns: 1fr; text-align: left; padding-top: 30px; }
  .hero-stage { height: 520px; }
  .split { grid-template-columns: 1fr; }
  .nav-links a:not(.pill) { display: none; }
  .hero-stage.chat-open .robot { translate: 0 0; scale: 1; }
  .chat { position: fixed; right: 4vw; left: 4vw; bottom: 16px; width: auto; height: min(70vh, 520px); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Agent workflow ---------- */
.wf {
  border-radius: 26px; border: 1px solid var(--line);
  background: rgba(10, 11, 34, .78); backdrop-filter: blur(14px);
  box-shadow: 0 40px 100px rgba(5, 3, 30, .6), 0 0 80px rgba(139, 92, 246, .12);
  overflow: hidden;
}
.wf-toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.wf-tabs { display: flex; gap: 4px; padding: 4px; border-radius: 14px; background: rgba(255, 255, 255, .04); }
.wf-tab { border: 0; background: none; padding: 8px 14px; border-radius: 10px; cursor: pointer; color: var(--muted); font-weight: 600; font-size: .9rem; }
.wf-tab.active { background: rgba(124, 196, 255, .14); color: var(--text); box-shadow: inset 0 0 0 1px rgba(124, 196, 255, .25); }
.badge { display: inline-block; min-width: 20px; padding: 0 6px; border-radius: 999px; background: rgba(192, 132, 252, .25); font-size: .75rem; margin-left: 4px; }
.wf-scenarios { display: flex; flex-wrap: wrap; gap: 6px; }
.wf-chip { border: 1px solid var(--line); background: rgba(255, 255, 255, .03); color: var(--muted); padding: 7px 13px; border-radius: 999px; cursor: pointer; font-size: .85rem; }
.wf-chip.on { color: var(--text); border-color: rgba(192, 132, 252, .7); background: rgba(139, 92, 246, .18); }
.wf-actions { display: flex; align-items: center; gap: 14px; }
.wf-run { padding: 9px 18px; white-space: nowrap; }
.wf-run:disabled { opacity: .7; cursor: progress; transform: none; }
.wf-toggle { position: relative; display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: .9rem; color: var(--muted); }
.wf-toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.wf-toggle .track { width: 42px; height: 24px; border-radius: 999px; background: rgba(255, 255, 255, .12); position: relative; transition: background .25s; }
.wf-toggle .thumb { position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .25s; }
.wf-toggle input:checked + .track { background: var(--grad); }
.wf-toggle input:checked + .track .thumb { transform: translateX(18px); }
.wf-toggle input:focus-visible + .track { box-shadow: 0 0 0 3px rgba(124, 196, 255, .4); }
.wf-toggle small { color: var(--dawn); font-size: .78rem; min-width: 92px; }

.wf-body { display: grid; grid-template-columns: minmax(0, 1fr) 300px; }
.wf-canvas { overflow-x: auto; }
.wf-canvas svg { display: block; width: 100%; min-width: 720px; height: auto; }
.wf-panel { border-left: 1px solid var(--line); padding: 20px; max-height: 560px; overflow-y: auto; font-size: .92rem; }
.wf-panel h3 { margin: 0 0 12px; font-size: 1.15rem; }
.wf-panel p { color: var(--muted); margin: 0 0 12px; }
.wf-kicker { text-transform: uppercase; letter-spacing: .14em; font-size: .7rem !important; color: var(--dawn) !important; margin-bottom: 6px !important; }
.wf-hint { font-size: .88rem; }
.wf-link { background: none; border: 0; color: var(--lilac); cursor: pointer; padding: 0; font-size: .88rem; }
.wf-legend { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 9px; color: var(--muted); }
.wf-legend b { color: var(--text); }
.wf-legend li::before { content: "✦"; color: var(--lilac); margin-right: 8px; }
.wf-log, .wf-execs { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.wf-log li { padding: 10px 12px 10px 30px; border-radius: 12px; background: rgba(255, 255, 255, .03); border: 1px solid var(--line); position: relative; animation: rise .3s ease-out; }
.wf-log li::before { content: ""; position: absolute; left: 11px; top: 15px; width: 9px; height: 9px; border-radius: 50%; background: var(--dawn); box-shadow: 0 0 10px var(--dawn); animation: pulse 1s infinite; }
.wf-log li.done::before { animation: none; background: #6c78c9; box-shadow: none; }
.wf-log li b { display: block; font-size: .88rem; }
.wf-log li span { color: var(--muted); font-size: .85rem; }
.wf-log li.end.ok { border-color: rgba(93, 242, 176, .45); } .wf-log li.end.ok::before { background: #5df2b0; box-shadow: 0 0 10px #5df2b0; animation: none; }
.wf-log li.end.warn { border-color: rgba(255, 140, 170, .5); } .wf-log li.end.warn::before { background: #ff8caa; box-shadow: 0 0 10px #ff8caa; animation: none; }
.wf-execs li { padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, .03); display: grid; gap: 2px; }
.wf-execs small { color: var(--muted); }
.wf-execs .st { justify-self: start; font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; padding: 2px 8px; border-radius: 999px; }
.wf-execs .st.ok { background: rgba(93, 242, 176, .15); color: #5df2b0; }
.wf-execs .st.warn { background: rgba(255, 140, 170, .15); color: #ff8caa; }

/* SVG nodes */
.wf-edge { fill: none; stroke: rgba(150, 165, 255, .28); stroke-width: 2.5; transition: stroke .4s; }
.wf-edge.dashed { stroke-dasharray: 6 7; }
.wf-edge.lit { stroke: url(#wf-edge); }
.wf-edge.flow { stroke: url(#wf-edge); stroke-dasharray: 8 8; animation: dash .6s linear infinite; }
.wf-port { fill: #0c0e2a; stroke: rgba(150, 165, 255, .55); stroke-width: 2; }
.wf-packet { fill: #fff; }
.wf-node { cursor: pointer; outline: none; }
.wf-shape { fill: #12143a; stroke: rgba(150, 165, 255, .35); stroke-width: 2; transition: stroke .3s, fill .3s, filter .3s; }
.wf-node:hover .wf-shape, .wf-node:focus-visible .wf-shape, .wf-node.selected .wf-shape { stroke: var(--lilac); }
.wf-node.k-agent .wf-shape { fill: #17164a; stroke: rgba(124, 196, 255, .6); }
.wf-node.active .wf-shape { stroke: #7cc4ff; fill: #1b1d5a; filter: drop-shadow(0 0 14px rgba(124, 196, 255, .8)); }
.wf-node.done .wf-shape { stroke: rgba(192, 132, 252, .8); }
.wf-node.k-ok.active .wf-shape { stroke: #5df2b0; filter: drop-shadow(0 0 14px rgba(93, 242, 176, .8)); }
.wf-node.k-warn.active .wf-shape { stroke: #ff8caa; filter: drop-shadow(0 0 14px rgba(255, 140, 170, .8)); }
.wf-node.thinking .wf-icon { animation: blinkop .8s ease-in-out infinite; }
@keyframes blinkop { 50% { opacity: .35; } }
.wf-icon { fill: none; stroke: #9fd3ff; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.k-part .wf-icon { stroke: #d6a8ff; }
.k-ok .wf-icon { stroke: #5df2b0; }
.k-warn .wf-icon { stroke: #ff8caa; }
.k-trigger .wf-icon { stroke: #7cc4ff; }
.wf-label { fill: var(--text); font: 600 15px "Space Grotesk", sans-serif; }
.wf-title { fill: #bfe3ff; font: 700 22px "Space Grotesk", sans-serif; }
.wf-sub { fill: var(--muted); font: 400 12px "Inter", sans-serif; }
.wf-tag { fill: var(--dawn); font: 600 10px "Inter", sans-serif; letter-spacing: .14em; }
@keyframes dash { to { stroke-dashoffset: -16; } }

@media (max-width: 920px) {
  .wf-body { grid-template-columns: 1fr; }
  .wf-panel { border-left: 0; border-top: 1px solid var(--line); max-height: none; }
  .wf-toolbar { justify-content: flex-start; }
  .wf-actions { width: 100%; justify-content: space-between; }
}

/* ---------- Workflow card in the first screen ---------- */
.hero-wf { max-width: 1320px; margin: 0 auto; padding: 0 clamp(20px, 6vw, 90px) 40px; scroll-margin-top: 80px; }
.hero-wf-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 10px 40px; margin-bottom: 16px; }
.hero-wf-head h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); margin: 0; letter-spacing: -.02em; }
.hero-wf-head .eyebrow { margin-bottom: 6px; }
.hero-wf-head p:not(.eyebrow) { color: var(--muted); max-width: 56ch; margin: 0; font-size: .95rem; }
.hero-wf-head p b { color: var(--text); }

/* ---------- Local LLMs ---------- */
.llm-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 50px; align-items: center; }
.engines { display: flex; flex-wrap: wrap; gap: 10px; margin: -14px 0 26px; }
.engine {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 14px;
  border: 1px solid var(--line); background: rgba(255, 255, 255, .04); font-weight: 600; font-size: .92rem;
}
.engine i { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.engine small { font-weight: 500; font-size: .7rem; color: var(--dawn); padding: 2px 7px; border-radius: 999px; background: rgba(124, 196, 255, .12); }
.engine.expert { border-color: rgba(192, 132, 252, .45); background: linear-gradient(120deg, rgba(124, 196, 255, .1), rgba(139, 92, 246, .14)); animation: engineGlow 3s ease-in-out infinite; animation-delay: var(--d); }
.engine.expert i { background: #5df2b0; box-shadow: 0 0 10px #5df2b0; animation: pulse 1.6s infinite; animation-delay: var(--d); }
@keyframes engineGlow { 50% { box-shadow: 0 0 24px rgba(139, 92, 246, .45); } }
.llm-points { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; color: var(--muted); }
.llm-points b { color: var(--text); }
.llm-points li::before { content: "✦"; color: var(--lilac); margin-right: 10px; }

.bench {
  padding: 28px 30px 22px; border-radius: 24px; border: 1px solid var(--line);
  background: rgba(10, 12, 34, .85); box-shadow: 0 30px 80px rgba(5, 3, 30, .55), 0 0 60px rgba(79, 140, 255, .1);
}
.bench-head { display: flex; justify-content: space-between; font: 500 .9rem "JetBrains Mono", monospace; color: var(--muted); margin-bottom: 18px; }
.bench-head b { color: var(--dawn); font-weight: 600; }
.bench-rows { display: grid; gap: 16px; }
.bench-label { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 7px; }
.bench-label span { font: 600 1.02rem "Space Grotesk", sans-serif; }
.bench-label .dim { background: none; color: var(--muted); font-style: normal; font-weight: 400; -webkit-text-fill-color: var(--muted); }
.bench-label code { font: 500 .88rem "JetBrains Mono", monospace; color: #cfd6ff; white-space: nowrap; }
.bench-track { position: relative; height: 10px; border-radius: 999px; background: rgba(150, 165, 255, .1); }
.bench-min, .bench-max { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 999px; transition: width 1.2s cubic-bezier(.2, .8, .2, 1); }
.bench-min { background: linear-gradient(90deg, #4f8cff, #7cc4ff); box-shadow: 0 0 12px rgba(124, 196, 255, .45); }
.bench-max { background: rgba(124, 196, 255, .35); }
.bench-row.over .bench-min { background: linear-gradient(90deg, #4f8cff, #c084fc); }
.bench-budget { position: absolute; top: -6px; bottom: -6px; width: 0; border-left: 2px dashed rgba(238, 240, 255, .75); }
.bench-note { margin: 16px 0 0; color: #7a7fae; font-size: .78rem; }

.pipeline { margin-top: 56px; border-radius: 24px; border: 1px solid var(--line); background: rgba(10, 11, 34, .6); padding: 18px 18px 8px; overflow-x: auto; }
.pipeline svg { display: block; width: 100%; min-width: 760px; height: auto; }
.p-box { fill: #12143a; stroke: rgba(150, 165, 255, .35); stroke-width: 2; }
.p-engine { stroke: rgba(192, 132, 252, .6); filter: drop-shadow(0 0 12px rgba(139, 92, 246, .35)); }
.p-chip { fill: #161848; stroke: url(#pg); stroke-width: 2.5; filter: drop-shadow(0 0 18px rgba(124, 196, 255, .35)); }
.p-die { fill: #0b0d2a; stroke: rgba(150, 165, 255, .25); }
.p-pin { fill: #6f7bd8; }
.p-core { fill: rgba(124, 196, 255, .12); transition: fill .25s; }
.p-core.on { fill: #7cc4ff; }
.p-cell { fill: rgba(192, 132, 252, .14); transition: fill .3s; }
.p-cell.on { fill: #c084fc; }
.p-wire { fill: none; stroke: url(#pg); stroke-width: 2.5; stroke-dasharray: 6 6; animation: dash .8s linear infinite; opacity: .7; }
.p-token { fill: #fff; }
.p-lbl { fill: var(--muted); font: 500 13px "Inter", sans-serif; }
.p-sub { fill: var(--muted); font: 400 11px "Inter", sans-serif; }
.p-eng { fill: #e6d4ff; font: 700 20px "Space Grotesk", sans-serif; transition: opacity .3s; }
.p-eng.swap { opacity: 0; }
.p-out { font: 13px/1.45 "Inter", sans-serif; color: var(--text); }
.p-out::after { content: "▍"; color: var(--dawn); animation: caret .8s steps(1) infinite; }

@media (max-width: 920px) {
  .llm-grid { grid-template-columns: 1fr; }
  .hero-stage { height: 440px; }
  .bench { padding: 22px 18px 18px; }
}

/* ---------- Hero: SaaS migration pitch ---------- */
.hero { min-height: calc(100svh - 70px); grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); align-items: center; padding-top: 28px; padding-bottom: 36px; }
.hero h1 { font-size: clamp(2rem, 3.5vw, 3.1rem); line-height: 1.08; margin-bottom: 18px; text-wrap: balance; }
.offer-pains { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 10px; font-size: 1.12rem; font-weight: 500; }
.offer-pains li { display: flex; align-items: center; gap: 12px; }
.pain-ico { flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: rgba(255, 64, 90, .14); border: 1px solid rgba(255, 64, 90, .45); box-shadow: 0 0 16px rgba(255, 64, 90, .3); }
.pain-ico svg { width: 18px; height: 18px; stroke: #ff4a64; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; fill: none; overflow: visible; }
.pain-ico svg path:last-child { fill: #ff4a64; transform-origin: 5px 8px; animation: flagWave 1.8s ease-in-out infinite; }
.offer-pains li:nth-child(2) .pain-ico svg path:last-child { animation-delay: .4s; }
@keyframes flagWave { 50% { transform: skewY(-6deg) scaleX(.92); } }
.saas { color: #6ee7f9; text-shadow: 0 0 22px rgba(110, 231, 249, .45); }
.offer {
  position: relative; display: grid; gap: 10px; padding: 24px 26px; border-radius: 22px; max-width: 620px;
  background: linear-gradient(140deg, rgba(79, 140, 255, .16), rgba(139, 92, 246, .18) 55%, rgba(193, 59, 216, .16));
  border: 1px solid rgba(192, 132, 252, .5);
  box-shadow: 0 20px 60px rgba(20, 8, 60, .55), 0 0 44px rgba(139, 92, 246, .25);
  overflow: hidden;
}
.offer::before { content: ""; position: absolute; inset: -60%; pointer-events: none; background: conic-gradient(from 0deg, transparent 0 72%, rgba(124, 196, 255, .2) 82%, transparent 92%); animation: spin 10s linear infinite; }
.offer > * { position: relative; margin: 0; }
.offer-solve { font: 700 clamp(1.6rem, 2.6vw, 2.1rem)/1.1 "Space Grotesk", sans-serif; background: linear-gradient(90deg, #5df2b0, #7cc4ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.offer-fix { color: #d9dcff; font-size: 1.02rem; }
.offer-tag { font: 700 1.12rem "Space Grotesk", sans-serif; }
.offer .cta-row { margin-top: 6px; }
.pill-big { padding: 14px 22px; font-size: 1rem; font-weight: 600; min-height: 50px; }
.pill-ghost { border: 1.5px solid rgba(238, 240, 255, .45); }
.offer .pill-solid { animation: ctaPulse 2.6s ease-in-out infinite; }
@keyframes ctaPulse { 0%, 100% { box-shadow: 0 6px 28px rgba(139, 92, 246, .45); } 50% { box-shadow: 0 6px 44px rgba(193, 59, 216, .75), 0 0 0 6px rgba(192, 132, 252, .12); } }
.talk-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; padding: 6px 2px; background: none; border: 0; cursor: pointer; color: var(--muted); font-size: .95rem; }
.talk-link b { color: var(--text); }
.talk-link:hover { color: var(--text); }
.talk-link .dot { width: 8px; height: 8px; border-radius: 50%; background: #5df2b0; box-shadow: 0 0 12px #5df2b0; animation: pulse 1.8s infinite; }
.hero-wf { padding-top: 90px; }

/* ---------- Migration plan ---------- */
.ba { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 20px; align-items: stretch; margin-bottom: 56px; }
.ba-panel { padding: 20px 22px; border-radius: 20px; border: 1px solid var(--line); background: var(--glass); backdrop-filter: blur(10px); color: var(--text); }
.ba-panel.after { border-color: rgba(192, 132, 252, .45); box-shadow: 0 0 40px rgba(139, 92, 246, .18); }
.ba-panel h3 { margin: 0 0 4px; }
.ba-tag { margin: 0; font-size: .88rem; color: var(--muted); }
.ba-panel svg { width: 100%; height: auto; display: block; margin-top: 6px; color: #cfd6ff; }
.ba-agent { filter: drop-shadow(0 0 10px rgba(139, 92, 246, .6)); }
.ba-flow { stroke-dasharray: 5 5; animation: dash .9s linear infinite; }
.ba-shift { display: grid; place-items: center; font: 700 2.2rem "Space Grotesk", sans-serif; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

.route { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.stage { padding: 18px 20px 6px; border-radius: 20px; border: 1px solid var(--line); background: rgba(255, 255, 255, .025); border-top: 5px solid var(--dawn); }
.stage.s2 { border-top-color: var(--purple); }
.stage.s3 { border-top-color: var(--magenta); }
.when { font-size: .8rem; color: var(--muted); }
.stage-title { margin: 2px 0 16px; font-size: 1.45rem; }
.stops { list-style: none; margin: 0; padding: 0; position: relative; }
.stops::before { content: ""; position: absolute; left: 18px; top: 18px; bottom: 26px; width: 2px; background: linear-gradient(var(--dawn), var(--lilac)); opacity: .35; }
.stop { position: relative; display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 12px; padding-bottom: 16px; }
.stop-dot { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font: 700 .95rem "Space Grotesk", sans-serif; background: #12143a; border: 2px solid var(--dawn); color: var(--text); position: relative; z-index: 1; }
.s2 .stop-dot { border-color: var(--purple); }
.s3 .stop-dot { border-color: var(--magenta); }
.stop h4 { margin: 6px 0 2px; font: 600 1.02rem "Space Grotesk", sans-serif; }
.stop p { margin: 0; font-size: .9rem; color: var(--muted); }
.stop, .gate { opacity: 0; transform: translateY(10px); }
.route.go .stop, .route.go .gate { animation: rise .5s ease forwards; animation-delay: calc(var(--i) * 110ms); }
.route.go .stop-dot { animation: dotOn .5s ease forwards; animation-delay: calc(var(--i) * 110ms + 200ms); }
@keyframes dotOn { to { background: var(--grad); border-color: transparent; box-shadow: 0 0 16px rgba(139, 92, 246, .55); } }
.gate { margin: 4px 0 16px; padding: 14px 16px; border-radius: 14px; border: 2px dashed rgba(192, 132, 252, .55); background: rgba(139, 92, 246, .08); }
.gate b { font-family: "Space Grotesk", sans-serif; }
.paths { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.path { font-size: .82rem; padding: 5px 11px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255, 255, 255, .04); }
.path.yes { background: rgba(93, 242, 176, .15); border-color: rgba(93, 242, 176, .5); color: #5df2b0; }
.loop { display: flex; gap: 10px; align-items: center; margin-top: 10px; font-size: .85rem; color: var(--muted); }
.loop svg { flex: none; width: 24px; height: 24px; color: var(--lilac); animation: spin 4s linear infinite; }
.rules-title { margin: 48px 0 0; font-size: 1.4rem; }
.rules { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-top: 18px; }
.rule { border-left: 3px solid var(--lilac); padding: 4px 0 4px 14px; }
.rule h4 { margin: 0 0 4px; font: 600 1rem "Space Grotesk", sans-serif; }
.rule p { margin: 0; font-size: .9rem; color: var(--muted); }
.plan-cta { margin-top: 28px; }

@media (max-width: 920px) {
  .hero { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .hero-stage { height: 400px; }
  .route { grid-template-columns: minmax(0, 1fr); }
  .rules { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .hero h1 { font-size: 1.85rem; }
  .offer-pains { font-size: 1rem; }
  .offer { padding: 20px 16px; }
  .offer .pill-big, .plan-cta .pill-big { width: 100%; justify-content: center; text-align: center; }
  .ba { grid-template-columns: minmax(0, 1fr); }
  .ba-shift { transform: rotate(90deg); }
  .rules { grid-template-columns: minmax(0, 1fr); }
  .hero-stage { height: 360px; }
  .robot { width: 210px; }
}
@media (prefers-reduced-motion: reduce) { .stop, .gate { opacity: 1; transform: none; } }

/* ---------- Booking dialog ---------- */
.lead-dlg {
  width: min(560px, 94vw); margin: auto; max-height: 92vh; padding: 0; border-radius: 24px; color: var(--text);
  background: rgba(14, 14, 46, .97); border: 1px solid rgba(192, 132, 252, .4);
  box-shadow: 0 40px 120px rgba(0, 0, 0, .6), 0 0 80px rgba(139, 92, 246, .3);
}
.lead-dlg::backdrop { background: rgba(4, 5, 20, .7); backdrop-filter: blur(6px); }
.lead-dlg[open] { animation: pop .3s ease-out; }
.lead-form, .lead-done { padding: 28px 28px 22px; position: relative; }
.lead-form[hidden], .lead-done[hidden] { display: none; }
.lead-dlg h2 { margin: 0 0 8px; font-size: 1.8rem; letter-spacing: -.02em; }
.lead-sub { color: var(--muted); margin: 0 0 18px; font-size: .95rem; }
.lead-x { position: absolute; top: 14px; right: 14px; }
.lead-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; }
.lead-grid label { display: grid; gap: 6px; font-size: .85rem; color: var(--muted); font-weight: 500; }
.lead-grid .full { grid-column: 1 / -1; }
.lead-grid input, .lead-grid textarea {
  width: 100%; padding: 11px 13px; border-radius: 12px; border: 1px solid var(--line);
  background: rgba(255, 255, 255, .05); color: var(--text); font: 16px/1.4 "Inter", sans-serif; outline: none; resize: vertical;
}
.lead-grid input:focus, .lead-grid textarea:focus { border-color: rgba(124, 196, 255, .6); box-shadow: 0 0 0 3px rgba(124, 196, 255, .15); }
.lead-grid [aria-invalid="true"] { border-color: #ff8caa; box-shadow: 0 0 0 3px rgba(255, 140, 170, .18); }
.lead-grid .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.lead-err { min-height: 1.2em; color: #ff8caa; font-size: .88rem; margin: 10px 0 6px; }
.lead-submit { width: 100%; justify-content: center; }
.lead-fine { color: #7a7fae; font-size: .78rem; margin: 10px 0 0; text-align: center; }
.lead-done { text-align: center; padding: 44px 28px; }
.lead-done p { color: var(--muted); }
.done-ico { width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 50%; display: grid; place-items: center; font-size: 1.8rem; background: rgba(93, 242, 176, .15); color: #5df2b0; box-shadow: 0 0 30px rgba(93, 242, 176, .35); }

@media (max-width: 600px) {
  .lead-grid { grid-template-columns: 1fr; }
}
