/* SmartSales — palette taken from the logo (docs/brand.md) */
:root {
  --bg: #05011C;
  --bg-2: #0B0530;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-2: rgba(255, 255, 255, 0.07);
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.16);
  --text: #F6F1FC;
  --muted: rgba(246, 241, 252, 0.66);
  --dim: rgba(246, 241, 252, 0.42);
  --violet: #9626F9;
  --violet-deep: #7923DB;
  --orchid: #C445F9;
  --lavender: #F2C9FC;
  --green: #34D399;
  --amber: #FBBF24;
  --grad: linear-gradient(135deg, #7923DB 0%, #9626F9 45%, #C445F9 100%);
  --grad-text: linear-gradient(100deg, #F2C9FC 0%, #C445F9 45%, #9626F9 100%);
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 30px 80px -20px rgba(150, 38, 249, 0.35);
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --wrap: 1180px;
  --header-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--orchid); outline-offset: 3px; border-radius: 6px; }
::selection { background: rgba(196, 69, 249, 0.45); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.grad-text { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- background ---------- */
.bg-fx { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.bg-fx .grid {
  position: absolute; inset: -2px;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
}
.bg-fx .blob { position: absolute; border-radius: 50%; filter: blur(110px); opacity: 0.55; }
.bg-fx .b1 { width: 620px; height: 620px; background: #6A1BD1; top: -260px; left: -180px; }
.bg-fx .b2 { width: 520px; height: 520px; background: #B036F0; top: 120px; right: -220px; opacity: 0.35; }

/* ---------- buttons, badges ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 24px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 700; font-size: 15px; letter-spacing: 0.01em; white-space: nowrap;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 10px 30px -8px rgba(150, 38, 249, 0.7); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -8px rgba(196, 69, 249, 0.8); }
.btn-ghost { background: var(--surface); border-color: var(--line-2); color: var(--text); }
.btn-ghost:hover { background: var(--surface-2); border-color: rgba(196, 69, 249, 0.5); }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 14px; }
.btn-block { width: 100%; }

.badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px;
  background: rgba(150, 38, 249, 0.12); border: 1px solid rgba(196, 69, 249, 0.3);
  color: var(--lavender); font-size: 12.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.6); animation: ping 2s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(52,211,153,.6); } 70% { box-shadow: 0 0 0 10px rgba(52,211,153,0); } 100% { box-shadow: 0 0 0 0 rgba(52,211,153,0); } }

/* ---------- header ---------- */
.header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: rgba(5, 1, 28, 0.72); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent; transition: border-color .3s;
}
.header.scrolled { border-bottom-color: var(--line); }
.header .wrap { height: 100%; display: flex; align-items: center; gap: 28px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 21px; letter-spacing: -0.02em; }
.logo img { width: 40px; height: 25px; }
.logo .s2 { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { padding: 8px 12px; border-radius: 10px; color: var(--muted); font-weight: 600; font-size: 14.5px; transition: color .2s, background .2s; }
.nav a:hover { color: var(--text); background: var(--surface); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.lang { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); }
.lang a { padding: 5px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 800; color: var(--dim); }
.lang a.on { background: var(--surface-2); color: var(--text); }
.burger { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface); align-items: center; justify-content: center; }
.burger svg { width: 22px; height: 22px; }
.mobile-nav { display: none; }

/* ---------- sections ---------- */
section { position: relative; padding: 96px 0; }
.sec-head { text-align: center; max-width: 760px; margin: 0 auto 56px; }
.sec-head h2 { margin: 18px 0 14px; font-size: clamp(30px, 4.4vw, 50px); line-height: 1.08; letter-spacing: -0.03em; font-weight: 800; }
.sec-head p { margin: 0; color: var(--muted); font-size: 18px; }
.card {
  background: linear-gradient(180deg, rgba(255,255,255,0.055), rgba(255,255,255,0.02));
  border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color .3s, transform .3s, background .3s;
}
.card:hover { border-color: rgba(196, 69, 249, 0.35); }
.icon-box {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center;
  background: rgba(150, 38, 249, 0.14); border: 1px solid rgba(196, 69, 249, 0.28); color: var(--lavender);
}
.icon-box svg { width: 24px; height: 24px; }

/* ---------- hero ---------- */
.hero { padding: 72px 0 90px; }
.hero .wrap { display: grid; grid-template-columns: 1.08fr 0.92fr; gap: 56px; align-items: center; }
.hero h1 { margin: 22px 0 20px; font-size: clamp(38px, 6vw, 70px); line-height: 1.02; letter-spacing: -0.04em; font-weight: 800; }
.hero .lead { margin: 0 0 32px; font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); max-width: 590px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 30px; color: var(--muted); font-size: 14.5px; font-weight: 600; }
.hero-proof span { display: inline-flex; align-items: center; gap: 8px; }
.hero-proof svg { width: 18px; height: 18px; color: var(--green); }

/* phone mock */
.stage { position: relative; display: flex; justify-content: center; min-height: 600px; }
.phone {
  position: relative; width: 330px; height: 600px; border-radius: 44px; padding: 12px;
  background: linear-gradient(160deg, #2A1360, #0E0634); border: 1px solid rgba(242, 201, 252, 0.18);
  box-shadow: var(--shadow), inset 0 0 0 1px rgba(255,255,255,0.04);
}
.phone::before { content: ""; position: absolute; top: 20px; left: 50%; transform: translateX(-50%); width: 92px; height: 24px; border-radius: 20px; background: #05011C; z-index: 2; }
.screen { position: relative; height: 100%; border-radius: 34px; overflow: hidden; background: #0A0428; display: flex; flex-direction: column; }
.screen-top { padding: 52px 16px 12px; display: flex; align-items: center; gap: 10px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,0.03); }
.avatar { width: 36px; height: 36px; border-radius: 12px; background: var(--grad); display: grid; place-items: center; flex: none; }
.avatar svg { width: 20px; height: 20px; color: #fff; }
.screen-top b { display: block; font-size: 14px; line-height: 1.2; }
.screen-top small { color: var(--green); font-size: 11.5px; font-weight: 700; }
.thread { flex: 1; padding: 14px 12px; display: flex; flex-direction: column; gap: 8px; overflow: hidden; justify-content: flex-end; }
.bubble { max-width: 84%; padding: 9px 13px; border-radius: 16px; font-size: 13px; line-height: 1.45; animation: pop .35s ease both; }
.bubble.in { align-self: flex-start; background: rgba(255,255,255,0.08); border: 1px solid var(--line); border-bottom-left-radius: 5px; }
.bubble.out { align-self: flex-end; background: var(--grad); color: #fff; border-bottom-right-radius: 5px; }
.bubble.typing { display: inline-flex; gap: 4px; padding: 12px 14px; }
.bubble.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--lavender); animation: blink 1s infinite; }
.bubble.typing i:nth-child(2) { animation-delay: .15s; } .bubble.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.97); } to { opacity: 1; transform: none; } }
.screen-input { margin: 0 12px 14px; padding: 11px 14px; border-radius: 14px; background: rgba(255,255,255,0.05); border: 1px solid var(--line); color: var(--dim); font-size: 12.5px; }

.toast {
  position: absolute; display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 16px; width: 250px;
  background: rgba(16, 8, 52, 0.82); border: 1px solid rgba(242, 201, 252, 0.16); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 20px 50px -15px rgba(0,0,0,0.7); font-size: 13px; line-height: 1.35;
  opacity: 0; transform: translateY(10px) scale(.96); transition: opacity .5s ease, transform .5s ease;
}
.toast.show { opacity: 1; transform: none; }
.toast .ti { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; flex: none; }
.toast .ti svg { width: 19px; height: 19px; }
.toast b { display: block; font-size: 13.5px; }
.toast small { color: var(--muted); }
.toast.t1 { top: 150px; left: -10px; } .toast.t1 .ti { background: rgba(52,211,153,.16); color: var(--green); }
.toast.t2 { top: 250px; right: -20px; } .toast.t2 .ti { background: rgba(150,38,249,.2); color: var(--lavender); }
.toast.t3 { top: 350px; left: -10px; } .toast.t3 .ti { background: rgba(251,191,36,.16); color: var(--amber); }

/* ---------- stats strip ---------- */
.stats { padding: 0 0 30px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.stat { padding: 28px 24px; background: var(--bg); }
.stat b { display: block; font-size: clamp(30px, 3.6vw, 42px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; }
.stat span { color: var(--muted); font-size: 14.5px; }

/* ---------- marquee ---------- */
.marquee { padding: 40px 0 10px; }
.marquee p { text-align: center; color: var(--dim); font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 18px; }
.marquee-track { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-row { display: flex; gap: 12px; width: max-content; animation: slide 45s linear infinite; }
.marquee-track:hover .marquee-row { animation-play-state: paused; }
.marquee-row { padding-right: 12px; }
.marquee-row .dup { display: contents; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--muted); font-weight: 700; font-size: 14.5px; white-space: nowrap; }
.chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--c, var(--violet)); }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- pains ---------- */
.pains-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.pain { padding: 26px; }
.pain .icon-box { background: rgba(244, 63, 94, 0.1); border-color: rgba(244, 63, 94, 0.25); color: #FDA4AF; }
.pain h3 { margin: 18px 0 8px; font-size: 18px; line-height: 1.3; }
.pain p { margin: 0; color: var(--muted); font-size: 15px; }
.pain-cta { margin: 28px auto 0; max-width: 760px; text-align: center; padding: 18px 24px; border-radius: 16px; background: rgba(150, 38, 249, 0.1); border: 1px dashed rgba(196, 69, 249, 0.4); color: var(--lavender); font-weight: 700; }

/* ---------- services ---------- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.service { padding: 30px; display: flex; flex-direction: column; }
.service:hover { transform: translateY(-4px); }
.service h3 { margin: 20px 0 10px; font-size: 21px; letter-spacing: -0.01em; }
.service p { margin: 0 0 18px; color: var(--muted); font-size: 15.5px; }
.service ul { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 9px; }
.service li { display: flex; gap: 10px; font-size: 14.5px; color: var(--text); }
.service li svg { width: 18px; height: 18px; flex: none; margin-top: 2px; color: var(--orchid); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.tag { padding: 4px 10px; border-radius: 8px; background: var(--surface); border: 1px solid var(--line); font-size: 12px; font-weight: 700; color: var(--dim); }

/* ---------- flow ---------- */
.flow-card { padding: 34px; overflow: hidden; }
.flow { display: flex; align-items: stretch; gap: 0; }
.fnode {
  flex: 1 1 0; min-width: 0; padding: 18px 16px; border-radius: 16px; background: rgba(0,0,0,0.22); border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 6px; align-items: flex-start;
}
.fnode .icon-box { width: 40px; height: 40px; border-radius: 12px; margin-bottom: 6px; }
.fnode .icon-box svg { width: 20px; height: 20px; }
.fnode b { font-size: 16px; }
.fnode span { color: var(--muted); font-size: 13.5px; line-height: 1.35; }
.fnode.hot { border-color: rgba(196, 69, 249, 0.6); background: linear-gradient(160deg, rgba(150, 38, 249, 0.28), rgba(121, 35, 219, 0.08)); box-shadow: 0 0 40px -10px rgba(196, 69, 249, 0.6); }
.fnode.src { flex: 1.15 1 0; }
.src-list { display: grid; gap: 6px; margin-top: 6px; width: 100%; }
.src-list span { display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); color: var(--text); font-weight: 600; font-size: 13px; }
.src-list svg { width: 15px; height: 15px; color: var(--lavender); flex: none; }
.fline { position: relative; flex: 0 0 34px; align-self: center; height: 2px; background: linear-gradient(90deg, rgba(196,69,249,0.15), rgba(196,69,249,0.6)); }
.fline i { position: absolute; top: -4px; left: 0; width: 10px; height: 10px; border-radius: 50%; background: var(--lavender); box-shadow: 0 0 12px 3px rgba(196, 69, 249, 0.8); animation: runx 1.6s linear infinite; }
.fline:nth-of-type(2n) i { animation-delay: .5s; }
@keyframes runx { from { left: -5px; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } to { left: calc(100% - 5px); opacity: 0; } }
@keyframes runy { from { top: -5px; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } to { top: calc(100% - 5px); opacity: 0; } }
.flow-legend { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 26px; }
.flow-legend div { padding: 16px 18px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.flow-legend b { display: block; font-size: 15px; margin-bottom: 4px; }
.flow-legend span { color: var(--muted); font-size: 14px; }

/* ---------- demo ---------- */
.demo-grid { display: grid; grid-template-columns: 380px 1fr; gap: 18px; align-items: stretch; }
.demo-side { display: flex; flex-direction: column; gap: 16px; }
.panel { padding: 20px; }
.panel-label { display: block; margin-bottom: 12px; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.roles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.role {
  display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 12px; text-align: left;
  background: var(--surface); border: 1px solid var(--line); color: var(--muted); font-size: 13px; font-weight: 700; min-width: 0;
  transition: all .2s;
}
.role span:last-child { line-height: 1.25; }
.role:hover { color: var(--text); border-color: var(--line-2); }
.role.on { color: #fff; background: rgba(150, 38, 249, 0.2); border-color: rgba(196, 69, 249, 0.55); }
.prompt-box textarea {
  width: 100%; min-height: 190px; resize: vertical; padding: 12px 14px; border-radius: 12px;
  background: rgba(0,0,0,0.25); border: 1px solid var(--line); color: var(--muted); font-size: 13px; line-height: 1.6; outline: none;
}
.prompt-box textarea:focus { border-color: rgba(196, 69, 249, 0.5); }
.prompt-box .btn { margin-top: 10px; }
.hint { color: var(--dim); font-size: 12.5px; margin: 8px 0 0; }

.chat { display: flex; flex-direction: column; min-height: 600px; overflow: hidden; }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.chat-head .avatar { font-size: 18px; }
.chat-head b { display: block; font-size: 15px; line-height: 1.2; }
.chat-head small { color: var(--dim); font-size: 12.5px; }
.chat-head .online { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); font-weight: 700; }
.chat-body { flex: 1; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 12px; min-height: 0; max-height: 520px; }
.msg { display: flex; gap: 10px; max-width: 86%; animation: pop .3s ease both; }
.msg .avatar { width: 30px; height: 30px; border-radius: 10px; font-size: 14px; }
.msg .text { padding: 11px 15px; border-radius: 16px; font-size: 14.5px; line-height: 1.55; white-space: pre-wrap; word-wrap: break-word; overflow-wrap: anywhere; }
.msg.bot .text { background: var(--surface-2); border: 1px solid var(--line); border-bottom-left-radius: 5px; }
.msg.user { align-self: flex-end; }
.msg.user .text { background: var(--grad); color: #fff; border-bottom-right-radius: 5px; }
.msg.err .text { border-color: rgba(244, 63, 94, 0.4); color: #FDA4AF; }
.chat-empty { margin: auto; text-align: center; max-width: 380px; color: var(--muted); }
.chat-empty .avatar { width: 56px; height: 56px; border-radius: 18px; margin: 0 auto 14px; font-size: 26px; }
.chat-empty p { margin: 0 0 6px; }
.suggest { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 14px; }
.suggest button { padding: 8px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--muted); font-size: 13px; font-weight: 600; }
.suggest button:hover { color: var(--text); border-color: rgba(196, 69, 249, 0.45); }
.chat-form { display: flex; gap: 10px; padding: 14px; border-top: 1px solid var(--line); }
.chat-form input { flex: 1; min-width: 0; padding: 0 16px; height: 48px; border-radius: 14px; background: rgba(0,0,0,0.25); border: 1px solid var(--line); outline: none; font-size: 15px; }
.chat-form input:focus { border-color: rgba(196, 69, 249, 0.5); }
.chat-form button { width: 48px; height: 48px; border-radius: 14px; border: 0; background: var(--grad); display: grid; place-items: center; flex: none; }
.chat-form button:disabled { opacity: .4; cursor: default; }
.chat-form button svg { width: 20px; height: 20px; color: #fff; }
.chat-note { text-align: center; color: var(--dim); font-size: 12px; padding: 0 14px 12px; margin: 0; }
.demo-cta { margin-top: 26px; text-align: center; }

/* ---------- calculator ---------- */
.calc { display: grid; grid-template-columns: 1fr 1fr; gap: 0; overflow: hidden; }
.calc-in { padding: 36px; display: grid; gap: 26px; }
.field label { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 10px; font-weight: 700; font-size: 15px; }
.field label output { color: var(--lavender); font-variant-numeric: tabular-nums; }
.field small { display: block; color: var(--dim); font-size: 13px; margin-top: 6px; }
input[type="range"] { width: 100%; height: 28px; margin: 0; background: transparent; -webkit-appearance: none; appearance: none; --p: 50%; }
input[type="range"]::-webkit-slider-runnable-track { height: 6px; border-radius: 6px; background: linear-gradient(90deg, var(--violet), var(--orchid) var(--p), rgba(255,255,255,0.12) var(--p)); }
input[type="range"]::-moz-range-track { height: 6px; border-radius: 6px; background: rgba(255,255,255,0.12); }
input[type="range"]::-moz-range-progress { height: 6px; border-radius: 6px; background: var(--orchid); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -8px; border-radius: 50%; background: #fff; border: 4px solid var(--orchid); box-shadow: 0 0 0 6px rgba(196, 69, 249, 0.18); }
input[type="range"]::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 4px solid var(--orchid); }
.money-row { display: flex; gap: 10px; }
.money-row input { flex: 1; min-width: 0; height: 48px; padding: 0 14px; border-radius: 12px; background: rgba(0,0,0,0.25); border: 1px solid var(--line); outline: none; font-size: 16px; font-weight: 700; }
.money-row select { height: 48px; padding: 0 12px; border-radius: 12px; background: #120938; border: 1px solid var(--line); font-weight: 700; }
.calc-out { padding: 36px; background: linear-gradient(160deg, rgba(150, 38, 249, 0.22), rgba(121, 35, 219, 0.08)); border-left: 1px solid var(--line); display: flex; flex-direction: column; justify-content: center; }
.calc-out .label { color: var(--muted); font-weight: 700; font-size: 15px; }
.calc-out .big { font-size: clamp(38px, 5vw, 58px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; margin: 6px 0 4px; font-variant-numeric: tabular-nums; }
.calc-out .year { color: var(--lavender); font-weight: 700; margin-bottom: 22px; }
.calc-out .gain { padding: 16px 18px; border-radius: 14px; background: rgba(0,0,0,0.25); border: 1px solid var(--line); margin-bottom: 22px; font-size: 15px; color: var(--muted); }
.calc-out .gain b { color: var(--green); font-size: 20px; }
.calc-out .assume { color: var(--dim); font-size: 12.5px; margin: 14px 0 0; }

/* ---------- cases ---------- */
.cases-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.case { padding: 28px; display: flex; flex-direction: column; }
.case .kind { font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--orchid); }
.case h3 { margin: 10px 0 10px; font-size: 21px; line-height: 1.25; }
.case p { margin: 0 0 18px; color: var(--muted); font-size: 15px; }
.case .nums { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line); }
.case .nums b { display: block; font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }
.case .nums span { color: var(--dim); font-size: 12.5px; line-height: 1.35; display: block; }

/* ---------- process ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: step; }
.step { padding: 28px; position: relative; }
.step .n { font-size: 14px; font-weight: 800; color: var(--orchid); letter-spacing: .08em; }
.step h3 { margin: 12px 0 8px; font-size: 19px; }
.step p { margin: 0; color: var(--muted); font-size: 15px; }
.step .when { display: inline-block; margin-top: 16px; padding: 4px 10px; border-radius: 8px; background: rgba(52, 211, 153, 0.1); color: var(--green); font-size: 12.5px; font-weight: 800; }

/* ---------- pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.plan { padding: 32px; display: flex; flex-direction: column; position: relative; }
.plan.pop { border-color: rgba(196, 69, 249, 0.6); background: linear-gradient(180deg, rgba(150, 38, 249, 0.18), rgba(150, 38, 249, 0.04)); box-shadow: var(--shadow); }
.plan .ribbon { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); padding: 5px 14px; border-radius: 999px; background: var(--grad); font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.plan h3 { margin: 0 0 6px; font-size: 15px; letter-spacing: .12em; text-transform: uppercase; color: var(--lavender); }
.plan .desc { color: var(--muted); font-size: 15px; margin: 0 0 22px; min-height: 48px; }
.price { display: flex; align-items: baseline; gap: 6px; }
.price b { font-size: 46px; font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.price span { color: var(--muted); font-weight: 700; }
.setup { color: var(--muted); font-size: 14.5px; font-weight: 600; margin: 10px 0 24px; min-height: 44px; }
.setup small { display: block; margin-top: 4px; color: var(--dim); font-size: 13px; font-weight: 500; }
.plan ul { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 11px; }
.plan li { display: flex; gap: 10px; font-size: 15px; }
.plan li svg { width: 18px; height: 18px; flex: none; margin-top: 3px; color: var(--green); }
.plan .btn { margin-top: auto; }
.plans-note { text-align: center; color: var(--dim); font-size: 14px; margin: 24px 0 0; }
.extras { margin: 26px auto 0; padding: 28px 32px; }
.extras h3 { margin: 0 0 8px; font-size: 19px; }
.extras ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 36px; }
.extras li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 13px 0; border-bottom: 1px dashed var(--line); }
.extras .svc { font-weight: 600; font-size: 15px; }
.extras .svc small { display: block; margin-top: 2px; color: var(--dim); font-size: 13px; font-weight: 500; }
.extras b { white-space: nowrap; color: var(--lavender); font-size: 15px; }

/* ---------- faq ---------- */
.faq { max-width: 860px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { padding: 0 24px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); transition: border-color .2s; }
.faq details[open] { border-color: rgba(196, 69, 249, 0.4); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 0; font-weight: 700; font-size: 17px; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 24px; line-height: 1; color: var(--orchid); transition: transform .2s; flex: none; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 20px; color: var(--muted); }

/* ---------- final cta / form ---------- */
.cta-box { display: grid; grid-template-columns: 1fr 1fr; gap: 0; overflow: hidden; border-color: rgba(196, 69, 249, 0.35); }
.cta-copy { padding: 44px; background: linear-gradient(160deg, rgba(150, 38, 249, 0.3), rgba(121, 35, 219, 0.06)); }
.cta-copy h2 { margin: 18px 0 14px; font-size: clamp(30px, 3.6vw, 44px); line-height: 1.1; letter-spacing: -0.03em; }
.cta-copy p { color: var(--muted); margin: 0 0 24px; }
.cta-copy ul { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 10px; }
.cta-copy li { display: flex; gap: 10px; font-weight: 600; }
.cta-copy li svg { width: 20px; height: 20px; color: var(--green); flex: none; }
.contacts { display: flex; flex-wrap: wrap; gap: 10px; }
.lead-form { padding: 44px; display: grid; gap: 14px; align-content: start; }
.lead-form label { display: grid; gap: 7px; font-size: 14px; font-weight: 700; color: var(--muted); }
.lead-form input, .lead-form select, .lead-form textarea {
  width: 100%; padding: 13px 15px; border-radius: 12px; background: rgba(0,0,0,0.28); border: 1px solid var(--line); outline: none; font-size: 15px; color: var(--text);
}
.lead-form select { background: #0E0632; }
.lead-form textarea { min-height: 96px; resize: vertical; }
.lead-form input:focus, .lead-form select:focus, .lead-form textarea:focus { border-color: rgba(196, 69, 249, 0.55); }
.lead-form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.form-msg { margin: 0; font-size: 14.5px; font-weight: 700; min-height: 22px; }
.form-msg.ok { color: var(--green); } .form-msg.err { color: #FDA4AF; }
.privacy { color: var(--dim); font-size: 12.5px; margin: 0; }

/* ---------- footer ---------- */
.footer { padding: 60px 0 40px; border-top: 1px solid var(--line); margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer p { color: var(--dim); font-size: 14.5px; margin: 14px 0 0; max-width: 320px; }
.footer h4 { margin: 0 0 14px; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.footer li a { color: var(--muted); font-size: 14.5px; }
.footer li a:hover { color: var(--text); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--dim); font-size: 13px; }

/* ---------- floating assistant ---------- */
.fab {
  position: fixed; right: 22px; bottom: 22px; z-index: 60; width: 62px; height: 62px; border-radius: 50%; border: 0;
  background: var(--grad); box-shadow: 0 14px 40px -8px rgba(150, 38, 249, 0.8); display: grid; place-items: center;
  transition: transform .2s;
}
.fab:hover { transform: scale(1.06); }
.fab svg { width: 28px; height: 28px; color: #fff; }
.fab .pulse { position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(196, 69, 249, 0.7); animation: ring 2.4s infinite; }
@keyframes ring { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(1.5); opacity: 0; } }
.fab-tip {
  position: fixed; right: 96px; bottom: 34px; z-index: 60; max-width: 240px; padding: 12px 16px; border-radius: 16px 16px 4px 16px;
  background: #fff; color: #1B0A45; font-size: 14px; font-weight: 700; line-height: 1.4; box-shadow: 0 16px 40px -10px rgba(0,0,0,0.6);
  opacity: 0; transform: translateY(8px); transition: opacity .4s, transform .4s; pointer-events: none;
}
.fab-tip.show { opacity: 1; transform: none; pointer-events: auto; cursor: pointer; }
.assistant {
  position: fixed; right: 22px; bottom: 96px; z-index: 61; width: 380px; height: min(600px, calc(100vh - 130px));
  display: none; flex-direction: column; overflow: hidden; border-radius: 22px;
  background: #0C0530; border: 1px solid rgba(196, 69, 249, 0.35); box-shadow: 0 30px 80px -10px rgba(0,0,0,0.75);
}
.assistant.open { display: flex; animation: pop .25s ease both; }
.assistant .chat-body { max-height: none; }
.assistant .x { margin-left: auto; width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); display: grid; place-items: center; }
.assistant .x svg { width: 18px; height: 18px; }

.as-lead { padding: 12px 14px; border-top: 1px solid var(--line); background: rgba(150, 38, 249, 0.12); display: grid; gap: 8px; }
.as-lead[hidden] { display: none; }
.as-lead span { font-size: 13px; font-weight: 700; color: var(--lavender); }
.as-lead div { display: flex; gap: 8px; }
.as-lead input { flex: 1; min-width: 0; height: 40px; padding: 0 12px; border-radius: 10px; background: rgba(0,0,0,0.3); border: 1px solid var(--line); outline: none; }
.as-lead input:focus { border-color: rgba(196, 69, 249, 0.55); }

/* ---------- legal pages ---------- */
.legal { padding: 70px 0 40px; }
.legal .wrap { max-width: 780px; }
.legal h1 { font-size: clamp(32px, 5vw, 48px); letter-spacing: -0.03em; margin: 0 0 8px; }
.legal h2 { font-size: 21px; margin: 34px 0 8px; }
.legal p { color: var(--muted); }
.legal .updated { color: var(--dim); font-size: 14px; }

/* ---------- mobile sticky cta ---------- */
.m-cta { display: none; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .marquee-row { animation: none; flex-wrap: wrap; justify-content: center; width: auto; }
}

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .nav { display: none; }
  .header-actions { margin-left: auto; }
  .burger { display: inline-flex; }
  .mobile-nav.open {
    display: grid; position: fixed; top: var(--header-h); left: 0; right: 0; z-index: 49; padding: 12px 20px 22px; gap: 4px;
    background: rgba(5, 1, 28, 0.97); border-bottom: 1px solid var(--line);
  }
  .mobile-nav a { padding: 13px 8px; font-weight: 700; color: var(--muted); border-bottom: 1px solid var(--line); }
  .mobile-nav .btn { margin-top: 12px; color: #fff; border-bottom: 0; }
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding-top: 48px; }
  .stage { min-height: 0; }
  .pains-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid, .cases-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .demo-grid { grid-template-columns: 1fr; }
  .demo-side { display: contents; }
  .demo-side > .panel:first-child { order: 1; }
  .demo-grid > .chat { order: 2; }
  .demo-side > .prompt-box { order: 3; }
  .flow-legend { grid-template-columns: repeat(2, 1fr); }
  .flow { flex-direction: column; }
  .fnode, .fnode.src { flex: none; }
  .src-list { grid-template-columns: repeat(2, 1fr); }
  .fline { flex: 0 0 30px; width: 2px; height: 30px; background: linear-gradient(180deg, rgba(196,69,249,0.15), rgba(196,69,249,0.6)); }
  .fline i { top: 0; left: -4px; animation-name: runy; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  section { padding: 76px 0; }
  .header-actions .btn { display: none; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .services-grid, .cases-grid, .plans, .pains-grid, .steps { grid-template-columns: 1fr; }
  .calc, .cta-box { grid-template-columns: 1fr; }
  .calc-out { border-left: 0; border-top: 1px solid var(--line); }
  .calc-in, .calc-out, .cta-copy, .lead-form { padding: 26px 20px; }
  .lead-form .row2 { grid-template-columns: 1fr; }
  .plan .desc { min-height: 0; }
  .price b { font-size: 40px; }
  .extras { padding: 22px 20px; }
  .extras ul { grid-template-columns: 1fr; }
  .flow-card { padding: 18px; }
  .flow-legend { grid-template-columns: 1fr; }
  .chat { min-height: 520px; }
  .msg { max-width: 94%; }
  .stage { padding: 22px 0; }
  .toast { width: 215px; padding: 10px 12px; font-size: 12.5px; }
  .toast.t1 { top: 0; left: 0; }
  .toast.t2 { display: none; }
  .toast.t3 { top: auto; bottom: 0; left: auto; right: 0; }
  .roles { display: flex; overflow-x: auto; gap: 8px; margin: 0 -20px; padding: 0 20px 4px; scroll-snap-type: x proximity; scrollbar-width: none; }
  .roles::-webkit-scrollbar { display: none; }
  .role { flex: none; scroll-snap-align: start; white-space: nowrap; }
  .footer-grid { grid-template-columns: 1fr; }
  .assistant { right: 0; left: 0; bottom: 0; width: auto; height: 100dvh; max-height: none; border-radius: 0; }
  .fab { bottom: 84px; right: 16px; width: 56px; height: 56px; }
  .fab-tip { right: 82px; bottom: 92px; }
  .m-cta {
    display: flex; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 55; padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: rgba(5, 1, 28, 0.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--line);
  }
  .m-cta .btn { flex: 1; min-height: 46px; padding: 0 12px; font-size: 14px; }
  body { padding-bottom: 70px; }
}
@media (max-width: 400px) {
  .phone { width: 290px; height: 560px; }
  .hero-ctas .btn { width: 100%; }
}
