:root {
  color-scheme: dark;
  --bg: #030611;
  --bg-2: #070c19;
  --panel: rgba(7, 14, 31, 0.76);
  --panel-2: rgba(11, 22, 48, 0.88);
  --text: #edf7ff;
  --muted: #8a9bb5;
  --dim: #526178;
  --line: rgba(118, 241, 255, 0.18);
  --line-strong: rgba(118, 241, 255, 0.44);
  --cyan: #5df7ff;
  --green: #00ff9d;
  --violet: #8c6bff;
  --amber: #ffd166;
  --danger: #ff477e;
  --shadow: 0 32px 120px rgba(0, 0, 0, 0.55);
  --max: 1240px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 8% 8%, rgba(93, 247, 255, 0.18), transparent 28rem),
    radial-gradient(circle at 86% 16%, rgba(140, 107, 255, 0.2), transparent 32rem),
    radial-gradient(circle at 55% 92%, rgba(0, 255, 157, 0.12), transparent 30rem),
    linear-gradient(135deg, #030611 0%, #060916 44%, #02040a 100%);
  overflow-x: hidden;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -4;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(93, 247, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(93, 247, 255, 0.06) 1px, transparent 1px);
  background-size: 92px 92px;
  mask-image: radial-gradient(circle at 50% 20%, #000 0, rgba(0, 0, 0, 0.68) 42%, transparent 78%);
}

a {
  color: inherit;
  text-decoration: none;
}

svg {
  display: block;
}

.kinetic-grid {
  position: fixed;
  inset: 0;
  z-index: -3;
  width: 100%;
  height: 100%;
  opacity: 0.72;
  pointer-events: none;
}

.noise-layer,
.scanner-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.noise-layer {
  z-index: -2;
  opacity: 0.18;
  background-image:
    repeating-radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.14) 0 1px, transparent 1px 7px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 5px);
  mix-blend-mode: screen;
}

.scanner-layer {
  z-index: 20;
  background: linear-gradient(to bottom, transparent, rgba(93, 247, 255, 0.05), transparent);
  height: 28vh;
  animation: scan 9s linear infinite;
  opacity: 0.36;
}

.page-shell {
  width: min(var(--max), calc(100% - 44px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 14px;
  z-index: 30;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
  margin: 14px 0 56px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(93, 247, 255, 0.09), transparent),
    rgba(3, 6, 17, 0.76);
  box-shadow: var(--shadow), inset 0 0 0 1px rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(24px);
}

.brand,
.nav,
.header-cta,
.button,
.status-line,
.signal-strip span,
.section-kicker,
.module-head,
.console-row,
.contact-link {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 190px;
  color: var(--text);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.18em;
}

.brand-mark {
  width: 44px;
  height: 44px;
  filter: drop-shadow(0 0 18px rgba(93, 247, 255, 0.42));
}

.nav {
  display: flex;
  justify-content: center;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.nav a,
.header-cta {
  padding: 11px 14px;
  border: 1px solid transparent;
  border-radius: 16px;
  transition: 180ms ease;
}

.nav a:hover,
.header-cta:hover {
  border-color: var(--line);
  color: var(--cyan);
  background: rgba(93, 247, 255, 0.08);
}

.header-cta {
  justify-self: end;
  color: var(--green);
  font-size: 12px;
}

.section {
  margin-bottom: 128px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(390px, 1.06fr);
  gap: 34px;
  align-items: center;
  min-height: calc(100vh - 136px);
}

.reveal {
  transform: translateY(18px);
  opacity: 0;
  transition: transform 700ms ease, opacity 700ms ease;
}

.reveal.in-view {
  transform: translateY(0);
  opacity: 1;
}

.status-line,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.live-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 24px var(--green);
  animation: blink 1.6s ease-in-out infinite;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 780px;
  margin-bottom: 24px;
  font-size: clamp(48px, 8vw, 106px);
  line-height: 0.84;
  letter-spacing: -0.085em;
  text-transform: uppercase;
}

h1 span {
  display: block;
  color: transparent;
  -webkit-text-stroke: 1px rgba(237, 247, 255, 0.72);
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(34px, 5vw, 66px);
  line-height: 0.96;
  letter-spacing: -0.065em;
}

h3 {
  margin-bottom: 14px;
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1;
  letter-spacing: -0.04em;
}

.hero-text,
.map-card p,
.project-module p,
.crm-copy p,
.intel-card p,
.intel-lead p,
.footer-call p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.75;
}

