/* ===== Moment — токены ===== */
:root {
  --m-bg: #0F1117;
  --m-card: #171A23;
  --m-raised: #1B1F2A;
  --m-deep: #12141B;
  --m-text: #E8EAF0;
  --m-muted: #9AA2B4;
  --m-dim: #6F7688;
  --m-line: #262B38;
  --m-line-soft: #1F2430;
  --m-accent: #6C5CE7;
  --m-accent-soft: #8B7CF6;
  --m-accent-deep: #241F3D;
  --m-accent-line: #3A2F66;
  --m-accent-text: #C7BFFB;
  --m-success: #22C55E;
  --m-error: #EF4444;
  --m-warn: #F59E0B;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--m-bg);
  color: var(--m-text);
  font-family: var(--font-sans);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}

img { max-width: 100%; display: block; border-radius: var(--radius-md); }

a { color: inherit; text-decoration: none; }

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

/* ===== Background glow ===== */
.bg-glow {
  position: fixed;
  width: 640px;
  height: 640px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.28;
  z-index: 0;
  pointer-events: none;
}
.bg-glow--top {
  top: -220px;
  right: -120px;
  background: radial-gradient(circle, var(--m-accent) 0%, transparent 70%);
}
.bg-glow--bottom {
  bottom: 10%;
  left: -220px;
  background: radial-gradient(circle, var(--m-accent-soft) 0%, transparent 70%);
  opacity: 0.18;
}

main, header, footer { position: relative; z-index: 1; }

/* ===== Eyebrow / headings ===== */
.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--m-accent-text);
  margin: 0 0 12px;
}

h1, h2, h3 {
  font-family: var(--font-sans);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--m-text);
}

h1 {
  font-size: clamp(32px, 4.4vw, 48px);
  line-height: 1.12;
  margin-bottom: 18px;
}

h2 {
  font-size: clamp(26px, 3.2vw, 36px);
  line-height: 1.2;
  max-width: 760px;
  margin-bottom: 14px;
}

h3 { font-size: 19px; line-height: 1.3; margin-bottom: 8px; }

.section__lead {
  color: var(--m-muted);
  font-size: 17px;
  max-width: 620px;
  margin: 0 0 40px;
}

p { margin: 0 0 12px; color: var(--m-muted); }

code {
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
  background: var(--m-deep);
  color: var(--m-accent-text);
  border: 1px solid var(--m-line);
  border-radius: 8px;
  padding: 2px 6px;
  font-size: 13.5px;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-align: center;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}
.btn--small { padding: 9px 16px; font-size: 14px; }
.btn--large { padding: 14px 26px; font-size: 15.5px; }

.btn--accent {
  background: var(--m-accent);
  color: #fff;
  box-shadow: 0 8px 24px -8px var(--m-accent-line);
}
.btn--accent:hover { background: var(--m-accent-soft); transform: translateY(-1px); }

.btn--ghost {
  background: transparent;
  border-color: var(--m-line);
  color: var(--m-text);
}
.btn--ghost:hover { border-color: var(--m-accent-line); color: var(--m-accent-text); }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(15, 17, 23, 0.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--m-line-soft);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 24px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 17px;
}
.logo__mark { display: inline-flex; }
.site-nav {
  display: flex;
  gap: 28px;
  font-size: 14.5px;
  color: var(--m-muted);
  flex: 1;
  justify-content: center;
}
.site-nav a:hover { color: var(--m-text); }

/* ===== Breadcrumbs ===== */
.breadcrumbs { padding: 18px 24px 0; }
.breadcrumbs ol {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 8px;
  font-size: 13px;
  color: var(--m-dim);
  flex-wrap: wrap;
}
.breadcrumbs li:not(:last-child)::after { content: '/'; margin-left: 8px; color: var(--m-dim); }
.breadcrumbs a { color: var(--m-dim); }
.breadcrumbs a:hover { color: var(--m-accent-text); }
.breadcrumbs li[aria-current] { color: var(--m-muted); }

/* ===== Hero ===== */
.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
  padding: 64px 24px 40px;
}
.hero__lead { font-size: 18px; color: var(--m-muted); max-width: 480px; }
.hero__actions { display: flex; gap: 14px; margin: 28px 0 16px; flex-wrap: wrap; }
.hero__note { font-size: 13px; color: var(--m-dim); max-width: 460px; }

.hero__visual {
  position: relative;
  background:
    linear-gradient(180deg, rgba(108,92,231,0.14), transparent 55%),
    url('images/hero-abstract.png') center / cover no-repeat;
  border-radius: var(--radius-lg);
  padding: 22px;
  border: 1px solid var(--m-line-soft);
}

