:root {
  --bg: #0b0f19;
  --bg-elev: #111827;
  --bg-soft: #0f1629;
  --line: rgba(148, 163, 184, 0.14);
  --text: #e5e7eb;
  --muted: #94a3b8;
  --cyan: #22d3ee;
  --emerald: #34d399;
  --cyan-dim: rgba(34, 211, 238, 0.12);
  --emerald-dim: rgba(52, 211, 153, 0.12);
  --radius: 18px;
  --font: "Manrope", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(34, 211, 238, 0.12), transparent 55%),
    radial-gradient(900px 500px at 90% 0%, rgba(52, 211, 153, 0.1), transparent 50%),
    var(--bg);
  line-height: 1.55;
}
a { color: var(--cyan); text-decoration: none; }
a:hover { color: #67e8f9; }
img { max-width: 100%; display: block; }
.container { width: min(1120px, calc(100% - 2rem)); margin: 0 auto; }

.site-header {
  position: sticky; top: 0; z-index: 40;
  backdrop-filter: blur(14px);
  background: rgba(11, 15, 25, 0.78);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.85rem 0; gap: 1rem;
}
.brand {
  display: flex; align-items: center; gap: 0.65rem;
  color: var(--text); font-weight: 700; letter-spacing: -0.02em;
}
.brand__mark {
  width: 34px; height: 34px; border-radius: 10px;
  background: linear-gradient(135deg, var(--cyan), var(--emerald));
  box-shadow: 0 0 24px rgba(34, 211, 238, 0.35);
}
.nav { display: flex; gap: 1.1rem; flex-wrap: wrap; }
.nav a { color: var(--muted); font-size: 0.92rem; }
.nav a:hover { color: var(--text); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.45rem;
  border: 0; border-radius: 999px; padding: 0.85rem 1.25rem;
  font: inherit; font-weight: 700; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn--primary {
  color: #041016;
  background: linear-gradient(135deg, var(--cyan), var(--emerald));
  box-shadow: 0 10px 40px rgba(34, 211, 238, 0.25);
}
.btn--ghost {
  color: var(--text);
  background: transparent;
  border: 1px solid var(--line);
}
.btn--ghost:hover { border-color: rgba(34, 211, 238, 0.45); }

.hero {
  padding: 3.2rem 0 2.5rem;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2rem;
  align-items: stretch;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.35rem 0.7rem; border-radius: 999px;
  border: 1px solid rgba(34, 211, 238, 0.28);
  background: var(--cyan-dim);
  color: var(--cyan); font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.04em; text-transform: uppercase;
}
.hero h1 {
  margin: 1rem 0 0.85rem;
  font-size: clamp(1.85rem, 4vw, 3.05rem);
  line-height: 1.12; letter-spacing: -0.035em;
}
.hero__lead { color: var(--muted); font-size: 1.05rem; max-width: 36rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }
.hero__meta {
  margin-top: 1.4rem; color: var(--muted); font-size: 0.88rem;
  display: flex; flex-wrap: wrap; gap: 0.85rem;
}
.hero__meta span::before { content: "●"; color: var(--emerald); margin-right: 0.4rem; font-size: 0.55rem; }

.chat-panel {
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.95), rgba(15, 22, 41, 0.98));
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  display: flex; flex-direction: column; min-height: 520px;
}
.chat-panel__hint {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--line);
  background: rgba(34, 211, 238, 0.06);
  color: #cbd5e1; font-size: 0.9rem;
}
.chat-panel__hint strong { color: var(--cyan); }
.chat-log {
  flex: 1; overflow-y: auto; padding: 1rem;
  display: flex; flex-direction: column; gap: 0.75rem;
  background:
    linear-gradient(180deg, transparent, rgba(11, 15, 25, 0.35)),
    repeating-linear-gradient(0deg, transparent, transparent 27px, rgba(148,163,184,0.04) 28px);
}
.msg { display: flex; }
.msg--user { justify-content: flex-end; }
.msg--bot { justify-content: flex-start; }
.msg__bubble {
  max-width: min(92%, 360px);
  padding: 0.75rem 0.9rem;
  border-radius: 14px;
  font-size: 0.94rem;
  white-space: pre-wrap;
}
.msg--bot .msg__bubble {
  background: #1a2336;
  border: 1px solid var(--line);
  border-bottom-left-radius: 5px;
}
.msg--user .msg__bubble {
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.22), rgba(52, 211, 153, 0.18));
  border: 1px solid rgba(34, 211, 238, 0.28);
  border-bottom-right-radius: 5px;
}
.chat-presets {
  display: flex; flex-wrap: wrap; gap: 0.4rem;
  padding: 0.65rem 1rem 0;
}
.chip {
  border: 1px solid var(--line); background: transparent; color: var(--muted);
  border-radius: 999px; padding: 0.35rem 0.7rem; font: inherit; font-size: 0.78rem; cursor: pointer;
}
.chip:hover { color: var(--text); border-color: rgba(34, 211, 238, 0.35); }
.chat-form {
  display: grid; grid-template-columns: 1fr auto;
  gap: 0.55rem; padding: 0.85rem 1rem 1rem;
  border-top: 1px solid var(--line);
}
.chat-form input {
  width: 100%; border-radius: 12px; border: 1px solid var(--line);
  background: #0b1220; color: var(--text); padding: 0.85rem 0.95rem; font: inherit;
}
.chat-form input:focus { outline: 1px solid rgba(34, 211, 238, 0.45); }
.dots { display: inline-flex; gap: 4px; }
.dots i {
  width: 6px; height: 6px; border-radius: 50%; background: var(--muted);
  animation: blink 1.2s infinite ease-in-out;
}
.dots i:nth-child(2) { animation-delay: .15s; }
.dots i:nth-child(3) { animation-delay: .3s; }
@keyframes blink {
  0%, 80%, 100% { opacity: .25; transform: translateY(0); }
  40% { opacity: 1; transform: translateY(-2px); }
}

