:root {
  --navy: #102047;
  --ink: #24324d;
  --blue: #1a6fe8;
  --blue-deep: #1458c4;
  --blue-soft: #e7f1ff;
  --rail: #4aa3ff;
  --muted: #5d6e89;
  --line: #e3edf8;
  --bg: #ffffff;
  --white: #ffffff;
  --ok: #0d9a6c;
  --warn: #b45309;
  --shadow: 0 16px 40px rgba(22, 58, 112, 0.08);
  --header: 84px;
  --wrap: 1120px;
  --sans: "Outfit", "Segoe UI", sans-serif;
  --display: "Sora", "Outfit", "Segoe UI", sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  min-height: 100vh;
}

img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-deep); }

h1, h2, h3, h4 {
  font-family: var(--display);
  color: var(--navy);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 0 0 0.5rem;
}

p { margin: 0 0 1rem; }

.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: white;
  padding: 8px 12px;
  z-index: 80;
  border-radius: 8px;
}
.skip:focus { top: 12px; }

.wrap {
  width: min(var(--wrap), calc(100% - 64px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  min-height: var(--header);
  padding: 16px 36px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--navy);
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.04em;
}
.logo:hover { color: var(--navy); }
.logo-mark { width: 28px; height: 28px; flex: none; }

.site-nav {
  display: flex;
  gap: 36px;
}
.site-nav a {
  color: #3c4d68;
  font-weight: 500;
  font-size: 0.98rem;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] { color: var(--blue); }

.header-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 22px;
}
.link-login,
.link-phone {
  color: var(--blue);
  font-weight: 600;
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: white;
  border-radius: 10px;
  padding: 8px 12px;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 10px;
  padding: 12px 22px;
  font-weight: 600;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: 0.65; cursor: wait; transform: none; }
.btn-solid {
  background: var(--blue);
  color: white;
  box-shadow: 0 10px 22px rgba(26, 111, 232, 0.28);
}
.btn-solid:hover { background: var(--blue-deep); color: white; }
.btn-outline {
  background: white;
  color: var(--blue);
  border-color: #8ebaf5;
  padding: 8px 16px;
}
.btn-outline:hover { border-color: var(--blue); color: var(--blue-deep); background: white; }
.btn-ghost {
  background: transparent;
  color: var(--blue);
  padding-inline: 0;
}

.hero {
  position: relative;
  min-height: calc(100vh - var(--header));
  display: flex;
  justify-content: center;
  overflow: hidden;
  background: #ffffff;
}

.globe {
  position: absolute;
  left: 50%;
  top: 46%;
  width: min(980px, 92vw);
  aspect-ratio: 1;
  transform: translate(-50%, -48%);
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 45%, rgba(190, 215, 245, 0.28), rgba(245, 248, 253, 0) 62%),
    repeating-linear-gradient(90deg, rgba(90, 150, 220, 0.05) 0 1px, transparent 1px 42px),
    repeating-linear-gradient(0deg, rgba(90, 150, 220, 0.05) 0 1px, transparent 1px 42px);
  mask-image: radial-gradient(circle, #000 42%, transparent 68%);
  pointer-events: none;
}

.hero canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero-fade {
  position: absolute;
  inset: 0 0 auto 0;
  height: 48%;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 1) 18%, rgba(255, 255, 255, 0));
  pointer-events: none;
  z-index: 1;
}

.hero-copy {
  position: relative;
  z-index: 2;
  text-align: center;
  width: min(760px, calc(100% - 48px));
  margin-top: 9vh;
}

.hero h1 {
  font-size: clamp(2.5rem, 5.4vw, 4.35rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  margin-bottom: 1.1rem;
}
.hero h1 span {
  display: block;
  color: var(--blue);
}

.hero-copy p {
  max-width: 620px;
  margin: 0 auto 1.6rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.kicker {
  color: var(--blue);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
  margin-bottom: 0.6rem;
}

.section { padding: 88px 0; }
.section-head {
  max-width: 680px;
  margin-bottom: 36px;
}
.section-head h2,
.page-hero h1 { font-size: clamp(1.8rem, 3vw, 2.6rem); }
.section-head p:last-child,
.lead { color: var(--muted); font-size: 1.05rem; }

.section.alt {
  background: white;
  border-block: 1px solid var(--line);
}

.stack {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}
.stack-step {
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px 16px 16px;
  box-shadow: var(--shadow);
}
.stack-step span {
  display: inline-block;
  color: var(--blue);
  font-weight: 700;
  font-size: 0.82rem;
  margin-bottom: 10px;
}
.stack-step h3 { font-size: 1.05rem; }
.stack-step p { color: var(--muted); font-size: 0.92rem; margin: 0; }

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  min-height: 100%;
}
.card h3 { font-size: 1.2rem; }
.card p { color: var(--muted); flex: 1; }
.icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--blue-soft);
  color: var(--blue);
  display: grid;
  place-items: center;
  margin-bottom: 14px;
}
.icon svg { width: 22px; height: 22px; }

.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}
.split.reverse { grid-template-columns: 0.95fr 1.05fr; }
.split.reverse .copy { order: 2; }

.ticks { list-style: none; padding: 0; margin: 0 0 1.2rem; }
.ticks li {
  position: relative;
  padding-left: 26px;
  margin: 0.4rem 0;
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 14px;
  height: 8px;
  border-left: 2px solid var(--blue);
  border-bottom: 2px solid var(--blue);
  transform: rotate(-45deg);
}

