:root {
  --yellow: #ffc800;
  --yellow-soft: #ffe173;
  --black: #0e0e0e;
  --ink: #161616;
  --panel: #1c1c1c;
  --panel-2: #242424;
  --line: #2e2e2e;
  --red: #e63329;
  --red-dark: #b3241c;
  --white: #ffffff;
  --muted: #9b9b93;
  --green: #3ecf6f;
  --radius: 14px;
  --font: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", "Cascadia Code", Consolas, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--black);
  color: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ul { list-style: none; }

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

.checker {
  height: 12px;
  background:
    linear-gradient(135deg, var(--yellow) 25%, transparent 25%) 0 0 / 24px 24px,
    linear-gradient(225deg, var(--yellow) 25%, transparent 25%) 0 0 / 24px 24px,
    linear-gradient(315deg, var(--yellow) 25%, transparent 25%) 12px 0 / 24px 24px,
    var(--black);
}
.checker--red {
  background:
    linear-gradient(135deg, var(--red) 25%, transparent 25%) 0 0 / 24px 24px,
    linear-gradient(225deg, var(--red) 25%, transparent 25%) 0 0 / 24px 24px,
    linear-gradient(315deg, var(--red) 25%, transparent 25%) 12px 0 / 24px 24px,
    var(--black);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(14, 14, 14, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 68px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.02em;
}
.brand .roof {
  background: var(--yellow);
  color: var(--black);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.14em;
  padding: 2px 7px;
  border-radius: 4px;
}
.brand em { color: var(--yellow); font-style: normal; }

.main-nav {
  display: flex;
  gap: 26px;
  margin-left: auto;
}
.main-nav a {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--muted);
  transition: color 0.15s;
  padding: 6px 0;
}
.main-nav a:hover { color: var(--white); }
.main-nav a.active { color: var(--yellow); }

.header-actions { display: flex; align-items: center; gap: 12px; }
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  width: 40px; height: 40px;
  color: var(--white);
  font-size: 18px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  border-radius: 10px;
  font-weight: 700;
  font-size: 15px;
  padding: 12px 22px;
  transition: transform 0.12s, box-shadow 0.12s, background 0.15s;
}
.btn:active { transform: translateY(1px); }
.btn--yellow {
  background: var(--yellow);
  color: var(--black);
  box-shadow: 0 0 0 0 rgba(255, 200, 0, 0.4);
}
.btn--yellow:hover { box-shadow: 0 6px 24px rgba(255, 200, 0, 0.35); }
.btn--red {
  background: var(--red);
  color: var(--white);
}
.btn--red:hover { background: var(--red-dark); }
.btn--ghost {
  background: transparent;
  color: var(--white);
  border: 1px solid var(--line);
}
.btn--ghost:hover { border-color: var(--yellow); color: var(--yellow); }
.btn--sm { padding: 8px 16px; font-size: 13.5px; }
.btn--lg { padding: 15px 30px; font-size: 16.5px; }

.hero { padding: 84px 0 72px; position: relative; overflow: hidden; }
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(600px 300px at 80% -10%, rgba(255, 200, 0, 0.12), transparent),
    radial-gradient(500px 260px at 10% 110%, rgba(230, 51, 41, 0.12), transparent);
  pointer-events: none;
}
.hero-inner { position: relative; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--yellow);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 7px 14px;
  border-radius: 999px;
  margin-bottom: 22px;
}
.pill .dot {
  width: 8px; height: 8px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse 1.6s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(62, 207, 111, 0.5); }
  70% { box-shadow: 0 0 0 7px rgba(62, 207, 111, 0); }
  100% { box-shadow: 0 0 0 0 rgba(62, 207, 111, 0); }
}
.hero h1 {
  font-size: clamp(38px, 5.4vw, 62px);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.03em;
}
.hero h1 .y { color: var(--yellow); }
.hero h1 .r { color: var(--red); }
.hero .sub {
  margin-top: 20px;
  font-size: 18px;
  color: var(--muted);
  max-width: 520px;
}
.hero-cta { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }
.hero-note { margin-top: 16px; font-size: 13px; color: var(--muted); }
.hero-note b { color: var(--yellow); }