section { padding: 4rem 0; }
.section-head { max-width: 40rem; margin-bottom: 1.75rem; }
.section-head h2 {
  margin: 0 0 0.55rem; font-size: clamp(1.45rem, 3vw, 2rem);
  letter-spacing: -0.03em;
}
.section-head p { margin: 0; color: var(--muted); }

.modules {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem;
}
.card {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem 1.25rem;
}
.card h3 { margin: 0.55rem 0 0.5rem; font-size: 1.12rem; letter-spacing: -0.02em; }
.card p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.card__icon {
  width: 42px; height: 42px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--cyan-dim); color: var(--cyan); font-family: var(--mono); font-weight: 700;
}

.expertise {
  display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 1.25rem; align-items: stretch;
}
.expertise__panel {
  border-radius: var(--radius);
  border: 1px solid rgba(52, 211, 153, 0.25);
  background:
    linear-gradient(145deg, rgba(52, 211, 153, 0.1), transparent 45%),
    var(--bg-elev);
  padding: 1.5rem;
}
.expertise__panel ul { margin: 1rem 0 0; padding-left: 1.1rem; color: var(--muted); }
.expertise__panel li { margin: 0.45rem 0; }
.stat {
  background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.2rem; display: grid; gap: 0.85rem;
}
.stat strong { display: block; font-size: 1.55rem; color: var(--cyan); letter-spacing: -0.03em; }
.stat span { color: var(--muted); font-size: 0.9rem; }

.integrations {
  display: flex; flex-wrap: wrap; gap: 0.55rem;
}
.pill {
  padding: 0.55rem 0.9rem; border-radius: 999px;
  border: 1px solid var(--line); background: var(--bg-soft);
  color: var(--text); font-size: 0.88rem; font-weight: 600;
}

.pricing {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem;
}
.price {
  position: relative;
  background: var(--bg-elev); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.4rem 1.25rem;
  display: flex; flex-direction: column; gap: 0.75rem;
}
.price--featured {
  border-color: rgba(34, 211, 238, 0.45);
  box-shadow: 0 0 0 1px rgba(34, 211, 238, 0.15), 0 20px 60px rgba(34, 211, 238, 0.08);
}
.price__badge {
  position: absolute; top: 0.9rem; right: 0.9rem;
  font-size: 0.72rem; font-weight: 800; letter-spacing: 0.04em;
  text-transform: uppercase; color: #041016;
  background: linear-gradient(135deg, var(--cyan), var(--emerald));
  border-radius: 999px; padding: 0.25rem 0.55rem;
}
.price h3 { margin: 0; font-size: 1.15rem; }
.price__sum { font-size: 1.7rem; font-weight: 800; letter-spacing: -0.03em; }
.price__sum small { font-size: 0.85rem; color: var(--muted); font-weight: 600; }
.price ul { margin: 0; padding-left: 1.05rem; color: var(--muted); flex: 1; }
.price li { margin: 0.35rem 0; }

.articles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.article-card a { color: inherit; display: block; height: 100%; }
.article-card h3 { margin: 0 0 0.45rem; font-size: 1.05rem; }
.article-card p { margin: 0; color: var(--muted); font-size: 0.9rem; }
.article-card .tag {
  display: inline-block; margin-bottom: 0.55rem;
  color: var(--emerald); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.04em;
  text-transform: uppercase;
}

.faq-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 1.25rem; }
.faq__item {
  border: 1px solid var(--line); border-radius: 14px; background: var(--bg-elev); margin-bottom: 0.55rem;
}
.faq__q {
  width: 100%; text-align: left; background: transparent; border: 0; color: var(--text);
  font: inherit; font-weight: 700; padding: 0.95rem 1rem; cursor: pointer;
}
.faq__a {
  display: none; padding: 0 1rem 1rem; color: var(--muted); font-size: 0.94rem;
}
.faq__item.is-open .faq__a { display: block; }

.lead {
  background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.25rem;
}
.lead h3 { margin: 0 0 0.35rem; }
.lead p { margin: 0 0 1rem; color: var(--muted); font-size: 0.92rem; }
.lead label { display: grid; gap: 0.3rem; margin-bottom: 0.7rem; font-size: 0.85rem; color: var(--muted); }
.lead input, .lead textarea {
  border-radius: 12px; border: 1px solid var(--line); background: #0b1220;
  color: var(--text); padding: 0.8rem 0.9rem; font: inherit;
}
.lead-status { min-height: 1.3rem; margin-top: 0.65rem; color: var(--emerald); font-size: 0.9rem; }

.site-footer {
  border-top: 1px solid var(--line); padding: 1.5rem 0 2.5rem; color: var(--muted); font-size: 0.88rem;
}
.site-footer__inner { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }

.article-page { padding: 2.5rem 0 4rem; max-width: 760px; }
.article-page h1 { font-size: clamp(1.7rem, 3vw, 2.35rem); letter-spacing: -0.03em; line-height: 1.2; margin: 0.4rem 0 1rem; }
.article-page h2 { margin: 1.8rem 0 0.6rem; font-size: 1.25rem; }
.article-page p, .article-page li { color: var(--muted); }
.article-page ul, .article-page ol { padding-left: 1.2rem; }
.article-page .btn { margin: 0.35rem 0.5rem 0 0; display: inline-flex; }

@media (max-width: 920px) {
  .hero, .modules, .expertise, .pricing, .articles, .faq-grid { grid-template-columns: 1fr; }
  .nav { display: none; }
  .chat-panel { min-height: 460px; }
}
