/* ==========================================================
   ATLAS PROJECT — лендінг.
   Композиція: плаваюча навігація, герой з персонажем, демо зі
   сценаріями, спліт-блоки, плитки, банер, вимоги.
   Палітра ATLAS: обсидіан, індиго → фіолет, ціан і смарагд.
   ========================================================== */
:root {
  --bg: #07080C;
  --card: rgba(18, 20, 29, .65);
  --line: rgba(148, 163, 184, .12);
  --line-2: rgba(148, 163, 184, .22);
  --fg: #F8FAFC;
  --fg-2: #94A3B8;
  --fg-3: #64748B;
  --indigo: #6366F1;
  --violet: #8B5CF6;
  --soft: #A5B4FC;
  --cyan: #06B6D4;
  --green: #10B981;
  --grad: linear-gradient(120deg, var(--indigo), var(--violet));
  --sans: 'Inter', 'Segoe UI', system-ui, sans-serif;
  --mono: 'JetBrains Mono', Consolas, monospace;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --pad: clamp(18px, 4vw, 48px);
  --max: 1200px;
}

/* ---------- База ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scrollbar-color: #262a3a var(--bg); overflow-x: clip; }
body { margin: 0; color: var(--fg); font: 400 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased;
  background: radial-gradient(120% 70% at 70% 0%, #141a3a 0%, transparent 60%), radial-gradient(80% 50% at 0% 60%, #10142b 0%, transparent 60%), var(--bg); }
::selection { background: var(--violet); color: #fff; }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #262a3a; border-radius: 10px; border: 2px solid var(--bg); }
:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; border-radius: 8px; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3 { margin: 0; font-weight: 800; letter-spacing: -.03em; line-height: 1.08; text-wrap: balance; }
p { margin: 0; }
section[id] { scroll-margin-top: 90px; }
kbd { display: inline-block; padding: .1em .5em; border-radius: 6px; border: 1px solid var(--line-2); border-bottom-width: 2px; background: #171a26;
  font: 500 .8em/1.5 var(--mono); color: var(--fg); white-space: nowrap; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 14px; border-radius: 8px; background: var(--fg); color: var(--bg); font-weight: 700; }
.skip:focus { top: 12px; }
.ico { width: 18px; height: 18px; flex: none; }
.link { color: var(--soft); text-decoration: underline; text-underline-offset: .2em; }
.mark { display: inline-block; width: 78px; height: 11px; background: var(--fg);
  -webkit-mask: url('assets/atlas.png') center / contain no-repeat; mask: url('assets/atlas.png') center / contain no-repeat; }
.eyes { transform-box: fill-box; transform-origin: center; animation: blink 3.6s ease-in-out 1s infinite; }
@keyframes blink { 0%, 86%, 92%, 95%, 100% { transform: scaleY(1); } 89%, 93.5% { transform: scaleY(.08); } }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--green); flex: none; animation: pulse 2s ease-out infinite; }
.dot-cyan { background: var(--cyan); animation-name: pulse-c; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, .6); } 70%, 100% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); } }
@keyframes pulse-c { 0% { box-shadow: 0 0 0 0 rgba(6, 182, 212, .6); } 70%, 100% { box-shadow: 0 0 0 8px rgba(6, 182, 212, 0); } }

/* Фонові контурні лінії (як топографічна карта штату) */
.contours { position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .5;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='900' height='700' viewBox='0 0 900 700' fill='none' stroke='%2394A3B8' stroke-opacity='.07' stroke-width='1.2'%3E%3Cpath d='M-50 120c120-60 220 40 340 0s200-110 330-60 190 90 330 40'/%3E%3Cpath d='M-50 170c130-50 210 50 340 10s210-100 330-50 200 90 330 40'/%3E%3Cpath d='M-50 220c140-40 200 60 340 20s220-90 330-40 210 90 330 40'/%3E%3Cpath d='M-50 420c110 70 230-30 350 20s180 110 320 60 200-80 330-30'/%3E%3Cpath d='M-50 470c120 70 220-20 350 30s190 100 320 50 210-80 330-30'/%3E%3Cpath d='M-50 520c130 70 210-10 350 40s200 90 320 40 220-80 330-30'/%3E%3Cpath d='M-50 570c140 70 200 0 350 50s210 80 320 30 230-80 330-30'/%3E%3Cellipse cx='640' cy='330' rx='90' ry='52'/%3E%3Cellipse cx='640' cy='330' rx='140' ry='84'/%3E%3Cellipse cx='640' cy='330' rx='190' ry='118'/%3E%3C/svg%3E") center top / 900px 700px repeat; }

/* ---------- Кнопки ---------- */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 12px 20px; border-radius: 12px; border: 1px solid transparent;
  font: 600 15px/1 var(--sans); white-space: nowrap; overflow: hidden;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, border-color .25s; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: scale(.96); transition-duration: .08s; }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 8px 24px -10px rgba(99, 102, 241, .8), inset 0 1px 0 rgba(255, 255, 255, .2); }