.terminal {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}
.terminal-bar {
  display: flex;
  gap: 7px;
  padding: 12px 14px;
  background: var(--panel-2);
  border-bottom: 1px solid var(--line);
}
.terminal-bar i { width: 11px; height: 11px; border-radius: 50%; display: block; }
.terminal-bar i:nth-child(1) { background: var(--red); }
.terminal-bar i:nth-child(2) { background: var(--yellow); }
.terminal-bar i:nth-child(3) { background: var(--green); }
.terminal-bar span {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
}
.terminal-body {
  padding: 20px;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.9;
  min-height: 240px;
}
.terminal-body .c-dim { color: var(--muted); }
.terminal-body .c-y { color: var(--yellow); }
.terminal-body .c-r { color: var(--red); }
.terminal-body .c-g { color: var(--green); }
.cursor {
  display: inline-block;
  width: 8px; height: 15px;
  background: var(--yellow);
  vertical-align: -2px;
  animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.logos { padding: 26px 0 10px; border-top: 1px solid var(--line); }
.logos p { text-align: center; font-size: 12.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.logos-row {
  display: flex;
  justify-content: center;
  gap: 44px;
  flex-wrap: wrap;
  margin-top: 18px;
  opacity: 0.75;
}
.logos-row span {
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -0.02em;
  color: var(--muted);
}
.logos-row span b { color: var(--white); }

.section { padding: 88px 0; }
.section--tint { background: var(--ink); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 640px; margin: 0 auto 52px; text-align: center; }
.section-head .kicker {
  color: var(--red);
  font-weight: 800;
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.section-head h2 {
  font-size: clamp(28px, 3.6vw, 40px);
  font-weight: 900;
  letter-spacing: -0.03em;
  margin-top: 10px;
}
.section-head p { color: var(--muted); margin-top: 14px; font-size: 16.5px; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color 0.2s, transform 0.2s;
}
.card:hover { border-color: var(--yellow); transform: translateY(-3px); }
.card .icon {
  width: 46px; height: 46px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  font-size: 21px;
}
.icon--yellow { background: rgba(255, 200, 0, 0.14); }
.icon--red { background: rgba(230, 51, 41, 0.15); }
.icon--black { background: var(--panel-2); border: 1px solid var(--line); }
.card h3 { font-size: 18.5px; font-weight: 800; letter-spacing: -0.01em; }
.card p { color: var(--muted); font-size: 14.5px; margin-top: 10px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: step; }
.step {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px 26px;
}
.step .num {
  position: absolute;
  top: -18px; left: 24px;
  background: var(--yellow);
  color: var(--black);
  font-weight: 900;
  font-size: 14px;
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: 9px;
  box-shadow: 0 6px 16px rgba(255, 200, 0, 0.35);
}
.step h3 { font-size: 17.5px; font-weight: 800; margin-top: 8px; }
.step p { color: var(--muted); font-size: 14.5px; margin-top: 10px; }
.step code {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--yellow);
  background: var(--black);
  border: 1px solid var(--line);
  padding: 2px 7px;
  border-radius: 6px;
}

.stats-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  text-align: center;
}
.stat b { display: block; font-size: 40px; font-weight: 900; letter-spacing: -0.03em; color: var(--yellow); }
.stat span { color: var(--muted); font-size: 14px; }

.quote-card { display: flex; flex-direction: column; gap: 18px; }
.quote-card .stars { color: var(--yellow); font-size: 15px; letter-spacing: 2px; }
.quote-card blockquote { font-size: 15.5px; color: #e6e6df; }
.quote-who { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 900;
  font-size: 15px;
  color: var(--black);
}
.avatar--y { background: var(--yellow); }
.avatar--r { background: var(--red); color: var(--white); }
.avatar--w { background: var(--white); }
.quote-who b { display: block; font-size: 14.5px; }
.quote-who span { font-size: 12.5px; color: var(--muted); }

.billing-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 34px 0 46px;
  font-weight: 700;
  font-size: 14.5px;
  color: var(--muted);
}
.switch {
  width: 52px; height: 28px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  position: relative;
  transition: background 0.2s;
}
.switch::after {
  content: "";
  position: absolute;
  top: 3px; left: 3px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--muted);
  transition: transform 0.2s, background 0.2s;
}
.switch.on { background: var(--yellow); }
.switch.on::after { transform: translateX(24px); background: var(--black); }
.save-badge {
  background: rgba(62, 207, 111, 0.15);
  color: var(--green);
  font-size: 11.5px;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 999px;
}

