:root {
  --bg: #070b12;
  --bg2: #0d1420;
  --panel: #111827;
  --panel2: #151f31;
  --line: #243049;
  --text: #e8eef8;
  --muted: #8fa3c0;
  --accent: #2563eb;
  --accent2: #1d4ed8;
  --accent-soft: rgba(37, 99, 235, 0.12);
  --ok: #22c55e;
  --warn: #f59e0b;
  --danger: #ef4444;
  --radius: 14px;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(900px 500px at 10% -5%, rgba(37, 99, 235, 0.18), transparent 55%),
    radial-gradient(700px 400px at 90% 0%, rgba(14, 165, 233, 0.08), transparent 50%);
  pointer-events: none;
  z-index: 0;
}
main, header, footer { position: relative; z-index: 1; }

.wrap { width: min(1120px, 92vw); margin: 0 auto; }
.muted { color: var(--muted); }
.small { font-size: 0.88rem; }
.lead { color: var(--muted); font-size: 1.08rem; max-width: 62ch; }

.top {
  border-bottom: 1px solid var(--line);
  background: rgba(7, 11, 18, 0.88);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 10;
}
.top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
}
.logo {
  width: 38px; height: 38px; border-radius: 11px;
  background: linear-gradient(135deg, var(--accent), #0ea5e9);
  box-shadow: 0 10px 28px rgba(37, 99, 235, 0.35);
  flex-shrink: 0;
}
.brand strong { display: block; font-size: 1rem; }
.brand span { display: block; color: var(--muted); font-size: 0.78rem; }

.nav {
  display: flex;
  align-items: center;
  gap: 0.35rem 1rem;
  flex-wrap: wrap;
}
.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  padding: 0.35rem 0.1rem;
}
.nav a:hover, .nav a.active { color: var(--text); }
.nav .btn-nav {
  padding: 0.45rem 0.85rem;
  border-radius: 9px;
  background: var(--accent);
  color: #fff !important;
  font-weight: 600;
}
.nav .btn-nav:hover { background: var(--accent2); }

.menu-toggle {
  display: none;
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 8px;
  padding: 0.45rem 0.65rem;
  cursor: pointer;
}
@media (max-width: 820px) {
  .menu-toggle { display: block; }
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--bg2);
    border-bottom: 1px solid var(--line);
    padding: 1rem 4vw 1.2rem;
    flex-direction: column;
    align-items: flex-start;
  }
  .nav.open { display: flex; }
  .top-inner { position: relative; flex-wrap: wrap; }
}

.hero {
  padding: 3.2rem 0 2.2rem;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2rem;
  align-items: center;
}
@media (max-width: 900px) { .hero { grid-template-columns: 1fr; } }

.badge {
  display: inline-block;
  padding: 0.28rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.76rem;
  margin-bottom: 1rem;
  background: rgba(255,255,255,0.02);
}
h1 {
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  line-height: 1.12;
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}
h2 { font-size: 1.45rem; margin: 0 0 0.75rem; }
h3 { font-size: 1.05rem; margin: 0 0 0.5rem; }
.page-head { padding: 2.5rem 0 1.5rem; }
.page-head h1 { margin-bottom: 0.5rem; }

.actions { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 1.5rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.7rem 1.05rem; border-radius: 10px;
  text-decoration: none; font-weight: 600; font-size: 0.92rem;
  border: 1px solid transparent;
}
.btn.primary { background: var(--accent); color: #fff; }
.btn.primary:hover { background: var(--accent2); }
.btn.ghost { border-color: var(--line); color: var(--text); background: rgba(255,255,255,0.02); }
.btn.ghost:hover { border-color: var(--muted); }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.85rem; }
@media (max-width: 900px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.section { padding: 1.5rem 0 2.5rem; }
.section-tight { padding: 0.5rem 0 2rem; }

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem 1.25rem;
}
.card p:last-child { margin-bottom: 0; }
.card .icon {
  width: 42px; height: 42px; border-radius: 10px;
  background: var(--accent-soft);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; margin-bottom: 0.75rem;
}

.hero-panel {
  background: var(--panel2);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.panel-head, .panel-foot {
  padding: 0.75rem 1rem;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid var(--line);
  font-size: 0.82rem;
  color: var(--muted);
}
.panel-foot { border-bottom: 0; border-top: 1px solid var(--line); }
.panel-list { list-style: none; margin: 0; padding: 0.75rem 1rem 1rem; }
.panel-list li {
  font-family: ui-monospace, Consolas, monospace;
  font-size: 0.76rem;
  color: #c9d6ea;
  padding: 0.32rem 0;
  display: flex; align-items: center; gap: 0.45rem;
}
.dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.dot.ok { background: var(--ok); }
.dot.warn { background: var(--warn); }

.stat-grid .stat {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.95rem 1rem;
}
.stat .label { display: block; color: var(--muted); font-size: 0.76rem; }
.stat .value { font-weight: 700; font-size: 1.05rem; }
.stat .value.ok { color: var(--ok); }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}
th, td {
  border: 1px solid var(--line);
  padding: 0.65rem 0.75rem;
  text-align: left;
}
th { background: var(--panel2); color: var(--muted); font-weight: 600; }

pre, .code-block {
  background: #050810;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1rem 1.1rem;
  overflow-x: auto;
  font-family: ui-monospace, Consolas, monospace;
  font-size: 0.82rem;
  line-height: 1.5;
  color: #dbeafe;
}
code {
  background: rgba(255,255,255,0.06);
  padding: 0.12rem 0.35rem;
  border-radius: 6px;
  font-size: 0.86em;
}
pre code { background: transparent; padding: 0; }

.pricing-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.pricing-card.featured {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(37,99,235,0.25), var(--shadow);
}
.price { font-size: 2rem; font-weight: 800; letter-spacing: -0.03em; }
.price span { font-size: 0.95rem; font-weight: 500; color: var(--muted); }
.pricing-card ul {
  margin: 0; padding-left: 1.1rem; color: var(--muted); font-size: 0.92rem;
}
.pricing-card li { margin: 0.35rem 0; }

.status-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
}
.status-row:last-child { border-bottom: 0; }
.pill {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
}
.pill.ok { background: rgba(34,197,94,0.15); color: var(--ok); }
.pill.warn { background: rgba(245,158,11,0.15); color: var(--warn); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }

.form label {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0.75rem 0 0.35rem;
}
.form input, .form textarea, .form select {
  width: 100%;
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  padding: 0.65rem 0.75rem;
  font: inherit;
}
.form textarea { min-height: 120px; resize: vertical; }

.breadcrumbs {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.75rem;
}
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--text); }

.foot {
  border-top: 1px solid var(--line);
  padding: 2rem 0;
  margin-top: auto;
  background: rgba(7,11,18,0.6);
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 1.5rem;
}
@media (max-width: 820px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
.foot h4 { margin: 0 0 0.65rem; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li { margin: 0.35rem 0; }
.foot a { color: var(--muted); text-decoration: none; font-size: 0.88rem; }
.foot a:hover { color: var(--text); }
.foot-bottom {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.84rem;
  color: var(--muted);
}

.toc { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 1rem 1.1rem; }
.toc ul { margin: 0; padding-left: 1.1rem; color: var(--muted); }
.toc a { color: #93c5fd; }

.compare-table td:first-child { font-weight: 600; }
