/* ============================================================
   MAIA landing — design tokens taken from maia.work
   font: Golos Text · blue #2A63EF · ink #192C3D · body #4F4A77
   ============================================================ */

:root {
  --blue: #2a63ef;
  --blue-hover: #4a7af1;
  --blue-deep: #1f4fc4;
  --ink: #192c3d;
  --body: #4f4a77;
  --bg-soft: #f0f5fe;
  --bg-softer: #f4f7ff;
  --white: #ffffff;
  --line: #dfe8fb;
  --green: #1fa971;
  --radius-s: 10px;
  --radius-m: 20px;
  --radius-l: 24px;
  --radius-pill: 30px;
  --shadow: 0 18px 50px rgba(42, 99, 239, 0.12);
  --shadow-soft: 0 8px 28px rgba(25, 44, 61, 0.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "Golos Text", Arial, sans-serif;
  color: var(--body);
  background: var(--white);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--blue); text-decoration: none; }

h1, h2, h3 { color: var(--ink); font-weight: 800; line-height: 1.15; }

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

.accent { color: var(--blue); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 28px;
  border: 0;
  border-radius: var(--radius-s);
  font-family: inherit;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.15s, box-shadow 0.2s;
  white-space: nowrap;
}

.btn--primary {
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 10px 24px rgba(42, 99, 239, 0.28);
}
.btn--primary:hover { background: var(--blue-hover); transform: translateY(-1px); }
.btn--primary:active { transform: translateY(0); }

.btn--ghost {
  background: var(--white);
  color: var(--blue);
  box-shadow: inset 0 0 0 2px var(--line);
}
.btn--ghost:hover { box-shadow: inset 0 0 0 2px var(--blue); }

.btn--sm { padding: 11px 20px; font-size: 15px; }
.btn--block { width: 100%; }

/* ---------- Badge / chips ---------- */
.badge {
  display: inline-block;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  background: var(--bg-soft);
  color: var(--blue);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.25s;
}
.header.scrolled { box-shadow: 0 6px 24px rgba(25, 44, 61, 0.08); }

.header__inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 72px;
}

.header__logo img { height: 26px; width: auto; }

.header__nav {
  display: flex;
  gap: 26px;
  margin-left: 12px;
}

.header__nav a {
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
  transition: color 0.2s;
}
.header__nav a:hover { color: var(--blue); }

.header__actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 14px;
}

.lang-switch {
  display: flex;
  background: var(--bg-soft);
  border-radius: var(--radius-pill);
  padding: 3px;
}

.lang-btn {
  border: 0;
  background: transparent;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  color: var(--body);
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.lang-btn.active { background: var(--blue); color: var(--white); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 88px 0 96px;
}

.hero__decor {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}
.hero__decor--1 {
  width: 560px; height: 560px;
  background: rgba(42, 99, 239, 0.10);
  top: -180px; right: -120px;
}
.hero__decor--2 {
  width: 420px; height: 420px;
  background: rgba(227, 242, 251, 0.9);
  bottom: -160px; left: -100px;
}

.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.hero__title {
  font-size: 52px;
  margin: 22px 0 18px;
  letter-spacing: -0.01em;
}

.hero__sub {
  font-size: 19px;
  max-width: 540px;
  margin-bottom: 32px;
}

.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; }

.hero__chips {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  list-style: none;
  margin-top: 30px;
}

.hero__chips li {
  padding: 9px 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
}
.hero__chips li::before {
  content: "";
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--blue);
  margin-right: 9px;
  vertical-align: 1px;
}

/* Call mockup */
.hero__visual { position: relative; }

.call-card {
  background: var(--white);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  padding: 22px;
  max-width: 460px;
  margin-left: auto;
}

.call-card__top {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--bg-soft);
}

