:root {
  --bg: #0a0d12;
  --panel: #10151d;
  --panel-2: #151b25;
  --line: #1f2733;
  --text: #e6ebf2;
  --muted: #8592a6;
  --accent: #2ee59d;
  --accent-ink: #04150d;
  --warn: #f5b942;
  --danger: #ff5d6c;
  --blue: #5aa9ff;
  --violet: #a98bff;
  --r: 14px;
  --font: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  --mono: "JetBrains Mono", "Cascadia Code", Consolas, "SFMono-Regular", monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background:
    radial-gradient(ellipse 80% 50% at 70% -10%, rgba(46, 229, 157, 0.10), transparent 60%),
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 48px 48px,
    var(--bg);
  background-attachment: fixed;
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 30%, var(--bg) 85%); }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; }

/* Навигация */
.nav {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 14px clamp(16px, 4vw, 48px);
  background: rgba(10, 13, 18, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; color: var(--accent); }
.logo span { color: var(--text); letter-spacing: -0.01em; }
.logo.small { font-size: 14px; justify-content: center; }
.links { display: flex; gap: 28px; font-size: 15px; color: var(--muted); }
.links a:hover { color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.burger { display: none; background: none; border: 0; width: 36px; height: 36px; position: relative; }
.burger span { position: absolute; left: 8px; right: 8px; height: 2px; background: var(--text); transition: .25s; }
.burger span:first-child { top: 13px; } .burger span:last-child { top: 21px; }
.burger.on span:first-child { top: 17px; transform: rotate(45deg); }
.burger.on span:last-child { top: 17px; transform: rotate(-45deg); }

/* Кнопки */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 20px; border-radius: 10px; border: 1px solid transparent;
  font-weight: 600; font-size: 15px; transition: transform .15s, background .2s, border-color .2s;
}
.btn:active { transform: scale(.97); }
.btn.primary { background: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { background: #5cf0b5; }
.btn.ghost { border-color: var(--line); background: var(--panel); }
.btn.ghost:hover { border-color: #33404f; }
.btn.wide { width: 100%; }
.btn[disabled] { opacity: .6; pointer-events: none; }

/* Hero */
.hero { max-width: 1200px; margin: 0 auto; padding: clamp(56px, 10vh, 110px) 16px 40px;
  display: grid; grid-template-columns: 1fr 1.05fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--accent);
  border: 1px solid rgba(46,229,157,.25); padding: 5px 12px; border-radius: 999px; background: rgba(46,229,157,.06); }
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(46,229,157,.6); animation: ping 2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 8px rgba(46,229,157,0); } 100% { box-shadow: 0 0 0 0 rgba(46,229,157,0); } }
.hero h1 { font-size: clamp(34px, 5vw, 60px); margin: 20px 0 18px; font-weight: 800; }
.hero h1 em { font-style: normal; color: var(--accent); }
.lead { color: var(--muted); font-size: clamp(16px, 1.6vw, 18px); max-width: 540px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.note { margin-top: 14px; font-size: 13px; color: var(--muted); }

.console, .terminal { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden;
  box-shadow: 0 30px 80px -30px rgba(0,0,0,.7), 0 0 0 1px rgba(255,255,255,.02) inset; }
.console-head { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--line);
  font-family: var(--mono); font-size: 12px; color: var(--muted); background: var(--panel-2); }
.lights { display: flex; gap: 6px; }
.lights i { width: 10px; height: 10px; border-radius: 50%; background: #2a3341; }
.live { margin-left: auto; display: flex; align-items: center; gap: 6px; color: var(--danger); font-weight: 700; letter-spacing: .1em; }
.rec { width: 7px; height: 7px; border-radius: 50%; background: var(--danger); animation: blink 1.4s infinite; }
@keyframes blink { 50% { opacity: .2; } }
#chart { display: block; width: 100%; height: 260px; }
.legend { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.legend div { padding: 10px 14px; font-size: 12px; color: var(--muted); border-right: 1px solid var(--line); }
.legend div:last-child { border-right: 0; }
.legend i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 6px; }
.legend b { display: block; font-family: var(--mono); font-size: 15px; color: var(--text); font-weight: 600; }

/* Статистика */
.stats { max-width: 1100px; margin: 30px auto 0; padding: 0 16px; display: grid; grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); }
.stats div { padding: 22px 16px; text-align: center; border-right: 1px solid var(--line); }
.stats div:last-child { border-right: 0; }
.stats b { display: block; font-family: var(--mono); font-size: clamp(24px, 3vw, 34px); font-weight: 700; font-variant-numeric: tabular-nums; }
.stats span { color: var(--muted); font-size: 14px; }

/* Блоки */
.block { max-width: 1200px; margin: 0 auto; padding: clamp(72px, 10vw, 120px) 16px 0; }
.block.narrow { max-width: 760px; }
.block h2 { font-size: clamp(28px, 4vw, 40px); text-align: center; }
.sub { text-align: center; color: var(--muted); margin: 10px auto 0; max-width: 560px; }

/* Статус */
.status-wrap { display: grid; grid-template-columns: 1.7fr 1fr; gap: 20px; margin-top: 44px; }
.status-list { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 6px 20px; }
.srow { padding: 14px 0; border-bottom: 1px solid var(--line); }
.srow:last-child { border-bottom: 0; }
.srow-top { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; margin-bottom: 8px; }
.srow-top span:last-child { font-family: var(--mono); color: var(--muted); font-size: 13px; }
.srow-top .ok { color: var(--accent); }
.bars { display: flex; gap: 2px; height: 26px; }
.bars i { flex: 1; border-radius: 2px; background: var(--accent); opacity: .85; transition: opacity .2s; }
.bars i:hover { opacity: 1; }
.bars i.w { background: var(--warn); }
.bars i.d { background: var(--danger); }
.feed { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; overflow: hidden; }
.feed h3 { font-size: 15px; margin-bottom: 10px; }
.feed ul { list-style: none; }
.feed li { display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 13px; animation: slide .4s; }
.feed li:last-child { border-bottom: 0; }
@keyframes slide { from { opacity: 0; transform: translateY(-6px); } }
.feed .lvl { width: 8px; height: 8px; border-radius: 50%; margin-top: 6px; background: var(--accent); }
.feed .lvl.w { background: var(--warn); }
.feed .lvl.d { background: var(--danger); }
.feed time { grid-column: 2; font-family: var(--mono); font-size: 11px; color: var(--muted); }

/* Карточки */
.cards { display: grid; gap: 20px; margin-top: 44px; }
.cards.three { grid-template-columns: repeat(3, 1fr); }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; position: relative; transition: border-color .2s; }
.card:hover { border-color: #2c3746; }
.card h3 { font-size: 18px; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 15px; }
.ico { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; margin-bottom: 16px;
  background: rgba(46,229,157,.08); border: 1px solid rgba(46,229,157,.2); }
.ico svg { width: 20px; height: 20px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 44px; }
.steps li { padding: 20px 4px; border-top: 2px solid var(--line); }
.steps span { font-family: var(--mono); font-size: 13px; color: var(--accent); }
.steps h3 { font-size: 18px; margin: 8px 0; }
.steps p { color: var(--muted); font-size: 15px; }

.terminal { max-width: 760px; margin: 40px auto 0; }
.terminal pre { font-family: var(--mono); font-size: 13px; line-height: 1.7; padding: 18px 20px; min-height: 230px; white-space: pre-wrap; word-break: break-word; color: #c9d3e0; }
.terminal .p { color: var(--accent); }
.terminal .c { color: var(--muted); }
.terminal .g { color: var(--accent); }
.terminal .y { color: var(--warn); }
.cursor { display: inline-block; width: 8px; height: 15px; background: var(--accent); vertical-align: -2px; animation: blink 1s steps(1) infinite; }

.plan ul { list-style: none; margin: 18px 0 24px; }
.plan li { padding: 7px 0 7px 24px; position: relative; color: var(--muted); font-size: 15px; border-bottom: 1px dashed var(--line); }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.price { font-size: 32px !important; font-weight: 800; color: var(--text) !important; margin-top: 6px; }
.price small { font-size: 15px; color: var(--muted); font-weight: 500; }
.plan.featured { border-color: rgba(46,229,157,.45); box-shadow: 0 0 70px -25px rgba(46,229,157,.45); }
.tag { position: absolute; top: -12px; right: 20px; background: var(--accent); color: var(--accent-ink); font-size: 12px; font-weight: 700; padding: 3px 12px; border-radius: 999px; }

details { border-bottom: 1px solid var(--line); padding: 18px 4px; }
details:first-of-type { margin-top: 36px; }
summary { cursor: pointer; font-weight: 600; font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--accent); font-size: 22px; line-height: 1; transition: transform .2s; }
details[open] summary::after { transform: rotate(45deg); }
details p { color: var(--muted); margin-top: 10px; }

.foot { text-align: center; padding: 100px 16px 40px; color: var(--muted); font-size: 14px; }
.foot .logo { margin-bottom: 12px; }
.muted { margin-top: 6px; display: inline-flex; align-items: center; gap: 8px; color: var(--accent); }

/* Модалки */
.modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 16px; background: rgba(5,7,10,.75); backdrop-filter: blur(6px); animation: fade .2s; }
.modal[hidden] { display: none; }
@keyframes fade { from { opacity: 0; } }
.sheet { width: 100%; max-width: 400px; background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 28px; position: relative; animation: pop .25s; }
@keyframes pop { from { transform: translateY(12px) scale(.98); opacity: 0; } }
.sheet h3 { font-size: 22px; margin-bottom: 18px; }
.hint { color: var(--muted); font-size: 14px; margin: -8px 0 18px; }
.x { position: absolute; top: 12px; right: 14px; background: none; border: 0; color: var(--muted); font-size: 26px; line-height: 1; }
.x:hover { color: var(--text); }
label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 14px; }
label small { opacity: .7; }
input { display: block; width: 100%; margin-top: 6px; padding: 11px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--text); font: inherit; font-size: 15px; outline: none; transition: border-color .2s; }
input:focus { border-color: var(--accent); }
input.bad { border-color: var(--danger); }
.msg { min-height: 20px; font-size: 14px; margin: -2px 0 12px; }
.msg.err { color: var(--danger); }
.msg.ok { color: var(--accent); }
.alt { text-align: center; font-size: 14px; color: var(--muted); margin-top: 16px; }
.alt a { color: var(--accent); }
.spin { width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: rot .7s linear infinite; margin-right: 8px; }
@keyframes rot { to { transform: rotate(360deg); } }

/* Адаптив */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; }
  .status-wrap { grid-template-columns: 1fr; }
  .cards.three, .steps { grid-template-columns: 1fr 1fr; }
  .plan.featured { order: -1; grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .burger { display: block; }
  .links { position: fixed; top: 62px; left: 0; right: 0; flex-direction: column; gap: 0; background: rgba(10,13,18,.98); border-bottom: 1px solid var(--line);
    padding: 8px 16px 16px; transform: translateY(-120%); transition: transform .3s; z-index: -1; }
  .links.on { transform: none; }
  .links a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .cards.three, .steps { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; margin-left: 16px; margin-right: 16px; padding: 0; }
  .stats div:nth-child(2) { border-right: 0; }
  .stats div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .legend { grid-template-columns: 1fr 1fr; }
  .legend div:nth-child(2) { border-right: 0; }
  .legend div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  #chart { height: 200px; }
  .bars { gap: 1px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
