/* bot-x.ru — сайт-визитка. Тёмная тема, aurora-градиенты, стекло, анимации.
   Без сборки: чистый CSS, подключается из index.html. */

:root {
  --bg: #060912;
  --bg-2: #0a1024;
  --text: #e9eefb;
  --muted: #9aa6c7;
  --muted-2: #6f7da3;
  --line: rgba(255, 255, 255, 0.09);
  --card: rgba(255, 255, 255, 0.035);
  --card-hi: rgba(255, 255, 255, 0.06);

  --a1: #7c5cff; /* violet */
  --a2: #22d3ee; /* cyan   */
  --a3: #6ee7a8; /* emerald*/
  --a4: #ff7eb6; /* pink   */

  --grad: linear-gradient(135deg, var(--a1), var(--a2));
  --grad-text: linear-gradient(120deg, #b6a3ff 0%, #7cf0ff 50%, #8effc4 100%);
  --radius: 20px;
  --maxw: 1180px;
  --ease: cubic-bezier(0.22, 0.7, 0.2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ── Фон: canvas-сеть + aurora-пятна ─────────────────────────────────────── */
#bg-canvas {
  position: fixed; inset: 0; z-index: -2;
  width: 100%; height: 100%; display: block;
}
.aurora {
  position: fixed; inset: -20vmax; z-index: -3; pointer-events: none;
  filter: blur(90px); opacity: 0.55;
  background:
    radial-gradient(40vmax 40vmax at 18% 12%, rgba(124, 92, 255, 0.45), transparent 60%),
    radial-gradient(38vmax 38vmax at 85% 18%, rgba(34, 211, 238, 0.32), transparent 60%),
    radial-gradient(42vmax 42vmax at 70% 88%, rgba(110, 231, 168, 0.28), transparent 60%),
    radial-gradient(34vmax 34vmax at 12% 85%, rgba(255, 126, 182, 0.26), transparent 60%);
  animation: auroraShift 24s ease-in-out infinite alternate;
}
@keyframes auroraShift {
  0%   { transform: translate3d(0,0,0) scale(1); }
  50%  { transform: translate3d(2%, -2%, 0) scale(1.08); }
  100% { transform: translate3d(-2%, 2%, 0) scale(1.04); }
}
body::after { /* лёгкое затемнение/виньетка поверх фона */
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(120% 80% at 50% -10%, transparent 40%, rgba(3,5,12,0.55) 100%);
}

/* ── Контейнер / секции ──────────────────────────────────────────────────── */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
section { position: relative; padding: clamp(64px, 9vw, 130px) 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: #9fd9ff;
  padding: 6px 12px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--card);
}
.section-head { max-width: 720px; margin-bottom: clamp(34px, 5vw, 60px); }
.section-head h2 {
  font-size: clamp(28px, 4.4vw, 46px); line-height: 1.1; margin: 18px 0 12px; letter-spacing: -0.02em;
}
.section-head p { color: var(--muted); font-size: clamp(15px, 1.6vw, 18px); margin: 0; }
.grad-text {
  background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ── Кнопки ──────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 15px; font-weight: 650; line-height: 1;
  padding: 14px 22px; border-radius: 14px; cursor: pointer;
  border: 1px solid transparent; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s;
  will-change: transform;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary {
  color: #0a0d16; font-weight: 760;
  /* светлее градиент → чёрный текст уверенно читается на всём диапазоне */
  background: linear-gradient(135deg, #a99bff 0%, #62d8f2 52%, #8ff0c6 100%);
  box-shadow: 0 10px 30px rgba(124, 92, 255, 0.32);
  /* без прозрачной рамки: на градиенте она даёт 1px светлую полоску по краю.
     паддинг +1px компенсирует ширину рамки, габариты совпадают с .btn-ghost */
  border: 0; padding: 15px 23px;
}
.btn-primary svg { stroke: #0a0d16; }
.btn-primary:hover { box-shadow: 0 16px 44px rgba(34, 211, 238, 0.4); }
.btn-ghost {
  color: var(--text); background: var(--card); border-color: var(--line); backdrop-filter: blur(8px);
}
.btn-ghost:hover { background: var(--card-hi); transform: translateY(-2px); }

/* ── Навигация ───────────────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  transition: padding .3s var(--ease), background .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(6, 9, 18, 0.72); backdrop-filter: blur(14px); border-bottom-color: var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 800; font-size: 19px; letter-spacing: -0.02em; }
.brand .logo {
  width: 38px; height: 38px; border-radius: 12px; position: relative; overflow: hidden; flex: none;
  display: grid; place-items: center;
  font-size: 15px; font-weight: 800; color: #06121a; background: var(--grad);
  box-shadow: 0 6px 18px rgba(124,92,255,0.45);
}
.brand .logo .lg-txt { position: absolute; inset: 0; display: grid; place-items: center; }
.brand .logo img { position: relative; width: 100%; height: 100%; object-fit: cover; display: block; }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
  color: var(--muted); font-size: 14.5px; font-weight: 550; padding: 9px 13px; border-radius: 10px;
  transition: color .2s, background .2s;
}
.nav-links a:hover { color: var(--text); background: var(--card); }
.nav-cta { margin-left: 8px; }
.nav-cta .btn { padding: 10px 16px; }
.brand-wrap { display: flex; align-items: center; gap: 10px; }
.nav-channel {
  width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center;
  border: 1px solid var(--line); background: var(--card); color: var(--muted);
  transition: color .2s, background .2s, transform .2s var(--ease);
}
.nav-channel svg { width: 19px; height: 19px; }
.nav-channel:hover { color: #06121a; background: var(--a2); border-color: transparent; transform: translateY(-2px); }
.burger { display: none; width: 42px; height: 42px; border-radius: 11px; border: 1px solid var(--line);
  background: var(--card); cursor: pointer; position: relative; }
.burger span, .burger::before, .burger::after {
  content: ""; position: absolute; left: 11px; right: 11px; height: 2px; background: var(--text); border-radius: 2px;
  transition: transform .3s var(--ease), opacity .2s;
}
.burger span { top: 20px; } .burger::before { top: 14px; } .burger::after { top: 26px; }
body.menu-open .burger span { opacity: 0; }
body.menu-open .burger::before { transform: translateY(6px) rotate(45deg); }
body.menu-open .burger::after { transform: translateY(-6px) rotate(-45deg); }

/* ── Hero ────────────────────────────────────────────────────────────────── */
.hero { padding-top: clamp(40px, 7vw, 80px); }
.hero h1 {
  font-size: clamp(34px, 6.6vw, 76px); line-height: 1.04; letter-spacing: -0.03em;
  margin: 22px 0 0; max-width: 20ch; font-weight: 820;
}
/* Первая строка не переносится: печатающееся слово растёт, но строка остаётся
   одной — высота H1 стабильна, ничего ниже не дёргается. */
.hero h1 .h1-line { white-space: nowrap; }
.hero .rotator { display: inline-block; min-width: 5.5ch; }
.hero .rotator b { font-weight: 820; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { color: var(--muted); font-size: clamp(16px, 2vw, 21px); max-width: 56ch; margin: 24px 0 0; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 42px; }
.chip {
  display: inline-flex; align-items: center; gap: 10px; padding: 11px 16px; border-radius: 14px;
  border: 1px solid var(--line); background: var(--card); backdrop-filter: blur(8px);
  font-size: 14px; color: var(--muted);
}
.chip b { color: var(--text); font-size: 17px; font-weight: 750; }
.chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--a3); box-shadow: 0 0 12px var(--a3); }

.scroll-ind { margin-top: 56px; display: inline-flex; align-items: center; gap: 10px; color: var(--muted-2); font-size: 13px; letter-spacing: 0.08em; }
.scroll-ind .mouse { width: 22px; height: 34px; border: 2px solid var(--muted-2); border-radius: 12px; position: relative; }
.scroll-ind .mouse::before { content: ""; position: absolute; left: 50%; top: 6px; width: 3px; height: 7px; border-radius: 3px;
  background: var(--muted); transform: translateX(-50%); animation: scrollDot 1.6s var(--ease) infinite; }
@keyframes scrollDot { 0% { opacity: 0; transform: translate(-50%, 0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, 10px); } }

/* ── Сетки карточек ──────────────────────────────────────────────────────── */
.grid { display: grid; gap: 18px; }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  position: relative; border: 1px solid var(--line); background: var(--card);
  border-radius: var(--radius); padding: 26px; overflow: hidden;
  transition: transform .3s var(--ease), border-color .3s, background .3s;
}
.card::before { /* подсветка-ореол за курсором */
  content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .35s;
  background: radial-gradient(380px 380px at var(--mx, 50%) var(--my, 0%), rgba(124,92,255,0.16), transparent 60%);
}
.card:hover { transform: translateY(-5px); border-color: rgba(255,255,255,0.18); background: var(--card-hi); }
.card:hover::before { opacity: 1; }
.card .ic {
  width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; font-size: 24px;
  background: linear-gradient(135deg, rgba(124,92,255,0.25), rgba(34,211,238,0.18));
  border: 1px solid var(--line); margin-bottom: 18px;
}
.card h3 { margin: 0 0 8px; font-size: 19px; letter-spacing: -0.01em; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }

/* ── Платформа «Пульт» (featured) ────────────────────────────────────────── */
.feature {
  position: relative; border: 1px solid var(--line); border-radius: 26px; overflow: hidden;
  background: linear-gradient(135deg, rgba(124,92,255,0.12), rgba(34,211,238,0.08));
  padding: clamp(28px, 4vw, 54px);
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center;
}
.feature::before { content: ""; position: absolute; width: 360px; height: 360px; right: -80px; top: -120px;
  background: radial-gradient(circle, rgba(34,211,238,0.4), transparent 65%); filter: blur(30px); }
.feature h3 { font-size: clamp(24px, 3.2vw, 36px); margin: 16px 0 12px; letter-spacing: -0.02em; }
.feature p { color: var(--muted); margin: 0 0 22px; font-size: 16px; }
.feature ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; position: relative; }
.feature li { display: flex; gap: 12px; align-items: flex-start; font-size: 15.5px; }
.feature li .tick { flex: 0 0 22px; width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center;
  background: var(--grad); color: #06121a; font-size: 13px; font-weight: 800; margin-top: 1px; }
.feature-art { position: relative; min-height: 260px; }

/* Видео-плеер в featured-блоке: старт по клику, лёгкая предзагрузка */
.player { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden;
  background: #05070f; border: 1px solid var(--line); box-shadow: 0 30px 70px rgba(0,0,0,0.5); }
.player-video { width: 100%; height: 100%; object-fit: contain; display: block; background: #05070f; }
.player::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(closest-side, rgba(0,0,0,0.28), transparent 72%); transition: opacity .3s; }
.player.playing::after { opacity: 0; }
.player-play { position: absolute; inset: 0; margin: auto; width: 76px; height: 76px; border-radius: 50%;
  border: 0; cursor: pointer; display: grid; place-items: center; color: #06121a;
  background: linear-gradient(135deg, #a99bff, #62d8f2); box-shadow: 0 12px 34px rgba(34,211,238,0.45);
  transition: transform .2s var(--ease); }
.player-play svg { width: 30px; height: 30px; margin-left: 3px; }
.player-play:hover { transform: scale(1.08); }
.player.playing .player-play { opacity: 0; pointer-events: none; transform: scale(0.6); }

/* мини-«окно» приложения для featured-блока */
.window { border: 1px solid var(--line); border-radius: 16px; background: rgba(7,11,24,0.7); backdrop-filter: blur(10px); overflow: hidden; box-shadow: 0 30px 70px rgba(0,0,0,0.5); }
.window .bar { display: flex; gap: 7px; padding: 13px 16px; border-bottom: 1px solid var(--line); }
.window .bar i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; display: inline-block; }
.window .bar i:nth-child(2){ background:#febc2e } .window .bar i:nth-child(3){ background:#28c840 }
.window .body { padding: 16px; display: grid; gap: 10px; }
.window .row { display: flex; align-items: center; gap: 10px; }
.window .av { width: 30px; height: 30px; border-radius: 9px; background: linear-gradient(135deg,var(--a1),var(--a4)); flex: none; }
.window .ln { height: 9px; border-radius: 6px; background: rgba(255,255,255,0.1); flex: 1; }
.window .ln.s { max-width: 60%; } .window .ln.m { max-width: 80%; }
.window .net { display: flex; gap: 8px; margin-top: 4px; flex-wrap: wrap; }
.window .net b { font-size: 11px; font-weight: 700; padding: 5px 9px; border-radius: 8px; background: var(--card-hi); border: 1px solid var(--line); color: var(--muted); }
.window .net b.on { color: #06121a; background: var(--a3); border-color: transparent; }

/* ── Боты ────────────────────────────────────────────────────────────────── */
.bot {
  display: flex; gap: 16px; align-items: flex-start; padding: 20px;
  border: 1px solid var(--line); border-radius: 16px; background: var(--card);
  transition: transform .25s var(--ease), border-color .25s, background .25s;
}
.bot:hover { transform: translateY(-4px); border-color: rgba(255,255,255,0.2); background: var(--card-hi); }
.bot .emoji { font-size: 26px; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(110,231,168,0.18), rgba(34,211,238,0.14)); border: 1px solid var(--line); flex: none; }
.bot .meta { min-width: 0; }
.bot h4 { margin: 2px 0 4px; font-size: 16px; }
.bot .handle { color: #7cf0ff; font-size: 13px; font-weight: 650; font-family: ui-monospace, Consolas, monospace; }
.bot p { margin: 7px 0 0; color: var(--muted); font-size: 14px; }
.bot .go { margin-left: auto; align-self: center; color: var(--muted-2); transition: transform .25s, color .25s; }
.bot:hover .go { transform: translate(3px,-3px); color: var(--a2); }

/* ── Шаги ────────────────────────────────────────────────────────────────── */
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; }
.step { border: 1px solid var(--line); border-radius: 18px; background: var(--card); padding: 24px; position: relative; }
.step::before { counter-increment: s; content: "0" counter(s); font-size: 13px; font-weight: 800; letter-spacing: 0.1em;
  background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.step h4 { margin: 12px 0 8px; font-size: 18px; }
.step p { margin: 0; color: var(--muted); font-size: 14.5px; }

/* ── Форматы работы ──────────────────────────────────────────────────────── */
.price { border: 1px solid var(--line); border-radius: 20px; background: var(--card); padding: 28px; display: flex; flex-direction: column; transition: transform .3s var(--ease), border-color .3s; }
.price:hover { transform: translateY(-5px); border-color: rgba(255,255,255,0.18); }
.price.featured { background: linear-gradient(135deg, rgba(124,92,255,0.14), rgba(34,211,238,0.08)); border-color: rgba(124,92,255,0.45); }
.price .tag { font-size: 13px; font-weight: 700; color: var(--a3); letter-spacing: 0.06em; text-transform: uppercase; }
.price h3 { margin: 12px 0 6px; font-size: 22px; }
.price .amount { font-size: 26px; font-weight: 820; letter-spacing: -0.01em; margin: 4px 0 0; line-height: 1.2;
  background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.price .amount span { font-size: 14px; font-weight: 600; -webkit-text-fill-color: var(--muted); color: var(--muted); }
.price .amount.sub { font-size: 18px; margin-top: 2px; }
.price .desc { color: var(--muted); font-size: 14.5px; margin: 14px 0 18px; flex: 1; }
.price ul { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 9px; }
.price li { font-size: 14px; color: var(--muted); display: flex; gap: 9px; }
.price li::before { content: "→"; color: var(--a2); }

/* ── CTA / Контакты ──────────────────────────────────────────────────────── */
.cta {
  position: relative; text-align: center; border: 1px solid var(--line); border-radius: 28px; overflow: hidden;
  padding: clamp(40px, 6vw, 80px) 24px;
  background: linear-gradient(135deg, rgba(124,92,255,0.16), rgba(34,211,238,0.1));
}
.cta::before, .cta::after { content: ""; position: absolute; width: 300px; height: 300px; border-radius: 50%; filter: blur(60px); opacity: 0.5; }
.cta::before { background: var(--a1); left: -60px; bottom: -100px; }
.cta::after { background: var(--a2); right: -60px; top: -100px; }
.cta h2 { position: relative; font-size: clamp(28px, 5vw, 52px); letter-spacing: -0.02em; margin: 0 0 14px; }
.cta p { position: relative; color: var(--muted); font-size: 18px; max-width: 50ch; margin: 0 auto 30px; }
.cta .hero-cta { justify-content: center; }

/* ── Контакты (в CTA) ────────────────────────────────────────────────────── */
.contacts { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; max-width: 760px; margin: 0 auto; }
.contact-btn {
  display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center;
  padding: 20px 14px; border-radius: 16px; border: 1px solid var(--line); background: rgba(7,11,24,0.5);
  backdrop-filter: blur(8px); transition: transform .25s var(--ease), border-color .25s, background .25s;
}
.contact-btn:hover { transform: translateY(-4px); border-color: rgba(255,255,255,0.22); background: rgba(255,255,255,0.06); }
.contact-btn .ci { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center;
  background: rgba(255,255,255,0.06); border: 1px solid var(--line); }
.contact-btn .ci svg { width: 24px; height: 24px; }
/* Все иконки — в одном стиле: цветной бейдж-квадрат + белый глиф (как MAX) */
.ci.tg, .ci.vk, .ci.mail { color: #fff; border: 0; } /* border:0, а не transparent — иначе 1px полоска на цветном фоне */
.ci.tg { background: #2aabee; }
.ci.vk { background: #0077ff; }
.ci.mail { background: linear-gradient(135deg, #7c5cff, #22d3ee); }
.ci.max { background: transparent; border: 0; } /* MAX — фирменный логотип-картинка */
.ci.max img, .ci.max svg { width: 46px; height: 46px; border-radius: 13px; display: block; }
.contact-btn b { font-size: 15px; font-weight: 700; }
.contact-btn span { font-size: 12.5px; color: var(--muted); font-family: ui-monospace, Consolas, monospace; word-break: break-all; }

/* ── Footer ──────────────────────────────────────────────────────────────── */
.footer { border-top: 1px solid var(--line); padding: 40px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.footer .muted { color: var(--muted-2); font-size: 13px; }
.footer .deploy { font-family: ui-monospace, Consolas, monospace; font-size: 12px; color: var(--muted-2); }
.footer .deploy b { color: var(--muted); }

/* ── Reveal-анимация по скроллу ──────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .aurora, .scroll-ind .mouse::before { animation: none; }
}

/* ── Адаптив ─────────────────────────────────────────────────────────────── */
@media (max-width: 920px) {
  .grid.cols-3 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .feature { grid-template-columns: 1fr; }
  /* На мобильном видео идёт ПОСЛЕ текста, внутри плитки (без подъёма наверх). */
}
@media (max-width: 720px) {
  .nav-links {
    position: fixed; inset: 70px 0 auto 0; flex-direction: column; align-items: stretch; gap: 4px;
    background: rgba(6,9,18,0.96); backdrop-filter: blur(16px); border-bottom: 1px solid var(--line);
    padding: 16px 22px 24px; transform: translateY(-130%); transition: transform .35s var(--ease); z-index: 40;
  }
  body.menu-open .nav-links { transform: translateY(0); }
  .nav-links a { padding: 13px; font-size: 16px; }
  .nav-cta { margin: 8px 0 0; } .nav-cta .btn { width: 100%; justify-content: center; }
  .burger { display: block; }
  .nav-desktop-cta { display: none; }
  .grid.cols-3, .grid.cols-2, .steps { grid-template-columns: 1fr; }
  .contacts { grid-template-columns: repeat(2, 1fr); }
  .bot .go { display: none; }
}
