/* ===== Цвета и размеры ===== */
:root {
  --bg: #0a0a12;
  --bg-2: #12121d;
  --line: rgba(255, 255, 255, .08);
  --text: #f2f2f7;
  --muted: #a3a3b8;
  --violet: #7c5cff;
  --mint: #22e3c4;
  --grad: linear-gradient(100deg, var(--violet), var(--mint));
  --radius: 20px;
  --pad: clamp(20px, 5vw, 32px);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 { line-height: 1.15; margin: 0; letter-spacing: -.02em; }
h1 { font-size: clamp(40px, 11vw, 76px); font-weight: 800; }
h2 { font-size: clamp(28px, 7.5vw, 44px); font-weight: 750; margin-bottom: 28px; }
h3 { font-size: 19px; font-weight: 700; margin-bottom: 6px; }
p  { margin: 0; }

a { color: inherit; }

.wrap { width: 100%; max-width: 1040px; margin: 0 auto; padding: 0 var(--pad); }

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

/* ===== Кнопки ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 28px;
  border-radius: 999px;
  background: var(--grad);
  color: #0a0a12;
  font-weight: 700;
  font-size: 17px;
  text-decoration: none;
  box-shadow: 0 10px 30px -10px rgba(124, 92, 255, .7);
  transition: transform .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -12px rgba(34, 227, 196, .7); }
.btn:active { transform: translateY(0) scale(.98); }
.btn:focus-visible, a:focus-visible { outline: 3px solid var(--mint); outline-offset: 3px; }

.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
  box-shadow: none;
}
.btn--ghost:hover { border-color: rgba(255, 255, 255, .25); box-shadow: none; }

.btn--small { min-height: 46px; padding: 0 22px; font-size: 16px; }

/* ===== Первый экран ===== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 96px 0 72px;
  overflow: hidden;
  isolation: isolate;
}

.hero__glow {
  position: absolute;
  inset: -20% -40% auto;
  height: 90%;
  z-index: -2;
  background:
    radial-gradient(40% 40% at 30% 40%, rgba(124, 92, 255, .45), transparent 70%),
    radial-gradient(35% 35% at 75% 30%, rgba(34, 227, 196, .30), transparent 70%);
  filter: blur(20px);
  animation: drift 14s ease-in-out infinite alternate;
}

@keyframes drift {
  to { transform: translate3d(6%, 8%, 0) scale(1.1); }
}

.hero__chart {
  position: absolute;
  left: 0; right: 0; bottom: 10%;
  width: 100%;
  height: 34%;
  z-index: -1;
  opacity: .55;
}
.hero__chart path {
  stroke-dasharray: 700;
  stroke-dashoffset: 700;
  animation: draw 2.6s .3s ease-out forwards;
}
@keyframes draw { to { stroke-dashoffset: 0; } }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  margin-bottom: 24px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .03);
  color: var(--muted);
  font-size: 14px;
}
.dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 0 rgba(34, 227, 196, .6);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  70%  { box-shadow: 0 0 0 10px rgba(34, 227, 196, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 227, 196, 0); }
}

.lead {
  max-width: 34ch;
  margin-top: 20px;
  color: var(--muted);
  font-size: clamp(18px, 4.6vw, 21px);
}

.hero__actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 36px;
}

/* ===== Секции ===== */
.section { padding: 72px 0; }

/* Карточки «С чем помогу» */
.cards { display: grid; gap: 14px; }

.card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-2);
}
.card p, .step p, .bot p { color: var(--muted); font-size: 16px; }
.card__icon { font-size: 28px; margin-bottom: 14px; }

/* Три шага */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }

.step {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 22px 24px;
  border-radius: var(--radius);
  background: var(--bg-2);
  border: 1px solid var(--line);
}
.step__num {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 14px;
  background: var(--grad);
  color: #0a0a12;
  font-weight: 800;
  font-size: 20px;
}

/* Боты */
.bots { display: grid; gap: 14px; }

.bot {
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--bg-2);
}
.bot__body { padding: 24px; }
.bot__body .btn { margin-top: 20px; }

.bot__art {
  position: relative;
  height: 180px;
  background: #15102b;
  overflow: hidden;
}
.bot__art span {
  position: absolute;
  border-radius: 50%;
  filter: blur(28px);
  animation: float 9s ease-in-out infinite alternate;
}
.bot__art span:nth-child(1) { width: 60%; height: 120%; left: -10%; top: -20%; background: #7c5cff; }
.bot__art span:nth-child(2) { width: 50%; height: 100%; right: -5%; top: 10%; background: #22e3c4; animation-duration: 11s; }
.bot__art span:nth-child(3) { width: 35%; height: 70%; left: 35%; top: 40%; background: #ff5ca8; animation-duration: 7s; }
@keyframes float { to { transform: translate3d(15%, -12%, 0) scale(1.15); } }

.bot--soon { border-style: dashed; background: transparent; }

/* Повтор кнопки */
.cta__inner {
  text-align: center;
  padding-top: 56px;
  padding-bottom: 56px;
  border-radius: 28px;
  background:
    radial-gradient(80% 120% at 50% 0%, rgba(124, 92, 255, .28), transparent 70%),
    var(--bg-2);
  border: 1px solid var(--line);
}
.cta h2 { margin-bottom: 10px; }
.cta p { color: var(--muted); margin-bottom: 28px; }

/* ===== Подвал ===== */
.footer {
  padding: 48px 0 calc(40px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 15px;
}
.footer__brand { color: var(--text); font-weight: 800; font-size: 20px; margin-bottom: 16px; }
.footer__links { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.footer__links a {
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  text-decoration: none;
  color: var(--text);
  transition: border-color .2s;
}
.footer__links a:hover { border-color: var(--mint); }
.footer__note { font-size: 13px; line-height: 1.5; max-width: 60ch; margin-bottom: 14px; }
.footer__copy { font-size: 13px; }

/* ===== Появление при прокрутке ===== */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ===== Планшет и компьютер ===== */
@media (min-width: 640px) {
  .hero__actions { flex-direction: row; }
  .cards { grid-template-columns: 1fr 1fr; }
  .bots  { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 960px) {
  .section { padding: 110px 0; }
  .cards { grid-template-columns: repeat(4, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .step { flex-direction: column; }
  .bots { grid-template-columns: 2fr 1fr; }
  .hero__chart { height: 45%; }
}

/* Для тех, у кого в телефоне выключены анимации */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .hero__chart path { stroke-dashoffset: 0; }
  .js .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
