/* ==========================================================================
   Netly Monitoring — landing (тёмная тема)
   ========================================================================== */

:root {
  --bg: #070b14;
  --bg-2: #0a0f1c;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #e8eef9;
  --muted: #93a1b8;
  --muted-2: #647088;

  --accent: #3b82f6;
  --accent-2: #22d3ee;
  --accent-grad: linear-gradient(100deg, #3b82f6 0%, #22d3ee 100%);
  --accent-soft: rgba(59, 130, 246, 0.14);

  --success: #34d399;
  --warning: #fbbf24;
  --danger: #f87171;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 0 1px var(--border), 0 30px 80px -20px rgba(34, 100, 220, 0.45);

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: "SFMono-Regular", ui-monospace, "JetBrains Mono", Menlo, Consolas, monospace;
  --maxw: 1160px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

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

.eyebrow {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 14px;
}

/* ------------------------- Фоновые свечения ------------------------------- */

.bg-aurora {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(34, 100, 220, 0.12), transparent 60%),
    radial-gradient(900px 500px at 0% 10%, rgba(34, 211, 238, 0.08), transparent 55%),
    var(--bg);
}
.aurora {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
}
.aurora--1 { width: 520px; height: 520px; top: -120px; right: -80px; background: #1d4ed8; }
.aurora--2 { width: 460px; height: 460px; top: 540px; left: -160px; background: #0e7490; opacity: 0.4; }
.aurora--3 { width: 380px; height: 380px; bottom: -120px; right: 10%; background: #2563eb; opacity: 0.25; }

/* ------------------------------ Кнопки ------------------------------------ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  border-radius: 11px;
  border: 1px solid transparent;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.12s, box-shadow 0.18s, background 0.18s, border-color 0.18s, opacity 0.15s;
}
.btn:active { transform: translateY(1px); }
.btn--lg { height: 52px; padding: 0 28px; font-size: 16px; }

.btn--primary {
  background: var(--accent-grad);
  color: #04121f;
  box-shadow: 0 10px 30px -8px rgba(34, 130, 230, 0.6);
}
.btn--primary:hover { box-shadow: 0 16px 40px -10px rgba(34, 130, 230, 0.75); transform: translateY(-1px); }

.btn--outline {
  background: var(--surface);
  border-color: var(--border-strong);
  color: var(--text);
}
.btn--outline:hover { background: var(--surface-2); border-color: var(--accent); }

.btn--ghost { background: transparent; color: var(--muted); }
.btn--ghost:hover { color: var(--text); }

.btn--full { width: 100%; }
.btn:disabled { opacity: 0.55; cursor: default; }

/* ------------------------------ Бренд ------------------------------------- */

.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand__mark {
  width: 34px; height: 34px; border-radius: 9px;
  display: grid; place-items: center;
  background: var(--accent-grad);
  color: #04121f; font-weight: 800; font-size: 18px;
  box-shadow: 0 6px 18px -6px rgba(34, 130, 230, 0.7);
}
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name { font-weight: 700; font-size: 16px; letter-spacing: -0.01em; }
.brand__tag { font-size: 11px; color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; }

/* ------------------------------ Навигация --------------------------------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(7, 11, 20, 0.72);
  border-bottom: 1px solid var(--border);
}
.nav__inner { display: flex; align-items: center; gap: 24px; height: 68px; }
.nav__links { display: flex; gap: 26px; margin-left: 18px; flex: 1; }
.nav__links a { color: var(--muted); font-size: 14.5px; font-weight: 500; transition: color 0.15s; }
.nav__links a:hover { color: var(--text); }
.nav__actions { display: flex; align-items: center; gap: 10px; }
.nav__actions .btn { height: 40px; }

.nav__burger {
  display: none;
  width: 42px; height: 40px;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  background: var(--surface);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.nav__burger span { width: 18px; height: 2px; background: var(--text); border-radius: 2px; transition: transform 0.2s, opacity 0.2s; }
.nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ------------------------------ Hero -------------------------------------- */

.hero {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 72px 24px 56px;
}
.hero__title {
  font-size: clamp(34px, 4.6vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  font-weight: 800;
  margin: 0 0 20px;
}
.hero__lead {
  font-size: 17.5px;
  color: var(--muted);
  margin: 0 0 28px;
  max-width: 540px;
}
.hero__lead strong { color: var(--text); font-weight: 600; }
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero__points {
  list-style: none;
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  padding: 0;
  margin: 26px 0 0;
}
.hero__points li {
  position: relative;
  padding-left: 22px;
  font-size: 13.5px;
  color: var(--muted);
}
.hero__points li::before {
  content: "";
  position: absolute; left: 0; top: 6px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, var(--accent-2), var(--accent));
  box-shadow: 0 0 10px rgba(34, 211, 238, 0.6);
}
.hero__visual { position: relative; }

/* «Окно браузера» со скриншотом/мокапом */
.window {
  position: relative;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #0d1322;
  box-shadow: var(--shadow);
  overflow: hidden;
  aspect-ratio: 16 / 10;
}
.window::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 34px;
  background: #0b1020;
  border-bottom: 1px solid var(--border);
}
.window::after {
  content: "";
  position: absolute; top: 13px; left: 14px;
  width: 8px; height: 8px; border-radius: 50%;
  background: #f87171;
  box-shadow: 16px 0 0 #fbbf24, 32px 0 0 #34d399;
}
.window svg { position: absolute; top: 34px; left: 0; width: 100%; height: calc(100% - 34px); display: block; }
.hero__visual .window { box-shadow: var(--shadow-glow); }

/* ------------------------------ Статистика -------------------------------- */

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin: 8px 0 12px;
}
.stat { background: var(--bg-2); padding: 24px 22px; }
.stat__num {
  display: block;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: var(--accent-grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat__label { display: block; margin-top: 6px; font-size: 13px; color: var(--muted); }

/* ------------------------------ Секции ------------------------------------ */

.section { padding: 72px 24px; }
.section__head { max-width: 640px; margin: 0 auto 44px; text-align: center; }
.section__title {
  font-size: clamp(26px, 3.4vw, 38px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
}
.section__sub { color: var(--muted); font-size: 16px; margin: 0; }

.grid { display: grid; gap: 18px; }
.grid--features { grid-template-columns: repeat(3, 1fr); }
.grid--steps { grid-template-columns: repeat(3, 1fr); }
.grid--shots { grid-template-columns: repeat(3, 1fr); }
.grid--usecases { grid-template-columns: repeat(2, 1fr); }
.grid--pricing { grid-template-columns: repeat(3, 1fr); align-items: stretch; }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  transition: border-color 0.2s, transform 0.2s, background 0.2s;
}
.card:hover { border-color: var(--border-strong); transform: translateY(-2px); }

/* Возможности */
.feature__icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: var(--accent-soft);
  border: 1px solid rgba(59, 130, 246, 0.3);
  display: grid; place-items: center;
  margin-bottom: 16px;
  color: var(--accent-2);
}
.feature h3 { margin: 0 0 8px; font-size: 18px; font-weight: 700; }
.feature p { margin: 0; color: var(--muted); font-size: 14.5px; }

/* Шаги */
.step { position: relative; padding: 28px 26px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.step__num {
  font-size: 14px; font-weight: 800; letter-spacing: 0.05em;
  color: var(--accent-2);
}
.step h3 { margin: 10px 0 8px; font-size: 18px; font-weight: 700; }
.step p { margin: 0; color: var(--muted); font-size: 14.5px; }

/* Блок кода */
.codeblock {
  display: flex; align-items: center; gap: 8px;
  margin-top: 16px;
  background: #060a13;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 8px 10px 12px;
  overflow: hidden;
}
.codeblock code {
  flex: 1; min-width: 0;
  font-family: var(--mono); font-size: 12px; color: #aec2e4;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.codeblock__copy {
  flex: none; width: 30px; height: 30px;
  border: 1px solid var(--border); border-radius: 8px;
  background: var(--surface-2); color: var(--muted);
  cursor: pointer; font-size: 14px;
}
.codeblock__copy:hover { color: var(--text); border-color: var(--accent); }

/* Скриншоты */
.shot { margin: 0; }
.shot figcaption { margin-top: 14px; text-align: center; color: var(--muted); font-size: 13.5px; }

/* Сценарии */
.usecase h3 { margin: 0 0 10px; font-size: 20px; }
.usecase > p { color: var(--muted); margin: 0 0 16px; font-size: 15px; }
.usecase--accent { border-color: rgba(59, 130, 246, 0.4); background: linear-gradient(180deg, rgba(59, 130, 246, 0.1), var(--surface)); }
.ticks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.ticks li { position: relative; padding-left: 28px; font-size: 14.5px; color: var(--text); }
.ticks li::before {
  content: "✓";
  position: absolute; left: 0; top: 0;
  width: 19px; height: 19px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--accent-soft); color: var(--accent-2);
  font-size: 11px; font-weight: 700;
}

/* ------------------------------ Тарифы ------------------------------------ */

.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 26px;
}
.price-card--popular {
  border-color: rgba(59, 130, 246, 0.5);
  background: linear-gradient(180deg, rgba(34, 130, 230, 0.12), var(--surface));
  box-shadow: 0 30px 70px -30px rgba(34, 130, 230, 0.6);
}
.price-card__badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--accent-grad); color: #04121f;
  font-size: 11.5px; font-weight: 700; letter-spacing: 0.04em;
  padding: 5px 12px; border-radius: 999px;
  white-space: nowrap;
}
.price-card__name { font-size: 19px; font-weight: 700; margin: 0 0 4px; }
.price-card__tagline { color: var(--muted); font-size: 13.5px; min-height: 38px; margin: 0 0 16px; }
.price-card__price { display: flex; align-items: baseline; gap: 6px; margin-bottom: 4px; }
.price-card__amount { font-size: 38px; font-weight: 800; letter-spacing: -0.02em; }
.price-card__per { color: var(--muted); font-size: 14px; }
.price-card__from { color: var(--muted-2); font-size: 12.5px; margin-bottom: 20px; }
.price-card__list { list-style: none; margin: 0 0 24px; padding: 0; display: flex; flex-direction: column; gap: 11px; flex: 1; }
.price-card__list li { position: relative; padding-left: 26px; font-size: 14px; color: var(--text); }
.price-card__list li::before {
  content: "✓"; position: absolute; left: 0; top: 1px;
  width: 18px; height: 18px; display: grid; place-items: center; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent-2); font-size: 10px; font-weight: 700;
}
.price-card__list li.is-muted { color: var(--muted-2); }
.price-card__list li.is-muted::before { content: "·"; background: transparent; color: var(--muted-2); font-size: 18px; }

