/* =========================================================
   НЕЙРОХАМ — landing styles
   Палитра: фиолетовый (лицо робота) + бирюза/синий (фон логотипа)
   Тёмная премиум-тема, стекло, неоновые свечения
   ========================================================= */

:root {
  /* base */
  --bg:            #0a0a12;
  --bg-2:          #0e0e1b;
  --surface:       rgba(255, 255, 255, 0.035);
  --surface-2:     rgba(255, 255, 255, 0.06);
  --border:        rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);

  /* text */
  --text:    #eef0fb;
  --muted:   #a6a8c2;
  --faint:   #71748f;

  /* accents */
  --violet:   #b026ff;
  --violet-2: #d24bff;
  --teal:     #2fe3c7;
  --blue:     #4d7cff;

  /* MAX brand: синий → фиолетовый */
  --max-1: #2b82ff;
  --max-2: #8b4bff;
  --max-grad: linear-gradient(135deg, #2b82ff 0%, #6a5bff 48%, #9a47ff 100%);

  --brand-grad: linear-gradient(120deg, var(--teal) 0%, var(--blue) 45%, var(--violet-2) 100%);

  /* layout */
  --maxw: 1160px;
  --radius: 18px;
  --radius-lg: 26px;
  --ease: cubic-bezier(.22, 1, .36, 1);

  --shadow: 0 30px 70px -30px rgba(0, 0, 0, .8);
  --glow-violet: 0 0 60px -8px rgba(176, 38, 255, .55);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }

body {
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 17px;
  letter-spacing: -0.01em;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

::selection { background: var(--violet); color: #fff; }

/* ---------- layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 24px;
}
.container--narrow { max-width: 820px; }

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

/* =========================================================
   BACKGROUND AMBIENCE
   ========================================================= */
.bg-ambience {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background:
    radial-gradient(1200px 700px at 80% -10%, rgba(77, 124, 255, .10), transparent 60%),
    radial-gradient(900px 600px at 10% 10%, rgba(176, 38, 255, .10), transparent 55%),
    var(--bg);
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .5;
  animation: drift 22s var(--ease) infinite alternate;
}
.blob--violet { width: 540px; height: 540px; background: #7a17d4; top: -120px; left: -100px; }
.blob--teal   { width: 460px; height: 460px; background: #0f9c8c; bottom: -160px; left: 35%; animation-delay: -7s; }
.blob--blue   { width: 520px; height: 520px; background: #2a4fd6; top: 20%; right: -160px; animation-delay: -13s; }

@keyframes drift {
  0%   { transform: translate3d(0,0,0) scale(1); }
  100% { transform: translate3d(40px, 60px, 0) scale(1.12); }
}

.grain {
  position: absolute;
  inset: 0;
  opacity: .04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* =========================================================
   HEADER / NAV
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  transition: background .3s var(--ease), border-color .3s var(--ease), backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.site-header.is-stuck {
  background: rgba(10, 10, 18, .72);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom-color: var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 76px;
}

.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand__mark {
  width: 40px; height: 40px;
  border-radius: 11px;
  box-shadow: 0 0 0 1px var(--border-strong), 0 6px 20px -6px rgba(176,38,255,.6);
}
.brand__name {
  font-family: "Unbounded", sans-serif;
  font-weight: 800;
  font-size: 21px;
  letter-spacing: -0.02em;
}
.brand__accent {
  background: var(--brand-grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.nav__links { display: flex; gap: 30px; }
.nav__links a {
  color: var(--muted);
  font-weight: 600;
  font-size: 15.5px;
  position: relative;
  transition: color .2s;
}
.nav__links a::after {
  content: "";
  position: absolute; left: 0; bottom: -6px;
  width: 0; height: 2px; border-radius: 2px;
  background: var(--brand-grad);
  transition: width .25s var(--ease);
}
.nav__links a:hover { color: var(--text); }
.nav__links a:hover::after { width: 100%; }

.nav__actions { display: flex; align-items: center; gap: 14px; }

/* burger */
.nav__burger { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--border); flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.nav__burger span { width: 20px; height: 2px; background: var(--text); border-radius: 2px; transition: .25s var(--ease); }
.nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =========================================================
   BUTTONS
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-weight: 700;
  font-size: 15px;
  padding: 12px 20px;
  border-radius: 13px;
  transition: transform .18s var(--ease), box-shadow .25s var(--ease), background .25s;
  white-space: nowrap;
  will-change: transform;
}
.btn:active { transform: translateY(1px) scale(.99); }

.btn--lg { padding: 16px 28px; font-size: 16.5px; border-radius: 15px; }

/* MAX button — фирменный сине-фиолетовый градиент */
.btn--max {
  position: relative;
  color: #fff;
  background: var(--max-grad);
  box-shadow: 0 10px 26px -10px rgba(106, 91, 255, .75), inset 0 1px 0 rgba(255,255,255,.22);
}
.btn--max::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255,255,255,.28), transparent 45%);
  opacity: 0; transition: opacity .25s;
}
.btn--max:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px -10px rgba(106, 91, 255, .9), inset 0 1px 0 rgba(255,255,255,.3);
}
.btn--max:hover::before { opacity: 1; }
.btn--max b { font-weight: 800; letter-spacing: .04em; }

.max-glyph { display: inline-flex; color: #fff; filter: drop-shadow(0 1px 1px rgba(0,0,0,.25)); }
.max-glyph--xl { color: #fff; }

/* Ghost button */
.btn--ghost {
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  backdrop-filter: blur(6px);
}
.btn--ghost:hover { background: var(--surface); border-color: var(--violet); transform: translateY(-2px); }
.btn--ghost svg { transition: transform .25s var(--ease); }
.btn--ghost:hover svg { transform: translateX(4px); }

/* =========================================================
   HERO
   ========================================================= */
.hero { padding-top: 56px; padding-bottom: 40px; position: relative; }
.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 56px;
  align-items: center;
  min-height: clamp(520px, 68vh, 800px);
}

.badge {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 8px 15px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  font-size: 13.5px; font-weight: 600; color: var(--muted);
  backdrop-filter: blur(6px);
}
.badge__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 0 rgba(47,227,199,.7); animation: pulse 2s infinite; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(47,227,199,.55); }
  70% { box-shadow: 0 0 0 9px rgba(47,227,199,0); }
  100% { box-shadow: 0 0 0 0 rgba(47,227,199,0); }
}

.hero__title {
  font-family: "Unbounded", sans-serif;
  font-weight: 800;
  font-size: clamp(30px, 5.2vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-top: 22px;
  overflow-wrap: break-word;
}
.hero__lead {
  color: var(--muted);
  font-size: clamp(16px, 1.8vw, 19px);
  margin-top: 22px;
  max-width: 540px;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero__login { min-width: 248px; }
.hero__trust {
  display: flex; align-items: flex-start; gap: 9px;
  margin-top: 22px; font-size: 14px; color: var(--faint); max-width: 500px;
}
.hero__trust svg { color: var(--teal); flex: none; margin-top: 3px; }

/* hero visual */
.hero__visual { position: relative; display: grid; place-items: center; min-height: 420px; }
.hero__halo {
  position: absolute; width: min(380px, 86vw); height: min(380px, 86vw); border-radius: 50%;
  background: radial-gradient(circle, rgba(176,38,255,.45), transparent 62%);
  filter: blur(20px);
  animation: breathe 6s ease-in-out infinite;
}
@keyframes breathe { 0%,100%{ transform: scale(1); opacity:.8 } 50%{ transform: scale(1.08); opacity:1 } }

.robot-card {
  position: relative;
  width: min(330px, 80%);
  padding: 18px;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(255,255,255,.08), rgba(255,255,255,.02));
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow), var(--glow-violet);
  backdrop-filter: blur(12px);
  animation: float 5.5s ease-in-out infinite;
}
@keyframes float { 0%,100%{ transform: translateY(0) } 50%{ transform: translateY(-14px) } }
.robot-card__img { border-radius: 18px; }
.robot-card__status {
  margin-top: 14px; text-align: center; font-size: 13.5px; color: var(--muted);
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.robot-card__status b { color: var(--text); }
.dot-live { width: 8px; height: 8px; border-radius: 50%; background: #36e07f; box-shadow: 0 0 10px #36e07f; }

/* floating chat bubbles around robot */
.chat-float {
  position: absolute;
  max-width: 230px;
  padding: 12px 15px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.45;
  border: 1px solid var(--border-strong);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  animation: float 6s ease-in-out infinite;
}
.chat-float__who { display: block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; opacity: .6; margin-bottom: 3px; }
.chat-float--user {
  top: 4%; left: -4%;
  background: rgba(77, 124, 255, .16);
  animation-delay: -1.5s;
}
.chat-float--bot {
  bottom: 6%; right: -6%;
  background: linear-gradient(135deg, rgba(176,38,255,.22), rgba(210,75,255,.12));
  animation-delay: -3.5s;
}

/* stats */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 64px;
  padding: 26px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
}
.stat { text-align: center; }
.stat b {
  display: block;
  font-family: "Unbounded", sans-serif;
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 800;
  background: var(--brand-grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat span { font-size: 13.5px; color: var(--muted); }

/* =========================================================
   SECTIONS
   ========================================================= */
.section { padding: 96px 0; position: relative; }
.section--alt::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, transparent, rgba(255,255,255,.018), transparent);
}
.section__head { max-width: 680px; margin: 0 auto 56px; text-align: center; }
.eyebrow {
  display: inline-block;
  font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .14em;
  color: var(--violet-2);
  padding: 6px 14px; border-radius: 999px;
  background: rgba(176,38,255,.1); border: 1px solid rgba(176,38,255,.25);
  margin-bottom: 18px;
}
.section__title {
  font-family: "Unbounded", sans-serif;
  font-weight: 800;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.1; letter-spacing: -0.03em;
}
.section__sub { color: var(--muted); margin-top: 18px; font-size: clamp(15px, 1.6vw, 18px); }

/* =========================================================
   FEATURES
   ========================================================= */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.card {
  padding: 30px 26px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: transform .3s var(--ease), border-color .3s, background .3s;
  position: relative;
  overflow: hidden;
}
.card::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(420px circle at var(--mx,50%) var(--my,0%), rgba(176,38,255,.12), transparent 40%);
  opacity: 0; transition: opacity .3s;
}
.card:hover { transform: translateY(-6px); border-color: var(--border-strong); background: var(--surface-2); }
.card:hover::after { opacity: 1; }
.card__icon {
  width: 56px; height: 56px; display: grid; place-items: center;
  font-size: 28px; border-radius: 15px;
  background: linear-gradient(135deg, rgba(176,38,255,.2), rgba(77,124,255,.12));
  border: 1px solid var(--border-strong);
  margin-bottom: 18px;
}
.card h3 { font-size: 19px; font-weight: 800; letter-spacing: -0.01em; }
.card p { color: var(--muted); margin-top: 9px; font-size: 15px; }

/* =========================================================
   STEPS
   ========================================================= */
.steps {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}
.step {
  flex: 1 1 260px;
  max-width: 320px;
  padding: 32px 26px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
}
.step__num {
  font-family: "Unbounded", sans-serif;
  font-size: 40px; font-weight: 800; line-height: 1;
  background: var(--brand-grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: 16px;
}
.step h3 { font-size: 20px; font-weight: 800; }
.step p { color: var(--muted); margin-top: 10px; font-size: 15px; }
.step__arrow { display: flex; align-items: center; font-size: 28px; color: var(--faint); }

/* =========================================================
   EXAMPLES / CHAT
   ========================================================= */
.moods {
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: center;
  margin-bottom: 36px;
}
.mood {
  padding: 11px 20px;
  border-radius: 999px;
  font-weight: 700; font-size: 15px;
  color: var(--muted);
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  transition: .22s var(--ease);
}
.mood:hover { color: var(--text); transform: translateY(-2px); }
.mood.is-active {
  color: #fff;
  background: var(--max-grad);
  border-color: transparent;
  box-shadow: 0 10px 24px -10px rgba(106,91,255,.7);
}

.chat {
  max-width: 720px;
  margin-inline: auto;
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 16px;
  min-height: 320px;
}
.bubble {
  max-width: 80%;
  padding: 13px 17px;
  border-radius: 18px;
  font-size: 15.5px;
  line-height: 1.5;
  animation: bubbleIn .45s var(--ease) both;
}
@keyframes bubbleIn { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
.bubble__who { display:block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; opacity: .55; margin-bottom: 4px; }
.bubble--user {
  align-self: flex-end;
  background: rgba(77,124,255,.18);
  border: 1px solid rgba(77,124,255,.28);
  border-bottom-right-radius: 6px;
}
.bubble--bot {
  align-self: flex-start;
  background: linear-gradient(135deg, rgba(176,38,255,.2), rgba(210,75,255,.1));
  border: 1px solid rgba(176,38,255,.3);
  border-bottom-left-radius: 6px;
}

/* =========================================================
   PRICING
   ========================================================= */
.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  align-items: start;
}
.plan {
  position: relative;
  padding: 34px 28px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: transform .3s var(--ease), border-color .3s;
}
.plan:hover { transform: translateY(-6px); border-color: var(--border-strong); }
.plan--featured {
  background: linear-gradient(165deg, rgba(176,38,255,.14), rgba(77,124,255,.06));
  border-color: rgba(176,38,255,.4);
  box-shadow: 0 30px 70px -34px rgba(176,38,255,.7);
}
.plan--featured:hover { transform: translateY(-10px); }
.plan__tag {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  font-size: 12px; font-weight: 700; letter-spacing: .03em;
  padding: 6px 14px; border-radius: 999px; white-space: nowrap;
  background: var(--max-grad); color: #fff;
  box-shadow: 0 8px 20px -8px rgba(106,91,255,.8);
}
.plan__name { font-family: "Unbounded", sans-serif; font-size: 22px; font-weight: 700; }
.plan__price { margin: 14px 0 6px; }
.plan__price b { font-size: 38px; font-weight: 800; letter-spacing: -0.02em; }
.plan__price span { color: var(--muted); font-size: 15px; }
.plan__desc { color: var(--muted); font-size: 14.5px; min-height: 44px; }
.plan__list { list-style: none; padding: 0; margin: 20px 0 26px; display: flex; flex-direction: column; gap: 11px; }
.plan__list li { position: relative; padding-left: 28px; font-size: 15px; color: var(--text); }
.plan__list li::before {
  content: ""; position: absolute; left: 0; top: 4px;
  width: 17px; height: 17px; border-radius: 50%;
  background: var(--brand-grad);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E") center/13px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E") center/13px no-repeat;
}
.plan__btn { width: 100%; white-space: normal; min-width: 0; }

/* =========================================================
   FAQ
   ========================================================= */
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq__item {
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: border-color .25s, background .25s;
}
.faq__item[open] { border-color: var(--border-strong); background: var(--surface-2); }
.faq__item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 24px;
  font-weight: 700; font-size: 17px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+";
  font-size: 24px; font-weight: 400; color: var(--violet-2);
  transition: transform .3s var(--ease);
  line-height: 1;
}
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item p { padding: 0 24px 22px; color: var(--muted); font-size: 15.5px; max-width: 64ch; }

/* =========================================================
   FINAL CTA
   ========================================================= */
.cta-final { padding: 60px 0 110px; }
.cta-final__box {
  position: relative;
  text-align: center;
  padding: 70px 32px;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(176,38,255,.16), rgba(77,124,255,.08));
  border: 1px solid var(--border-strong);
  overflow: hidden;
}
.cta-final__halo {
  position: absolute; top: -40%; left: 50%; transform: translateX(-50%);
  width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(176,38,255,.4), transparent 60%);
  filter: blur(30px); z-index: 0;
}
.cta-final__box > *:not(.cta-final__halo) { position: relative; z-index: 1; }
.cta-final__robot {
  width: 100px; height: 100px; border-radius: 26px;
  margin: 0 auto 24px;
  box-shadow: 0 20px 54px -16px rgba(176, 38, 255, .9), 0 0 0 1px var(--border-strong);
  animation: float 5.5s ease-in-out infinite;
}
.cta-final__box h2 {
  font-family: "Unbounded", sans-serif;
  font-size: clamp(26px, 4vw, 42px); font-weight: 800; line-height: 1.1; letter-spacing: -0.03em;
}
.cta-final__box p { color: var(--muted); margin: 16px auto 30px; max-width: 520px; font-size: 17px; }

