/* ============ Anni landing (тёмная тема) ============ */
:root {
  --teal: #2fd4b6;
  --violet: #9a6cf0;
  --grad: linear-gradient(120deg, #2fd4b6, #9a6cf0);
  --ink: #e8ecff;
  --muted: #98a0c4;
  --line: #222843;
  --bg: #0b0e1c;
  --bg-alt: #0e1226;
  --card: #131834;
  --radius: 18px;
  --shadow: 0 14px 44px rgba(0, 0, 0, .45);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; color-scheme: dark; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
::selection { background: rgba(47, 212, 182, .35); }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .92em;
  background: rgba(47, 212, 182, .13);
  color: #5eead4;
  padding: .1em .4em;
  border-radius: 6px;
  overflow-wrap: anywhere;
}
p, li { overflow-wrap: break-word; min-width: 0; }
pre {
  background: #080b17;
  color: #c8d4f5;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 18px;
  overflow-x: auto;
  min-width: 0;
  margin: 10px 0;
  font-size: .9rem;
  line-height: 1.5;
}
pre code { background: none; color: inherit; padding: 0; }

.container { max-width: 1080px; margin: 0 auto; padding: 0 22px; }
.center { text-align: center; }

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

/* ---------- иконки ---------- */
.icon {
  width: 26px; height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  color: var(--teal);
  opacity: .95;
  margin-bottom: 10px;
}
.icon-sm { width: 22px; height: 22px; color: var(--violet); margin-bottom: 4px; }

/* ---------- header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 14, 28, .82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-in {
  display: flex; align-items: center; gap: 28px;
  height: 64px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-logo { width: 30px; height: 30px; }
.brand-name { font-weight: 800; font-size: 1.25rem; letter-spacing: -.02em; }
.nav { display: flex; gap: 22px; margin-left: 8px; }
.nav a {
  color: var(--muted); font-size: .95rem; font-weight: 500;
  transition: color .15s;
}
.nav a:hover { color: var(--ink); }
.header-right {
  margin-left: auto;
  display: flex; align-items: center; gap: 14px;
}

/* ---------- status chip ---------- */
.status {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: .82rem; color: var(--muted);
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 12px;
  white-space: nowrap;
}
.status-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #565d7d;
  transition: background .3s;
}
.status.online .status-dot { background: #2fd08a; box-shadow: 0 0 0 3px rgba(47, 208, 138, .18); }
.status.offline .status-dot { background: #e05252; box-shadow: 0 0 0 3px rgba(224, 82, 82, .15); }
.status.online .status-text::after { content: "Сервер онлайн"; }
.status.offline .status-text::after { content: "Сервер недоступен"; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 600; font-size: 1rem;
  border-radius: 12px;
  padding: 13px 26px;
  transition: transform .15s, box-shadow .15s, background .15s, border-color .15s;
  cursor: pointer;
}
.btn-sm { padding: 9px 18px; font-size: .9rem; border-radius: 10px; }
.btn-primary {
  color: #06131b;
  background: var(--grad);
  box-shadow: 0 8px 26px rgba(110, 100, 238, .35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(110, 100, 238, .45); }
.btn-ghost {
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line);
}
.btn-ghost:hover { border-color: #3a4270; background: rgba(255, 255, 255, .04); }

/* ---------- hero ---------- */
.hero {
  padding: 72px 0 84px;
  background:
    radial-gradient(720px 340px at 15% 0%, rgba(47, 212, 182, .13), transparent 70%),
    radial-gradient(720px 340px at 85% 0%, rgba(154, 108, 240, .16), transparent 70%);
  text-align: center;
}
.hero-logo {
  width: 108px; height: 108px;
  margin: 0 auto 26px;
  filter: drop-shadow(0 14px 30px rgba(110, 100, 238, .4));
  animation: float 5s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.hero h1 {
  font-size: clamp(2rem, 5.2vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.12;
}
.lead {
  max-width: 640px;
  margin: 20px auto 0;
  color: var(--muted);
  font-size: 1.12rem;
}
.hero-actions {
  display: flex; gap: 14px; justify-content: center; flex-wrap: wrap;
  margin-top: 32px;
}
.hero-badges {
  display: flex; gap: 10px; justify-content: center; flex-wrap: wrap;
  margin-top: 34px;
}
.badge {
  font-size: .85rem; font-weight: 500;
  color: var(--muted);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 15px;
}

/* ---------- sections ---------- */
.section { padding: 88px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; margin-bottom: 48px; }
.section-head h2 {
  font-size: clamp(1.6rem, 3.4vw, 2.3rem);
  font-weight: 800; letter-spacing: -.02em;
}
.section-head p { color: var(--muted); margin-top: 10px; }

.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
  transition: transform .2s, border-color .2s;
}
.card:hover { transform: translateY(-4px); border-color: #323a63; }
.card h3 { font-size: 1.1rem; margin: 4px 0 8px; }
.card p { color: var(--muted); font-size: .96rem; }

/* детальные списки внутри карточек возможностей */
.card ul { list-style: none; display: grid; gap: 6px; margin-top: 10px; }
.card ul li {
  position: relative;
  padding-left: 18px;
  color: var(--muted);
  font-size: .93rem;
  line-height: 1.45;
}
.card ul li::before {
  content: "•";
  position: absolute; left: 2px; top: 0;
  color: var(--teal);
  font-weight: 800;
}

/* ---------- company block ---------- */
.company-card {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 44px;
  align-items: start;
  background: linear-gradient(135deg, rgba(47, 212, 182, .09), rgba(154, 108, 240, .11)), var(--card);
  border: 1px solid rgba(120, 110, 240, .25);
  border-radius: 26px;
  padding: 52px;
  box-shadow: var(--shadow);
}
.company-text h2 {
  font-size: clamp(1.7rem, 3.6vw, 2.5rem);
  font-weight: 800; letter-spacing: -.02em; line-height: 1.15;
}
.company-text .lead { margin: 14px 0 26px; }
.checklist { list-style: none; display: grid; gap: 14px; }
.checklist li {
  position: relative;
  padding-left: 32px;
  color: #c6cdea;
}
.checklist b { color: var(--ink); }
.checklist li::before {
  content: "✔";
  position: absolute; left: 0; top: 2px;
  width: 22px; height: 22px;
  display: grid; place-items: center;
  font-size: .7rem; color: #06131b;
  background: var(--grad);
  border-radius: 7px;
}
.company-aside { display: grid; gap: 16px; }
.mini-card {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
}
.mini-card h4 { font-size: .95rem; margin-bottom: 10px; }
.mini-card ul { list-style: none; display: grid; gap: 7px; }
.mini-card li {
  color: var(--muted); font-size: .92rem;
  padding-left: 18px; position: relative;
}
.mini-card li::before {
  content: "•";
  position: absolute; left: 2px;
  color: var(--violet); font-weight: 800;
}

/* ---------- steps ---------- */
.steps { max-width: 760px; margin: 0 auto; display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); }
.step {
  display: flex; gap: 20px; align-items: flex-start;
  min-width: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 26px;
  box-shadow: var(--shadow);
}
.step-body { min-width: 0; }
.step-num {
  flex: none;
  width: 40px; height: 40px;
  display: grid; place-items: center;
  font-weight: 800; font-size: 1.05rem; color: #06131b;
  background: var(--grad);
  border-radius: 12px;
}
.step-body h3 { font-size: 1.06rem; margin-top: 4px; }
.step-body p { color: var(--muted); font-size: .95rem; margin-top: 6px; }
.section .center { margin-top: 40px; }

/* ---------- CTA ---------- */
.cta {
  background:
    radial-gradient(640px 300px at 20% 100%, rgba(47, 212, 182, .12), transparent 70%),
    radial-gradient(640px 300px at 80% 0%, rgba(154, 108, 240, .14), transparent 70%);
  text-align: center;
}
.cta-logo { width: 72px; margin: 0 auto 18px; }
.cta h2 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); font-weight: 800; letter-spacing: -.02em; }
.cta .hero-actions { margin-top: 26px; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 36px 0; }
.footer-in { text-align: center; display: grid; gap: 8px; justify-items: center; }
.footer p { color: var(--muted); font-size: .9rem; }
.footer-api a { color: var(--violet); font-weight: 600; }

/* ---------- reveal animation ---------- */
.reveal {
  opacity: 0; transform: translateY(18px);
  transition: opacity .5s ease, transform .5s ease;
}
.reveal.visible { opacity: 1; transform: none; }

/* ---------- api docs ---------- */
.docs-wrap { max-width: 900px; margin: 0 auto; }
.doc-section { margin: 44px 0; }
.doc-section > h2 {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -.01em;
  margin-bottom: 6px;
}
.doc-section > .lead-sm { color: var(--muted); font-size: .95rem; margin-bottom: 16px; }
.doc-scroll { overflow-x: auto; }
.doc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .9rem;
}
.doc-table th, .doc-table td {
  border: 1px solid var(--line);
  padding: 9px 12px;
  text-align: left;
  vertical-align: top;
}
.doc-table th { background: var(--card); color: var(--ink); font-weight: 700; }
.doc-table td { color: var(--muted); }
.doc-table td:first-child {
  white-space: nowrap;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .84rem;
  color: var(--teal);
  font-weight: 700;
}
.doc-table code { white-space: nowrap; }
.doc-anchor {
  display: block;
  color: var(--violet);
  font-size: .85rem;
  font-weight: 600;
  margin: 18px 0 6px;
}
@media (max-width: 640px) {
  .doc-table { font-size: .82rem; }
  .doc-table th, .doc-table td { padding: 7px 8px; }
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .company-card { grid-template-columns: 1fr; padding: 34px; }
}
@media (max-width: 640px) {
  .nav { display: none; }
  .status { display: none; }
  .grid-3, .grid-2 { grid-template-columns: minmax(0, 1fr); }
  .section { padding: 60px 0; }
  .hero { padding: 48px 0 60px; }
  .step { flex-direction: column; gap: 12px; align-items: stretch; }
  .step, .company-card, .card { padding: 20px 18px; }
  pre { font-size: .78rem; padding: 12px 12px; }
  .hero-logo { width: 88px; height: 88px; }
  .header-in { gap: 14px; }
}
