:root {
  --bg: #08070d;
  --bg-2: #0e0c17;
  --surface: rgba(255, 255, 255, .035);
  --surface-2: rgba(255, 255, 255, .06);
  --border: rgba(255, 255, 255, .08);
  --border-2: rgba(255, 255, 255, .14);
  --text: #eeedf6;
  --muted: #9b98b0;
  --violet: #8b5cf6;
  --cyan: #22d3ee;
  --pink: #f472b6;
  --amber: #fbbf24;
  --green: #34d399;
  --red: #f87171;
  --grad: linear-gradient(110deg, var(--violet) 0%, #6d8cff 45%, var(--cyan) 100%);
  --radius: 22px;
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Unbounded", "Manrope", system-ui, sans-serif;
  --mono: ui-monospace, "Cascadia Code", "JetBrains Mono", Consolas, monospace;
  /* telegram */
  --tg-bg: #0f1621;
  --tg-in: #1d2733;
  --tg-out: #2b5278;
  --tg-btn: rgba(255, 255, 255, .07);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--font);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { max-width: 100%; }
code { font-family: var(--mono); font-size: .88em; background: var(--surface-2); padding: .1em .4em; border-radius: 6px; }
.hidden { display: none !important; }
.w100 { width: 100%; }

.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- background */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.bg-grid {
  position: absolute; inset: -2px;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
}
.orb { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .5; animation: drift 22s ease-in-out infinite alternate; }
.orb-1 { width: 520px; height: 520px; background: var(--violet); top: -160px; left: -120px; }
.orb-2 { width: 420px; height: 420px; background: var(--cyan); top: 20%; right: -160px; opacity: .28; animation-delay: -7s; }
.orb-3 { width: 380px; height: 380px; background: var(--pink); bottom: -200px; left: 30%; opacity: .18; animation-delay: -14s; }
@keyframes drift { to { transform: translate(60px, 40px) scale(1.12); } }

/* ---------- nav */
.nav {
  position: sticky; top: 12px; z-index: 50;
  display: flex; align-items: center; gap: 24px;
  max-width: 1200px; margin: 12px auto 0; padding: 10px 12px 10px 18px;
  background: rgba(14, 12, 23, .6);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border: 1px solid var(--border);
  border-radius: 999px;
  width: calc(100% - 32px);
}
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-mark {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px;
  background: var(--grad); font: 800 17px var(--display); color: #fff;
  box-shadow: 0 6px 20px -6px var(--violet);
}
.logo-text { font: 700 18px var(--display); letter-spacing: .02em; }
.logo-dot { color: var(--cyan); }
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a {
  text-decoration: none; color: var(--muted); font-weight: 600; font-size: 15px;
  padding: 8px 14px; border-radius: 999px; transition: color .2s, background .2s;
}
.nav-links a:hover { color: var(--text); background: var(--surface-2); }
.burger { display: none; }

/* ---------- buttons */
.btn {
  --h: 44px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: var(--h); padding: 0 22px; border-radius: 999px; border: 0;
  font: 700 15px var(--font); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .2s, box-shadow .2s, background .2s, opacity .2s;
}
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .55; cursor: progress; }
.btn-sm { --h: 38px; padding: 0 16px; font-size: 14px; }
.btn-lg { --h: 54px; padding: 0 28px; font-size: 16px; }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 10px 30px -10px rgba(139, 92, 246, .8); }
.btn-primary:hover { box-shadow: 0 14px 40px -10px rgba(139, 92, 246, 1); transform: translateY(-1px); }
.btn-ghost { background: var(--surface-2); color: var(--text); border: 1px solid var(--border-2); }
.btn-ghost:hover { background: rgba(255,255,255,.1); }
.btn-danger { background: rgba(248, 113, 113, .15); color: var(--red); border: 1px solid rgba(248,113,113,.35); }
.btn-danger:hover { background: rgba(248, 113, 113, .25); }
.arrow { transition: transform .2s; }
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- hero */
.hero {
  max-width: 1200px; margin: 0 auto; padding: 72px 16px 56px;
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center;
}
.pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 14px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--muted);
  background: var(--surface); border: 1px solid var(--border);
}
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(52,211,153,.7); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(52,211,153,0); } 100% { box-shadow: 0 0 0 0 rgba(52,211,153,0); } }
h1, h2, h3 { font-family: var(--display); letter-spacing: -.01em; margin: 0; }
h1 { font-size: clamp(34px, 5.2vw, 62px); line-height: 1.08; font-weight: 700; margin: 22px 0 22px; }
.lead { font-size: clamp(16px, 1.6vw, 19px); color: var(--muted); max-width: 600px; margin: 0 0 32px; }
.lead b { color: var(--text); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.facts { display: flex; gap: 36px; margin: 44px 0 0; flex-wrap: wrap; }
.facts div { border-left: 2px solid var(--border-2); padding-left: 14px; }
.facts dt { font: 700 24px var(--display); }
.facts dd { margin: 0; color: var(--muted); font-size: 14px; }

.hero-visual { position: relative; display: flex; justify-content: center; }
.float-card {
  position: absolute; z-index: 2; display: flex; gap: 12px; align-items: center;
  padding: 12px 16px; border-radius: 16px;
  background: rgba(20, 18, 32, .78); border: 1px solid var(--border-2);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 20px 50px -20px rgba(0,0,0,.8);
  animation: bob 6s ease-in-out infinite;
}
.float-card span { font-size: 22px; }
.float-card b { display: block; font-size: 14px; }
.float-card small { color: var(--muted); font-size: 12px; }
.fc-1 { top: 4%; left: -20%; }
.fc-2 { top: 44%; right: -22%; animation-delay: -2s; }
.fc-3 { bottom: 4%; left: -20%; animation-delay: -4s; }
@keyframes bob { 50% { transform: translateY(-10px); } }

/* ---------- phone / telegram */
.phone {
  position: relative; width: 100%; max-width: 360px;
  border-radius: 44px; padding: 12px;
  background: linear-gradient(160deg, #2a2838, #121019);
  box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 40px 100px -30px rgba(139, 92, 246, .55), inset 0 0 0 1px rgba(255,255,255,.04);
  display: flex; flex-direction: column;
}
.phone-notch { position: absolute; top: 20px; left: 50%; transform: translateX(-50%); width: 92px; height: 24px; border-radius: 20px; background: #000; z-index: 3; }
.phone > .tg-head { border-radius: 32px 32px 0 0; padding-top: 46px; }
.phone-hero { height: 560px; }
.phone-demo { height: 680px; max-width: 390px; }
.tg-head {
  display: flex; align-items: center; gap: 12px; padding: 12px 16px;
  background: #17212b; border-bottom: 1px solid rgba(0,0,0,.4);
}
.tg-head b { display: block; font-size: 15px; }
.tg-head small { color: #7f91a4; font-size: 13px; }
.tg-ava { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-size: 20px; background: var(--grad); flex-shrink: 0; }
.tg-icon { margin-left: auto; width: 36px; height: 36px; border-radius: 50%; border: 0; background: transparent; color: #7f91a4; font-size: 20px; cursor: pointer; }
.tg-icon:hover { background: rgba(255,255,255,.06); color: #fff; }
.tg-body {
  flex: 1; overflow-y: auto; padding: 14px 10px 8px;
  display: flex; flex-direction: column; gap: 6px;
  background:
    radial-gradient(circle at 20% 20%, rgba(139,92,246,.10), transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(34,211,238,.08), transparent 40%),
    var(--tg-bg);
  scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.15) transparent;
}
.phone-hero .tg-body { border-radius: 0 0 32px 32px; overflow: hidden; justify-content: flex-end; }
.msg { max-width: 86%; animation: pop .25s ease-out; }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.98); } }
.msg.in { align-self: flex-start; }
.msg.out { align-self: flex-end; }
.bubble {
  padding: 8px 12px 9px; border-radius: 16px; font-size: 14.5px; line-height: 1.45;
  white-space: pre-wrap; word-wrap: break-word; overflow-wrap: anywhere;
}
.msg.in .bubble { background: var(--tg-in); border-bottom-left-radius: 5px; }
.msg.out .bubble { background: var(--tg-out); border-bottom-right-radius: 5px; }
.bubble a { color: #6ab3f3; }
.bubble code { background: rgba(0,0,0,.25); }
.msg.owner .bubble { background: #2a2416; box-shadow: inset 0 0 0 1px rgba(251,191,36,.45); }
.msg.sys { align-self: center; font-size: 12.5px; color: #c9d4e0; background: rgba(0,0,0,.35); padding: 4px 12px; border-radius: 999px; }
.ikb { display: flex; flex-direction: column; gap: 4px; margin-top: 4px; }
.ikb-row { display: flex; gap: 4px; }
.ikb button, .ikb a {
  flex: 1; min-width: 0; padding: 9px 8px; border-radius: 10px; border: 0;
  background: var(--tg-btn); color: #fff; font: 600 13.5px var(--font); cursor: pointer;
  text-align: center; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  backdrop-filter: blur(6px); transition: background .15s;
}
.ikb button:hover, .ikb a:hover { background: rgba(255,255,255,.14); }
.ikb button:disabled { opacity: .5; }
.invoice { background: var(--tg-in); border-radius: 16px; overflow: hidden; width: 260px; }
.invoice-top { height: 86px; display: grid; place-items: center; font-size: 40px; background: linear-gradient(135deg, #f59e0b, #f472b6); }
.invoice-body { padding: 10px 12px 12px; }
.invoice-body b { display: block; }
.invoice-body small { color: #9fb0c2; display: block; margin-bottom: 10px; }
.invoice-pay { width: 100%; padding: 10px; border: 0; border-radius: 10px; background: #3390ec; color: #fff; font: 700 14px var(--font); cursor: pointer; }
.invoice-pay:disabled { background: #2b5278; cursor: default; }
.typing { align-self: flex-start; background: var(--tg-in); padding: 10px 14px; border-radius: 16px; border-bottom-left-radius: 5px; display: flex; gap: 4px; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: #7f91a4; animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .2s; }
.typing i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 50% { opacity: .25; transform: translateY(-2px); } }
.tg-toast {
  position: absolute; left: 50%; top: 120px; transform: translate(-50%, -10px);
  background: rgba(0,0,0,.82); color: #fff; padding: 9px 16px; border-radius: 12px; font-size: 14px;
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 5; max-width: 80%; text-align: center;
}
.tg-toast.show { opacity: 1; transform: translate(-50%, 0); }
.tg-replykb { display: flex; flex-direction: column; gap: 4px; padding: 6px; background: #17212b; }
.tg-replykb:empty { display: none; }
.tg-replykb button { padding: 11px; border: 0; border-radius: 10px; background: #232e3c; color: #fff; font: 600 14px var(--font); cursor: pointer; }
.tg-replykb button:hover { background: #2b394a; }
.tg-input {
  position: relative; display: flex; align-items: center; gap: 6px; padding: 8px 8px 10px;
  background: #17212b; border-radius: 0 0 32px 32px;
}
.tg-input input {
  flex: 1; min-width: 0; height: 40px; padding: 0 14px; border-radius: 20px; border: 0; outline: 0;
  background: #242f3d; color: #fff; font: 15px var(--font);
}
.tg-menu, .tg-send { width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer; flex-shrink: 0; font-size: 17px; }
.tg-menu { background: #3390ec; color: #fff; }
.tg-send { background: transparent; color: #3390ec; font-size: 20px; }
.tg-cmds {
  position: absolute; bottom: 58px; left: 8px; right: 8px; display: none; flex-direction: column;
  background: #1f2936; border-radius: 14px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,.5);
}
.tg-cmds.open { display: flex; }
.tg-cmds button { text-align: left; padding: 11px 14px; border: 0; background: transparent; color: #c9d4e0; font: 14px var(--font); cursor: pointer; }
.tg-cmds button b { color: #6ab3f3; margin-right: 8px; }
.tg-cmds button:hover { background: rgba(255,255,255,.05); }

/* ---------- sections */
.section { max-width: 1200px; margin: 0 auto; padding: 96px 16px 24px; scroll-margin-top: 70px; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 44px; }
.kicker {
  display: inline-block; font: 700 12px var(--font); letter-spacing: .16em; text-transform: uppercase;
  color: var(--cyan); padding: 6px 12px; border-radius: 999px; background: rgba(34,211,238,.08); border: 1px solid rgba(34,211,238,.2);
}
h2 { font-size: clamp(28px, 4vw, 46px); line-height: 1.12; margin: 18px 0 14px; font-weight: 700; }
.section-head p { color: var(--muted); font-size: 17px; margin: 0; }
.section-head a { color: var(--cyan); }

/* marquee */
.marquee { overflow: hidden; border-block: 1px solid var(--border); background: rgba(255,255,255,.015); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: 48px; width: max-content; padding: 18px 0; animation: marquee 40s linear infinite; }
.marquee span { font: 600 15px var(--display); color: var(--muted); white-space: nowrap; }
.marquee span::before { content: "✦"; margin-right: 48px; color: var(--violet); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* demo */
.scenarios { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 20px; }
.scn {
  position: relative; text-align: left; padding: 16px 18px; border-radius: 18px; cursor: pointer;
  background: var(--surface); border: 1px solid var(--border); color: var(--text); font: inherit;
  transition: border-color .2s, background .2s, transform .2s;
}
.scn:hover { background: var(--surface-2); transform: translateY(-2px); }
.scn.active { border-color: transparent; background: linear-gradient(var(--bg-2), var(--bg-2)) padding-box, var(--grad) border-box; border: 1px solid transparent; }
.scn .e { font-size: 24px; }
.scn b { display: block; font: 600 15px var(--display); margin: 6px 0 2px; }
.scn small { color: var(--muted); font-size: 13px; line-height: 1.4; display: block; }

.mode-switch {
  position: relative; display: flex; width: fit-content; margin: 0 auto 28px; padding: 5px;
  border-radius: 999px; background: var(--surface); border: 1px solid var(--border);
}
.mode { position: relative; z-index: 1; padding: 10px 22px; border: 0; background: none; color: var(--muted); font: 700 15px var(--font); cursor: pointer; border-radius: 999px; transition: color .2s; }
.mode.active { color: #fff; }
.mode-glider { position: absolute; top: 5px; bottom: 5px; border-radius: 999px; background: var(--grad); transition: left .3s cubic-bezier(.4,.9,.3,1.1), width .3s; box-shadow: 0 6px 20px -6px var(--violet); }

.demo-grid { display: grid; grid-template-columns: 390px 1fr; gap: 32px; align-items: start; justify-items: center; }
.demo-info { display: flex; flex-direction: column; gap: 14px; width: 100%; }
.glass {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px 24px;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.glass h4 { margin: 0 0 10px; font: 600 15px var(--display); }
.demo-info-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.demo-info-head span { font-size: 30px; }
.demo-info-head h3 { font-size: 22px; }
.demo-info p { color: var(--muted); margin: 0 0 14px; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; }
.chips li { font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 999px; background: rgba(139,92,246,.12); border: 1px solid rgba(139,92,246,.3); color: #d6c9ff; }
.tips { margin: 0; padding-left: 20px; color: var(--muted); }
.tips li { margin-bottom: 6px; }
.tips li::marker { color: var(--cyan); font-weight: 700; }
.note { font-size: 14.5px; color: var(--muted); border-color: rgba(251,191,36,.25); background: rgba(251,191,36,.05); }
.note b { color: var(--amber); }

.live-grid { grid-template-columns: minmax(0, 420px) 1fr; justify-items: stretch; }
.live-form-wrap h3 { font-size: 20px; margin-bottom: 14px; }
.steps { padding-left: 20px; margin: 0 0 20px; color: var(--muted); }
.steps li { margin-bottom: 6px; }
.steps a { color: var(--cyan); }
.field { display: block; margin-bottom: 14px; }
.field > span { display: block; font-size: 13px; font-weight: 700; color: var(--muted); margin-bottom: 6px; text-transform: uppercase; letter-spacing: .06em; }
.field-row { position: relative; }
.field input, .field select {
  width: 100%; height: 50px; padding: 0 48px 0 16px; border-radius: 14px;
  background: rgba(0,0,0,.35); border: 1px solid var(--border-2); color: var(--text); font: 15px var(--mono);
  outline: none; transition: border-color .2s, box-shadow .2s;
}
.field select { font-family: var(--font); padding-right: 16px; appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 22px) 22px, calc(100% - 16px) 22px; background-size: 6px 6px; background-repeat: no-repeat; }
.field select option { background: var(--bg-2); }
.field input:focus, .field select:focus { border-color: var(--violet); box-shadow: 0 0 0 4px rgba(139,92,246,.18); }
.eye { position: absolute; right: 6px; top: 6px; width: 38px; height: 38px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); cursor: pointer; font-size: 16px; }
.eye:hover { background: var(--surface-2); }
.form-error { color: var(--red); min-height: 1.4em; margin: 10px 0 0; font-size: 14px; font-weight: 600; }
.secure { display: flex; gap: 12px; margin-top: 8px; padding: 14px; border-radius: 14px; background: rgba(52,211,153,.06); border: 1px solid rgba(52,211,153,.2); }
.secure span { font-size: 20px; }
.secure p { margin: 0; font-size: 13.5px; color: var(--muted); line-height: 1.5; }
.secure b { color: var(--green); }

.console {
  display: flex; flex-direction: column; min-height: 560px; max-height: 640px; width: 100%;
  border-radius: var(--radius); overflow: hidden; background: #07060b; border: 1px solid var(--border);
  box-shadow: 0 30px 80px -40px rgba(34,211,238,.4);
}
.console-head { display: flex; align-items: center; gap: 14px; padding: 12px 16px; background: rgba(255,255,255,.03); border-bottom: 1px solid var(--border); }
.dots { display: flex; gap: 6px; }
.dots i { width: 11px; height: 11px; border-radius: 50%; background: #3a3846; }
.dots i:nth-child(1) { background: #ff5f57; }
.dots i:nth-child(2) { background: #febc2e; }
.dots i:nth-child(3) { background: #28c840; }
.console-title { font: 13px var(--mono); color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.console-stats { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; padding: 12px 16px; border-bottom: 1px solid var(--border); background: rgba(139,92,246,.05); }
.bot-link { font-weight: 700; color: var(--cyan); text-decoration: none; margin-right: auto; }
.bot-link:hover { text-decoration: underline; }
.stat small { display: block; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.stat b { font: 600 18px var(--mono); }
.console-body { flex: 1; overflow-y: auto; padding: 14px 16px; font: 13.5px/1.55 var(--mono); }
.log-line { display: flex; gap: 12px; padding: 3px 0; animation: pop .2s ease-out; }
.log-line .t { color: #55536a; flex-shrink: 0; }
.log-line.in { color: #a5f3fc; }
.log-line.out { color: #c4b5fd; }
.log-line.sys { color: var(--muted); }
.log-line.err { color: var(--red); }
.log-line.end { color: var(--amber); }

/* brief */
.brief {
  max-width: 960px; margin: 0 auto; padding: 28px; border-radius: 30px;
  background: linear-gradient(var(--bg-2), var(--bg-2)) padding-box,
              linear-gradient(140deg, rgba(139,92,246,.6), rgba(255,255,255,.06) 40%, rgba(34,211,238,.5)) border-box;
  border: 1px solid transparent;
  box-shadow: 0 40px 100px -50px rgba(139,92,246,.7);
}
.brief-top { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; }
.brief-step { font: 700 13px var(--font); color: var(--muted); text-transform: uppercase; letter-spacing: .08em; white-space: nowrap; }
.brief-bar { flex: 1; height: 6px; border-radius: 6px; background: var(--surface-2); overflow: hidden; }
.brief-bar span { display: block; height: 100%; width: 0; border-radius: 6px; background: var(--grad); transition: width .45s cubic-bezier(.3,.8,.3,1); }
.brief-stage { min-height: 300px; }
.brief-stage h3 { font-size: clamp(20px, 2.6vw, 26px); margin-bottom: 6px; }
.brief-sub { color: var(--muted); margin: 0 0 20px; }
.brief-anim { animation: slideIn .35s cubic-bezier(.2,.8,.2,1); }
@keyframes slideIn { from { opacity: 0; transform: translateX(24px); } }
.opts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 18px; }
.opts.cols-2 { grid-template-columns: repeat(2, 1fr); }
.opt {
  position: relative; display: flex; align-items: center; gap: 12px; padding: 16px; min-height: 64px;
  border-radius: 16px; border: 1px solid var(--border-2); background: var(--surface); color: var(--text);
  font: 600 15px var(--font); text-align: left; cursor: pointer; transition: border-color .15s, background .15s, transform .15s;
}
.opt:hover { background: var(--surface-2); transform: translateY(-1px); }
.opt .oi { font-size: 22px; width: 28px; text-align: center; flex-shrink: 0; }
.opt.on { border-color: var(--violet); background: rgba(139,92,246,.14); box-shadow: 0 0 0 3px rgba(139,92,246,.16); }
.opt.multi::after {
  content: ""; margin-left: auto; width: 20px; height: 20px; border-radius: 6px; flex-shrink: 0;
  border: 2px solid var(--border-2); transition: background .15s, border-color .15s;
}
.opt.multi.on::after { background: var(--violet) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3.2 3L15 7' stroke='white' stroke-width='2.4' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat; border-color: var(--violet); }
.group-label { font: 700 13px var(--font); color: var(--muted); text-transform: uppercase; letter-spacing: .08em; margin: 22px 0 -6px; }
.brief-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 26px; }
.brief-nav.hidden-nav { display: none; }

.result { display: grid; grid-template-columns: 1.1fr .9fr; gap: 24px; }
.result-card { padding: 24px; border-radius: 22px; background: rgba(139,92,246,.07); border: 1px solid rgba(139,92,246,.25); }
.result-card .label { color: var(--muted); font-size: 14px; }
.result-card h3 { font-size: 24px; margin: 4px 0 14px; }
.result-pack { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: 13px; font-weight: 800; background: var(--grad); margin-bottom: 14px; }
.result-nums { display: flex; gap: 26px; flex-wrap: wrap; margin-bottom: 16px; }
.result-nums b { display: block; font: 700 24px var(--display); }
.result-nums small { color: var(--muted); }
.advice { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-direction: column; gap: 8px; }
.advice li { padding: 10px 12px 10px 38px; position: relative; border-radius: 12px; background: rgba(251,191,36,.06); border: 1px solid rgba(251,191,36,.2); font-size: 14px; color: #f3e6c4; }
.advice li::before { content: "💡"; position: absolute; left: 12px; top: 9px; }
.result-demo { margin-top: 16px; }
.lead-form h4 { font: 600 18px var(--display); margin: 0 0 4px; }
.lead-form > p { color: var(--muted); margin: 0 0 16px; font-size: 14.5px; }
.lead-form .field input, .lead-form .field textarea { font-family: var(--font); padding-right: 16px; }
.field textarea {
  width: 100%; min-height: 84px; padding: 12px 16px; border-radius: 14px; resize: vertical;
  background: rgba(0,0,0,.35); border: 1px solid var(--border-2); color: var(--text); font: 15px var(--font); outline: none;
}
.field textarea:focus { border-color: var(--violet); box-shadow: 0 0 0 4px rgba(139,92,246,.18); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.consent { font-size: 12.5px; color: var(--muted); margin: 10px 0 0; }
.done { text-align: center; padding: 40px 10px; }
.done .big { font-size: 64px; line-height: 1; margin-bottom: 14px; animation: pop .5s cubic-bezier(.3,1.6,.5,1); }
.done h3 { font-size: 26px; margin-bottom: 10px; }
.done p { color: var(--muted); max-width: 480px; margin: 0 auto 24px; }
.skeleton { height: 280px; border-radius: 22px; background: linear-gradient(90deg, var(--surface) 0%, var(--surface-2) 50%, var(--surface) 100%); background-size: 200% 100%; animation: shimmer 1.2s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* features */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.feature {
  position: relative; padding: 24px 22px; border-radius: var(--radius); overflow: hidden;
  background: var(--surface); border: 1px solid var(--border); transition: transform .25s, border-color .25s;
}
.feature::before {
  content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .3s;
  background: radial-gradient(360px circle at var(--x, 50%) var(--y, 50%), rgba(139,92,246,.18), transparent 45%);
}
.feature:hover { transform: translateY(-3px); border-color: var(--border-2); }
.feature:hover::before { opacity: 1; }
.f-ico { position: relative; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; font-size: 24px; background: var(--surface-2); border: 1px solid var(--border); margin-bottom: 16px; }
.feature h3 { position: relative; font-size: 17px; margin-bottom: 8px; }
.feature p { position: relative; color: var(--muted); margin: 0; font-size: 14.5px; }

/* pricing */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.price { position: relative; display: flex; flex-direction: column; padding: 30px 28px; border-radius: 26px; background: var(--surface); border: 1px solid var(--border); }
.price h3 { font-size: 20px; }
.amount { font: 700 36px var(--display); margin: 14px 0 4px; }
.price-sub { color: var(--muted); margin: 0 0 20px; }
.price ul { list-style: none; padding: 0; margin: 0 0 26px; flex: 1; }
.price li { padding: 7px 0 7px 28px; position: relative; border-top: 1px solid var(--border); font-size: 15px; }
.price li::before { content: "✓"; position: absolute; left: 4px; color: var(--green); font-weight: 800; }
.price-hot { background: linear-gradient(#120f1f, #120f1f) padding-box, var(--grad) border-box; border: 1px solid transparent; box-shadow: 0 30px 80px -40px rgba(139,92,246,.8); }
.badge { position: absolute; top: -13px; left: 28px; padding: 4px 12px; border-radius: 999px; background: var(--grad); font-size: 12px; font-weight: 800; letter-spacing: .04em; }

/* process */
.process { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; counter-reset: s; }
.process li { padding: 26px 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); position: relative; }
.process .num { font: 800 44px var(--display); background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; opacity: .9; }
.process h3 { font-size: 18px; margin: 8px 0; }
.process p { color: var(--muted); margin: 0; font-size: 14.5px; }

/* faq */
.faq { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.faq details { border-radius: 18px; background: var(--surface); border: 1px solid var(--border); transition: border-color .2s, background .2s; }
.faq details[open] { border-color: rgba(139,92,246,.4); background: rgba(139,92,246,.05); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 56px 18px 22px; font-weight: 700; font-size: 16px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font: 400 26px var(--font); color: var(--cyan); transition: transform .25s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq p { margin: 0; padding: 0 22px 20px; color: var(--muted); }

/* cta */
.cta { max-width: 1200px; margin: 96px auto 0; padding: 0 16px; }
.cta-inner {
  position: relative; overflow: hidden; text-align: center; padding: 72px 24px; border-radius: 34px;
  background: radial-gradient(600px 300px at 50% 0%, rgba(139,92,246,.35), transparent 70%), var(--bg-2);
  border: 1px solid var(--border-2);
}
.cta-inner h2 { margin-top: 0; }
.cta-inner p { color: var(--muted); font-size: 17px; margin: 0 0 28px; }

.footer { max-width: 1200px; margin: 0 auto; padding: 40px 16px; display: flex; align-items: center; justify-content: space-between; gap: 16px; color: var(--muted); font-size: 14px; flex-wrap: wrap; }
.footer p { margin: 0; }
.footer a.js-tg { text-decoration: none; font-weight: 700; }

/* modal */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: rgba(0,0,0,.6); backdrop-filter: blur(4px); padding: 16px; }
.modal[hidden] { display: none; }
.modal-card { max-width: 360px; width: 100%; background: #1f2936; border-radius: 18px; padding: 22px; text-align: right; }
.modal-card p { text-align: left; margin: 0 0 18px; white-space: pre-wrap; }

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

/* personal demo */
.nav-push { margin-left: auto; }
.personal {
  max-width: 1200px; margin: 0 auto; padding: 56px 16px 40px;
  display: grid; grid-template-columns: 1fr 390px; gap: 56px; align-items: center;
}
.personal h1 { font-size: clamp(30px, 4.4vw, 52px); }
.p-points { list-style: none; padding: 0; margin: 0 0 32px; display: flex; flex-direction: column; gap: 12px; }
.p-points li { display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); color: var(--muted); }
.p-points li span { font-size: 22px; }
.p-points b { color: var(--text); }
.p-note { color: var(--muted); font-size: 14px; margin-top: 18px; }

/* legal & niche pages */
.doc { max-width: 820px; margin: 0 auto; padding: 56px 16px 40px; }
.doc h1 { font-size: clamp(28px, 4vw, 42px); margin: 18px 0 10px; }
.doc h2 { font-size: 22px; margin: 36px 0 10px; }
.doc p, .doc li { color: #cfcde0; }
.doc a { color: var(--cyan); }
.doc .updated { color: var(--muted); font-size: 14px; }
.crumbs { font-size: 14px; color: var(--muted); }
.crumbs a { color: var(--muted); }
.niche-hero { max-width: 1200px; margin: 0 auto; padding: 56px 16px 8px; }
.niche-hero h1 { font-size: clamp(32px, 5vw, 58px); line-height: 1.1; margin: 18px 0; max-width: 900px; }
.pains { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.pain { padding: 22px; border-radius: var(--radius); background: rgba(248,113,113,.05); border: 1px solid rgba(248,113,113,.2); }
.pain b { display: block; font: 600 16px var(--display); margin-bottom: 6px; }
.pain p { margin: 0; color: var(--muted); font-size: 14.5px; }
.solutions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.solutions a { padding: 9px 16px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); text-decoration: none; color: var(--muted); font-weight: 600; font-size: 14px; }
.solutions a:hover { color: var(--text); border-color: var(--border-2); }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--text); }

/* ---------- responsive */
@media (max-width: 1080px) {
  .features { grid-template-columns: repeat(2, 1fr); }
  .process { grid-template-columns: repeat(2, 1fr); }
  .scenarios { grid-template-columns: repeat(2, 1fr); }
  .fc-1 { left: -2%; } .fc-2 { right: -2%; } .fc-3 { left: 0; }
}
@media (max-width: 900px) {
  .nav { gap: 10px; }
  .nav-links {
    position: absolute; top: calc(100% + 8px); left: 0; right: 0; flex-direction: column; gap: 2px; padding: 8px;
    background: rgba(14,12,23,.96); border: 1px solid var(--border); border-radius: 20px;
    opacity: 0; pointer-events: none; transform: translateY(-6px); transition: opacity .2s, transform .2s;
  }
  .nav.open .nav-links { opacity: 1; pointer-events: auto; transform: none; }
  .nav > .btn { margin-left: auto; }
  .burger { display: flex; flex-direction: column; justify-content: center; gap: 6px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--surface-2); cursor: pointer; padding: 0 11px; }
  .burger span { display: block; height: 2px; background: var(--text); border-radius: 2px; transition: transform .2s; }
  .nav.open .burger span:first-child { transform: translateY(4px) rotate(45deg); }
  .nav.open .burger span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .hero { grid-template-columns: 1fr; padding-top: 48px; gap: 56px; }
  .hero-visual { padding: 0 24px; }
  .demo-grid, .live-grid { grid-template-columns: 1fr; }
  .pricing { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .console { min-height: 420px; }
  .opts { grid-template-columns: repeat(2, 1fr); }
  .result { grid-template-columns: 1fr; }
  .personal { grid-template-columns: 1fr; justify-items: center; padding-top: 36px; }
  .pains { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .nav > .btn { display: none; }
  .nav-links { }
  .burger { margin-left: auto; }
  .features, .process { grid-template-columns: 1fr; }
  .scenarios { grid-template-columns: 1fr 1fr; gap: 8px; }
  .scn { padding: 12px 14px; }
  .scn b { font-size: 13.5px; }
  .scn small { display: none; }
  .phone-hero { height: 470px; }
  .feature { display: grid; grid-template-columns: 44px 1fr; column-gap: 14px; padding: 18px; }
  .f-ico { grid-row: span 2; width: 44px; height: 44px; font-size: 21px; margin: 0; }
  .feature h3 { font-size: 16px; margin: 2px 0 4px; }
  .feature p { font-size: 14px; }
  .facts { gap: 20px; }
  .float-card { display: none; }
  .phone { border-radius: 36px; padding: 8px; }
  .phone > .tg-head { border-radius: 28px 28px 0 0; }
  .tg-input { border-radius: 0 0 28px 28px; }
  .phone-hero .tg-body { border-radius: 0 0 28px 28px; }
  .phone-demo { height: 620px; }
  .mode { padding: 10px 14px; font-size: 14px; }
  .glass { padding: 18px; }
  .section { padding-top: 72px; }
  .console-stats { gap: 12px; }
  .bot-link { width: 100%; }
  .brief { padding: 20px 16px; border-radius: 24px; }
  .opts, .opts.cols-2 { grid-template-columns: 1fr; }
  .opt { min-height: 54px; padding: 12px 14px; }
  .brief-nav .btn { flex: 1; }
  .result-card { padding: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
.doc.center { text-align: center; padding-top: 120px; }
.consent a { color: var(--muted); }
.doc a.btn { color: #fff; }
@media (max-width: 900px) {
  .personal { display: flex; flex-direction: column; align-items: stretch; }
  .personal-copy { display: contents; }
  .personal .pill { align-self: flex-start; }
  .personal .phone { order: 4; align-self: center; margin: 4px 0 28px; }
  .personal .p-points { order: 5; }
  .personal .hero-cta { order: 6; }
  .personal .p-note { order: 7; }
}
