/* Anatoliy AI — лендинг. Тёмная тема бренда: фиолетовый акцент, лавандовый текст. */

:root {
  --bg: #0b0a12;
  --bg-2: #100e1c;
  --surface: #151422;
  --surface-2: #1d1b2c;
  --line: rgba(201, 174, 247, 0.12);
  --line-strong: rgba(201, 174, 247, 0.22);
  --text: #f2edf7;
  --muted: #a3a0b4;
  --dim: #6f6c82;
  --lav: #d4b8fb;
  --accent: #8b6cf7;
  --accent-deep: #5a3af5;
  --accent-soft: rgba(139, 108, 247, 0.14);
  --grad: linear-gradient(135deg, #d4b8fb 0%, #a582f8 45%, #6a46f6 100%);
  --grad-btn: linear-gradient(135deg, #a582f8 0%, #7a52f6 55%, #5a3af5 100%);
  --radius: 22px;
  --radius-lg: 32px;
  --shadow: 0 24px 60px -24px rgba(90, 58, 245, 0.45);
  --font-head: "Manrope", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --container: 1180px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.12; margin: 0; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.4rem, 5.2vw, 4.1rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.75rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.container { width: min(var(--container), 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--accent); color: #fff; padding: 8px 14px; border-radius: 10px; }
.skip:focus { left: 16px; }
:focus-visible { outline: 2px solid var(--lav); outline-offset: 3px; border-radius: 8px; }

/* ---------- кнопки и мелочи ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; border: 1px solid transparent;
  font: 600 15px/1.2 var(--font-body); text-decoration: none; cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
}
.btn--lg { padding: 16px 28px; font-size: 16px; }
.btn--primary { background: var(--grad-btn); color: #fff; box-shadow: var(--shadow); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 28px 60px -20px rgba(122, 82, 246, 0.7); }
.btn--ghost { border-color: var(--line-strong); color: var(--text); background: rgba(255, 255, 255, 0.02); }
.btn--ghost:hover { border-color: var(--lav); background: var(--accent-soft); }

.eyebrow, .kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font: 600 14px/1 var(--font-body); color: var(--lav); letter-spacing: 0.01em;
}
.eyebrow { padding: 9px 14px; border-radius: 999px; background: var(--accent-soft); border: 1px solid var(--line); }
.kicker { text-transform: uppercase; letter-spacing: 0.12em; font-size: 12.5px; color: var(--accent); }
.spark { color: var(--lav); }
.link { color: var(--lav); font-weight: 600; text-decoration: none; border-bottom: 1px solid transparent; transition: border-color .2s; }
.link:hover { border-color: var(--lav); }

/* ---------- шапка ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 10, 18, 0.72);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .3s;
}
.header.is-scrolled { border-bottom-color: var(--line); }
.header__row { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font: 800 20px/1 var(--font-head); letter-spacing: -0.02em; }
.nav { display: flex; align-items: center; gap: 28px; font-size: 15px; }
.nav a:not(.btn) { color: var(--muted); text-decoration: none; transition: color .2s; }
.nav a:not(.btn):hover { color: var(--text); }
.nav__cta { padding: 10px 18px; }
.burger { display: none; width: 44px; height: 44px; border: 1px solid var(--line-strong); border-radius: 12px; background: transparent; cursor: pointer; position: relative; }
.burger span { position: absolute; left: 12px; right: 12px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .25s, top .25s; }
.burger span:first-child { top: 16px; }
.burger span:last-child { top: 25px; }
.burger[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

/* ---------- первый экран ---------- */
.hero { position: relative; padding: 72px 0 96px; overflow: hidden; }
.hero::before, .hero::after { content: ""; position: absolute; border-radius: 50%; pointer-events: none; z-index: -1; }
.hero::before { /* тёмный круг слева сверху, как на макете */
  width: 520px; height: 520px; left: -260px; top: -300px;
  background: radial-gradient(circle at 60% 60%, #1d1a33 0%, #14122a 60%, transparent 61%);
}
.hero::after { /* фиолетовая дуга справа */
  width: 900px; height: 900px; right: -520px; top: -260px;
  background: radial-gradient(circle at 30% 50%, rgba(90, 58, 245, 0.28) 0%, rgba(90, 58, 245, 0.08) 45%, transparent 62%);
}
.hero__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.hero__text { display: grid; gap: 24px; justify-items: start; }
.hero h1 span, .grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--muted); max-width: 36em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
.hero__facts { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 8px; color: var(--muted); font-size: 14.5px; }
.hero__facts li { display: inline-flex; gap: 6px; align-items: baseline; }
.hero__facts li::before { content: "✦"; color: var(--accent); font-size: 12px; }
.hero__facts b { color: var(--text); font-weight: 600; }

.hero__visual { position: relative; min-height: 440px; display: grid; place-items: center; }
.hero__glow {
  position: absolute; width: 78%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 108, 247, 0.35) 0%, rgba(90, 58, 245, 0.12) 40%, transparent 70%);
  filter: blur(10px);
}
.hero__robot {
  position: relative; width: min(100%, 540px); height: auto;
  /* мягко растворяем края кадра в фоне страницы */
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 10%, #000 92%, transparent 100%), linear-gradient(to bottom, transparent 0, #000 8%, #000 90%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent 0, #000 10%, #000 92%, transparent 100%), linear-gradient(to bottom, transparent 0, #000 8%, #000 90%, transparent 100%);
  mask-composite: intersect;
  animation: float 7s ease-in-out infinite;
}
.bubble {
  position: absolute; max-width: 270px; padding: 12px 16px; border-radius: 18px;
  background: rgba(29, 27, 44, 0.86); border: 1px solid var(--line-strong);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  font-size: 14px; line-height: 1.45; box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.7);
  animation: pop .6s cubic-bezier(.2, .9, .3, 1.3) both;
}
.bubble__who { display: block; font-size: 11.5px; font-weight: 600; color: var(--dim); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 3px; }
.bubble--1 { left: -4%; top: 6%; border-bottom-left-radius: 6px; animation-delay: .3s; }
.bubble--2 { right: -2%; top: 40%; border-bottom-right-radius: 6px; background: linear-gradient(135deg, rgba(122, 82, 246, .9), rgba(90, 58, 245, .9)); border-color: transparent; animation-delay: 1.1s; }
.bubble--me .bubble__who { color: rgba(255, 255, 255, .72); }
.bubble--3 { left: 4%; bottom: 4%; display: flex; gap: 10px; align-items: center; font-weight: 500; animation-delay: 1.9s; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: #6ee7a8; box-shadow: 0 0 0 4px rgba(110, 231, 168, .18); flex: none; }

@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(.96); } to { opacity: 1; transform: none; } }