.hero-text {
  max-width: 650px;
  margin-bottom: 30px;
  font-size: 20px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 18px;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-3px);
}

.button.primary {
  color: #00131a;
  background: linear-gradient(135deg, var(--cyan), var(--green));
  box-shadow: 0 0 42px rgba(0, 255, 157, 0.24);
}

.button.ghost {
  border: 1px solid var(--line);
  color: var(--text);
  background: rgba(255, 255, 255, 0.035);
}

.signal-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.signal-strip span {
  padding: 9px 11px;
  border: 1px solid rgba(93, 247, 255, 0.18);
  border-radius: 999px;
  color: #c9faff;
  font-size: 11px;
  background: rgba(93, 247, 255, 0.06);
}

.command-center {
  position: relative;
  min-height: 660px;
  border: 1px solid var(--line-strong);
  border-radius: 34px;
  background:
    linear-gradient(135deg, rgba(93, 247, 255, 0.11), rgba(140, 107, 255, 0.08) 42%, rgba(0, 255, 157, 0.08)),
    rgba(3, 6, 17, 0.7);
  box-shadow: var(--shadow), inset 0 0 70px rgba(93, 247, 255, 0.08);
  overflow: hidden;
}

.command-center::before,
.command-center::after {
  position: absolute;
  content: "";
  pointer-events: none;
}

.command-center::before {
  inset: 18px;
  border: 1px solid rgba(93, 247, 255, 0.14);
  border-radius: 26px;
  background-image:
    linear-gradient(90deg, rgba(93, 247, 255, 0.09) 1px, transparent 1px),
    linear-gradient(rgba(93, 247, 255, 0.09) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(circle at 50% 50%, #000 0, transparent 72%);
}

.command-center::after {
  inset: 0;
  background: linear-gradient(115deg, transparent 0 42%, rgba(255, 255, 255, 0.12) 48%, transparent 54% 100%);
  transform: translateX(-90%);
  animation: glassSweep 8s ease-in-out infinite;
}

.radar {
  position: absolute;
  inset: 92px 70px 118px;
  display: grid;
  place-items: center;
}

.radar-ring {
  position: absolute;
  border: 1px solid rgba(93, 247, 255, 0.28);
  border-radius: 50%;
  box-shadow: inset 0 0 40px rgba(93, 247, 255, 0.04);
}

.ring-one {
  width: 180px;
  height: 180px;
}

.ring-two {
  width: 310px;
  height: 310px;
}

.ring-three {
  width: 440px;
  height: 440px;
}

.radar-sweep {
  position: absolute;
  width: 440px;
  height: 440px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(93, 247, 255, 0.34), transparent 22%, transparent);
  animation: rotate 4.6s linear infinite;
  opacity: 0.7;
}

.node {
  position: absolute;
  z-index: 3;
  display: grid;
  min-width: 74px;
  min-height: 42px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  color: var(--text);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 12px;
  font-weight: 900;
  background: rgba(3, 6, 17, 0.82);
  box-shadow: 0 0 32px rgba(93, 247, 255, 0.16);
}

.node-a {
  top: 18%;
  left: 18%;
}

.node-b {
  top: 28%;
  right: 14%;
}

.node-c {
  right: 24%;
  bottom: 18%;
}

.node-d {
  bottom: 26%;
  left: 12%;
}

.ops-panel,
.terminal-card,
.map-card,
.project-module,
.crm-console,
.intel-lead,
.intel-card,
.contact-link {
  border: 1px solid var(--line);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.025)),
    rgba(4, 10, 24, 0.78);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.ops-panel {
  position: absolute;
  z-index: 4;
  display: grid;
  gap: 4px;
  min-width: 170px;
  padding: 16px;
  border-radius: 18px;
}

