:root {
  --bg: #ffffff;
  --ink: #15121f;
  --muted: #67637a;
  --line: #e7e5ef;
  --soft: #f7f6fc;
  --tint: #f1ecfe;
  --accent: #6d28d9;
  --accent-2: #7c3aed;
  --accent-ink: #5b21b6;
  --indigo: #4338ca;
  --grad: linear-gradient(135deg, #4338ca 0%, #6d28d9 52%, #7c3aed 100%);
  --shadow: 0 1px 2px rgba(21, 18, 31, 0.04), 0 10px 30px rgba(67, 56, 202, 0.08);
  --shadow-lg: 0 18px 48px rgba(67, 56, 202, 0.22);
  --radius: 18px;
  --radius-sm: 12px;
  --max: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

p,
h1,
h2,
h3 {
  margin-top: 0;
}

.site-header,
main,
.site-footer {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
}

/* ---------- Brand ---------- */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--ink);
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--grad);
  box-shadow: 0 6px 16px rgba(109, 40, 217, 0.32);
  flex: none;
}

.brand-mark .mono {
  width: 60%;
  height: 60%;
}

.brand-name {
  display: flex;
  flex-direction: row;
  align-items: baseline;
  gap: 0.28em;
  line-height: 1;
  white-space: nowrap;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.01em;
}

.brand-name b {
  color: var(--ink);
  font-weight: 800;
}

.brand-name i {
  color: var(--accent-2);
  font-style: normal;
  font-weight: 800;
}

/* ---------- Header ---------- */
.site-header {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 20px 0;
}

.site-nav {
  display: flex;
  gap: 28px;
  margin-left: auto;
  font-size: 15px;
  font-weight: 600;
  color: var(--muted);
}

.site-nav a {
  text-decoration: none;
  transition: color 0.15s;
}

.site-nav a:hover {
  color: var(--accent);
}

/* ---------- Buttons ---------- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 26px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-family: inherit;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.15s ease, background 0.15s;
}

.button-sm {
  min-height: 42px;
  padding: 0 18px;
  font-size: 15px;
}

.button-grad {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 8px 22px rgba(109, 40, 217, 0.32);
}

.button-grad:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(109, 40, 217, 0.42);
}

.button-ghost {
  background: #fff;
  color: var(--ink);
  border-color: var(--line);
}

.button-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.button-light {
  background: #fff;
  color: var(--accent-ink);
}

.button-light:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}

/* ---------- Hero ---------- */
.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 56px;
  padding: 56px 0 24px;
}

.hero-copy {
  max-width: 560px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px 7px 11px;
  border-radius: 999px;
  background: var(--tint);
  color: var(--accent-ink);
  font-size: 14px;
  font-weight: 700;
}

.pill svg {
  width: 16px;
  height: 16px;
  fill: var(--accent-2);
}

