/* ============================================================
   VRSim Training — landing styles
   Palette: WhatsApp-green B2B. Light theme + dark theme.
   ============================================================ */

:root {
  /* Brand (tweakable) */
  --primary: #0f766e; /* dark teal-green */
  --primary-ink: #0a5751;
  --accent: #25d366; /* WhatsApp green — CTA */
  --accent-strong: #1eb858;
  --accent-soft: #e7f9ee;

  /* Neutrals */
  --bg: #f0f2f5;
  --surface: #ffffff;
  --surface-2: #f7f9fa;
  --ink: #1f2a30;
  --ink-soft: #5b6b72;
  --ink-faint: #8a979d;
  --line: rgba(31, 42, 48, 0.09);
  --line-strong: rgba(31, 42, 48, 0.16);

  /* Type */
  --font: 'Schibsted Grotesk', system-ui, sans-serif;
  --font-num: var(--font);

  /* Shape & rhythm (density-tweakable) */
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 22px;
  --radius-xl: 28px;
  --section-pad: 104px;
  --container: 1200px;

  --shadow-sm: 0 1px 2px rgba(16, 30, 36, 0.06), 0 1px 3px rgba(16, 30, 36, 0.05);
  --shadow: 0 6px 18px rgba(16, 30, 36, 0.08), 0 2px 6px rgba(16, 30, 36, 0.05);
  --shadow-lg: 0 24px 60px -18px rgba(15, 60, 55, 0.28), 0 8px 24px rgba(16, 30, 36, 0.08);
  --shadow-accent: 0 14px 30px -10px rgba(37, 211, 102, 0.5);

  color-scheme: light dark;
}

[data-density='compact'] {
  --section-pad: 76px;
  --radius: 14px;
  --radius-lg: 18px;
}
[data-density='comfy'] {
  --section-pad: 132px;
  --radius: 18px;
  --radius-lg: 26px;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.55;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 700;
}
p {
  margin: 0;
}
a {
  color: inherit;
  text-decoration: none;
}
img,
svg {
  display: block;
  max-width: 100%;
}

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

.section {
  padding-block: var(--section-pad);
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
}
.eyebrow::before {
  content: '';
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
}

.section-head {
  max-width: 660px;
  margin-bottom: 52px;
}
.section-head h2 {
  font-size: clamp(30px, 3.6vw, 46px);
  margin-top: 14px;
}
.section-head p {
  margin-top: 16px;
  font-size: 18px;
  color: var(--ink-soft);
  text-wrap: pretty;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font: inherit;
  font-weight: 650;
  font-size: 15px;
  padding: 13px 22px;
  border-radius: 999px;
  cursor: pointer;
  border: 1px solid transparent;
  white-space: nowrap;
  transition:
    transform 0.16s ease,
    box-shadow 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease;
}
.btn svg {
  width: 18px;
  height: 18px;
}
.btn-primary {
  background: var(--accent);
  color: #08351c;
  box-shadow: var(--shadow-accent);
}
.btn-primary:hover {
  background: var(--accent-strong);
  transform: translateY(-1px);
}
.btn-ghost {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn-ghost:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-1px);
}
.btn-dark {
  background: var(--primary);
  color: #fff;
}
.btn-dark:hover {
  background: var(--primary-ink);
  transform: translateY(-1px);
}
.btn-lg {
  padding: 16px 28px;
  font-size: 16px;
}
.btn-white {
  background: #fff;
  color: var(--primary);
}
.btn-white:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}
.btn-on-dark-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}
.btn-on-dark-ghost:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