/* =========================================================
   FOOTER
   ========================================================= */
.footer { border-top: 1px solid var(--border); padding: 64px 0 36px; background: rgba(255,255,255,.012); }
.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 36px;
}
.footer__brand p { color: var(--muted); margin-top: 14px; font-size: 14.5px; max-width: 260px; }
.footer__col h4 { font-size: 14px; text-transform: uppercase; letter-spacing: .1em; color: var(--faint); margin-bottom: 16px; }
.footer__col a { display: block; color: var(--muted); font-size: 15px; margin-bottom: 11px; transition: color .2s; }
.footer__col a:hover { color: var(--text); }
.footer__bottom {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--border);
  color: var(--faint); font-size: 13.5px;
}
.footer__counter { color: var(--muted); }
.footer__counter b {
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

/* =========================================================
   MODAL (заглушка авторизации)
   ========================================================= */
.modal {
  position: fixed; inset: 0; z-index: 1000;
  display: grid; place-items: center;
  opacity: 0; pointer-events: none;
  transition: opacity .25s var(--ease);
}
.modal.is-open { opacity: 1; pointer-events: auto; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(5,5,12,.7); backdrop-filter: blur(8px); }
.modal__dialog {
  position: relative;
  width: min(420px, 92vw);
  padding: 40px 34px 30px;
  text-align: center;
  border-radius: var(--radius-lg);
  background: linear-gradient(165deg, #15152a, #0e0e1b);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow);
  transform: translateY(16px) scale(.97);
  transition: transform .3s var(--ease);
}
.modal.is-open .modal__dialog { transform: none; }
.modal__close {
  position: absolute; top: 16px; right: 16px;
  width: 38px; height: 38px; border-radius: 11px;
  display: grid; place-items: center; color: var(--muted);
  border: 1px solid var(--border); transition: .2s;
}
.modal__close:hover { color: var(--text); background: var(--surface-2); }
.modal__max-logo {
  width: 78px; height: 78px; margin: 0 auto 20px;
  display: grid; place-items: center; border-radius: 22px;
  background: var(--max-grad);
  box-shadow: 0 14px 34px -12px rgba(106,91,255,.8);
}
.modal__title { font-family: "Unbounded", sans-serif; font-size: 22px; font-weight: 700; }
.modal__text { color: var(--muted); margin-top: 10px; font-size: 15.5px; }
.modal__loader { display: flex; justify-content: center; gap: 8px; margin: 24px 0; }
.modal__loader span {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--violet-2);
  animation: bounce 1.2s infinite ease-in-out;
}
.modal__loader span:nth-child(2) { animation-delay: .15s; }
.modal__loader span:nth-child(3) { animation-delay: .3s; }
@keyframes bounce { 0%,80%,100%{ transform: scale(.5); opacity:.4 } 40%{ transform: scale(1); opacity:1 } }
.modal__note { font-size: 12.5px; color: var(--faint); margin-top: 8px; line-height: 1.5; }
.modal__link { color: var(--violet-2); font-weight: 700; text-decoration: underline; }
.modal__link:hover { color: var(--text); }

/* пошаговый чек-лист авторизации */
.modal__steps {
  list-style: none; padding: 0; margin: 22px 0 16px;
  text-align: left; display: flex; flex-direction: column; gap: 13px;
}
.mstep {
  display: flex; align-items: center; gap: 12px;
  font-size: 14.5px; color: var(--faint);
  transition: color .3s;
}
.mstep::before {
  content: ""; width: 22px; height: 22px; flex: none; border-radius: 50%;
  border: 2px solid var(--border-strong);
  transition: border-color .3s, background .3s;
}
.mstep.is-active { color: var(--text); }
.mstep.is-active::before {
  border-color: var(--violet-2);
  border-top-color: transparent;
  animation: spin .7s linear infinite;
}
.mstep.is-done { color: var(--text); }
.mstep.is-done::before {
  border-color: transparent;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E"),
    linear-gradient(120deg, #2fe3c7, #4d7cff 45%, #d24bff);
  background-repeat: no-repeat, no-repeat;
  background-position: center, center;
  background-size: 13px, cover;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* =========================================================
   REVEAL ANIMATION
   ========================================================= */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 980px) {
  .hero__grid { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .hero__copy { display: flex; flex-direction: column; align-items: center; }
  .hero__cta, .hero__trust { justify-content: center; }
  .hero__cta { width: 100%; max-width: 380px; }
  .hero__login { width: 100%; }
  .hero__lead, .hero__trust { margin-inline: auto; }
  .hero__visual { order: -1; min-height: 360px; }
  .features, .plans { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .step__arrow { display: none; }
}

@media (max-width: 760px) {
  .nav__links {
    position: fixed; inset: 76px 0 auto 0;
    flex-direction: column;
    gap: 4px;
    padding: 18px 24px 26px;
    background: rgba(10,10,18,.96);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border);
    transform: translateY(-130%);
    transition: transform .35s var(--ease);
  }
  .nav__links.is-open { transform: none; }
  .nav__links a { padding: 12px 0; font-size: 17px; }
  .hero__title br { display: none; }
  .nav__burger { display: flex; }
  .nav .btn--max__text { display: none; }
  .nav .btn--max { padding: 11px 13px; }

  .stats { grid-template-columns: repeat(2, 1fr); }
  .features, .plans { grid-template-columns: 1fr; }
  .section { padding: 72px 0; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
  .chat-float { display: none; }
}

@media (max-width: 420px) {
  body { font-size: 16px; }
  .container { padding-inline: 18px; }
  .stats { grid-template-columns: 1fr 1fr; padding: 18px; }
}

/* reduce motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