h1 {
  margin: 20px 0 18px;
  font-size: clamp(40px, 5.6vw, 66px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  font-weight: 800;
}

.lead {
  max-width: 540px;
  color: var(--muted);
  font-size: 19px;
  margin: 0;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.trust {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.trust svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Hero art (product preview) ---------- */
.hero-art {
  display: flex;
  justify-content: center;
}

.device {
  width: 100%;
  max-width: 420px;
  padding: 22px;
  border-radius: 26px;
  background: var(--grad);
  box-shadow: var(--shadow-lg);
}

.device-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.device-logo {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #fff;
  flex: none;
}

.device-logo .mono {
  width: 58%;
  height: 58%;
}

.device-title {
  display: flex;
  flex-direction: column;
  color: #fff;
  line-height: 1.15;
}

.device-title b {
  font-size: 18px;
  font-weight: 800;
}

.device-title span {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.72);
}

.gen-card {
  background: #fff;
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 14px 30px rgba(20, 12, 44, 0.22);
}

.gen-prompt {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.gen-prompt svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--accent-2);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

.gen-canvas {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 3 / 2;
  margin: 12px 0;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(135deg, #ede9fe, #f5f3ff);
}

.gen-canvas img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gen-canvas svg {
  width: 44px;
  height: 44px;
  fill: none;
  stroke: var(--accent-2);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.65;
}

.gen-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.badge-ok {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px;
  border-radius: 999px;
  background: #e9f9ef;
  color: #1f9254;
  font-size: 13px;
  font-weight: 700;
}

.badge-ok .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #25b266;
}

.gen-time {
  font-size: 13px;
  color: var(--muted);
}

/* ---------- Brand strip ---------- */
.brand-strip {
  margin: 8px 0 0;
  padding: 18px 0;
  text-align: center;
  color: var(--muted);
  font-size: 15px;
  border-bottom: 1px solid var(--line);
}

.brand-strip b {
  color: var(--ink);
  font-weight: 700;
}

/* ---------- AI disclaimer ---------- */
.ai-disclaimer {
  margin: 28px auto 0;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: 12px;
  background: var(--soft);
  color: var(--ink);
  font-size: 14px;
}

/* ---------- Sections ---------- */
.section {
  padding: 64px 0;
}

.section-heading {
  max-width: 680px;
  margin-bottom: 36px;
}

.eyebrow {
  margin-bottom: 12px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 800;
}

h3 {
  margin-bottom: 8px;
  font-size: 19px;
  line-height: 1.25;
  font-weight: 700;
}

.section-heading .lead {
  margin-top: 6px;
}

/* Двухколоночные секции на десктопе: заголовок слева, контент справа —
   аккуратнее, чем растянутая в одну колонку «мобильная» раскладка. */
.split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 28px 56px;
  align-items: start;
}

.split .section-heading {
  margin-bottom: 0;
}

/* ---------- Feature cards ---------- */
/* Карточки возможностей: на десктопе — ровные строки во всю ширину
   (4 в первой строке + 3 во второй), без рваного правого края.
   Раскладка через 12-колоночную сетку, настроена под 7 карточек. */
.cards {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
}

.card {
  grid-column: span 3;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s;
}

.cards .card:nth-child(n + 5) {
  grid-column: span 4;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: #d9d3f0;
}

.card-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 16px;
  border-radius: 13px;
  background: var(--tint);
}

.card-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

/* ---------- Lists ---------- */
.check-list {
  list-style: none;
  padding: 0;
  margin: 0 0 30px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.check-list li {
  position: relative;
  padding-left: 36px;
  font-size: 18px;
  font-weight: 600;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 24px;
  height: 24px;
  margin-top: -12px;
  border-radius: 50%;
  background: var(--tint)
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236d28d9' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='5 13 10 18 19 7'/></svg>")
    center / 16px no-repeat;
}

.bullet-list {
  margin: 0 0 26px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 16px;
  max-width: 760px;
}

.bullet-list li {
  position: relative;
  padding-left: 22px;
  color: var(--muted);
  font-size: 17px;
}

.bullet-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-2);
}

.bullet-list strong {
  color: var(--ink);
}

#for .lead,
#teams .lead {
  margin-bottom: 26px;
}

/* ---------- Demo ---------- */
.demo {
  margin-top: 4px;
}

.demo-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #14112a;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.demo-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #14112a;
  display: block;
}

.demo-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
  color: #cfc8ea;
  font-size: 16px;
}

.demo-fallback[hidden] {
  display: none;
}

.demo-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.demo-tab {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 13px;
  font-family: inherit;
  font-weight: 700;
  color: var(--muted);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.demo-tab:hover {
  color: var(--ink);
  border-color: #d2cbed;
}

.demo-tab.is-active {
  color: var(--accent-ink);
  border-color: var(--accent);
  background: var(--soft);
}

.demo-tab-name {
  font-size: 16px;
  line-height: 1.2;
}

.demo-tab-bar {
  display: block;
  width: 100%;
  height: 3px;
  background: var(--line);
  border-radius: 999px;
  overflow: hidden;
}

.demo-tab-fill {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--grad);
  border-radius: inherit;
  transform: scaleX(0);
  transform-origin: left center;
}

