:root {
  --bg: #0a0d14;
  --bg-alt: #0e1220;
  --surface: #131829;
  --surface-2: #181e33;
  --border: #232a44;
  --text: #e8ebf4;
  --muted: #9aa3bd;
  --yellow: #ffd95a;
  --orange: #f0a03a;
  --blue: #3b74e0;
  --navy: #1e4fa3;
  --green: #3ecf8e;
  --red: #ff6b6b;
  --radius: 16px;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
code { font-family: var(--mono); font-size: 0.85em; background: rgba(255, 255, 255, 0.06); padding: 1px 6px; border-radius: 6px; }

.container { width: min(1180px, 92vw); margin: 0 auto; }
.narrow { width: min(820px, 92vw); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: 12px; font-weight: 600; font-size: 15px;
  border: 1px solid transparent; cursor: pointer; transition: transform .15s, box-shadow .2s, background .2s, border-color .2s;
  font-family: inherit;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(135deg, var(--yellow), var(--orange));
  color: #1a1405;
  box-shadow: 0 8px 30px rgba(240, 160, 58, 0.3);
}
.btn-primary:hover { box-shadow: 0 10px 40px rgba(240, 160, 58, 0.45); }
.btn-ghost { background: rgba(255, 255, 255, 0.04); border-color: var(--border); color: var(--text); }
.btn-ghost:hover { border-color: #3a4366; background: rgba(255, 255, 255, 0.07); }
.btn-sm { padding: 9px 16px; font-size: 14px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: wait; transform: none; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 13, 20, 0.75);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgba(35, 42, 68, 0.6);
}
.nav-inner { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -0.01em; }
.brand img { border-radius: 9px; }
.nav-links { display: flex; gap: 24px; margin-left: auto; }
.nav-links a { color: var(--muted); font-size: 14.5px; font-weight: 500; transition: color .2s; }
.nav-links a:hover { color: var(--text); }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text); margin: 5px 0; border-radius: 2px; transition: transform .2s, opacity .2s; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 90px 0 60px; }
.glow { position: absolute; border-radius: 50%; filter: blur(100px); opacity: .35; pointer-events: none; }
.glow-a { width: 520px; height: 520px; background: var(--orange); top: -180px; left: -120px; opacity: .18; }
.glow-b { width: 600px; height: 600px; background: var(--blue); top: 40px; right: -200px; opacity: .22; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.hero-grid > *, .split > *, .grid-3 > *, .grid-4 > *, .feature-list > * { min-width: 0; }
.step { overflow-wrap: anywhere; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; color: var(--yellow);
  background: rgba(255, 217, 90, 0.08); border: 1px solid rgba(255, 217, 90, 0.25);
  padding: 6px 14px; border-radius: 999px;
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); }
h1 { font-size: clamp(36px, 5vw, 60px); line-height: 1.08; letter-spacing: -0.03em; margin: 20px 0 18px; font-weight: 800; }
h2 { font-size: clamp(28px, 3.4vw, 42px); line-height: 1.15; letter-spacing: -0.02em; margin: 10px 0 14px; font-weight: 800; }
h3 { font-size: 18px; margin: 0 0 8px; letter-spacing: -0.01em; }
h4 { font-size: 16px; margin: 0 0 6px; }
.grad { background: linear-gradient(90deg, var(--yellow), var(--orange) 50%, #6ea0ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { color: var(--muted); font-size: 18px; max-width: 620px; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin: 28px 0 22px; }
.hero-points { list-style: none; padding: 0; margin: 0; display: flex; gap: 22px; flex-wrap: wrap; color: var(--muted); font-size: 14px; }
.hero-points li::before { content: "✓"; color: var(--green); font-weight: 700; margin-right: 7px; }

/* Agent window */
.window { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.window-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; background: var(--surface-2); border-bottom: 1px solid var(--border); }
.window-bar i { width: 11px; height: 11px; border-radius: 50%; background: #3a4160; }
.window-bar i:nth-child(1) { background: #ff5f57; }
.window-bar i:nth-child(2) { background: #febc2e; }
.window-bar i:nth-child(3) { background: #28c840; }
.window-bar span { margin-left: 10px; font-size: 12.5px; color: var(--muted); font-weight: 500; }
.window-body { padding: 20px; font-family: var(--mono); font-size: 13px; display: flex; flex-direction: column; gap: 11px; min-height: 340px; }
.msg.user { align-self: flex-end; background: linear-gradient(135deg, var(--navy), var(--blue)); color: #fff; padding: 9px 14px; border-radius: 14px 14px 4px 14px; font-family: Inter, sans-serif; font-weight: 500; font-size: 14px; }
.step { color: #c7cde0; opacity: 0; transform: translateY(6px); transition: opacity .45s, transform .45s; line-height: 1.55; }
.step.show { opacity: 1; transform: none; }
.step em { color: var(--muted); font-style: normal; }
.badge { display: inline-block; font-size: 10.5px; font-weight: 700; letter-spacing: .05em; padding: 2px 7px; border-radius: 5px; margin-right: 8px; vertical-align: 1px; }
.badge.fail { background: rgba(255, 107, 107, .15); color: var(--red); }
.badge.info { background: rgba(110, 160, 255, .14); color: #8fb4ff; }
.badge.warn { background: rgba(255, 217, 90, .14); color: var(--yellow); }
.badge.pass { background: rgba(62, 207, 142, .15); color: var(--green); }

.vendors { position: relative; margin-top: 70px; text-align: center; }
.vendors p { color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: .12em; margin: 0 0 16px; }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { list-style: none; padding: 0; margin: 0; display: flex; gap: 54px; width: max-content; animation: marquee 32s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track li { color: #c2c8da; font-weight: 600; font-size: 17px; opacity: .85; white-space: nowrap; }
.marquee-track li::before { content: "◆"; color: var(--orange); font-size: 10px; margin-right: 12px; vertical-align: 3px; }
@keyframes marquee { to { transform: translateX(calc(-50% - 27px)); } }

/* Sections */
.section { padding: 96px 0; }
.section.alt { background: var(--bg-alt); border-top: 1px solid rgba(35, 42, 68, .5); border-bottom: 1px solid rgba(35, 42, 68, .5); }
.section-head { text-align: center; max-width: 780px; margin: 0 auto 52px; }
.section-head .lead { margin: 0 auto; }
.kicker { color: var(--orange); font-weight: 700; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; }

.grid-3, .grid-4 { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px; transition: border-color .2s, transform .2s;
}
.card:hover { border-color: #33406a; }
.card p { color: var(--muted); margin: 0; font-size: 15px; }
.problem h3 { color: #ffb3b3; }
.pillar .icon { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 16px; background: linear-gradient(135deg, rgba(255, 217, 90, .16), rgba(59, 116, 224, .16)); border: 1px solid var(--border); margin-bottom: 18px; color: var(--yellow); position: relative; }
.pillar .icon::after { content: ""; position: absolute; inset: -1px; border-radius: inherit; box-shadow: 0 0 0 0 rgba(255, 217, 90, .35); animation: ping 2.8s ease-out infinite; }
.pillar:nth-child(2) .icon::after { animation-delay: .7s; }
.pillar:nth-child(3) .icon::after { animation-delay: 1.4s; }
.pillar:nth-child(4) .icon::after { animation-delay: 2.1s; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(255, 217, 90, .35); } 70%, 100% { box-shadow: 0 0 0 14px rgba(255, 217, 90, 0); } }
.icon svg, .bicon svg, .sicon svg, .chips svg, .btn svg, .wa-float svg {
  width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}

/* Tabs */
.tabs { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin-bottom: 30px; }
.tab { font-family: inherit; font-size: 15px; font-weight: 600; color: var(--muted); background: transparent; border: 1px solid var(--border); padding: 10px 20px; border-radius: 999px; cursor: pointer; transition: all .2s; }
.tab:hover { color: var(--text); }
.tab.active { color: #1a1405; background: linear-gradient(135deg, var(--yellow), var(--orange)); border-color: transparent; }
.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fade .35s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.feature-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature { padding: 22px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); }
.feature h4::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 2px; background: var(--orange); margin-right: 10px; vertical-align: 2px; }
.feature p { color: var(--muted); margin: 0; font-size: 14.5px; }

/* Split */
.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 60px; align-items: center; }
.checks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; }
.checks li { position: relative; padding-left: 30px; color: var(--muted); }
.checks li strong { color: var(--text); }
.checks li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 20px; height: 20px; border-radius: 6px; background: rgba(62, 207, 142, .15); color: var(--green); font-size: 12px; font-weight: 800; display: grid; place-items: center; margin-top: 3px; }
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 22px; }
.stat .num { display: block; font-size: 44px; font-weight: 800; letter-spacing: -0.03em; background: linear-gradient(135deg, var(--yellow), var(--orange)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span:last-child { color: var(--muted); font-size: 14.5px; }

/* Compare */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.compare { width: 100%; border-collapse: collapse; min-width: 760px; font-size: 14.5px; }
.compare th, .compare td { padding: 15px 18px; text-align: center; border-bottom: 1px solid var(--border); }
.compare th:first-child, .compare td:first-child { text-align: left; color: var(--text); font-weight: 500; }
.compare th { font-size: 13.5px; color: var(--muted); font-weight: 600; background: var(--surface-2); }
.compare td { color: var(--muted); }
.compare tr:last-child td { border-bottom: 0; }
.compare .us { color: var(--green); font-weight: 700; background: rgba(255, 217, 90, .05); }
.compare th.us { color: var(--yellow); }
.migrate { margin-top: 28px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 26px 30px; border-radius: var(--radius); border: 1px solid rgba(255, 217, 90, .25); background: linear-gradient(135deg, rgba(255, 217, 90, .07), rgba(59, 116, 224, .07)); }
.migrate p { color: var(--muted); margin: 0; }

/* Pricing */
.pricing { align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; }
.plan .plan-for { margin-bottom: 18px; }
.plan .price { font-size: 30px; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 18px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 10px; color: var(--muted); font-size: 14.5px; flex: 1; }
.plan li::before { content: "✓"; color: var(--green); font-weight: 700; margin-right: 9px; }
.plan.featured { border-color: rgba(255, 217, 90, .5); box-shadow: 0 0 0 1px rgba(255, 217, 90, .2), 0 20px 60px rgba(240, 160, 58, .12); }
.ribbon { position: absolute; top: -12px; right: 22px; font-size: 12px; font-weight: 700; color: #1a1405; background: linear-gradient(135deg, var(--yellow), var(--orange)); padding: 4px 12px; border-radius: 999px; }

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 4px 22px; }
.faq summary { cursor: pointer; list-style: none; font-weight: 600; padding: 16px 0; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--orange); font-size: 22px; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); margin: 0 0 18px; }

/* Form */
.form { display: grid; gap: 16px; padding: 30px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: grid; gap: 7px; font-size: 13.5px; font-weight: 600; color: #c7cde0; }
.form input, .form select, .form textarea {
  font: inherit; font-weight: 400; font-size: 15px; color: var(--text);
  background: var(--bg); border: 1px solid var(--border); border-radius: 10px; padding: 11px 13px;
  transition: border-color .2s, box-shadow .2s;
}
.form textarea { resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(240, 160, 58, .18); }
.form .invalid { border-color: var(--red); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-status { margin: 0; font-size: 14px; min-height: 20px; }
.form-status.ok { color: var(--green); }
.form-status.err { color: var(--red); }

/* Footer */
.footer { padding: 48px 0; border-top: 1px solid var(--border); }
.footer-inner { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px 30px; }
.footer .tagline { color: var(--muted); margin: 0; }
.footer nav { display: flex; gap: 22px; }
.footer nav a { color: var(--muted); font-size: 14px; }
.footer nav a:hover { color: var(--text); }
.footer .copy { grid-column: 1 / -1; color: #6b7390; font-size: 13px; margin: 8px 0 0; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .step { opacity: 1; transform: none; transition: none; }
}

/* Responsive */
@media (max-width: 1020px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .feature-list { grid-template-columns: repeat(2, 1fr); }
  .hero-grid, .split { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 860px) {
  .nav-links {
    position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; gap: 0;
    background: rgba(10, 13, 20, .97); border-bottom: 1px solid var(--border);
    padding: 8px 4vw 16px; display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 0; font-size: 16px; }
  .nav-toggle { display: block; margin-left: auto; }
  .nav-cta { display: none; }
  .grid-3 { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; text-align: left; }
  .migrate { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 600px) {
  .grid-4, .feature-list, .stat-grid, .form .row { grid-template-columns: 1fr; }
  .section { padding: 72px 0; }
  .hero { padding-top: 60px; }
  .window-body { font-size: 12px; min-height: 0; }
}

/* ---------- Motion & robot visuals ---------- */
.progress { position: fixed; top: 0; left: 0; height: 3px; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--yellow), var(--orange), #6ea0ff); z-index: 100; }
.cursor-glow { position: fixed; width: 420px; height: 420px; border-radius: 50%; pointer-events: none; z-index: 0; left: 0; top: 0; background: radial-gradient(circle, rgba(255, 217, 90, .07), transparent 65%); transform: translate(-50%, -50%); transition: opacity .3s; opacity: 0; }
main, .footer { position: relative; z-index: 1; }

.net { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .55; pointer-events: none; z-index: 0; }
.hero-grid, .vendors { z-index: 1; }

h1 .grad { background-size: 200% 100%; animation: shine 6s ease-in-out infinite; }
@keyframes shine { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
.dot { animation: blink-dot 1.6s ease-in-out infinite; }
@keyframes blink-dot { 50% { opacity: .35; } }

.hero-visual { position: relative; }
.robot-wrap { position: absolute; top: -78px; right: -18px; width: 150px; z-index: 3; animation: float 5s ease-in-out infinite; }
.robot { width: 100%; height: auto; filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .5)) drop-shadow(0 0 22px rgba(110, 160, 255, .25)); }
.robot .antenna { animation: pulse-glow 1.8s ease-in-out infinite; transform-origin: 100px 14px; }
.robot .core { animation: pulse-glow 2.4s ease-in-out infinite; transform-origin: 100px 183px; }
.robot .eyes { animation: blink 4.5s infinite; transform-origin: 100px 93px; }
.robot .eyes rect { filter: drop-shadow(0 0 6px #6ea0ff); }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-12px) rotate(2deg); } }
@keyframes pulse-glow { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .55; transform: scale(.85); } }
@keyframes blink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.1); } }
.robot-bubble { position: absolute; right: 118px; top: 26px; white-space: nowrap; font-size: 12.5px; font-weight: 600; color: #1a1405; background: linear-gradient(135deg, var(--yellow), var(--orange)); padding: 7px 12px; border-radius: 12px 12px 2px 12px; box-shadow: 0 8px 24px rgba(240, 160, 58, .35); animation: bubble 6s ease-in-out infinite; }
@keyframes bubble { 0%, 12% { opacity: 0; transform: translateY(6px) scale(.9); } 20%, 80% { opacity: 1; transform: none; } 90%, 100% { opacity: 0; transform: translateY(-4px); } }

.window { position: relative; }
.window::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; background: conic-gradient(from var(--angle, 0deg), transparent 0 70%, var(--orange), var(--yellow), transparent 100%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: spin-border 5s linear infinite; pointer-events: none; z-index: 2; }
@property --angle { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
@keyframes spin-border { to { --angle: 360deg; } }
.window-body { position: relative; overflow: hidden; }
.scanline { position: absolute; left: 0; right: 0; height: 60px; top: -60px; background: linear-gradient(180deg, transparent, rgba(110, 160, 255, .08), transparent); animation: scan 4s linear infinite; pointer-events: none; }
@keyframes scan { to { top: 110%; } }
.badge.pass { animation: none; }
.step.show .badge.pass { animation: pop .5s ease; }
@keyframes pop { 0% { transform: scale(.6); } 60% { transform: scale(1.15); } 100% { transform: scale(1); } }

/* Problems */
.problem-list { display: grid; gap: 14px; max-width: 860px; margin: 0 auto; }
.problem-row { display: flex; gap: 20px; align-items: flex-start; padding: 20px 24px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; transition: transform .25s, border-color .25s; }
.problem-row:hover { transform: translateX(6px); border-color: rgba(255, 107, 107, .4); }
.problem-row p { margin: 0; color: var(--muted); }
.problem-row strong { color: var(--text); }
.pnum { font-weight: 800; color: #ff9a9a; font-size: 18px; min-width: 28px; }
.reveal.problem-row:nth-child(2) { transition-delay: .08s; }
.reveal.problem-row:nth-child(3) { transition-delay: .16s; }
.reveal.problem-row:nth-child(4) { transition-delay: .24s; }
.reveal.problem-row:nth-child(5) { transition-delay: .32s; }

/* Staggered grids */
.grid-4 > .reveal:nth-child(2), .grid-3 > .reveal:nth-child(2) { transition-delay: .08s; }
.grid-4 > .reveal:nth-child(3), .grid-3 > .reveal:nth-child(3) { transition-delay: .16s; }
.grid-4 > .reveal:nth-child(4), .grid-3 > .reveal:nth-child(4) { transition-delay: .24s; }
.grid-3 > .reveal:nth-child(5) { transition-delay: .32s; }
.grid-3 > .reveal:nth-child(6) { transition-delay: .4s; }

/* Tilt cards */
.tilt { transform-style: preserve-3d; will-change: transform; }
.tilt::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s; background: radial-gradient(300px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 217, 90, .1), transparent 60%); }
.tilt:hover::after { opacity: 1; }
.card { position: relative; }

/* Building blocks */
.blocks { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.block { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; padding: 24px 12px; font-weight: 600; font-size: 14.5px; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; transition: transform .25s, border-color .25s, box-shadow .25s; }
.block:hover { transform: translateY(-6px); border-color: rgba(62, 207, 142, .5); box-shadow: 0 14px 34px rgba(62, 207, 142, .12); }
.bicon { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 16px; color: var(--green); background: rgba(62, 207, 142, .1); border: 1px solid rgba(62, 207, 142, .25); animation: bob 4s ease-in-out infinite; }
.block:nth-child(2n) .bicon { animation-delay: -1s; }
.block:nth-child(3n) .bicon { animation-delay: -2s; }
.block:nth-child(5n) .bicon { animation-delay: -3s; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
.blocks .reveal:nth-child(n) { transition-delay: calc(var(--i, 0) * 60ms); }

/* Tour */
.tour { position: relative; }
.tour-track { display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: 10px 4px 24px; scrollbar-width: none; }
.tour-track::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 min(360px, 78vw); margin: 0; scroll-snap-align: center; border-radius: 18px; overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow); cursor: zoom-in; transition: transform .35s, box-shadow .35s, opacity .35s; opacity: .7; transform: scale(.94); }
.slide.active { opacity: 1; transform: scale(1); box-shadow: 0 24px 70px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 217, 90, .35); }
.slide img { width: 100%; height: auto; }
.tour-nav { position: absolute; top: 45%; z-index: 2; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--border); background: rgba(19, 24, 41, .9); color: var(--text); font-size: 28px; line-height: 1; cursor: pointer; transition: background .2s, transform .2s; }
.tour-nav:hover { background: var(--surface-2); transform: scale(1.08); }
.tour-nav.prev { left: -8px; }
.tour-nav.next { right: -8px; }
.tour-dots { display: flex; justify-content: center; gap: 8px; margin: 4px 0 28px; }
.tour-dots button { width: 8px; height: 8px; border-radius: 99px; border: 0; padding: 0; background: #3a4366; cursor: pointer; transition: width .3s, background .3s; }
.tour-dots button.on { width: 26px; background: var(--yellow); }
.center { text-align: center; }

.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(5, 7, 12, .92); display: grid; place-items: center; padding: 30px; animation: fade .25s ease; }
.lightbox[hidden] { display: none; }
.lightbox img { max-height: 92vh; max-width: 92vw; border-radius: 14px; box-shadow: var(--shadow); }
.lb-close, .lb-nav { position: absolute; background: rgba(255, 255, 255, .08); border: 1px solid var(--border); color: #fff; border-radius: 50%; width: 46px; height: 46px; font-size: 26px; cursor: pointer; }
.lb-close { top: 20px; right: 20px; }
.lb-prev { left: 20px; top: 50%; }
.lb-next { right: 20px; top: 50%; }

/* Stats */
.stat { transition: transform .25s, border-color .25s; }
.stat:hover { transform: translateY(-4px); border-color: rgba(255, 217, 90, .35); }
.sicon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: rgba(110, 160, 255, .1); color: #8fb4ff; margin-bottom: 10px; }
.sicon svg { width: 22px; height: 22px; }

/* Terminal */
.terminal { background: #070a12; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.terminal pre { margin: 0; padding: 22px; font-family: var(--mono); font-size: 13px; line-height: 1.75; color: #d6dbea; white-space: pre-wrap; overflow-wrap: anywhere; min-height: 280px; }
.t-p { color: var(--green); }
.t-m { color: #7d86a3; }
.t-ok { color: var(--green); }
.t-bad { color: var(--red); }
.tline { opacity: 0; transition: opacity .25s; }
.tline.on { opacity: 1; }
.caret { display: inline-block; width: 8px; height: 15px; background: var(--yellow); vertical-align: -2px; margin-left: 2px; animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }

/* Integrations chips */
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-bottom: 40px; }
.chips span { display: inline-flex; align-items: center; gap: 9px; padding: 10px 16px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); font-weight: 600; font-size: 14.5px; transition: transform .2s, border-color .2s; }
.chips span:hover { transform: translateY(-3px); border-color: rgba(255, 217, 90, .45); }
.chips svg { width: 18px; height: 18px; color: var(--orange); }

/* Buttons: shimmer + WhatsApp */
.btn-primary { position: relative; overflow: hidden; }
.btn-primary::after { content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .55), transparent); transform: skewX(-20deg); animation: shimmer 4.5s ease-in-out infinite; }
@keyframes shimmer { 0%, 60% { left: -60%; } 100% { left: 130%; } }
.btn-wa { margin-top: 26px; background: #25d366; color: #06290f; box-shadow: 0 8px 30px rgba(37, 211, 102, .3); }
.btn-wa:hover { box-shadow: 0 10px 40px rgba(37, 211, 102, .45); }
.btn-wa svg { width: 22px; height: 22px; }
.wa-float { position: fixed; right: 22px; bottom: 22px; z-index: 90; display: flex; align-items: center; gap: 10px; height: 60px; padding: 0 18px 0 16px; border-radius: 999px; background: #25d366; color: #fff; box-shadow: 0 12px 34px rgba(37, 211, 102, .45); font-weight: 700; transition: transform .2s; }
.wa-float:hover { transform: translateY(-3px) scale(1.03); }
.wa-float svg { width: 30px; height: 30px; }
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: 0 0 0 0 rgba(37, 211, 102, .55); animation: wa-ping 2.2s ease-out infinite; }
@keyframes wa-ping { 0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, .55); } 80%, 100% { box-shadow: 0 0 0 18px rgba(37, 211, 102, 0); } }

@media (max-width: 1020px) {
  .blocks { grid-template-columns: repeat(3, 1fr); }
  .robot-wrap { width: 120px; top: -60px; right: 0; }
}
@media (max-width: 600px) {
  .blocks { grid-template-columns: repeat(2, 1fr); }
  .robot-wrap { width: 92px; top: -48px; }
  .robot-bubble { right: 82px; top: 14px; font-size: 11.5px; }
  .tour-nav { display: none; }
  .wa-float { height: 56px; width: 56px; padding: 0; justify-content: center; right: 16px; bottom: 16px; }
  .wa-label { display: none; }
  .cursor-glow { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; }
  .tline { opacity: 1; }
  .net { display: none; }
}

.form-status a { color: var(--yellow); text-decoration: underline; }

/* QA Pilot lifecycle */
.pilot-flow { margin-top: 90px; }
.pilot-flow .section-head { margin-bottom: 34px; }
.pilot-flow h3 { font-size: clamp(24px, 3vw, 32px); margin: 10px 0 0; }
.flow-rail { position: relative; margin-bottom: 30px; }
.flow-rail::before { content: ""; position: absolute; left: 10%; right: 10%; top: 31px; height: 2px; background: var(--border); }
.flow-pulse { position: absolute; top: 27px; left: 10%; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 6px rgba(255, 217, 90, .18), 0 0 22px var(--yellow); transition: left .9s cubic-bezier(.65, 0, .35, 1); z-index: 1; }
.flow-track { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; position: relative; z-index: 2; }
.flow-stage button { width: 100%; background: none; border: 0; color: var(--muted); font: inherit; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; padding: 0 4px; }
.flow-icon { width: 62px; height: 62px; border-radius: 18px; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--border); transition: transform .4s, background .4s, border-color .4s, box-shadow .4s; }
.flow-icon svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.flow-stage b { color: var(--text); font-size: 15px; }
.flow-stage small { font-size: 12.5px; line-height: 1.35; }
.flow-stage.done .flow-icon { border-color: rgba(62, 207, 142, .5); color: var(--green); }
.flow-stage.active .flow-icon { background: linear-gradient(135deg, var(--yellow), var(--orange)); color: #1a1405; border-color: transparent; transform: translateY(-4px) scale(1.08); box-shadow: 0 12px 30px rgba(240, 160, 58, .35); animation: stage-glow 1.6s ease-in-out infinite; }
.flow-stage.active b { color: var(--yellow); }
@keyframes stage-glow { 50% { box-shadow: 0 12px 40px rgba(255, 217, 90, .55); } }

.flow-body { display: grid; grid-template-columns: 1fr 1.15fr; gap: 28px; align-items: stretch; }
.flow-body > * { min-width: 0; }
.chat-log { padding: 20px; display: flex; flex-direction: column; gap: 10px; min-height: 330px; font-size: 14px; }
.msg { max-width: 90%; padding: 10px 14px; border-radius: 14px; line-height: 1.45; opacity: 0; transform: translateY(8px); animation: msg-in .45s ease forwards; }
.msg.user { align-self: flex-end; background: var(--blue); color: #fff; border-bottom-right-radius: 4px; }
.msg.bot { align-self: flex-start; background: var(--surface-2); border: 1px solid var(--border); border-bottom-left-radius: 4px; }
.msg.bot b { color: var(--yellow); }
.msg .ok { color: var(--green); font-weight: 700; }
.msg .bad { color: var(--red); font-weight: 700; }
.msg ul { margin: 6px 0 0; padding-left: 18px; color: var(--muted); }
.msg.typing { display: flex; gap: 4px; padding: 12px 14px; }
.msg.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: dots 1s infinite; }
.msg.typing i:nth-child(2) { animation-delay: .15s; }
.msg.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes msg-in { to { opacity: 1; transform: none; } }
@keyframes dots { 0%, 80%, 100% { opacity: .3; transform: none; } 40% { opacity: 1; transform: translateY(-3px); } }

.flow-devices { position: relative; display: flex; align-items: center; justify-content: center; gap: 0; padding: 26px 18px; border-radius: var(--radius); border: 1px solid var(--border); background: radial-gradient(circle at 70% 30%, rgba(59, 116, 224, .18), transparent 60%), var(--bg-alt); overflow: hidden; }
.dev-browser { flex: 1 1 auto; max-width: 340px; background: #f4f6fb; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); color: #26304a; }
.dev-bar { display: flex; align-items: center; gap: 5px; padding: 8px 10px; background: #e2e6f0; }
.dev-bar i { width: 8px; height: 8px; border-radius: 50%; background: #c3c9d8; }
.dev-bar span { margin-left: 8px; font-size: 11px; color: #6a7390; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dev-screen { position: relative; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.dev-line { height: 10px; border-radius: 6px; background: #d7dcea; }
.dev-line.w60 { width: 60%; }
.dev-line.w50 { width: 50%; }
.dev-field, .dev-btn, .dev-otp, .dev-ok { border-radius: 8px; font-size: 12px; padding: 9px 10px; transition: box-shadow .3s, background .3s, color .3s, transform .3s; }
.dev-field { background: #fff; border: 1px solid #d3d9e8; color: #8a93ad; }
.dev-btn { background: var(--navy); color: #fff; text-align: center; font-weight: 700; }
.dev-tag { align-self: flex-start; margin-top: 4px; font-size: 10.5px; font-weight: 700; color: var(--navy); background: rgba(30, 79, 163, .12); padding: 3px 8px; border-radius: 999px; }
.dev-phone { position: relative; flex: 0 0 150px; height: 290px; border-radius: 28px; background: #f4f6fb; border: 6px solid #1b2133; box-shadow: var(--shadow); color: #26304a; overflow: hidden; }
.dev-notch { width: 56px; height: 14px; margin: 0 auto; background: #1b2133; border-radius: 0 0 10px 10px; }
.dev-phone .dev-screen { padding: 14px 12px; gap: 12px; }
.dev-otp { display: flex; justify-content: space-between; background: transparent; padding: 0; }
.dev-otp b { width: 24px; height: 30px; display: grid; place-items: center; background: #fff; border: 1px solid #d3d9e8; border-radius: 6px; color: transparent; transition: color .2s; }
.dev-ok { background: rgba(62, 207, 142, .15); color: #1f9a63; font-weight: 700; text-align: center; opacity: 0; }
.dev-link { flex: 0 0 46px; height: 2px; position: relative; background: repeating-linear-gradient(90deg, var(--orange) 0 6px, transparent 6px 12px); background-size: 24px 2px; animation: dash 1s linear infinite; }
@keyframes dash { to { background-position: 24px 0; } }
.dev-cursor { position: absolute; left: 0; top: 0; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; background: rgba(255, 217, 90, .35); border: 2px solid var(--yellow); pointer-events: none; opacity: 0; transition: left .55s cubic-bezier(.4, 0, .2, 1), top .55s cubic-bezier(.4, 0, .2, 1), opacity .3s; z-index: 3; }
.dev-cursor.tap::after { content: ""; position: absolute; inset: -2px; border-radius: 50%; border: 2px solid var(--yellow); animation: tap .5s ease-out; }
@keyframes tap { to { transform: scale(2.4); opacity: 0; } }
.flow-devices .hit { box-shadow: 0 0 0 2px var(--yellow); transform: scale(1.02); }
.flow-devices .dev-field.filled { color: #26304a; }
.flow-devices .dev-otp.filled b { color: #26304a; }
.flow-devices .dev-ok.show { opacity: 1; }

@media (max-width: 860px) {
  .flow-body { grid-template-columns: 1fr; }
  .flow-stage small { display: none; }
  .flow-icon { width: 50px; height: 50px; border-radius: 14px; }
  .flow-rail::before { top: 25px; }
  .flow-pulse { top: 21px; }
}
@media (max-width: 600px) {
  .pilot-flow { margin-top: 60px; }
  .flow-track { gap: 4px; }
  .flow-stage b { font-size: 12.5px; }
  .flow-icon { width: 44px; height: 44px; }
  .flow-icon svg { width: 22px; height: 22px; }
  .flow-rail::before { top: 22px; }
  .flow-pulse { top: 18px; }
  .flow-devices { padding: 18px 10px; }
  .dev-phone { flex-basis: 118px; height: 250px; }
  .dev-link { flex-basis: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .msg { opacity: 1; transform: none; }
  .dev-cursor { display: none; }
}