.call-card__avatar {
  width: 46px; height: 46px;
  border-radius: 14px;
  background: var(--blue);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.call-card__avatar svg { width: 22px; height: 22px; }

.call-card__meta { display: flex; flex-direction: column; gap: 2px; }
.call-card__meta strong { color: var(--ink); font-size: 15px; }
.call-card__meta span { font-size: 13px; color: var(--body); }

.waveform {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 4px;
  height: 26px;
}
.waveform span {
  width: 4px;
  height: 100%;
  border-radius: 4px;
  background: var(--blue);
  animation: wave 1.1s ease-in-out infinite;
  transform-origin: center;
}
.waveform span:nth-child(1) { animation-delay: 0s; }
.waveform span:nth-child(2) { animation-delay: 0.15s; }
.waveform span:nth-child(3) { animation-delay: 0.3s; }
.waveform span:nth-child(4) { animation-delay: 0.45s; }
.waveform span:nth-child(5) { animation-delay: 0.6s; }

@keyframes wave {
  0%, 100% { transform: scaleY(0.35); }
  50% { transform: scaleY(1); }
}

.call-card__chat {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px 0 16px;
}

.bubble {
  max-width: 85%;
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 14.5px;
  line-height: 1.45;
  opacity: 0;
  transform: translateY(8px);
  animation: bubble-in 0.5s ease forwards;
}
.bubble--agent {
  background: var(--bg-soft);
  color: var(--ink);
  border-bottom-left-radius: 6px;
  align-self: flex-start;
  animation-delay: 0.3s;
}
.bubble--client {
  background: var(--blue);
  color: var(--white);
  border-bottom-right-radius: 6px;
  align-self: flex-end;
  animation-delay: 1.1s;
}
.bubble--agent:last-of-type { animation-delay: 1.9s; }

@keyframes bubble-in {
  to { opacity: 1; transform: translateY(0); }
}

.call-card__status {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 14px;
  background: rgba(31, 169, 113, 0.09);
  border-radius: var(--radius-s);
  color: var(--green);
  font-size: 13px;
  font-weight: 600;
  opacity: 0;
  animation: bubble-in 0.5s ease 2.7s forwards;
}
.call-card__status svg { width: 16px; height: 16px; flex-shrink: 0; }

.float-chip {
  position: absolute;
  padding: 10px 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-soft);
  font-weight: 800;
  font-size: 14px;
  color: var(--blue);
  animation: float 4.5s ease-in-out infinite;
}
.float-chip--sip { top: -16px; left: 8%; animation-delay: 0s; }
.float-chip--api { bottom: 30%; left: -14px; animation-delay: 1.4s; }
.float-chip--mcp { bottom: -14px; right: 10%; animation-delay: 2.8s; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section--soft { background: var(--bg-soft); }
.section--last { padding-bottom: 110px; }

.section__head {
  max-width: 640px;
  margin-bottom: 52px;
}
.section__head h2 { font-size: 38px; margin-bottom: 14px; letter-spacing: -0.01em; }
.section__head p { font-size: 18px; }

/* ---------- Feature cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.card {
  background: var(--bg-softer);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  padding: 32px;
  transition: transform 0.25s, box-shadow 0.25s;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.card__icon {
  width: 56px; height: 56px;
  border-radius: 16px;
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.card__icon svg { width: 26px; height: 26px; }

.card h3 { font-size: 21px; margin-bottom: 10px; font-weight: 700; }
.card p { font-size: 15.5px; }

.card__pills {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}
.card__pills li {
  padding: 7px 14px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 600;
  color: var(--blue);
}

/* Use cases: компактные карточки в 3 колонки, на мягком фоне — белые */
.cards--3 { grid-template-columns: repeat(3, 1fr); }

.section--soft .card { background: var(--white); }

.card--sm { padding: 26px; border-radius: var(--radius-m); }
.card--sm .card__icon {
  width: 48px; height: 48px;
  border-radius: 14px;
  background: var(--bg-soft);
  border: 0;
  margin-bottom: 16px;
}
.card--sm .card__icon svg { width: 22px; height: 22px; }
.card--sm h3 { font-size: 18px; }
.card--sm p { font-size: 14.5px; }

/* ---------- Developers ---------- */
.dev {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 56px;
  align-items: center;
}

.dev__info h2 { font-size: 38px; margin: 20px 0 14px; }
.dev__sub { font-size: 18px; margin-bottom: 32px; }

.dev__list { list-style: none; display: flex; flex-direction: column; gap: 24px; }
.dev__list li { display: flex; gap: 16px; }

.dev__list-icon {
  width: 46px; height: 46px;
  flex-shrink: 0;
  border-radius: 13px;
  background: var(--bg-softer);
  border: 1px solid var(--line);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
}
.dev__list-icon svg { width: 21px; height: 21px; }

.dev__list h3 { font-size: 17px; margin-bottom: 4px; font-weight: 700; }
.dev__list p { font-size: 15px; }

/* Code window */
.code-window {
  background: var(--ink);
  border-radius: var(--radius-m);
  box-shadow: 0 24px 60px rgba(25, 44, 61, 0.35);
  overflow: hidden;
}

.code-window__bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 14px 18px 0;
  flex-wrap: wrap;
}