.pricing__note { text-align: center; color: var(--muted-2); font-size: 13px; margin-top: 22px; }

/* ------------------------------ CTA --------------------------------------- */

.cta {
  text-align: center;
  padding: 56px 32px;
  border-radius: 22px;
  border: 1px solid var(--border);
  background:
    radial-gradient(700px 300px at 50% 0%, rgba(34, 130, 230, 0.2), transparent 70%),
    var(--surface);
  margin: 32px 0;
}
.cta h2 { font-size: clamp(24px, 3vw, 34px); font-weight: 800; margin: 0 0 10px; letter-spacing: -0.02em; }
.cta p { color: var(--muted); margin: 0 0 26px; font-size: 16px; }

/* ------------------------------ Футер ------------------------------------- */

.footer { border-top: 1px solid var(--border); padding: 32px 0; margin-top: 40px; }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.footer__links { display: flex; gap: 22px; }
.footer__links a { color: var(--muted); font-size: 14px; }
.footer__links a:hover { color: var(--text); }
.footer__copy { color: var(--muted-2); font-size: 13px; }

/* ==========================================================================
   Модалка оформления
   ========================================================================== */

.modal-root { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 24px; }
.modal-root[hidden] { display: none; }
.modal__scrim { position: absolute; inset: 0; background: rgba(3, 6, 12, 0.74); backdrop-filter: blur(4px); opacity: 0; transition: opacity 0.2s; }
.modal-root.is-open .modal__scrim { opacity: 1; }