.ops-panel small,
.ops-panel span {
  color: var(--muted);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 11px;
  text-transform: uppercase;
}

.ops-panel strong {
  color: var(--cyan);
  font-size: 32px;
  line-height: 1;
}

.panel-top {
  top: 42px;
  left: 38px;
}

.panel-right {
  right: 34px;
  bottom: 178px;
}

.terminal-card {
  position: absolute;
  right: 34px;
  bottom: 34px;
  left: 34px;
  z-index: 4;
  padding: 18px;
  border-radius: 22px;
  background: rgba(1, 6, 14, 0.86);
}

.terminal-top {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.terminal-top span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--danger);
}

.terminal-top span:nth-child(2) {
  background: var(--amber);
}

.terminal-top span:nth-child(3) {
  background: var(--green);
}

pre {
  margin: 0;
  white-space: pre-wrap;
  color: #d9fff6;
  font: 700 14px/1.75 "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

.section-heading {
  max-width: 860px;
  margin-bottom: 34px;
}

.section-heading.wide {
  max-width: 1050px;
}

.map-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-auto-rows: minmax(260px, auto);
  gap: 16px;
}

.map-card {
  position: relative;
  padding: 26px;
  border-radius: 26px;
  overflow: hidden;
}

.map-card::before,
.project-module::before,
.intel-card::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background: linear-gradient(135deg, rgba(93, 247, 255, 0.16), transparent 36%, rgba(0, 255, 157, 0.08));
  opacity: 0.72;
}

.map-card > *,
.project-module > *,
.intel-card > * {
  position: relative;
  z-index: 1;
}

.map-card span,
.intel-card span {
  display: inline-block;
  margin-bottom: 38px;
  color: var(--green);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.map-card.tall {
  grid-row: span 2;
}

.map-card.wide-card {
  grid-column: span 2;
}

.api-lines {
  display: grid;
  gap: 10px;
  margin-top: 28px;
}

.api-lines b {
  display: flex;
  justify-content: space-between;
  padding: 12px 14px;
  border: 1px solid rgba(93, 247, 255, 0.14);
  border-radius: 14px;
  color: #d9fff6;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 12px;
  background: rgba(93, 247, 255, 0.04);
}

.api-lines b::after {
  content: "активно";
  color: var(--green);
  font-weight: 700;
}

.project-deck {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.project-module {
  position: relative;
  min-height: 520px;
  padding: 32px;
  border-radius: 32px;
  overflow: hidden;
}

.project-module::after {
  position: absolute;
  right: -60px;
  bottom: -80px;
  width: 300px;
  height: 300px;
  border: 1px solid rgba(93, 247, 255, 0.2);
  border-radius: 50%;
  content: "";
  box-shadow: inset 0 0 80px rgba(93, 247, 255, 0.08);
}

.project-module.auction::after {
  border-color: rgba(0, 255, 157, 0.24);
}

.module-head {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 160px;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.module-head a {
  color: var(--cyan);
}

.module-telemetry {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10px;
  margin-top: 30px;
}

.module-telemetry span {
  padding: 13px 15px;
  border-left: 2px solid var(--green);
  color: #d9fff6;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 12px;
  background: rgba(0, 255, 157, 0.06);
}

.crm-lab {
  display: grid;
  grid-template-columns: 0.86fr 1.14fr;
  gap: 18px;
  padding: 1px;
  border-radius: 34px;
  background: linear-gradient(135deg, rgba(93, 247, 255, 0.7), rgba(140, 107, 255, 0.32), rgba(0, 255, 157, 0.72));
}

.crm-copy,
.crm-console {
  border-radius: 33px;
}

.crm-copy {
  padding: clamp(28px, 5vw, 56px);
  background:
    radial-gradient(circle at 0 0, rgba(93, 247, 255, 0.2), transparent 23rem),
    rgba(3, 6, 17, 0.94);
}

.crm-demo {
  margin-top: 28px;
}

.crm-console {
  display: grid;
  gap: 12px;
  padding: clamp(22px, 4vw, 38px);
  background: rgba(3, 6, 17, 0.9);
}

.console-row {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 8px 14px;
  align-items: center;
  padding: 18px;
  border: 1px solid rgba(93, 247, 255, 0.14);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.035);
}

.console-row span {
  grid-row: span 2;
  color: var(--green);
  font-weight: 900;
}

.console-row strong {
  color: var(--text);
}

.console-row em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.console-row.active {
  border-color: var(--line-strong);
  box-shadow: 0 0 38px rgba(93, 247, 255, 0.12);
}

.intel-grid {
  display: grid;
  grid-template-columns: 1.32fr 0.9fr 0.9fr;
  gap: 16px;
}

.intel-lead,
.intel-card {
  position: relative;
  min-height: 330px;
  padding: 28px;
  border-radius: 28px;
  overflow: hidden;
}

.intel-lead {
  grid-row: span 2;
  background:
    radial-gradient(circle at 20% 0, rgba(140, 107, 255, 0.2), transparent 24rem),
    rgba(4, 10, 24, 0.78);
}

.intel-lead h2 {
  font-size: clamp(34px, 4vw, 54px);
}

.footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(310px, 420px);
  gap: 20px;
  padding-bottom: 34px;
}

.footer-call {
  padding: clamp(28px, 5vw, 54px);
  border: 1px solid var(--line);
  border-radius: 32px;
  background: rgba(4, 10, 24, 0.72);
}

.contact-link {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 250px;
  padding: 28px;
  border-radius: 32px;
  transition: transform 180ms ease, border-color 180ms ease;
}

.contact-link:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
}