.btn-primary:hover { box-shadow: 0 14px 34px -10px rgba(139, 92, 246, .95), inset 0 1px 0 rgba(255, 255, 255, .25); }
.btn-ghost { background: rgba(255, 255, 255, .04); border-color: var(--line-2); color: var(--fg); }
.btn-ghost:hover { background: rgba(255, 255, 255, .08); border-color: rgba(148, 163, 184, .4); box-shadow: 0 10px 26px -14px rgba(99, 102, 241, .6); }
.btn-sm { padding: 9px 15px; font-size: 14px; border-radius: 10px; }
.btn-lg { padding: 16px 24px; font-size: 16px; border-radius: 14px; }
.btn-block { width: 100%; }
.btn-icon { padding: 0; width: 46px; height: 46px; flex: none; }
.btn-shine::after { content: ''; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; transform: skewX(-20deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .35), transparent); animation: shine 3.2s var(--ease) infinite; }
@keyframes shine { 0%, 55% { left: -60%; } 100% { left: 130%; } }
.magnetic { transition: transform .35s var(--ease), box-shadow .25s var(--ease); }
.linklike { padding: 0; border: 0; background: none; color: var(--fg-2); text-decoration: underline; text-underline-offset: .2em; }
.linklike:hover { color: var(--fg); }

/* ---------- Навігація ---------- */
.nav-wrap { position: fixed; inset: 14px var(--pad) auto; z-index: 50; }
.nav { max-width: var(--max); margin: 0 auto; display: flex; align-items: center; gap: 20px; padding: 9px 9px 9px 16px; border-radius: 18px;
  background: rgba(10, 11, 18, .7); border: 1px solid var(--line); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%);
  transition: background .3s, box-shadow .3s; }
.nav.scrolled { background: rgba(10, 11, 18, .88); box-shadow: 0 14px 34px -20px rgba(0, 0, 0, .95); }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-logo { width: 28px; height: 28px; }
.nav-links { display: flex; gap: 2px; margin: 0 auto; }
.nav-links a { padding: 8px 13px; border-radius: 9px; color: var(--fg-2); font-size: 14px; font-weight: 500; transition: color .2s, background .2s; }
.nav-links a:hover, .nav-links a.active { color: var(--fg); background: rgba(255, 255, 255, .05); }
.nav-cta { display: flex; align-items: center; gap: 6px; }
.nav-login { padding: 8px 12px; border-radius: 9px; color: var(--fg-2); font-size: 14px; font-weight: 500; transition: color .2s; }
.nav-login:hover { color: var(--fg); }