/* ---------- Logo lockup (equal-width VRSim / TRAINING) ---------- */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 11px;
}
.logo-badge {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  flex: none;
  background: linear-gradient(150deg, var(--accent), var(--primary));
  display: grid;
  place-items: center;
  box-shadow: 0 4px 12px -3px rgba(37, 211, 102, 0.55);
}
.logo-badge svg {
  width: 20px;
  height: 20px;
}
.wordmark {
  display: inline-block;
  line-height: 1;
}
.wordmark-top {
  display: block;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.015em;
  color: var(--ink);
  white-space: nowrap;
}
.wordmark-bottom {
  display: block;
  font-weight: 600;
  font-size: 11px;
  margin-top: 3px;
  color: var(--primary);
  text-transform: uppercase;
  white-space: nowrap;
  text-align: justify;
}
.logo-dark .wordmark-top {
  color: #fff;
}
.logo-dark .wordmark-bottom {
  color: var(--accent);
}

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(240, 242, 245, 0.78);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition:
    border-color 0.2s ease,
    background 0.2s ease;
}
.header.scrolled {
  border-color: var(--line);
  background: rgba(247, 249, 250, 0.86);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 74px;
}
.nav {
  display: flex;
  gap: 28px;
  margin-left: 14px;
}
.nav a {
  font-size: 15px;
  font-weight: 550;
  color: var(--ink-soft);
  transition: color 0.15s;
  white-space: nowrap;
}
.nav a:hover {
  color: var(--primary);
}
.header-cta {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
}
.menu-toggle {
  display: none;
}

/* ---------- Theme toggle ---------- */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  cursor: pointer;
  transition:
    color 0.15s ease,
    border-color 0.15s ease,
    transform 0.15s ease;
}
.theme-toggle:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-1px);
}
.theme-toggle svg {
  width: 18px;
  height: 18px;
}
/* Светлая тема показывает «луну» (клик → тёмная), тёмная — «солнце» (клик → светлая). */
.theme-toggle .ic-sun {
  display: none;
}
:root[data-theme='dark'] .theme-toggle .ic-sun {
  display: block;
}
:root[data-theme='dark'] .theme-toggle .ic-moon {
  display: none;
}

/* ---------- Language dropdown ---------- */
.lang-dd {
  position: relative;
}
.lang-dd-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 8px 12px;
  cursor: pointer;
  transition:
    border-color 0.15s ease,
    color 0.15s ease;
}
.lang-dd-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.lang-dd-btn svg {
  width: 16px;
  height: 16px;
}
.lang-dd-btn .lang-cur {
  min-width: 18px;
  text-align: center;
}
.lang-caret {
  opacity: 0.65;
  transition: transform 0.2s ease;
}
.lang-dd[data-open='true'] .lang-caret {
  transform: rotate(180deg);
}
.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 150px;
  list-style: none;
  margin: 0;
  padding: 6px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  z-index: 60;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition:
    opacity 0.16s ease,
    transform 0.16s ease,
    visibility 0.16s;
}
.lang-dd[data-open='true'] .lang-menu {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.lang-opt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-soft);
  padding: 9px 12px;
  border-radius: 9px;
  cursor: pointer;
  transition:
    background 0.12s ease,
    color 0.12s ease;
}
.lang-opt:hover {
  background: var(--surface-2);
  color: var(--primary);
}
.lang-opt:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}
.lang-opt[aria-selected='true'] {
  color: var(--primary);
}
.lang-opt[aria-selected='true']::after {
  content: '✓';
  font-weight: 800;
  color: var(--accent-strong);
}
.lang-opt[aria-selected='false']::after {
  content: '';
}

/* ---------- Hero ---------- */
.hero {
  padding-top: 56px;
  padding-bottom: var(--section-pad);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: -30% -10% auto -10%;
  height: 80%;
  background:
    radial-gradient(60% 70% at 70% 20%, rgba(37, 211, 102, 0.12), transparent 70%),
    radial-gradient(50% 60% at 12% 0%, rgba(15, 118, 110, 0.1), transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.02fr 1.1fr;
  gap: 56px;
  align-items: center;
}
.badge-online {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 7px 14px 7px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
}
.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
  box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6);
}
.dot.live {
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.55);
  }
  70% {
    box-shadow: 0 0 0 7px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}
@media (prefers-reduced-motion: reduce) {
  .dot.live {
    animation: none;
  }
}

.hero h1 {
  font-size: clamp(38px, 4.6vw, 60px);
  margin-top: 22px;
  text-wrap: balance;
}
.hero h1 .accent {
  color: var(--primary);
}
.hero-sub {
  margin-top: 22px;
  font-size: clamp(17px, 1.4vw, 20px);
  color: var(--ink-soft);
  max-width: 540px;
  text-wrap: pretty;
}
.hero-cta {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}
.store-row {
  margin-top: 24px;
}
.store-row .store-label {
  font-size: 13px;
  color: var(--ink-faint);
  font-weight: 600;
  margin-bottom: 10px;
}
.store-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  background: var(--ink);
  color: #fff;
  border-radius: 14px;
  padding: 9px 18px 9px 15px;
  transition:
    transform 0.16s ease,
    box-shadow 0.2s ease;
}
.store-badge:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}
.store-badge.soon {
  opacity: 0.55;
  cursor: default;
}