/* ===== Chat mock ===== */
.chat-mock {
  background: rgba(23, 26, 35, 0.86);
  border: 1px solid var(--m-line);
  border-radius: var(--radius-md);
  backdrop-filter: blur(18px);
  overflow: hidden;
  box-shadow: 0 30px 60px -24px rgba(0,0,0,0.6);
}
.chat-mock__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--m-line);
}
.chat-mock__dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.chat-mock__dot--a { background: var(--m-error); }
.chat-mock__dot--b { background: var(--m-warn); }
.chat-mock__dot--c { background: var(--m-success); }
.chat-mock__model {
  margin-left: 10px;
  font-size: 12.5px;
  color: var(--m-dim);
  font-weight: 600;
}
.chat-mock__body { padding: 20px 18px; display: flex; flex-direction: column; gap: 16px; min-height: 260px; }
.chat-mock__msg { display: flex; gap: 10px; align-items: flex-start; }
.chat-mock__msg--user { flex-direction: row-reverse; }
.chat-mock__avatar {
  width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; flex-shrink: 0;
}
.chat-mock__avatar--user { background: var(--m-raised); color: var(--m-muted); }
.chat-mock__avatar--ai { background: var(--m-accent-deep); color: var(--m-accent-text); border: 1px solid var(--m-accent-line); }
.chat-mock__bubble {
  background: var(--m-raised);
  border: 1px solid var(--m-line);
  border-radius: 14px;
  padding: 11px 14px;
  font-size: 14px;
  color: var(--m-text);
  max-width: 300px;
}
.chat-mock__msg--user .chat-mock__bubble { background: var(--m-accent-deep); border-color: var(--m-accent-line); color: var(--m-accent-text); }
.chat-mock__bubble--ai { position: relative; }
.chat-mock__typing { display: inline-flex; gap: 3px; margin-left: 6px; vertical-align: middle; }
.chat-mock__typing i { width: 4px; height: 4px; border-radius: 50%; background: var(--m-accent-soft); display: inline-block; animation: typing 1.2s infinite ease-in-out; }
.chat-mock__typing i:nth-child(2) { animation-delay: 0.15s; }
.chat-mock__typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes typing { 0%, 80%, 100% { opacity: 0.2; } 40% { opacity: 1; } }

.chat-mock__input {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 16px 16px;
  padding: 12px 14px;
  border: 1px solid var(--m-line);
  border-radius: 12px;
  background: var(--m-deep);
}
.chat-mock__input-field { font-size: 13.5px; color: var(--m-dim); }
.chat-mock__send { color: var(--m-accent-soft); display: flex; }

/* ===== Facts ===== */
.facts { padding: 10px 24px 10px; }
.facts__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.fact-tile {
  background: var(--m-card);
  border: 1px solid var(--m-line-soft);
  border-radius: var(--radius-md);
  padding: 22px 20px;
  text-align: left;
}
.fact-tile__num {
  display: block;
  font-size: 34px;
  font-weight: 800;
  color: var(--m-accent-soft);
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}
.fact-tile__label { font-size: 13.5px; color: var(--m-muted); }

/* ===== Sections ===== */
.section { padding: 88px 0; }
.section--alt { background: var(--m-deep); border-top: 1px solid var(--m-line-soft); border-bottom: 1px solid var(--m-line-soft); }

/* ===== Task cards ===== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 20px;
}
.task-card {
  background: var(--m-card);
  border: 1px solid var(--m-line-soft);
  border-radius: var(--radius-md);
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
}
.task-card__icon {
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 14px;
  background: var(--m-accent-deep);
  color: var(--m-accent-soft);
  border: 1px solid var(--m-accent-line);
  margin-bottom: 18px;
}
.task-card p { font-size: 14.5px; }
.task-card__prompt {
  margin-top: 8px;
}
.task-card__prompt code {
  display: block;
  white-space: pre-wrap;
  padding: 10px 12px;
}
.task-card__result { font-size: 13.5px; color: var(--m-dim); margin-top: auto; padding-top: 10px; }
.task-card__result strong { color: var(--m-muted); }

/* ===== Limits ===== */
.limits {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.limit-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 22px; }
.limit-list__item { display: flex; gap: 16px; align-items: flex-start; }
.limit-list__badge {
  flex-shrink: 0;
  width: 32px; height: 32px;
  border-radius: 10px;
  background: rgba(245, 158, 11, 0.12);
  color: var(--m-warn);
  border: 1px solid rgba(245, 158, 11, 0.3);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  font-size: 15px;
}
.limit-list h3 { margin-bottom: 4px; }
.limit-list p { font-size: 14.5px; margin: 0; }
.limits__visual img {
  border: 1px solid var(--m-line-soft);
}