.monitor, .stream {
  background: white;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.monitor-top, .stream-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  font-weight: 600;
  color: var(--navy);
  font-size: 0.92rem;
}
.live {
  color: var(--ok);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.live::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 6px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 4px rgba(13, 154, 108, 0.15);
}
.monitor-body { display: grid; grid-template-columns: 0.9fr 1.1fr; min-height: 280px; }
.unit-list { list-style: none; margin: 0; padding: 8px; }
.unit-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px;
  border-radius: 12px;
}
.unit-list li:hover { background: var(--blue-soft); }
.unit-list strong { display: block; color: var(--navy); font-size: 0.92rem; }
.unit-list span { color: var(--muted); font-size: 0.8rem; }
.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  margin-top: 6px;
  flex: none;
  background: var(--ok);
}
.dot.warn { background: #f59e0b; }
.dot.idle { background: #94a3b8; }
.map {
  margin: 10px 10px 10px 0;
  border-radius: 14px;
  background:
    radial-gradient(circle at 30% 40%, rgba(26, 111, 232, 0.16), transparent 28%),
    linear-gradient(160deg, #eef5ff, #f8fbff);
  position: relative;
  overflow: hidden;
}
.map svg { width: 100%; height: 100%; min-height: 260px; }

.stream-body { padding: 16px; }
.msg {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.78rem;
  line-height: 1.55;
  background: #0f1c36;
  color: #d5e4ff;
  border-radius: 12px;
  padding: 14px;
  margin: 0 0 12px;
  overflow: auto;
}
.msg b { color: #8ec5ff; font-weight: 600; }
.forwards { display: flex; flex-wrap: wrap; gap: 8px; }
.forwards span, .pills li, .tag {
  background: var(--blue-soft);
  color: var(--blue-deep);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.82rem;
  font-weight: 600;
}
.pills { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 20px 0 0; }

.page-hero { padding: 72px 0 28px; }
.page-hero p { max-width: 680px; }

.offer { padding: 28px 0; }
.offer + .offer { border-top: 1px solid var(--line); }
.offer h2 { font-size: 1.7rem; }

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.step {
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
}
.step strong { display: block; color: var(--blue); margin-bottom: 6px; }

.articles { display: grid; gap: 22px; }
.article {
  background: white;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px;
  box-shadow: var(--shadow);
}
.article h2 { font-size: 1.45rem; }
.article p:last-child { margin-bottom: 0; }

.grid-2 {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: start;
}

.form, .auth-card, .aside {
  background: white;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 24px;
  box-shadow: var(--shadow);
}
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label { font-weight: 600; color: var(--navy); font-size: 0.92rem; }
.field input, .field select, .field textarea {
  border: 1px solid #d5e3f4;
  background: #fbfdff;
  border-radius: 12px;
  padding: 12px 14px;
  outline: none;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(26, 111, 232, 0.15);
}
.hp { position: absolute; left: -9999px; }
.form-error, .form-success {
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 14px;
}
.form-error { background: #fff4f2; color: #9f2d20; }
.form-success { background: #edfbf4; color: #0b6b49; }
.aside h2 { font-size: 1.2rem; }
.aside ol { margin: 0; padding-left: 1.1rem; color: var(--muted); }
.aside li { margin: 0.45rem 0; }

.auth-wrap {
  min-height: calc(100vh - 280px);
  display: grid;
  place-items: center;
  padding: 48px 0 72px;
}
.auth-card { width: min(440px, 100%); }
.auth-card h1 { font-size: 1.8rem; }
.fine { color: var(--muted); font-size: 0.92rem; }

.site-footer {
  background: white;
  border-top: 1px solid var(--line);
  padding: 48px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 24px;
}
.site-footer h2 {
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.site-footer a { display: block; color: var(--muted); margin: 6px 0; }
.site-footer a:hover { color: var(--blue); }
.footer-brand p { color: var(--muted); max-width: 320px; }
.footer-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 4px;
}
.footer-contact a {
  display: inline-flex;
  margin: 0;
  color: var(--navy);
  font-weight: 600;
}
.contact-direct {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0 4px;
}
.contact-direct a { font-weight: 700; }
.wa-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 45;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #25d366;
  color: #fff;
  font-weight: 700;
  border-radius: 999px;
  padding: 12px 16px;
  box-shadow: 0 10px 24px rgba(18, 140, 94, 0.28);
}
.wa-float:hover { color: #fff; background: #1ebe5d; }
.cta-row { margin-top: 28px; }

.legal {
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.85rem;
}

.cap-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.cap {
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
}
.cap h3 { font-size: 0.98rem; }
.cap p { color: var(--muted); font-size: 0.88rem; margin: 0; }

[id] { scroll-margin-top: 96px; }

@media (max-width: 980px) {
  .cards, .stack, .steps, .cap-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid, .split, .split.reverse, .grid-2, .monitor-body { grid-template-columns: 1fr; }
  .split.reverse .copy { order: 0; }
  .map { min-height: 220px; margin: 0 10px 10px; }
}

@media (max-width: 800px) {
  .wrap { width: min(var(--wrap), calc(100% - 32px)); }
  .site-header {
    display: flex;
    flex-wrap: wrap;
    padding: 14px 16px;
  }
  .nav-toggle { display: inline-flex; margin-left: auto; }
  .site-nav, .header-actions { display: none; width: 100%; }
  .site-header.is-open .site-nav,
  .site-header.is-open .header-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding-bottom: 8px;
  }
  .hero-copy { margin-top: 48px; }
  .section { padding: 56px 0; }
  .cards, .stack, .steps, .cap-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