.subscribe {
  position: relative;
  width: 460px; max-width: 100%;
  background: #0c1220;
  border: 1px solid var(--border-strong);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 26px;
  transform: translateY(14px) scale(0.98);
  opacity: 0;
  transition: transform 0.22s, opacity 0.22s;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
}
.modal-root.is-open .subscribe { transform: none; opacity: 1; }

.subscribe__close {
  position: absolute; top: 16px; right: 16px;
  width: 32px; height: 32px; border-radius: 9px;
  border: 1px solid var(--border); background: var(--surface);
  color: var(--muted); cursor: pointer; font-size: 16px;
}
.subscribe__close:hover { color: var(--text); }

.subscribe__eyebrow { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-2); font-weight: 600; }
.subscribe__name { font-size: 23px; font-weight: 800; margin: 6px 0 2px; letter-spacing: -0.01em; }
.subscribe__tagline { color: var(--muted); font-size: 13.5px; margin: 0 0 20px; }

.subscribe__label { display: block; font-size: 12.5px; font-weight: 600; color: var(--muted); margin: 0 0 9px; text-transform: uppercase; letter-spacing: 0.05em; }

.terms { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 20px; }
.term {
  border: 1px solid var(--border-strong);
  border-radius: 11px;
  background: var(--surface);
  padding: 11px 6px;
  cursor: pointer;
  text-align: center;
  transition: border-color 0.15s, background 0.15s;
}
.term:hover { border-color: var(--accent); }
.term.is-active { border-color: var(--accent); background: var(--accent-soft); }
.term__months { display: block; font-size: 17px; font-weight: 800; }
.term__unit { display: block; font-size: 11px; color: var(--muted); margin-top: 1px; }
.term__save { display: block; font-size: 10.5px; color: var(--success); font-weight: 700; margin-top: 4px; min-height: 13px; }