.contact-link span {
  color: var(--green);
  font-size: 12px;
  text-transform: uppercase;
}

.contact-link strong {
  color: var(--cyan);
  font-size: clamp(20px, 3vw, 30px);
  word-break: break-word;
}

.footer-bottom {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 12px;
}

.footer-bottom a {
  color: var(--cyan);
}

@keyframes rotate {
  to {
    transform: rotate(1turn);
  }
}

@keyframes blink {
  50% {
    opacity: 0.35;
    transform: scale(0.76);
  }
}

@keyframes scan {
  from {
    transform: translateY(-32vh);
  }
  to {
    transform: translateY(112vh);
  }
}

@keyframes glassSweep {
  0%,
  58% {
    transform: translateX(-90%);
  }
  100% {
    transform: translateX(90%);
  }
}

@media (max-width: 1040px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .hero,
  .crm-lab,
  .footer {
    grid-template-columns: 1fr;
  }

  .map-grid,
  .intel-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .map-card.tall,
  .intel-lead {
    grid-row: auto;
  }

  .map-card.wide-card {
    grid-column: span 2;
  }
}

@media (max-width: 720px) {
  .page-shell {
    width: min(100% - 24px, var(--max));
  }

  .site-header {
    top: 8px;
    border-radius: 18px;
  }

  .header-cta {
    display: none;
  }

  .section {
    margin-bottom: 88px;
  }

  .hero {
    min-height: auto;
  }

  .command-center {
    min-height: 560px;
  }

  .radar {
    inset: 80px 24px 150px;
  }

  .ring-three,
  .radar-sweep {
    width: 320px;
    height: 320px;
  }

  .ring-two {
    width: 230px;
    height: 230px;
  }

  .ring-one {
    width: 140px;
    height: 140px;
  }

  .panel-right {
    right: 18px;
    bottom: 182px;
  }

  .panel-top,
  .terminal-card {
    right: 18px;
    left: 18px;
  }

  .map-grid,
  .project-deck,
  .intel-grid {
    grid-template-columns: 1fr;
  }

  .map-card.wide-card {
    grid-column: auto;
  }

  .project-module {
    min-height: auto;
  }

  .module-head {
    flex-direction: column;
    margin-bottom: 80px;
  }

  .footer-bottom {
    flex-direction: column;
  }
}