/* Honeypot: визуально не существует, но остаётся в DOM для ботов */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.form-error {
  color: var(--destructive, #d33);
  font-size: 14px;
  margin: 4px 0 8px;
}
.store-badge.soon:hover {
  transform: none;
  box-shadow: none;
}
.store-badge svg {
  width: 24px;
  height: 24px;
  flex: none;
}
.store-badge .sb-text {
  line-height: 1.15;
}
.store-badge .sb-small {
  font-size: 10px;
  opacity: 0.72;
  letter-spacing: 0.02em;
}
.store-badge .sb-name {
  font-size: 15px;
  font-weight: 700;
}

/* ---------- Operator panel mockup ---------- */
.panel-wrap {
  position: relative;
}
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.panel-top {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}
.win-dots {
  display: flex;
  gap: 6px;
}
.win-dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--line-strong);
  display: block;
}
.panel-org {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 6px;
  font-size: 13px;
  font-weight: 650;
  color: var(--ink);
}
.panel-org .badge-mini {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: linear-gradient(150deg, var(--accent), var(--primary));
}
.panel-top .badge-online {
  margin-left: auto;
  padding: 5px 11px 5px 9px;
  font-size: 12px;
}
.panel-body {
  display: grid;
  grid-template-columns: 52px 1fr;
}
.panel-rail {
  border-right: 1px solid var(--line);
  padding: 14px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background: var(--surface-2);
}
.rail-ic {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: var(--ink-faint);
}
.rail-ic.active {
  background: var(--accent-soft);
  color: var(--primary);
}
.rail-ic svg {
  width: 19px;
  height: 19px;
}
.panel-main {
  padding: 16px;
}
.panel-main h4 {
  font-size: 14px;
  color: var(--ink-soft);
  font-weight: 650;
  letter-spacing: 0;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.panel-main h4 .count {
  background: var(--accent-soft);
  color: var(--primary);
  font-size: 12px;
  padding: 1px 8px;
  border-radius: 999px;
}
.tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.tile {
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: var(--surface);
}
.tile.feature {
  grid-column: 1 / -1;
}
.tile-frame {
  aspect-ratio: 16/9;
  position: relative;
  background: linear-gradient(135deg, #0e3b39, #114a45);
}
.tile.feature .tile-frame {
  aspect-ratio: 16/7;
}
.tile-frame image-slot {
  width: 100%;
  height: 100%;
  display: block;
}
.tile-live {
  position: absolute;
  top: 8px;
  left: 8px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(8, 16, 18, 0.62);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  letter-spacing: 0.04em;
}
.tile-live .dot {
  width: 6px;
  height: 6px;
}
.tile-meta {
  padding: 9px 11px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.tile-meta .tm-name {
  font-size: 12.5px;
  font-weight: 650;
}
.tile-meta .tm-sub {
  font-size: 11px;
  color: var(--ink-faint);
}
.tile-score {
  font-size: 12px;
  font-weight: 750;
  color: var(--primary);
  background: var(--accent-soft);
  padding: 2px 8px;
  border-radius: 999px;
}
.float-badge {
  position: absolute;
  bottom: -16px;
  left: -18px;
  z-index: 2;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 16px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 11px;
}
.float-badge .fb-num {
  font-size: 22px;
  font-weight: 800;
  color: var(--primary);
}
.float-badge .fb-txt {
  font-size: 12px;
  color: var(--ink-soft);
  line-height: 1.3;
}

/* ---------- Trust strip ---------- */
.trust {
  background: var(--surface);
  border-block: 1px solid var(--line);
}
.trust .container {
  padding-block: 40px;
}
.trust-caption {
  text-align: center;
  color: var(--ink-soft);
  font-size: 16px;
  max-width: 720px;
  margin: 0 auto 24px;
}
.trust-metrics {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}
.metric-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 11px 20px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}
.metric-pill svg {
  width: 18px;
  height: 18px;
  color: var(--primary);
}
.metric-pill b {
  color: var(--primary);
}

/* ---------- Feature grid ---------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 26px;
  box-shadow: var(--shadow-sm);
  transition:
    transform 0.2s ease,
    box-shadow 0.25s ease,
    border-color 0.2s ease;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(37, 211, 102, 0.4);
}
.feature-ic {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--primary);
  margin-bottom: 18px;
}
.feature-ic svg {
  width: 25px;
  height: 25px;
}
.feature-card h3 {
  font-size: 20px;
  margin-bottom: 9px;
}
.feature-card p {
  font-size: 15px;
  color: var(--ink-soft);
  text-wrap: pretty;
}

/* ---------- How it works ---------- */
.how {
  background: var(--surface);
  border-block: 1px solid var(--line);
}
.steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  position: relative;
}
.step {
  position: relative;
}
.step-num {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: var(--primary);
  color: #fff;
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 20px;
}
.step h3 {
  font-size: 20px;
  margin-bottom: 10px;
}
.step p {
  font-size: 15.5px;
  color: var(--ink-soft);
  text-wrap: pretty;
}
.step::after {
  content: '';
  position: absolute;
  top: 26px;
  left: 64px;
  right: -12px;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--line-strong) 0 6px, transparent 6px 12px);
}
.step:last-child::after {
  display: none;
}

