:root {
  --bg: #181c29;
  --bg2: #1e2332;
  --panel: #202637;
  --panel2: #252b3d;
  --line: #343c52;
  --text: #f2f4f8;
  --muted: #aab1c1;
  --green: #14b85a;
  --purple: #b119c8;
  --blue: #5965ff;
  --max: 1240px;
  --radius: 18px;
}

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

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;

  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;

  line-height: 1.6;
  color: var(--text);

  background:
    radial-gradient(
      circle at 75% 8%,
      rgba(89, 101, 255, 0.11),
      transparent 30%
    ),
    radial-gradient(
      circle at 18% 12%,
      rgba(177, 25, 200, 0.09),
      transparent 28%
    ),
    var(--bg);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.container {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}

/* Accessibility */

.skip-link {
  position: absolute;
  left: -9999px;
}

.skip-link:focus {
  left: 20px;
  top: 20px;
  z-index: 100;

  padding: 10px 14px;
  border-radius: 8px;

  color: #000;
  background: #fff;
}

/* Header */

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;

  background: rgba(24, 28, 41, 0.88);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(16px);
}

.nav-wrap {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  margin-right: auto;
}

.brand img {
  object-fit: contain;
}

.nav {
  display: flex;
  gap: 25px;
}

.nav a,
.text-link {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
}

.nav a:hover,
.text-link:hover {
  color: #fff;
}

/* Buttons */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 48px;
  padding: 0 22px;

  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 11px;

  color: #fff;
  background: linear-gradient(135deg, var(--purple), #751ecb);
  box-shadow: 0 12px 32px rgba(177, 25, 200, 0.2);

  text-decoration: none;
  font-weight: 750;

  transition:
    transform 0.2s,
    filter 0.2s;
}

.button:hover {
  transform: translateY(-2px);
  filter: brightness(1.12);
}

.button-small {
  min-height: 40px;
  padding-inline: 16px;
  font-size: 0.88rem;
}

.button-ghost {
  background: var(--panel2);
  box-shadow: none;
  border-color: var(--line);
}

/* Hero */

.hero {
  padding: 88px 0 72px;
}

.hero-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.hero-copy {
  position: relative;
  z-index: 2;

  display: flex;
  flex-direction: column;
  align-items: center;

  width: 100%;
  max-width: 1120px;
  margin: 0 auto;

  text-align: center;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;

  color: #c9ced9;
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.hero-copy .eyebrow {
  justify-content: center;
}

.status-dot {
  display: inline-block;
  flex: 0 0 auto;

  width: 8px;
  height: 8px;

  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 16px rgba(20, 184, 90, 0.85);
}

h1 {
  max-width: 1120px;
  margin: 18px auto 26px;

  font-size: clamp(3rem, 6.4vw, 5.8rem);
  line-height: 1.04;
  letter-spacing: -0.018em;

  text-wrap: balance;
}

h1 span {
  color: #b9c0d0;
}

h2 {
  margin: 12px 0 18px;

  font-size: clamp(2rem, 3.4vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.lead {
  max-width: 760px;
  margin: 0 auto;

  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1.75;

  text-wrap: balance;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;

  margin: 30px 0 0;
}

/* Hero facts */

.quick-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));

  width: 100%;
  max-width: 1080px;

  margin: 44px auto 0;
  padding: 0;

  list-style: none;
  text-align: left;
}

.quick-facts li {
  min-width: 0;
  padding: 18px 28px 0;

  border-top: 1px solid var(--line);
}

.quick-facts li:first-child {
  padding-left: 0;
}

.quick-facts li:last-child {
  padding-right: 0;
}

.quick-facts strong,
.quick-facts span {
  display: block;
}

.quick-facts strong {
  font-size: 0.9rem;
}

.quick-facts span {
  margin-top: 3px;

  color: var(--muted);
  font-size: 0.75rem;
}

/*
 * Отдельный гарантированный промежуток.
 * Панель остаётся в обычном потоке документа.
 */
.dashboard-shell {
  position: relative;
  z-index: 1;

  width: 100%;
  max-width: 1240px;

  margin: 64px auto 0;

  overflow: hidden;

  border: 1px solid #3a4258;
  border-radius: 14px;

  background: #1f2433;

  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.38),
    0 0 0 1px rgba(255, 255, 255, 0.025);

  transform: none;
}

.window-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;

  height: 48px;
  padding: 0 16px;

  border-bottom: 1px solid #323a4e;

  color: #c9ced9;
  font-size: 0.78rem;
}