.summary {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  padding: 14px 16px;
  margin-bottom: 18px;
}
.summary__row { display: flex; justify-content: space-between; align-items: baseline; font-size: 13.5px; color: var(--muted); padding: 3px 0; }
.summary__row--total { border-top: 1px solid var(--border); margin-top: 8px; padding-top: 11px; }
.summary__row--total .summary__k { color: var(--text); font-weight: 600; font-size: 15px; }
.summary__total { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; color: var(--text); }
.summary__strike { color: var(--muted-2); text-decoration: line-through; margin-right: 8px; font-size: 14px; }
.summary__eff { color: var(--success); font-weight: 600; }

.field { margin-bottom: 16px; }
.field__input {
  width: 100%; height: 44px; padding: 0 13px;
  border: 1px solid var(--border-strong); border-radius: 11px;
  background: #070c16; color: var(--text); font: inherit; font-size: 15px;
}
.field__input::placeholder { color: var(--muted-2); }
.field__input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field__error { color: var(--danger); font-size: 12.5px; margin-top: 7px; display: none; }
.field__error.is-shown { display: block; }

.subscribe__legal { color: var(--muted-2); font-size: 11.5px; margin: 12px 0 0; text-align: center; }
.subscribe__legal a { color: var(--muted); text-decoration: underline; }

.subscribe__done { text-align: center; padding: 14px 4px; }
.subscribe__done-icon {
  width: 58px; height: 58px; margin: 0 auto 16px; border-radius: 50%;
  display: grid; place-items: center; font-size: 26px;
  background: rgba(52, 211, 153, 0.15); color: var(--success);
  border: 1px solid rgba(52, 211, 153, 0.4);
}
.subscribe__done h3 { margin: 0 0 8px; font-size: 20px; }
.subscribe__done p { color: var(--muted); font-size: 14px; margin: 0 0 22px; }

/* ------------------------------ Адаптив ----------------------------------- */

@media (max-width: 940px) {
  .hero { grid-template-columns: 1fr; gap: 36px; padding-top: 48px; }
  .hero__visual { order: -1; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .grid--features, .grid--steps, .grid--shots { grid-template-columns: repeat(2, 1fr); }
  .grid--pricing { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .price-card--popular { order: -1; }
}

@media (max-width: 720px) {
  .nav__links { display: none; }
  .nav__links.is-open {
    display: flex; flex-direction: column; gap: 4px;
    position: absolute; top: 68px; left: 0; right: 0;
    background: rgba(8, 12, 22, 0.98);
    border-bottom: 1px solid var(--border);
    padding: 12px 24px 18px;
  }
  .nav__links.is-open a { padding: 10px 0; font-size: 16px; }
  .nav__actions .btn--ghost { display: none; }
  .nav__burger { display: flex; }
  .section { padding: 56px 24px; }
}

@media (max-width: 560px) {
  .stats { grid-template-columns: 1fr; }
  .grid--features, .grid--steps, .grid--shots, .grid--usecases { grid-template-columns: 1fr; }
  .hero__cta .btn { flex: 1; }
  .terms { grid-template-columns: repeat(2, 1fr); }
}