/* ---------- AI focus (dark) ---------- */
.ai {
  background: var(--primary);
  color: #fff;
  border-radius: 0;
  position: relative;
  overflow: hidden;
}
.ai::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(50% 80% at 85% 10%, rgba(37, 211, 102, 0.22), transparent 60%);
}
.ai .container {
  position: relative;
  z-index: 1;
}
.ai-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
}
.ai .eyebrow {
  color: #fff;
}
.ai .eyebrow::before {
  background: var(--accent);
}
.ai h2 {
  font-size: clamp(30px, 3.6vw, 46px);
  margin-top: 14px;
}
.ai p {
  margin-top: 18px;
  font-size: 18px;
  color: rgba(255, 255, 255, 0.82);
  max-width: 520px;
  text-wrap: pretty;
}
.ai .btn {
  margin-top: 30px;
}
.chat {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-lg);
  padding: 22px;
  backdrop-filter: blur(6px);
}
.chat-row {
  display: flex;
  margin-bottom: 12px;
  align-items: flex-end;
  gap: 8px;
}
.chat-row.me {
  justify-content: flex-end;
}
.bubble {
  max-width: 78%;
  padding: 11px 15px;
  border-radius: 16px;
  font-size: 14.5px;
  line-height: 1.45;
}
.bubble.them {
  background: #fff;
  color: var(--ink);
  border-bottom-left-radius: 5px;
}
.bubble.me {
  background: var(--accent);
  color: #08351c;
  border-bottom-right-radius: 5px;
}
.chat-av {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(150deg, var(--accent), #0e3b39);
  flex: none;
  display: grid;
  place-items: center;
}
.chat-av svg {
  width: 16px;
  height: 16px;
  color: #fff;
}
.wave {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  height: 16px;
}
.wave i {
  width: 3px;
  border-radius: 2px;
  background: #08351c;
  opacity: 0.85;
  animation: wv 1s ease-in-out infinite;
}
@keyframes wv {
  0%,
  100% {
    height: 5px;
  }
  50% {
    height: 15px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .wave i {
    animation: none;
    height: 9px;
  }
}
.chat-meta {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  text-align: center;
  margin-top: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

/* ---------- Reports ---------- */
.reports-grid {
  display: grid;
  grid-template-columns: 1fr 1.08fr;
  gap: 56px;
  align-items: center;
}
.bullets {
  margin-top: 26px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.bullet {
  display: flex;
  gap: 13px;
  align-items: flex-start;
  font-size: 16.5px;
}
.bullet .bx {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--primary);
  display: grid;
  place-items: center;
  flex: none;
  margin-top: 1px;
}
.bullet .bx svg {
  width: 15px;
  height: 15px;
}
.report-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 24px;
}
.report-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}
.report-head .rh-title {
  font-size: 15px;
  font-weight: 700;
}
.report-head .rh-sub {
  font-size: 12.5px;
  color: var(--ink-faint);
}
.report-top {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 22px;
  align-items: center;
  margin-bottom: 22px;
}
.ring {
  width: 104px;
  height: 104px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  position: relative;
  background: conic-gradient(var(--accent) calc(var(--p, 86) * 1%), var(--line) 0);
}
.ring::before {
  content: '';
  position: absolute;
  inset: 11px;
  background: var(--surface);
  border-radius: 50%;
}
.ring .ring-val {
  position: relative;
  font-size: 26px;
  font-weight: 800;
  color: var(--primary);
}
.ring .ring-val span {
  font-size: 14px;
}
.kpis {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.kpi {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
}
.kpi .kv {
  font-size: 22px;
  font-weight: 800;
  color: var(--ink);
}
.kpi .kl {
  font-size: 12px;
  color: var(--ink-faint);
  margin-top: 2px;
}
.bars {
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.bar-row {
  display: grid;
  grid-template-columns: 120px 1fr 40px;
  gap: 12px;
  align-items: center;
  font-size: 13px;
}
.bar-row .bl {
  color: var(--ink-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bar-track {
  height: 9px;
  border-radius: 999px;
  background: var(--line);
  overflow: hidden;
}
.bar-fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}
.bar-row .bp {
  text-align: right;
  font-weight: 700;
  color: var(--ink);
}

/* ---------- Scenarios (screenshot slots) ---------- */
.scenarios-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.scenario {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition:
    transform 0.2s ease,
    box-shadow 0.25s ease;
}
.scenario:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.scenario image-slot {
  width: 100%;
  aspect-ratio: 4/3;
  display: block;
}
.scenario .sc-meta {
  padding: 14px 16px;
}
.scenario .sc-meta h4 {
  font-size: 16px;
  letter-spacing: -0.01em;
}
.scenario .sc-meta p {
  font-size: 13px;
  color: var(--ink-faint);
  margin-top: 3px;
}
.scenario .sc-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: var(--primary);
  background: var(--accent-soft);
  padding: 2px 9px;
  border-radius: 999px;
  margin-top: 10px;
}

/* ---------- Security ---------- */
.security {
  background: var(--surface);
  border-block: 1px solid var(--line);
}
.security-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 22px;
  margin-top: 40px;
}
.sec-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.sec-ic {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--primary);
  display: grid;
  place-items: center;
  flex: none;
}
.sec-ic svg {
  width: 22px;
  height: 22px;
}
.sec-item h4 {
  font-size: 17px;
  margin-bottom: 5px;
}
.sec-item p {
  font-size: 14.5px;
  color: var(--ink-soft);
}

/* ---------- Final CTA ---------- */
.cta-final {
}
.cta-plate {
  background: linear-gradient(140deg, var(--primary), #0c5f59 60%, #0a4f4a);
  border-radius: var(--radius-xl);
  padding: 64px 56px;
  color: #fff;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.cta-plate::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(40% 90% at 90% 0%, rgba(37, 211, 102, 0.26), transparent 55%);
}
.cta-plate-inner {
  position: relative;
  z-index: 1;
  max-width: 640px;
}
.cta-plate h2 {
  font-size: clamp(30px, 3.8vw, 48px);
}
.cta-plate p {
  margin-top: 16px;
  font-size: 19px;
  color: rgba(255, 255, 255, 0.85);
  text-wrap: pretty;
}
.cta-actions {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}
.cta-plate .store-row {
  margin-top: 28px;
}
.cta-plate .store-label {
  color: rgba(255, 255, 255, 0.6);
}

/* ---------- AI use-case cards (dark) ---------- */
.ai-usecases {
  position: relative;
  z-index: 1;
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.uc {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: var(--radius);
  padding: 22px;
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease;
}
.uc:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(37, 211, 102, 0.45);
}
.uc-ic {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(37, 211, 102, 0.16);
  color: var(--accent);
  display: grid;
  place-items: center;
  margin-bottom: 14px;
}
.uc-ic svg {
  width: 22px;
  height: 22px;
}
.ai-usecases h4 {
  font-size: 17px;
  color: #fff;
  margin: 0 0 5px;
  letter-spacing: -0.01em;
}
.ai-usecases .uc p {
  font-size: 14px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.72);
  margin: 0;
  max-width: none;
}

/* ---------- Custom-scenario request ---------- */
.request-plate {
  background: linear-gradient(140deg, var(--primary), #0c5f59 60%, #0a4f4a);
  border-radius: var(--radius-xl);
  padding: 56px;
  color: #fff;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.request-plate::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(45% 90% at 8% 0%, rgba(37, 211, 102, 0.24), transparent 55%);
}
.request-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.request-copy .eyebrow {
  color: #fff;
}
.request-copy .eyebrow::before {
  background: var(--accent);
}
.request-copy h2 {
  font-size: clamp(28px, 3.4vw, 42px);
  margin-top: 14px;
}
.request-copy > p {
  margin-top: 16px;
  font-size: 18px;
  color: rgba(255, 255, 255, 0.85);
  text-wrap: pretty;
}
.request-contacts {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.contact-line {
  display: flex;
  align-items: center;
  gap: 13px;
  font-size: 15.5px;
  color: #fff;
}
.contact-line a {
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
}
.contact-line a:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.contact-line .ci {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  display: grid;
  place-items: center;
  color: var(--accent);
  flex: none;
}
.contact-line .ci svg {
  width: 20px;
  height: 20px;
}

.request-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-lg);
}
.request-card h3 {
  font-size: 21px;
  color: var(--ink);
  margin-bottom: 6px;
}
.request-card .rc-sub {
  font-size: 14px;
  color: var(--ink-soft);
  margin-bottom: 20px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}
.field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
}
.field input,
.field textarea {
  font: inherit;
  font-size: 15px;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--surface-2);
  color: var(--ink);
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    background 0.15s ease;
}
.field input::placeholder,
.field textarea::placeholder {
  color: var(--ink-faint);
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.18);
  background: #fff;
}
.field textarea {
  resize: vertical;
  min-height: 84px;
}
.request-card form .btn {
  width: 100%;
  margin-top: 6px;
}
.form-thanks {
  text-align: center;
  padding: 36px 8px;
}
.form-thanks .ft-ic {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--primary);
  display: grid;
  place-items: center;
  margin: 0 auto 16px;
}
.form-thanks .ft-ic svg {
  width: 30px;
  height: 30px;
}
.form-thanks h3 {
  color: var(--ink);
  margin-bottom: 8px;
}
.form-thanks p {
  color: var(--ink-soft);
  font-size: 15px;
}