/* ---------- секции ---------- */
.section { padding: 104px 0; position: relative; }
.section--tint { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 18%, var(--bg-2) 82%, var(--bg) 100%); }
.section__head { display: grid; gap: 14px; max-width: 760px; margin-bottom: 56px; }
.section__lead { color: var(--muted); font-size: 1.08rem; }

/* что делаем */
.services { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.service {
  position: relative; display: grid; gap: 16px; align-content: start;
  padding: 36px; border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--line);
}
.service--accent { background: linear-gradient(160deg, #221c45 0%, var(--surface) 60%); border-color: var(--line-strong); }
.service p { color: var(--muted); }
.service__icon { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--grad-btn); box-shadow: var(--shadow); }
.service__icon svg { width: 28px; height: 28px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.checks { display: grid; gap: 10px; margin-top: 6px; }
.checks li { position: relative; padding-left: 30px; color: var(--text); font-size: 15.5px; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 6px;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d4b8fb' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 12px no-repeat;
}

/* команда */
.team { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.role {
  display: grid; gap: 10px; align-content: start; padding: 28px;
  border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line);
  transition: transform .25s ease, border-color .25s ease, background .25s ease;
}
.role:hover { transform: translateY(-4px); border-color: var(--line-strong); background: var(--surface-2); }
.role img {
  width: 120px; height: 120px; object-fit: cover; margin: -6px 0 8px -10px;
  /* кадр из макета на тёмной плитке — растворяем края в карточке */
  -webkit-mask-image: radial-gradient(circle at 50% 46%, #000 58%, transparent 72%);
  mask-image: radial-gradient(circle at 50% 46%, #000 58%, transparent 72%);
}
.role p { color: var(--muted); font-size: 15.5px; }
.role--custom { border-style: dashed; border-color: var(--line-strong); }
.role--custom .link { margin-top: 4px; }

/* как работаем */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; position: relative; }
.step { position: relative; display: grid; gap: 10px; align-content: start; padding: 28px 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.step__num { font: 800 15px/1 var(--font-head); color: transparent; background: var(--grad); -webkit-background-clip: text; background-clip: text; letter-spacing: .04em; }
.step p { color: var(--muted); font-size: 15.5px; }
.step:not(:last-child)::after {
  content: ""; position: absolute; top: 38px; right: -21px; width: 22px; height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
}

/* отрасли */
.industries { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.industry { padding: 20px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); display: grid; gap: 6px; transition: border-color .2s, background .2s; }
.industry:hover { border-color: var(--line-strong); background: var(--surface-2); }
.industry h3 { font-size: 1rem; }
.industry p { color: var(--muted); font-size: 14px; line-height: 1.45; }
.industries__more { margin-top: 28px; color: var(--muted); }

/* контроль */
.control { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 64px; align-items: center; }
.control__visual img { width: 100%; max-width: 440px; border-radius: var(--radius-lg); box-shadow: 0 40px 80px -30px rgba(129, 107, 242, 0.55); }
.control__text { display: grid; gap: 16px; }
.controls { display: grid; gap: 14px; margin-top: 18px; }
.controls li { padding: 18px 20px 18px 56px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); position: relative; display: grid; gap: 4px; }
.controls li::before { content: "✦"; position: absolute; left: 20px; top: 17px; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 8px; background: var(--accent-soft); color: var(--lav); font-size: 13px; }
.controls h3 { font-size: 1.05rem; }
.controls p { color: var(--muted); font-size: 15px; }

/* цифры */
.stats { padding: 8px 0 24px; }
.stats__row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; padding: 36px; border-radius: var(--radius-lg); background: linear-gradient(135deg, #221c45, #151422 70%); border: 1px solid var(--line-strong); }
.stat { display: grid; gap: 6px; text-align: center; }
.stat b { font: 800 clamp(2rem, 4vw, 3rem)/1 var(--font-head); background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { color: var(--muted); font-size: 15px; }

/* вопросы */
.faq { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 48px; align-items: start; }
.faq .section__head { margin-bottom: 0; position: sticky; top: 104px; }
.faq__list { display: grid; gap: 12px; }
details { border-radius: 18px; background: var(--surface); border: 1px solid var(--line); transition: border-color .2s, background .2s; }
details[open] { border-color: var(--line-strong); background: var(--surface-2); }
summary { cursor: pointer; list-style: none; padding: 20px 56px 20px 22px; font: 700 1.05rem/1.35 var(--font-head); position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--lav); font: 600 18px/1 var(--font-body); transition: transform .25s; }
details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
details p { padding: 0 22px 20px; color: var(--muted); }

/* заявка */
.cta {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; padding: 56px;
  border-radius: var(--radius-lg); position: relative; overflow: hidden;
  background: radial-gradient(120% 120% at 0% 0%, #2a2160 0%, #1a1631 45%, var(--surface) 100%);
  border: 1px solid var(--line-strong);
}
.cta__text { display: grid; gap: 16px; align-content: start; position: relative; }
.cta__text p { color: var(--muted); }
.next { display: grid; gap: 12px; margin-top: 12px; counter-reset: next; }
.next li { counter-increment: next; position: relative; padding-left: 44px; color: var(--muted); font-size: 15.5px; min-height: 30px; padding-top: 3px; }
.next li::before { content: counter(next); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); border: 1px solid var(--line-strong); color: var(--lav); font: 700 14px/1 var(--font-head); }
.next b { color: var(--text); font-weight: 600; }
.form { display: grid; gap: 16px; }
.form label { display: grid; gap: 8px; font-size: 14px; font-weight: 600; color: var(--text); }
.opt { font-weight: 400; color: var(--dim); }
.form input, .form textarea {
  width: 100%; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line-strong);
  background: rgba(11, 10, 18, 0.6); color: var(--text); font: 400 16px/1.4 var(--font-body);
  transition: border-color .2s, box-shadow .2s; resize: vertical;
}
.form input::placeholder, .form textarea::placeholder { color: var(--dim); }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.form [aria-invalid="true"] { border-color: #f07895; }
.form button { justify-self: start; margin-top: 4px; }
.form button[disabled] { opacity: .6; cursor: progress; }
.form__status { min-height: 1.4em; font-size: 15px; }
.form__status.is-ok { color: #6ee7a8; }
.form__status.is-error { color: #f5a3b6; }
.form__note { font-size: 12.5px; color: var(--dim); }

/* подвал */
.footer { padding: 40px 0 48px; border-top: 1px solid var(--line); margin-top: 40px; }
.footer__row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer .brand { font-size: 17px; }
.footer__tag, .footer__copy { color: var(--dim); font-size: 14px; }

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

/* ---------- адаптив ---------- */
@media (max-width: 1080px) {
  .industries { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step::after { display: none; }
}
@media (max-width: 900px) {
  .nav {
    position: fixed; inset: 72px 0 auto 0; flex-direction: column; align-items: stretch; gap: 4px;
    padding: 16px; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .8);
    transform: translateY(-120%); visibility: hidden; transition: transform .3s ease, visibility .3s; z-index: 40;
  }
  .nav.is-open { transform: none; visibility: visible; }
  .header:has(.nav.is-open) { background: var(--bg); }
  .nav a:not(.btn) { padding: 12px 8px; font-size: 17px; }
  .nav__cta { margin-top: 8px; }
  .burger { display: block; }
  .hero { padding-top: 40px; }
  .hero__grid, .services, .control, .faq, .cta { grid-template-columns: 1fr; }
  .hero__visual { min-height: 0; margin-top: 8px; }
  .team { grid-template-columns: repeat(2, 1fr); }
  .faq .section__head { position: static; }
  .control { gap: 40px; }
  .control__visual img { margin-inline: auto; }
  .cta { padding: 36px 28px; gap: 32px; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .section { padding: 72px 0; }
  .section__head { margin-bottom: 36px; }
  .team, .steps, .industries, .stats__row { grid-template-columns: 1fr; }
  .industries { grid-template-columns: 1fr 1fr; }
  .service { padding: 26px; }
  .bubble { position: relative; inset: auto; max-width: none; margin-top: 10px; width: 100%; }
  .hero__visual { display: flex; flex-direction: column; }
  .bubble--1 { order: 2; } .bubble--2 { order: 3; align-self: flex-end; } .bubble--3 { order: 4; }
  .hero__robot { order: 1; }
  .stats__row { padding: 28px 20px; gap: 28px; }
  .btn--lg { width: 100%; }
  .hero__actions { width: 100%; }
  .form button { justify-self: stretch; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