/* ===== Checklist ===== */
.checklist { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.checklist__item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--m-card);
  border: 1px solid var(--m-line-soft);
  border-radius: var(--radius-md);
  padding: 20px;
}
.checklist__num {
  flex-shrink: 0;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--m-accent-deep);
  color: var(--m-accent-text);
  border: 1px solid var(--m-accent-line);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 14px;
}
.checklist__item p { font-size: 14.5px; margin: 0; color: var(--m-muted); }
.checklist__item strong { color: var(--m-text); }

/* ===== How it works ===== */
.how-visual { margin: 20px 0 48px; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--m-line-soft); }
.how-visual img { border-radius: 0; }

.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 56px;
}
.steps__line {
  position: absolute;
  top: 24px;
  left: 8%;
  right: 8%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--m-accent-line), transparent);
  z-index: 0;
}
.step { position: relative; z-index: 1; background: var(--m-card); border: 1px solid var(--m-line-soft); border-radius: var(--radius-md); padding: 22px; }
.step__num {
  display: inline-block;
  font-size: 15px;
  font-weight: 800;
  color: var(--m-bg);
  background: var(--m-accent-soft);
  padding: 4px 10px;
  border-radius: 8px;
  margin-bottom: 14px;
}
.step p { font-size: 14px; margin: 0; }

.table-title { margin-bottom: 16px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--m-line-soft); border-radius: var(--radius-md); }
.compare-table { width: 100%; border-collapse: collapse; background: var(--m-card); font-size: 14px; min-width: 560px; }
.compare-table th, .compare-table td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--m-line-soft); color: var(--m-muted); }
.compare-table th { color: var(--m-accent-text); font-weight: 600; background: var(--m-raised); font-size: 13px; text-transform: uppercase; letter-spacing: 0.03em; }
.compare-table td:first-child { color: var(--m-text); font-weight: 600; }
.compare-table tr:last-child td { border-bottom: none; }
.table-note { font-size: 12.5px; color: var(--m-dim); margin-top: 14px; max-width: 600px; }

/* ===== FAQ ===== */
.faq-list { display: flex; flex-direction: column; gap: 10px; max-width: 760px; }
.faq-item {
  background: var(--m-card);
  border: 1px solid var(--m-line-soft);
  border-radius: var(--radius-md);
  padding: 4px 20px;
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 28px 18px 0;
  font-weight: 600;
  font-size: 15.5px;
  color: var(--m-text);
  position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  color: var(--m-accent-soft);
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item p { padding-bottom: 18px; margin: 0; font-size: 14.5px; }

/* ===== CTA ===== */
.cta { padding: 90px 0 100px; }
.cta__inner {
  text-align: center;
  max-width: 620px;
  background: linear-gradient(180deg, var(--m-accent-deep), var(--m-card));
  border: 1px solid var(--m-accent-line);
  border-radius: var(--radius-lg);
  padding: 56px 40px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.cta h2 { max-width: 480px; }
.cta__lead { max-width: 440px; }
.cta .btn { margin: 18px 0 14px; }

/* ===== Footer ===== */
.site-footer { border-top: 1px solid var(--m-line-soft); padding: 48px 0 32px; background: var(--m-deep); }
.footer__inner { display: flex; flex-direction: column; gap: 18px; }
.footer__brand p { font-size: 13.5px; max-width: 480px; margin-top: 8px; }
.footer__links { display: flex; gap: 20px; flex-wrap: wrap; font-size: 13.5px; }
.footer__links a { color: var(--m-muted); }
.footer__links a:hover { color: var(--m-accent-text); }
.footer__legal { font-size: 12px; color: var(--m-dim); line-height: 1.6; max-width: 820px; border-top: 1px solid var(--m-line-soft); padding-top: 18px; }
.footer__copy { font-size: 12px; color: var(--m-dim); margin: 0; }

/* ===== Responsive ===== */
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; padding-top: 40px; }
  .limits { grid-template-columns: 1fr; }
  .limits__visual { order: -1; }
  .facts__grid { grid-template-columns: repeat(2, 1fr); }
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .steps__line { display: none; }
  .checklist { grid-template-columns: 1fr; }
  .site-nav { display: none; }
}

@media (max-width: 640px) {
  .cards-grid { grid-template-columns: 1fr; }
  .facts__grid { grid-template-columns: repeat(2, 1fr); }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; }
  h1 { font-size: 30px; }
  .section { padding: 60px 0; }
  .cta__inner { padding: 40px 22px; }
  .compare-table { min-width: 480px; }
}