.demo-tab.is-active .demo-tab-fill {
  transition: transform 0.25s linear;
}

/* ---------- CTA ---------- */
.cta-wrap {
  width: min(calc(100% - 40px), var(--max));
  margin: 24px auto;
}

.cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 48px 44px;
  border-radius: 28px;
  background: var(--grad);
  color: #fff;
  box-shadow: var(--shadow-lg);
}

.cta > div {
  max-width: 640px;
}

.cta h2 {
  margin-bottom: 8px;
  color: #fff;
}

.cta p {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 17px;
}

/* ---------- Contacts ---------- */
.contacts-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 16px;
}

.contacts-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 12px;
  font-size: 19px;
}

.contacts-label {
  color: var(--muted);
}

.contacts-list a {
  font-weight: 700;
  color: var(--accent-ink);
}

/* ---------- Legal summary ---------- */
.legal-summary {
  max-width: 760px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}

.legal-summary p,
.legal-summary a {
  font-size: 14px;
  color: var(--muted);
}

.legal-summary-links {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.legal-summary-links a {
  font-weight: 600;
  color: var(--accent-ink);
}

/* ---------- Legal pages (consent/privacy/terms/ai-rules) ---------- */
.legal-page {
  max-width: 860px;
}

.legal-page h1 {
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.12;
  margin-bottom: 16px;
}

.legal-page h2 {
  font-size: clamp(20px, 2.2vw, 28px);
  line-height: 1.2;
}

.legal-page p,
.legal-page li {
  color: var(--muted);
}

.legal-card {
  padding: 28px 0;
  border-top: 1px solid var(--line);
}

.legal-list {
  padding-left: 22px;
}

.legal-list li + li {
  margin-top: 8px;
}

.legal-list-danger li {
  padding-left: 6px;
}

.legal-meta {
  margin-top: -8px;
  color: var(--muted);
  font-size: 14px;
}

.warning-card {
  border-left: 4px solid var(--accent);
  padding-left: 18px;
  background: var(--soft);
  border-top-color: transparent;
  border-radius: 12px;
  margin-top: 12px;
}

/* ---------- Footer ---------- */
.site-footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  padding: 40px 0 48px;
  margin-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 15px;
}

.footer-brand p {
  margin: 14px 0 0;
  color: var(--muted);
  max-width: 280px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: var(--muted);
}

.footer-links a {
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-copy {
  color: var(--muted);
  margin: 0;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 36px;
    padding-top: 36px;
  }

  /* На мобильном карточка-превью идёт ПОД текстом hero (а не над ним):
     сначала заголовок и кнопки, затем визуал. */
  .hero-art {
    order: 0;
    margin-top: 4px;
  }

  .device {
    max-width: 380px;
  }

  /* Планшет: split в одну колонку, карточки по 2 в ряд (7-я — во всю ширину). */
  .split {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .split .section-heading {
    margin-bottom: 28px;
  }

  .cards {
    grid-template-columns: repeat(6, 1fr);
  }

  .card,
  .cards .card:nth-child(n + 5) {
    grid-column: span 3;
  }

  .cards .card:last-child {
    grid-column: span 6;
  }
}

@media (max-width: 720px) {
  .site-nav {
    display: none;
  }

  .demo-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cta {
    flex-direction: column;
    align-items: flex-start;
    padding: 36px 28px;
  }

  .section {
    padding: 48px 0;
  }

  /* Мобильный — как сейчас: карточки в одну колонку. */
  .cards {
    grid-template-columns: 1fr;
  }

  .card,
  .cards .card:nth-child(n + 5),
  .cards .card:last-child {
    grid-column: auto;
  }
}