.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.price-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  display: flex;
  flex-direction: column;
  position: relative;
}
.price-card--hot {
  border-color: var(--yellow);
  background: linear-gradient(180deg, rgba(255, 200, 0, 0.07), transparent 40%), var(--panel);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4);
}
.flag {
  position: absolute;
  top: -13px; left: 50%;
  transform: translateX(-50%);
  background: var(--red);
  color: var(--white);
  font-size: 11.5px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 999px;
  white-space: nowrap;
}
.price-card h3 { font-size: 19px; font-weight: 800; }
.price-card .desc { color: var(--muted); font-size: 13.5px; margin-top: 6px; }
.price {
  margin: 22px 0 4px;
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.price .amount { font-size: 44px; font-weight: 900; letter-spacing: -0.03em; color: var(--yellow); }
.price .per { color: var(--muted); font-size: 14px; }
.price .was { color: var(--muted); text-decoration: line-through; font-size: 15px; }
.price-card .btn { width: 100%; justify-content: center; margin: 20px 0 22px; }
.price-card ul li {
  display: flex;
  gap: 10px;
  font-size: 14px;
  padding: 7px 0;
  color: #d9d9d2;
}
.price-card ul li::before { content: "✓"; color: var(--yellow); font-weight: 900; }
.price-card ul li.no { color: var(--muted); }
.price-card ul li.no::before { content: "—"; color: var(--muted); }

.faq { max-width: 760px; margin: 0 auto; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 12px; background: var(--panel); overflow: hidden; }
.faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  background: none;
  border: none;
  color: var(--white);
  font-size: 15.5px;
  font-weight: 700;
  text-align: left;
  padding: 18px 22px;
}
.faq-q .chev { color: var(--yellow); transition: transform 0.2s; flex: none; }
.faq-item.open .chev { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.25s ease; }
.faq-a p { padding: 0 22px 18px; color: var(--muted); font-size: 14.5px; }

.cta-banner {
  background: linear-gradient(120deg, var(--yellow), var(--yellow-soft));
  color: var(--black);
  border-radius: 22px;
  padding: 54px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  box-shadow: 0 30px 70px rgba(255, 200, 0, 0.18);
}
.cta-banner h2 { font-size: clamp(26px, 3vw, 36px); font-weight: 900; letter-spacing: -0.03em; }
.cta-banner p { margin-top: 8px; font-weight: 600; color: #4a3d00; }
.cta-banner .btn--red { flex: none; }

.site-footer { border-top: 1px solid var(--line); padding: 56px 0 34px; background: var(--ink); }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 36px;
}
.footer-grid h4 { font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.footer-grid a { display: block; color: #cfcfc7; font-size: 14px; padding: 5px 0; }
.footer-grid a:hover { color: var(--yellow); }
.footer-brand p { color: var(--muted); font-size: 14px; margin-top: 14px; max-width: 280px; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  display: none;
  place-items: center;
  z-index: 100;
  padding: 20px;
}
.modal-backdrop.show { display: grid; }
.modal {
  background: var(--panel);
  border: 1px solid var(--line);
  border-top: 4px solid var(--yellow);
  border-radius: 18px;
  width: 100%;
  max-width: 420px;
  padding: 34px;
  position: relative;
  animation: rise 0.25s ease;
}
@keyframes rise { from { transform: translateY(14px); opacity: 0; } to { transform: none; opacity: 1; } }
.modal h3 { font-size: 22px; font-weight: 900; letter-spacing: -0.02em; }
.modal .muted { color: var(--muted); font-size: 14px; margin-top: 8px; }
.modal .close {
  position: absolute;
  top: 14px; right: 14px;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 20px;
  width: 34px; height: 34px;
  border-radius: 8px;
}
.modal .close:hover { background: var(--panel-2); color: var(--white); }
.modal form { display: flex; flex-direction: column; gap: 12px; margin-top: 22px; }
.field label { font-size: 12.5px; font-weight: 700; color: var(--muted); display: block; margin-bottom: 6px; }
.field input {
  width: 100%;
  background: var(--black);
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--white);
  font-size: 14.5px;
  padding: 11px 14px;
  font-family: inherit;
}
.field input:focus { outline: none; border-color: var(--yellow); }
.modal .fine { font-size: 12px; color: var(--muted); text-align: center; margin-top: 14px; }
.modal .fine a { color: var(--yellow); }
.form-success {
  display: none;
  text-align: center;
  padding: 18px 0 6px;
}
.form-success .big { font-size: 42px; }
.form-success b { display: block; font-size: 18px; margin-top: 10px; }
.form-success p { color: var(--muted); font-size: 14px; margin-top: 8px; }
.modal.done form, .modal.done .muted, .modal.done h3 { display: none; }
.modal.done .form-success { display: block; }

.cookie-bar {
  position: fixed;
  bottom: 18px; left: 50%;
  transform: translateX(-50%);
  width: min(680px, calc(100% - 32px));
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-left: 4px solid var(--red);
  border-radius: 12px;
  padding: 14px 18px;
  display: none;
  align-items: center;
  gap: 16px;
  z-index: 90;
  font-size: 13.5px;
  color: var(--muted);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}
.cookie-bar.show { display: flex; }
.cookie-bar .btn { margin-left: auto; flex: none; }

.app-shell { display: grid; grid-template-columns: 220px 1fr; min-height: calc(100vh - 68px - 12px); }
.app-side {
  background: var(--ink);
  border-right: 1px solid var(--line);
  padding: 20px 14px;
}
.app-side .side-label {
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 8px 10px;
}
.app-side a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 9px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 2px;
}
.app-side a:hover { background: var(--panel); color: var(--white); }
.app-side a.active { background: var(--yellow); color: var(--black); }
.app-side .spacer { height: 14px; }