.code-window__bar .dot {
  width: 11px; height: 11px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
}

.code-tabs {
  display: flex;
  gap: 4px;
  margin-left: 12px;
  flex-wrap: wrap;
}

.tab-btn {
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.55);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 9px 14px;
  border-radius: 9px 9px 0 0;
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
}
.tab-btn:hover { color: var(--white); }
.tab-btn.active { color: var(--white); background: rgba(255, 255, 255, 0.08); }

.tab-pane {
  display: none;
  margin: 0;
  padding: 22px 24px 26px;
  overflow-x: auto;
  font-family: "SF Mono", ui-monospace, "JetBrains Mono", Menlo, Consolas, monospace;
  font-size: 13.5px;
  line-height: 1.65;
  color: #dce7ff;
  min-height: 320px;
}
.tab-pane.active { display: block; }

.tab-pane .c { color: #7e93b8; }
.tab-pane .s { color: #8fd0a5; }
.tab-pane .k { color: #9db8ff; }
.tab-pane .n { color: #f4bf75; }

/* ---------- Comparison table ---------- */
.compare-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-soft);
  background: var(--white);
}

.compare {
  width: 100%;
  min-width: 680px;
  border-collapse: separate;
  border-spacing: 0;
}

.compare th, .compare td {
  padding: 16px 22px;
  text-align: left;
  font-size: 15px;
}

.compare thead th {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--body);
  background: var(--bg-softer);
  border-bottom: 1px solid var(--line);
}

.compare tbody td { border-bottom: 1px solid var(--bg-soft); color: var(--body); }
.compare tbody tr:last-child td { border-bottom: 0; }
.compare tbody td:first-child { font-weight: 600; color: var(--ink); }

.compare th.compare__maia { color: var(--blue); background: rgba(42, 99, 239, 0.07); }
.compare td.compare__maia {
  background: rgba(42, 99, 239, 0.05);
  font-weight: 600;
  color: var(--ink);
}
.compare td.compare__maia::before {
  content: "✓";
  color: var(--blue);
  font-weight: 800;
  margin-right: 9px;
}

/* ---------- FAQ ---------- */
.faq {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq__item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.faq__item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  font-weight: 700;
  font-size: 17px;
  color: var(--ink);
  transition: color 0.2s;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { color: var(--blue); }

.faq__item summary svg {
  width: 20px; height: 20px;
  color: var(--blue);
  flex-shrink: 0;
  transition: transform 0.25s;
}
.faq__item[open] summary svg { transform: rotate(180deg); }

.faq__item > p { padding: 0 24px 20px; font-size: 15px; }

/* ---------- Steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.step {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  padding: 32px;
}

.step__num {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  font-size: 19px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  box-shadow: 0 8px 20px rgba(42, 99, 239, 0.3);
}

.step h3 { font-size: 19px; margin-bottom: 9px; font-weight: 700; }
.step p { font-size: 15px; }

/* ---------- Contact ---------- */
.contact {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 0;
  background: var(--blue);
  border-radius: var(--radius-l);
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(42, 99, 239, 0.35);
}

.contact__info {
  padding: 52px 48px;
  color: var(--white);
  background:
    radial-gradient(circle at 85% 10%, rgba(255, 255, 255, 0.14), transparent 45%),
    radial-gradient(circle at 10% 95%, rgba(255, 255, 255, 0.10), transparent 40%);
}

.contact__info h2 { color: var(--white); font-size: 36px; margin-bottom: 14px; }
.contact__info > p { font-size: 17px; opacity: 0.92; margin-bottom: 28px; }

.contact__bullets { list-style: none; display: flex; flex-direction: column; gap: 12px; margin-bottom: 36px; }
.contact__bullets li {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 15.5px;
  font-weight: 500;
}
.contact__bullets li::before {
  content: "✓";
  width: 22px; height: 22px;
  flex-shrink: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact__direct { display: flex; flex-direction: column; gap: 6px; }
.contact__direct a {
  color: var(--white);
  font-size: 16px;
  font-weight: 600;
  opacity: 0.95;
}
.contact__direct a:hover { text-decoration: underline; }

.contact__form-wrap {
  background: var(--white);
  padding: 44px 44px 40px;
}

/* Телефонные ссылки показываем только в русской версии */
html[lang="en"] .ru-only { display: none; }

/* honeypot — поле-ловушка для ботов, людям не видно */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  opacity: 0;
  pointer-events: none;
}

.form__field { margin-bottom: 16px; }

.form__field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 7px;
}

.form__field input,
.form__field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-s);
  font-family: inherit;
  font-size: 15.5px;
  color: var(--ink);
  background: var(--bg-softer);
  transition: border-color 0.2s, background 0.2s;
  resize: vertical;
}
.form__field input::placeholder,
.form__field textarea::placeholder { color: #9aa3c0; }
.form__field input:focus,
.form__field textarea:focus {
  outline: none;
  border-color: var(--blue);
  background: var(--white);
}
.form__field input.invalid { border-color: #e05656; }

.form .btn--block { margin-top: 6px; }
.form .btn--block.loading { opacity: 0.7; pointer-events: none; }

.form__consent {
  margin-top: 14px;
  font-size: 12.5px;
  color: #8b93ad;
  text-align: center;
}
.form__consent a { color: #8b93ad; text-decoration: underline; }
.form__consent a:hover { color: var(--blue); }

.form__error {
  margin-top: 12px;
  font-size: 14px;
  color: #e05656;
  text-align: center;
}

.form__success { text-align: center; padding: 60px 10px; }
.form__success-icon {
  width: 72px; height: 72px;
  margin: 0 auto 22px;
  border-radius: 50%;
  background: rgba(31, 169, 113, 0.12);
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
}
.form__success-icon svg { width: 32px; height: 32px; }
.form__success h3 { font-size: 24px; margin-bottom: 8px; }
.form__success p { font-size: 16px; }

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--line);
  padding: 36px 0;
}

.footer__inner {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

.footer__brand img { height: 22px; width: auto; margin-bottom: 8px; }
.footer__brand p { font-size: 13.5px; }

.footer__contacts {
  margin-left: auto;
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}
.footer__contacts a { font-size: 14.5px; font-weight: 600; }

.footer__copy { width: 100%; font-size: 13px; color: #8b93ad; }
.footer__copy a { color: #8b93ad; text-decoration: underline; }
.footer__copy a:hover { color: var(--blue); }

/* ---------- Reveal on scroll ----------
   JS «взводит» (.pre) только элементы ниже вьюпорта,
   поэтому без JS и при загрузке с прокруткой всё видно сразу. */
.reveal { transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.pre { opacity: 0; transform: translateY(26px); }
.reveal.pre.in { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .reveal.pre { opacity: 1; transform: none; transition: none; }
  .waveform span, .float-chip { animation: none; }
  .bubble, .call-card__status { opacity: 1; transform: none; animation: none; }
}

/* Debug/test hook: ?noanim в URL отключает все анимации появления */
html.noanim { scroll-behavior: auto; }
html.noanim .reveal, html.noanim .reveal.pre { opacity: 1; transform: none; transition: none; }
html.noanim .bubble, html.noanim .call-card__status { opacity: 1; transform: none; animation: none; }
html.noanim .waveform span, html.noanim .float-chip { animation: none; }
html.noanim .hero__decor { display: none; }
html.noanim .header { backdrop-filter: none; -webkit-backdrop-filter: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .hero__inner { grid-template-columns: 1fr; gap: 60px; }
  .hero__title { font-size: 42px; }
  .call-card { margin: 0 auto; }
  .dev { grid-template-columns: 1fr; gap: 44px; }
  .contact { grid-template-columns: 1fr; }
  .header__nav { display: none; }
  .cards--3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .hero { padding: 56px 0 72px; }
  .hero__title { font-size: 33px; }
  .hero__sub { font-size: 17px; }
  .section { padding: 64px 0; }
  .section__head h2, .dev__info h2 { font-size: 29px; }
  .cards, .cards--3 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .compare th, .compare td { padding: 12px 14px; font-size: 14px; }
  .faq__item summary { padding: 16px 18px; font-size: 16px; }
  .faq__item > p { padding: 0 18px 16px; }
  .contact__info, .contact__form-wrap { padding: 34px 24px; }
  .contact__info h2 { font-size: 28px; }
  .header__inner { gap: 12px; }
  .btn--sm { padding: 10px 14px; font-size: 14px; }
  .float-chip--api { left: -4px; }
  .tab-pane { min-height: 0; }
}