.window-title {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mini-logo {
  color: var(--purple);
  font-size: 1.2rem;
}

.window-status {
  display: flex;
  align-items: center;
  gap: 7px;

  font-size: 0.68rem;
}

.dashboard-shell img {
  width: 100%;
  height: auto;

  aspect-ratio: 1786 / 864;
  object-fit: cover;
}

/* Metrics */

.metrics-strip {
  border-block: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(30, 35, 50, 0.72);
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.metrics-grid > div {
  padding: 30px;
  border-right: 1px solid rgba(255, 255, 255, 0.07);
}

.metrics-grid > div:first-child {
  border-left: 1px solid rgba(255, 255, 255, 0.07);
}

.metrics-grid span {
  color: var(--purple);
  font-size: 0.72rem;
  font-weight: 800;
}

.metrics-grid strong {
  display: block;
  margin: 6px 0;
  font-size: 1rem;
}

.metrics-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
}

/* Sections */

.section {
  padding: 104px 0;
}

.section-heading {
  max-width: 700px;
  margin-bottom: 42px;
}

.section-heading > p,
.business p,
.cta p {
  color: var(--muted);
}

/* Cards */

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.card {
  min-height: 240px;
  padding: 26px;

  border: 1px solid var(--line);
  border-radius: var(--radius);

  background:
    linear-gradient(
      145deg,
      rgba(37, 43, 61, 0.95),
      rgba(29, 34, 49, 0.95)
    );

  transition:
    transform 0.22s,
    border-color 0.22s;
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--blue);
}

.card-icon {
  display: grid;
  place-items: center;

  width: 42px;
  height: 42px;

  border: 1px solid rgba(177, 25, 200, 0.35);
  border-radius: 10px;

  color: #e26df2;
  background: rgba(177, 25, 200, 0.13);

  font-size: 0.75rem;
  font-weight: 800;
}

.card h3 {
  margin: 28px 0 10px;
  font-size: 1.08rem;
}

.card p {
  color: var(--muted);
  font-size: 0.9rem;
}

/* Business */

.business {
  background:
    linear-gradient(
      180deg,
      transparent,
      rgba(32, 38, 55, 0.78),
      transparent
    );
}

.business-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 80px;
}

.terminal-card {
  padding: 16px;

  border: 1px solid var(--line);
  border-radius: var(--radius);

  background: #151924;
}

.terminal-card div {
  display: flex;
  gap: 16px;

  padding: 16px;

  border-bottom: 1px solid #2b3142;

  color: #c8ceda;
  font-family:
    ui-monospace,
    SFMono-Regular,
    Menlo,
    monospace;
  font-size: 0.87rem;
}

.terminal-card div:last-child {
  border-bottom: 0;
}

.terminal-card span {
  color: var(--green);
}

/* CTA */

.cta {
  padding-top: 30px;
}

.cta-box {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  align-items: center;
  gap: 40px;

  padding: 44px;

  border: 1px solid #494062;
  border-radius: 24px;

  background:
    radial-gradient(
      circle at right top,
      rgba(177, 25, 200, 0.18),
      transparent 35%
    ),
    var(--panel);
}

.cta-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}

/* Footer */

footer {
  padding: 28px 0;

  border-top: 1px solid rgba(255, 255, 255, 0.07);

  color: var(--muted);
  font-size: 0.8rem;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

/* Tablet */

@media (max-width: 1000px) {
  .nav {
    display: none;
  }

  .dashboard-shell {
    max-width: 900px;
  }

  .cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .business-grid {
    gap: 40px;
  }

  .cta-box {
    grid-template-columns: 1fr;
  }
}

/* Mobile */

@media (max-width: 680px) {
  .container {
    width: min(calc(100% - 28px), var(--max));
  }

  .topbar .button-small {
    display: none;
  }

  .nav-wrap {
    min-height: 62px;
  }

  .hero {
    padding: 60px 0 48px;
  }

  h1 {
    font-size: clamp(2.5rem, 12vw, 4rem);
    line-height: 1.04;
    letter-spacing: -0.012em;
  }

  .lead {
    font-size: 1rem;
    line-height: 1.65;
  }

  .hero-actions {
    width: 100%;
    flex-direction: column;
  }

  .hero-actions .button {
    width: 100%;
  }

  .quick-facts {
    grid-template-columns: 1fr;
    margin-top: 36px;
    text-align: center;
  }

  .quick-facts li,
  .quick-facts li:first-child,
  .quick-facts li:last-child {
    padding: 18px 0;
  }

  .quick-facts li + li {
    border-top: 1px solid var(--line);
  }

  .dashboard-shell {
    width: 100%;
    margin-top: 40px;
  }

  .window-bar {
    height: 44px;
    padding-inline: 12px;
  }

  .metrics-grid,
  .cards,
  .business-grid {
    grid-template-columns: 1fr;
  }

  .metrics-grid > div,
  .metrics-grid > div:first-child {
    border-left: 0;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  }

  .section {
    padding: 72px 0;
  }

  .cta-box {
    padding: 28px;
  }

  .footer-grid {
    display: block;
  }

  .footer-grid div + div {
    margin-top: 8px;
  }
}

/* Reduced motion */

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

  .button,
  .card {
    transition: none;
  }
}

/* Tuned elements */
#monitoring {
  scroll-margin-top: 220px;
}

/* Whatsapp */
.button-whatsapp {
  background: linear-gradient(135deg, #25d366, #128c4a);
  border-color: rgba(37, 211, 102, 0.45);
  box-shadow: 0 12px 32px rgba(37, 211, 102, 0.18);
}

.button-whatsapp:hover {
  filter: brightness(1.1);
  box-shadow: 0 14px 38px rgba(37, 211, 102, 0.26);
}