/* ---------- Footer ---------- */
.footer {
  padding-block: 56px 40px;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
}
.footer-desc {
  font-size: 15px;
  color: var(--ink-soft);
  max-width: 320px;
  margin-top: 16px;
}
.footer-links {
  display: flex;
  gap: 56px;
  flex-wrap: wrap;
}
.footer-col h5 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--ink-faint);
  margin-bottom: 14px;
  font-weight: 700;
}
.footer-col a {
  display: block;
  font-size: 15px;
  color: var(--ink-soft);
  margin-bottom: 10px;
  transition: color 0.15s;
}
.footer-col a:hover {
  color: var(--primary);
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 24px;
  font-size: 14px;
  color: var(--ink-faint);
}

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.7s cubic-bezier(0.2, 0.7, 0.2, 1),
    transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.reveal.in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid,
  .ai-grid,
  .reports-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .ai-grid .ai-copy {
    order: 0;
  }
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .steps {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .step::after {
    display: none;
  }
  .scenarios-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .security-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .nav {
    display: none;
  }
  .reports-grid .report-card {
    order: -1;
  }
  .ai-usecases {
    grid-template-columns: repeat(2, 1fr);
  }
  .request-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .request-plate {
    padding: 40px 32px;
  }
}
@media (max-width: 560px) {
  :root {
    --section-pad: 64px;
  }
  .features-grid,
  .scenarios-grid {
    grid-template-columns: 1fr;
  }
  .ai-usecases {
    grid-template-columns: 1fr;
  }
  .header-cta .btn-ghost {
    display: none;
  }
  .cta-plate {
    padding: 40px 26px;
  }
  .request-plate {
    padding: 32px 22px;
  }
  .footer-top {
    flex-direction: column;
  }
  .hero h1 {
    font-size: 34px;
  }
}