/* ---------- Hero ---------- */
.hero { position: relative; max-width: var(--max); margin: 0 auto; min-height: min(100svh, 920px); display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 56px); align-items: center; padding: 130px var(--pad) 70px; }
.pill { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 12px; border-radius: 99px; border: 1px solid rgba(99, 102, 241, .35);
  background: rgba(99, 102, 241, .1); color: #c7d2fe; font-size: 13.5px; font-weight: 500; }
.hero h1 { margin-top: 22px; font-size: clamp(40px, 5.4vw, 72px); }
.accent { color: var(--soft); }
.hero-sub { margin-top: 22px; max-width: 34em; color: var(--fg-2); font-size: clamp(16px, 1.3vw, 18.5px); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-meta { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 26px 0 0; padding: 0; color: var(--fg-2); font-size: 14px; }
.hero-meta li { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta .ico { width: 16px; height: 16px; color: var(--soft); }

/* Персонаж ATLAS у шарах світла */
.hero-art { position: relative; aspect-ratio: 1; max-width: 520px; width: 100%; justify-self: center; }
.rings { position: absolute; inset: 0; display: grid; place-items: center; }
.rings i { position: absolute; border-radius: 46% 54% 52% 48% / 50% 46% 54% 50%; animation: morph 12s ease-in-out infinite alternate; }
.rings i:nth-child(1) { width: 96%; height: 96%; background: radial-gradient(circle at 40% 35%, rgba(99, 102, 241, .28), rgba(99, 102, 241, .08) 70%); }
.rings i:nth-child(2) { width: 74%; height: 74%; background: radial-gradient(circle at 45% 40%, rgba(124, 99, 246, .45), rgba(99, 102, 241, .15) 70%); animation-duration: 9s; animation-direction: alternate-reverse; }
.rings i:nth-child(3) { width: 52%; height: 52%; background: radial-gradient(circle at 50% 45%, rgba(139, 92, 246, .7), rgba(99, 102, 241, .35) 70%); animation-duration: 7s;
  box-shadow: 0 0 80px rgba(139, 92, 246, .45); }
@keyframes morph { 50% { border-radius: 54% 46% 44% 56% / 46% 56% 44% 54%; transform: rotate(8deg) scale(1.03); } 100% { border-radius: 48% 52% 56% 44% / 54% 44% 56% 46%; transform: rotate(-6deg); } }
.hero-blob { position: absolute; left: 50%; top: 50%; width: 34%; height: 34%; transform: translate(-50%, -50%); filter: drop-shadow(0 0 22px rgba(255, 255, 255, .45));
  animation: float 5s ease-in-out infinite; }
@keyframes float { 50% { transform: translate(-50%, calc(-50% - 8px)); } }
.float-card { position: absolute; padding: 12px 14px; border-radius: 16px; background: rgba(14, 15, 23, .82); border: 1px solid var(--line-2);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: 0 24px 50px -24px rgba(0, 0, 0, .95); }
.fc-main { left: 0; right: 14%; bottom: 8%; }
.fc-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 12.5px; color: var(--fg-2); }
.fc-state { display: inline-flex; align-items: center; gap: 8px; }
.fc-state b { font-weight: 600; }
.fc-q { margin-top: 8px; font-size: 17px; font-weight: 700; min-height: 1.5em; }
.fc-side { right: 0; top: 12%; width: 56%; font-size: 13px; color: var(--fg-2); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.fc-side.wait { opacity: 0; transform: translateY(10px); }
.fc-side p { margin-top: 6px; }
.cite { display: inline-block; padding: 3px 8px; border-radius: 6px; background: rgba(6, 182, 212, .12); color: #67e8f9; font: 500 11.5px var(--mono); }

/* ---------- Секції ---------- */
.section { position: relative; max-width: var(--max); margin: 0 auto; padding: clamp(80px, 9vw, 120px) var(--pad) 0; }
.sec-head { max-width: 640px; margin-bottom: 40px; }
.sec-head.center { margin-inline: auto; text-align: center; }
.kicker { margin-bottom: 14px; color: var(--soft); font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.sec-head h2 { font-size: clamp(30px, 3.6vw, 48px); }
.sec-head > p:not(.kicker) { margin-top: 14px; color: var(--fg-2); font-size: 17px; }

/* ---------- Демо ШІ ---------- */
.scenarios { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 22px; }
.chip-btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 99px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .03);
  color: var(--fg-2); font-size: 14px; font-weight: 500; transition: transform .2s var(--ease), background .2s, color .2s, border-color .2s, box-shadow .2s; }
.chip-btn .ico { width: 16px; height: 16px; }
.chip-btn:hover { transform: translateY(-2px); color: var(--fg); border-color: rgba(99, 102, 241, .5); box-shadow: 0 8px 20px -12px rgba(99, 102, 241, .8); }
.chip-btn:active { transform: scale(.96); }
.chip-btn[aria-pressed="true"] { background: var(--grad); border-color: transparent; color: #fff; }
.chip-btn:disabled { opacity: .5; pointer-events: none; }
.demo { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; }
.stage { position: relative; padding: 26px; border-radius: 24px; overflow: hidden; border: 1px solid var(--line); min-height: 520px; display: grid; }
.stage-bg { position: absolute; inset: 0; background:
  radial-gradient(120% 60% at 80% 110%, rgba(245, 158, 11, .2), transparent 60%),
  linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, .7)),
  linear-gradient(160deg, #1a1f38 0%, #0d1020 55%, #161222 100%); }
.stage-bg::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 40%;
  background: linear-gradient(transparent, rgba(7, 8, 12, .9)), repeating-linear-gradient(90deg, #0c0e18 0 46px, #11142a 46px 70px, #0a0c15 70px 120px);
  clip-path: polygon(0 40%, 8% 40%, 8% 10%, 16% 10%, 16% 50%, 24% 50%, 24% 0, 31% 0, 31% 35%, 42% 35%, 42% 20%, 52% 20%, 52% 55%, 63% 55%, 63% 5%, 70% 5%, 70% 30%, 82% 30%, 82% 15%, 92% 15%, 92% 45%, 100% 45%, 100% 100%, 0 100%); }
.hud-mini { position: absolute; right: 16px; top: 12px; font: 500 11px var(--mono); color: rgba(248, 250, 252, .55); }
.chat { position: relative; align-self: center; width: min(560px, 100%); justify-self: center; display: flex; flex-direction: column; border-radius: 18px;
  background: rgba(12, 13, 20, .9); border: 1px solid var(--line-2); backdrop-filter: blur(16px); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .95); overflow: hidden; }
.chat-top { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: 14px; }
.mock-logo { width: 24px; height: 24px; flex: none; }
.online { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; color: var(--fg-3); font-size: 12.5px; }
.chat-log { height: 330px; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; scroll-behavior: smooth; }
.msg { max-width: 92%; padding: 11px 14px; border-radius: 14px; font-size: 14.5px; animation: pop-in .35s var(--ease); }
@keyframes pop-in { from { opacity: 0; transform: translateY(8px); filter: blur(3px); } }
.msg.bot { align-self: flex-start; background: #141723; border: 1px solid var(--line); color: var(--fg-2); border-bottom-left-radius: 5px; }
.msg.me { align-self: flex-end; background: var(--grad); color: #fff; border-bottom-right-radius: 5px; }
.msg h4 { margin: 10px 0 3px; font-size: 11.5px; font-weight: 700; letter-spacing: .04em; color: var(--fg-3); text-transform: uppercase; }
.msg h4:first-child { margin-top: 0; }
.msg .art { color: #67e8f9; font-family: var(--mono); font-size: 13px; }
.msg .say { display: block; padding: 8px 12px; border-radius: 10px; background: rgba(16, 185, 129, .08); border: 1px solid rgba(16, 185, 129, .25); color: #d1fae5; }
.msg .w { animation: word .25s var(--ease) both; }
@keyframes word { from { opacity: 0; filter: blur(3px); } }
.typing-dots { display: inline-flex; gap: 4px; }
.typing-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--fg-3); animation: bounce 1s infinite; }
.typing-dots i:nth-child(2) { animation-delay: .15s; } .typing-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes bounce { 30% { transform: translateY(-4px); background: var(--cyan); } }
.chat-input { display: flex; gap: 10px; padding: 12px 16px 16px; border-top: 1px solid var(--line); }
.chat-input input { flex: 1; min-width: 0; padding: 0 14px; height: 46px; border-radius: 12px; border: 1px solid var(--line-2); background: #0d0f17; color: var(--fg);
  font: 500 15px var(--sans); caret-color: var(--cyan); outline: none; transition: border-color .2s, box-shadow .2s; }
.chat-input input::placeholder { color: var(--fg-3); }
.chat-input input:focus { border-color: rgba(99, 102, 241, .6); box-shadow: 0 0 0 3px rgba(99, 102, 241, .15); }

.plan-panel { display: flex; flex-direction: column; gap: 14px; padding: 18px; border-radius: 24px; background: var(--card); border: 1px solid var(--line);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.pp-ask { padding: 12px 14px; border-radius: 14px; background: var(--grad); color: #fff; font-weight: 600; font-size: 14.5px; }
.pp-label { color: var(--fg-3); font-size: 12px; font-weight: 700; letter-spacing: .14em; }
.pp-steps { list-style: none; margin: 0; padding: 14px; border-radius: 16px; background: rgba(0, 0, 0, .25); border: 1px solid var(--line); display: grid; gap: 14px; font-size: 14px; color: var(--fg-3); }
.pp-steps li { display: flex; align-items: center; gap: 12px; transition: color .3s; }
.pp-steps li::before { content: ''; flex: none; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--line-2); transition: background .3s, border-color .3s; }
.pp-steps li.run { color: var(--fg); }
.pp-steps li.run::before { border-color: var(--cyan); border-top-color: transparent; animation: spin .7s linear infinite; }
.pp-steps li.ok { color: var(--fg-2); }
.pp-steps li.ok::before { border-color: var(--green); background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 12.5 4 4L18 8' fill='none' stroke='%2307080C' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat; }
@keyframes spin { to { transform: rotate(360deg); } }
.pp-done { margin-top: auto; padding: 10px 14px; border-radius: 12px; background: rgba(16, 185, 129, .1); color: #6ee7b7; font-size: 13.5px; font-weight: 600; }
.pp-done[hidden] { display: none; }
.pp-done b { font-family: var(--mono); }

.flow { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.flow li { display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; align-items: center; padding: 16px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); }
.flow span { grid-row: span 2; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: rgba(99, 102, 241, .16); color: #c7d2fe; font: 700 14px var(--mono); }
.flow b { font-size: 15px; }
.flow small { color: var(--fg-3); font-size: 13px; }
.flow li:first-child { border-color: rgba(99, 102, 241, .4); background: rgba(99, 102, 241, .08); }

/* ---------- Цифри ---------- */
.stats { max-width: var(--max); margin: clamp(70px, 8vw, 110px) auto 0; padding: 0 var(--pad); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; text-align: center; }
.stats div { padding: 26px 12px; border-radius: 20px; border: 1px solid var(--line); background: var(--card); }
.stats b { display: block; font-size: clamp(34px, 4vw, 52px); font-weight: 800; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; color: var(--fg); }
.stats span { display: block; margin-top: 10px; color: var(--fg-2); font-size: 14px; }

/* ---------- Спліт-блоки ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.split-rev .split-media { order: 2; }
.split .sec-head { margin-bottom: 26px; }
.panel { position: relative; padding: 20px; border-radius: 24px; background: var(--card); border: 1px solid var(--line-2); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .9); transform-style: preserve-3d; transition: transform .4s var(--ease); }
.panel-top { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; font-size: 14px; }
.tag { margin-left: auto; font: 500 11.5px var(--mono); color: var(--fg-3); }
.tag.ok { color: var(--green); }
.feat-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.feat-list li { display: flex; gap: 14px; align-items: flex-start; }
.feat-list i { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; background: rgba(99, 102, 241, .14); color: var(--soft);
  box-shadow: inset 0 0 0 1px rgba(99, 102, 241, .3); }
.feat-list i svg { width: 20px; height: 20px; }
.feat-list b { display: block; font-size: 16px; }
.feat-list span { color: var(--fg-2); font-size: 14.5px; }

/* Біндер */
.key-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.keycap { display: grid; gap: 6px; justify-items: start; padding: 12px; border-radius: 12px; border: 1px solid var(--line-2); border-bottom: 3px solid #05060a;
  background: linear-gradient(#1c1f2d, #141723); font-size: 13.5px; font-weight: 600; text-align: left;
  transition: transform .15s var(--ease), border-bottom-width .15s, box-shadow .25s, border-color .2s; }
.keycap:hover { transform: translateY(-2px); box-shadow: 0 8px 20px -10px rgba(99, 102, 241, .8); }
.keycap:active, .keycap.down { transform: translateY(2px) scale(.97); border-bottom-width: 1px; border-color: rgba(99, 102, 241, .6); }
.term { margin: 12px 0 0; min-height: 112px; padding: 12px 14px; border-radius: 12px; background: #06070b; border: 1px solid var(--line);
  font: 500 12.5px/1.7 var(--mono); color: #ddd6fe; white-space: pre-wrap; }
.term .muted { color: var(--fg-3); }
.term .ln { display: block; animation: ln .3s var(--ease) both; }
.term .ln-do { color: #67e8f9; }
.term .ln-say { color: var(--fg); }
@keyframes ln { from { opacity: 0; transform: translateX(-6px); } }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.chip { padding: 5px 11px; border-radius: 99px; border: 1px solid var(--line-2); color: var(--fg-2); font-size: 12.5px; font-weight: 600; }
.chip.on { border-color: rgba(99, 102, 241, .5); background: rgba(99, 102, 241, .15); color: var(--fg); }

/* Відкати */
.rec { display: inline-flex; align-items: center; gap: 7px; padding: 5px 10px; border-radius: 8px; background: rgba(239, 68, 68, .12); color: #fca5a5; font: 700 11.5px var(--mono); letter-spacing: .06em; }
.rec i { width: 7px; height: 7px; border-radius: 50%; background: #ef4444; animation: rec 1.2s steps(1) infinite; }
@keyframes rec { 50% { opacity: .25; } }
.rec b { color: #fff; font-variant-numeric: tabular-nums; }
.replay-viz { position: relative; height: 120px; border-radius: 14px; background: #06070b; border: 1px solid var(--line); overflow: hidden; }
.bars { position: absolute; inset: 18px 14px; background: linear-gradient(90deg, rgba(6, 182, 212, .35), var(--cyan) 65%, var(--indigo));
  -webkit-mask: repeating-linear-gradient(90deg, #000 0 3px, transparent 3px 6px); mask: repeating-linear-gradient(90deg, #000 0 3px, transparent 3px 6px);
  clip-path: polygon(0 70%, 6% 40%, 12% 65%, 18% 30%, 24% 55%, 30% 20%, 36% 60%, 42% 35%, 48% 70%, 54% 25%, 60% 50%, 66% 10%, 72% 55%, 78% 30%, 84% 60%, 90% 20%, 96% 45%, 100% 30%, 100% 100%, 0 100%);
  animation: wave 1.8s ease-in-out infinite alternate; transform-origin: bottom; }
@keyframes wave { to { transform: scaleY(.7); } }
.replay-viz::after { content: ''; position: absolute; top: 0; bottom: 0; right: 28%; width: 2px; background: var(--green); box-shadow: 0 0 12px var(--green); }
.save-mark { position: absolute; top: 10px; right: 12px; padding: 3px 9px; border-radius: 7px; background: rgba(16, 185, 129, .15); color: #6ee7b7; font: 500 11.5px var(--mono);
  animation: saved 4s var(--ease) infinite; }
@keyframes saved { 0%, 40% { opacity: 0; transform: translateY(-4px); } 50%, 90% { opacity: 1; transform: none; } 100% { opacity: 0; } }
.trim { margin-top: 14px; }
.trim-track { position: relative; height: 58px; border-radius: 12px; overflow: hidden; background: repeating-linear-gradient(90deg, #1d2135 0 30px, #171a2b 30px 60px); border: 1px solid var(--line); }
.trim-sel { position: absolute; top: 0; bottom: 0; left: 14%; right: 22%; border: 2px solid #fbbf24; border-radius: 9px; box-shadow: 0 0 0 999px rgba(7, 8, 12, .62);
  animation: trim 5s var(--ease) infinite alternate; }
@keyframes trim { to { left: 22%; right: 12%; } }
.trim .h { position: absolute; top: 50%; width: 8px; height: 26px; margin-top: -13px; border-radius: 4px; background: #fbbf24; }
.trim .l { left: -5px; } .trim .r { right: -5px; }
.trim-lbl { display: flex; justify-content: space-between; margin-top: 8px; color: var(--fg-3); font: 500 11.5px var(--mono); }

/* Ліхтарик по рамці */
.spot::before { content: ''; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(260px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(139, 92, 246, .9), rgba(6, 182, 212, .4) 40%, transparent 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.spot:hover::before { opacity: 1; }

/* ---------- Плитки «Дрібниці» ---------- */
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.tile { position: relative; display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; align-items: start; padding: 16px; border-radius: 18px; background: var(--card); border: 1px solid var(--line);
  transition: transform .25s var(--ease), background .25s; }
.tile:hover { transform: translateY(-2px); background: rgba(24, 26, 38, .75); }
.tile svg { grid-row: span 2; width: 20px; height: 20px; margin-top: 2px; color: var(--soft); }
.tile b { font-size: 15px; }
.tile span { color: var(--fg-3); font-size: 13.5px; }

/* ---------- Тарифи ---------- */
.period { position: relative; display: flex; width: max-content; margin: 0 auto 40px; padding: 4px; border-radius: 14px; background: var(--card); border: 1px solid var(--line-2); }
.period button { position: relative; z-index: 1; padding: 10px 22px; border: 0; background: none; color: var(--fg-2); font-weight: 600; font-size: 14.5px; border-radius: 10px; transition: color .25s, transform .15s; }
.period button:active { transform: scale(.96); }
.period [aria-checked="true"] { color: #fff; }
.period-thumb { position: absolute; top: 4px; bottom: 4px; left: 4px; border-radius: 10px; background: var(--grad); box-shadow: 0 6px 18px -8px rgba(99, 102, 241, .9);
  transition: transform .45s var(--spring), width .45s var(--spring); }
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: center; }
.plan { position: relative; padding: 30px 26px; border-radius: 24px; background: var(--card); border: 1px solid var(--line); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.plan h3 { font-size: 22px; letter-spacing: -.02em; }
.plan-desc { margin-top: 8px; min-height: 3.2em; color: var(--fg-2); font-size: 14.5px; }
.price { display: flex; align-items: baseline; gap: 8px; margin-top: 22px; }
.price b { font-size: 46px; font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.price span { color: var(--fg-3); font-size: 15px; }
.quota { margin-top: 8px; color: var(--fg-2); font-size: 14.5px; }
.quota b { color: #67e8f9; font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: 15.5px; }
.perks { list-style: none; margin: 22px 0 26px; padding: 20px 0 0; border-top: 1px solid var(--line); display: grid; gap: 11px; font-size: 14.5px; color: var(--fg-2); }
.perks li { display: flex; gap: 10px; }
.perks svg { width: 18px; height: 18px; flex: none; margin-top: 2px; color: var(--green); }
.plan-hot { padding-block: 42px; background: linear-gradient(rgba(20, 21, 34, .94), rgba(20, 21, 34, .94)) padding-box, var(--grad) border-box; border: 1.5px solid transparent;
  box-shadow: 0 30px 70px -30px rgba(139, 92, 246, .7); }
.plan-badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); padding: 5px 14px; border-radius: 99px; background: var(--grad); color: #fff;
  font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.fine { margin-top: 26px; text-align: center; color: var(--fg-3); font-size: 13.5px; }

/* ---------- Банер ---------- */
.cta-banner { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 28px; align-items: center; padding: clamp(28px, 4vw, 48px);
  border-radius: 28px; overflow: hidden; border: 1px solid rgba(99, 102, 241, .35);
  background: radial-gradient(60% 120% at 100% 50%, rgba(139, 92, 246, .35), transparent 70%), radial-gradient(40% 100% at 0% 0%, rgba(99, 102, 241, .25), transparent 70%), #0e1022; }
.cta-banner h2 { font-size: clamp(26px, 3vw, 40px); }
.cta-banner p { margin-top: 10px; color: var(--fg-2); max-width: 36em; }
.cta-blob { width: 84px; height: 84px; filter: drop-shadow(0 0 18px rgba(255, 255, 255, .4)); }

/* ---------- FAQ ---------- */
.faq-sec { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.faq-sec .sec-head { position: sticky; top: 110px; }
.faq { display: grid; gap: 10px; }
.faq details { border-radius: 16px; background: var(--card); border: 1px solid var(--line); transition: border-color .25s, background .25s; }
.faq details[open] { border-color: rgba(99, 102, 241, .35); background: rgba(22, 24, 36, .75); }
.faq summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; cursor: pointer; font-weight: 600; font-size: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { width: 20px; height: 20px; flex: none; color: var(--fg-3); transition: transform .35s var(--spring), color .2s; }
.faq details[open] summary svg { transform: rotate(45deg); color: var(--soft); }
.faq-a p { padding: 0 20px 20px; color: var(--fg-2); max-width: 68ch; animation: pop-in .35s var(--ease); }

/* ---------- Вимоги ---------- */
.reqs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.reqs div { display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; padding: 18px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); }
.reqs svg { grid-row: span 2; width: 20px; height: 20px; margin-top: 2px; color: var(--soft); }
.reqs b { font-size: 15px; }
.reqs span { color: var(--fg-3); font-size: 13.5px; }

/* ---------- Футер ---------- */
.footer { max-width: var(--max); margin: clamp(70px, 8vw, 110px) auto 0; padding: 32px var(--pad) 40px; border-top: 1px solid var(--line);
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px 40px; align-items: start; }
.foot-brand p { margin-top: 12px; color: var(--fg-3); font-size: 14px; }
.foot-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 12px 26px; font-size: 14.5px; color: var(--fg-2); }
.foot-links a { display: inline-flex; align-items: center; gap: 8px; transition: color .2s; }
.foot-links a:hover { color: var(--fg); }
.foot-links .linklike { text-decoration: none; font-size: inherit; }
.foot-copy { grid-column: 1 / -1; color: var(--fg-3); font-size: 13px; }

/* ---------- Модальне вікно ---------- */
.modal { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(5, 6, 10, .6); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); animation: fade .3s var(--ease); }
.modal-box { position: relative; width: min(460px, 100%); padding: 34px 30px 28px; border-radius: 24px; text-align: center;
  background: linear-gradient(#11131d, #0c0d14) padding-box, linear-gradient(160deg, rgba(139, 92, 246, .6), rgba(148, 163, 184, .12) 40%) border-box; border: 1px solid transparent;
  box-shadow: 0 50px 100px -30px rgba(0, 0, 0, .95); animation: pop .45s var(--spring); }
.modal.closing .modal-box { animation: out .2s ease-in forwards; }
.modal.closing .modal-backdrop { animation: fade .2s ease-in reverse forwards; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(.96); } }
@keyframes out { to { opacity: 0; transform: translateY(8px) scale(.97); } }
.modal-x { position: absolute; top: 14px; right: 14px; display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 10px; background: rgba(255, 255, 255, .05); color: var(--fg-2); transition: background .2s, color .2s, transform .15s; }
.modal-x:hover { background: rgba(255, 255, 255, .1); color: var(--fg); }
.modal-x:active { transform: scale(.92); }
.modal-logo { width: 58px; height: 58px; filter: drop-shadow(0 0 14px rgba(255, 255, 255, .35)); }
.modal-box h2 { margin-top: 14px; font-size: 26px; }
.steps { list-style: none; counter-reset: s; margin: 22px 0 24px; padding: 0; display: grid; gap: 12px; text-align: left; color: var(--fg-2); font-size: 15px; }
.steps li { counter-increment: s; display: flex; gap: 12px; align-items: baseline; }
.steps li::before { content: counter(s); flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: rgba(99, 102, 241, .16); color: #c7d2fe; font: 700 13px var(--mono); transform: translateY(-1px); }
.steps b { color: var(--fg); }
.modal-meta { margin-top: 14px; color: var(--fg-3); font-size: 13px; }

/* ---------- Поява при скролі ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); filter: blur(4px); transition: opacity .8s var(--ease), transform .8s var(--ease), filter .8s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; filter: none; }

/* ---------- Адаптив ---------- */
@media (max-width: 1100px) {
  .nav-links { display: none; }
  .nav-cta { margin-left: auto; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .hero { grid-template-columns: minmax(0, 1fr); padding-top: 120px; min-height: 0; }
  .hero-art { max-width: 440px; }
  .demo { grid-template-columns: minmax(0, 1fr); }
  .plan-panel { display: grid; grid-template-columns: 1fr 1fr; align-items: start; }
  .pp-ask, .pp-label { grid-column: 1 / -1; }
  .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split, .split-rev { grid-template-columns: minmax(0, 1fr); }
  .split-rev .split-media, .split .split-media { order: 2; }
  .plans { grid-template-columns: minmax(0, 1fr); max-width: 480px; margin: 0 auto; }
  .plan-hot { order: -1; }
  .cta-banner { grid-template-columns: minmax(0, 1fr); text-align: center; justify-items: center; }
  .faq-sec { grid-template-columns: minmax(0, 1fr); }
  .faq-sec .sec-head { position: static; }
  .reqs { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .nav-login { display: none; }
  .hero-actions .btn { flex: 1 1 100%; }
  .stage { padding: 10px; min-height: 0; margin-inline: calc(var(--pad) * -.5); }
  .chat-log { height: 340px; }
  .plan-panel { grid-template-columns: minmax(0, 1fr); }
  .flow, .tiles { grid-template-columns: minmax(0, 1fr); }
  .key-row { grid-template-columns: minmax(0, 1fr); }
  .footer { grid-template-columns: minmax(0, 1fr); }
  .foot-links { justify-content: flex-start; }
  .fc-q { font-size: 15px; }
}
@media (hover: none) { .spot::before { display: none; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; filter: none; }
}

/* ---------- Доповнення: фракції, підказка демо, тарифи, підтримка ---------- */
button.chip { background: none; font-family: inherit; cursor: pointer; transition: transform .2s var(--ease), background .2s, color .2s, border-color .2s; }
button.chip:hover { color: var(--fg); border-color: rgba(99, 102, 241, .5); transform: translateY(-1px); }
button.chip:active { transform: scale(.95); }
.chat-hint { padding: 14px 16px 16px; border-top: 1px solid var(--line); color: var(--fg-3); font-size: 13.5px; text-align: center; }
.perks li.no { color: var(--fg-3); }
.perks li.no svg { color: var(--fg-3); }
.modal-sub { margin-top: 8px; color: var(--fg-2); font-size: 15px; }
.support-form { display: grid; gap: 12px; margin: 20px 0 4px; text-align: left; }
.support-form label { display: grid; gap: 6px; color: var(--fg-2); font-size: 13px; font-weight: 600; }
.support-form input, .support-form select, .support-form textarea { width: 100%; padding: 11px 13px; border-radius: 11px; border: 1px solid var(--line-2); background: #0d0f17;
  color: var(--fg); font: 500 15px var(--sans); outline: none; resize: vertical; transition: border-color .2s, box-shadow .2s; }
.support-form select { appearance: none; background: #0d0f17 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m7 10 5 5 5-5' fill='none' stroke='%2394A3B8' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") right 10px center / 18px no-repeat; }
.support-form :is(input, select, textarea):focus { border-color: rgba(99, 102, 241, .6); box-shadow: 0 0 0 3px rgba(99, 102, 241, .15); }
.support-form ::placeholder { color: var(--fg-3); }
.support-form [aria-invalid="true"] { border-color: #f87171; }
.support-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-msg { font-size: 13.5px; color: #fca5a5; }
.form-msg:empty { display: none; }
.form-msg.ok { color: #6ee7b7; }
.btn[aria-busy="true"] { opacity: .7; pointer-events: none; }
button.nav-login { border: 0; background: none; }
@media (max-width: 640px) { .nav-cta button.nav-login { display: inline-block; } }

/* Рядки біндів за командою */
.term { min-height: 150px; }
.term .ln-me { color: #c4b5fd; }
.term .ln-cmd { color: #fbbf24; }
.keycap { min-width: 0; }

.stats .key-stat { display: flex; align-items: center; justify-content: center; gap: 10px; }
.stats .key-stat i { font-style: normal; color: var(--muted, #64748B); font-size: 22px; font-weight: 600; }
.stats .key-stat kbd { font-family: var(--mono); font-size: clamp(24px, 2.6vw, 34px); font-weight: 700; color: #F8FAFC; min-width: 1.9em; padding: .32em .6em .38em; border-radius: 12px; background: linear-gradient(180deg, rgba(255,255,255,.09), rgba(255,255,255,.03)); border: 1px solid rgba(255,255,255,.14); box-shadow: inset 0 -3px 0 rgba(0,0,0,.45), 0 1px 0 rgba(255,255,255,.06), 0 8px 24px -10px rgba(99,102,241,.55); line-height: 1; }
.stats span { text-wrap: balance; }