.app-main { padding: 26px 30px; }
.app-topbar {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.app-topbar h1 { font-size: 20px; font-weight: 900; letter-spacing: -0.02em; }
.env-chip {
  background: var(--panel);
  border: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 12px;
  color: var(--green);
  padding: 4px 10px;
  border-radius: 999px;
}
.app-topbar .right { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.range-picker { display: flex; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; }
.range-picker button {
  background: var(--panel);
  border: none;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  padding: 7px 12px;
}
.range-picker button.active { background: var(--yellow); color: var(--black); }

.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 22px; }
.kpi {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
}
.kpi .k-label { font-size: 12px; color: var(--muted); font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; }
.kpi .k-value { font-size: 27px; font-weight: 900; letter-spacing: -0.02em; margin-top: 6px; font-variant-numeric: tabular-nums; }
.kpi .k-delta { font-size: 12px; font-weight: 700; margin-top: 4px; }
.k-delta.up { color: var(--green); }
.k-delta.down { color: var(--red); }
.kpi svg.spark { margin-top: 10px; width: 100%; height: 34px; }

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 20px;
}
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.panel-head h2 { font-size: 14.5px; font-weight: 800; letter-spacing: -0.01em; }
.panel-head .hint { font-size: 11.5px; color: var(--muted); font-family: var(--mono); }
.live-dot {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
  color: var(--green);
  letter-spacing: 0.08em;
}
.live-dot i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); animation: pulse 1.6s infinite; }

.chart-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 20px; }
#mainChart { width: 100%; height: 240px; }

.legend { display: flex; gap: 18px; font-size: 12px; color: var(--muted); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }

.log-feed {
  font-family: var(--mono);
  font-size: 12px;
  line-height: 2;
  height: 240px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.log-line { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; animation: fadein 0.3s; }
@keyframes fadein { from { opacity: 0; transform: translateY(4px); } }
.log-line .t { color: var(--muted); margin-right: 10px; }
.log-line .lvl { font-weight: 800; margin-right: 10px; }
.lvl.info { color: var(--yellow); }
.lvl.ok { color: var(--green); }
.lvl.warn { color: #ff9d3c; }
.lvl.err { color: var(--red); }
.log-line .m { color: #d9d9d2; }

.bar-row { display: grid; grid-template-columns: 130px 1fr 52px; gap: 12px; align-items: center; padding: 7px 0; font-size: 13px; }
.bar-row .bl { color: var(--muted); font-family: var(--mono); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar-track { background: var(--black); border-radius: 5px; height: 10px; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 5px; background: var(--yellow); transition: width 0.6s ease; }
.bar-fill.r { background: var(--red); }
.bar-row .bv { text-align: right; font-variant-numeric: tabular-nums; font-weight: 700; font-size: 12.5px; }

.alert-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13.5px;
}
.alert-row:last-child { border-bottom: none; }
.alert-badge {
  flex: none;
  font-size: 10.5px;
  font-weight: 900;
  letter-spacing: 0.06em;
  padding: 3px 9px;
  border-radius: 999px;
}
.alert-badge.crit { background: rgba(230, 51, 41, 0.18); color: var(--red); }
.alert-badge.ok { background: rgba(62, 207, 111, 0.15); color: var(--green); }
.alert-badge.warn { background: rgba(255, 157, 60, 0.15); color: #ff9d3c; }
.alert-row .when { margin-left: auto; color: var(--muted); font-size: 12px; font-family: var(--mono); flex: none; }

.docs-layout { display: grid; grid-template-columns: 230px 1fr; gap: 44px; padding: 48px 0 88px; }
.docs-nav { position: sticky; top: 92px; align-self: start; }
.docs-nav h4 { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin: 18px 0 10px; }
.docs-nav h4:first-child { margin-top: 0; }
.docs-nav a { display: block; font-size: 14px; color: var(--muted); padding: 5px 0; }
.docs-nav a:hover, .docs-nav a.active { color: var(--yellow); }
.docs-content h1 { font-size: 34px; font-weight: 900; letter-spacing: -0.03em; }
.docs-content .lead { color: var(--muted); font-size: 16.5px; margin-top: 12px; max-width: 640px; }
.docs-content h2 { font-size: 23px; font-weight: 800; letter-spacing: -0.02em; margin: 44px 0 14px; padding-top: 24px; border-top: 1px solid var(--line); }
.docs-content h2:first-of-type { border-top: none; padding-top: 0; margin-top: 36px; }
.docs-content h3 { font-size: 17px; font-weight: 800; margin: 26px 0 10px; }
.docs-content p { color: #d3d3cb; font-size: 15px; margin: 10px 0; max-width: 680px; }
.docs-content ul { margin: 10px 0; padding-left: 4px; }
.docs-content ul li { color: #d3d3cb; font-size: 15px; padding: 4px 0 4px 22px; position: relative; }
.docs-content ul li::before { content: "›"; position: absolute; left: 6px; color: var(--yellow); font-weight: 900; }
.docs-content table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 14px; }
.docs-content th, .docs-content td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.docs-content th { color: var(--muted); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }
.docs-content td code, .docs-content p code, .docs-content li code {
  font-family: var(--mono);
  font-size: 12.5px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 2px 7px;
  color: var(--yellow);
}
.code-block {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  margin: 16px 0;
  overflow: hidden;
}
.code-block .cb-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 14px;
  background: var(--panel-2);
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
}
.copy-btn {
  background: none;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 7px;
}
.copy-btn:hover { color: var(--yellow); border-color: var(--yellow); }
.code-block pre {
  padding: 16px;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.85;
  overflow-x: auto;
  color: #e8e8e0;
}
.code-block pre .c-dim { color: var(--muted); }
.code-block pre .c-y { color: var(--yellow); }
.code-block pre .c-r { color: var(--red); }
.code-block pre .c-g { color: var(--green); }
.callout {
  border-left: 4px solid var(--yellow);
  background: var(--panel);
  border-radius: 0 10px 10px 0;
  padding: 14px 18px;
  margin: 18px 0;
  font-size: 14.5px;
  color: #d3d3cb;
}
.callout b { color: var(--yellow); }

.page-hero { padding: 70px 0 20px; text-align: center; }
.page-hero h1 { font-size: clamp(34px, 4.6vw, 52px); font-weight: 900; letter-spacing: -0.03em; }
.page-hero p { color: var(--muted); font-size: 17px; max-width: 560px; margin: 14px auto 0; }

@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; }
  .grid-3, .steps, .pricing-grid { grid-template-columns: 1fr 1fr; }
  .stats-band { grid-template-columns: 1fr 1fr; gap: 30px; }
  .chart-grid { grid-template-columns: 1fr; }
  .kpi-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .docs-layout { grid-template-columns: 1fr; }
  .docs-nav { position: static; display: none; }
  .app-shell { grid-template-columns: 1fr; }
  .app-side { display: flex; overflow-x: auto; gap: 4px; border-right: none; border-bottom: 1px solid var(--line); padding: 10px 14px; }
  .app-side .side-label, .app-side .spacer { display: none; }
  .app-side a { white-space: nowrap; }
}
@media (max-width: 640px) {
  .main-nav, .header-actions .btn--ghost { display: none; }
  .nav-toggle { display: block; }
  .main-nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 68px; left: 0; right: 0;
    background: var(--ink);
    border-bottom: 1px solid var(--line);
    padding: 18px 24px;
    gap: 4px;
  }
  .grid-3, .grid-2, .steps, .pricing-grid { grid-template-columns: 1fr; }
  .kpi-grid { grid-template-columns: 1fr 1fr; }
  .cta-banner { padding: 36px 26px; }
  .section { padding: 64px 0; }
  .hero { padding: 56px 0 48px; }
}