/* ===== Тёмная тема (на основе дашборда) ===== */
/* Активируется атрибутом [data-theme='dark'] на <html>. Тему выставляет инлайн-
   скрипт в <head>: выбор пользователя из localStorage, иначе системная
   prefers-color-scheme. Светлый вид — базовый :root, ничем ниже не затрагивается. */
:root[data-theme='dark'] {
  /* Фоны страницы и поверхностей */
  --bg: oklch(0.1854 0.0182 238.2143);
  --surface: oklch(0.2848 0.023 235.6578);
  --surface-2: oklch(0.2456 0.0195 239.1061);

  /* Текст */
  --ink: oklch(0.9436 0.0051 228.8204);
  --ink-soft: oklch(0.6637 0.0236 235.1968);
  --ink-faint: oklch(0.54 0.025 236);

  /* Разделители */
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.18);

  /* Акцент (WhatsApp-green — ярче для тёмного фона) */
  --primary: oklch(0.6509 0.1283 170.4258);
  --primary-ink: oklch(0.761 0.2015 149.7403);
  --accent: oklch(0.761 0.2015 149.7403);
  --accent-strong: oklch(0.7 0.19 150);
  --accent-soft: oklch(0.2933 0.0423 172.8195);

  /* Тени — глубже на тёмном */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.45);
  --shadow: 0 6px 18px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 24px 60px -18px rgba(0, 0, 0, 0.65);
  --shadow-accent: 0 14px 30px -10px rgba(37, 211, 102, 0.35);
}

/* Стеклянный фон хедера → тёмный */
:root[data-theme='dark'] .header {
  background: rgba(30, 38, 46, 0.8);
}
:root[data-theme='dark'] .header.scrolled {
  background: rgba(36, 46, 54, 0.9);
}

/* Кнопка «белая» (btn-white) — на тёмном фоне превращается в surface */
:root[data-theme='dark'] .btn-white {
  background: var(--surface);
  color: var(--primary);
}

/* Store-badges — фиксируем тёмный фон, чтобы белый текст оставался читаемым */
:root[data-theme='dark'] .store-badge {
  background: oklch(0.22 0.02 236);
}

/* bubble.them (белый шар чужого сообщения) → surface-2 */
:root[data-theme='dark'] .bubble.them {
  background: var(--surface-2);
  color: var(--ink);
}

/* Секция «ИИ»: в светлой теме фон = --primary (тёмно-зелёный). В тёмной --primary
   становится ярко-зелёным и секция выглядит кислотно — перекрываем глубоким
   сине-зелёным градиентом, текст остаётся читаемым. */
:root[data-theme='dark'] .ai {
  background: linear-gradient(140deg, oklch(0.24 0.05 172), oklch(0.18 0.035 210));
  color: var(--ink);
}
:root[data-theme='dark'] .ai::before {
  background: radial-gradient(50% 80% at 85% 10%, rgba(37, 211, 102, 0.16), transparent 62%);
}
:root[data-theme='dark'] .ai p {
  color: var(--ink-soft);
}
:root[data-theme='dark'] .ai .eyebrow {
  color: var(--accent);
}
:root[data-theme='dark'] .ai .eyebrow::before {
  background: var(--accent);
}
:root[data-theme='dark'] .chat {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
}

/* Карточка request-card: белый #fff → surface */
:root[data-theme='dark'] .request-card {
  background: var(--surface);
  border: 1px solid var(--line-strong);
}
:root[data-theme='dark'] .request-card h3 {
  color: var(--ink);
}

/* Поле ввода: фокус background: #fff → surface */
:root[data-theme='dark'] .field input:focus,
:root[data-theme='dark'] .field textarea:focus {
  background: var(--surface);
}

/* Логотип «светлый» вариант на тёмном навбаре */
:root[data-theme='dark'] .wordmark-top {
  color: var(--ink);
}

/* Выпадающее меню языка */
:root[data-theme='dark'] .lang-menu {
  background: var(--surface);
  border-color: var(--line-strong);
}
