/* ============================================================
   dplatform — лендинг (landing.html). Поверх дизайн-системы style.css,
   на тех же CSS-переменных → работает в светлой и тёмной темах.
   ============================================================ */

.lp { overflow-x: hidden; }

/* Навбар: прячем средние ссылки на узких экранах */
.lp-nav-links a { font-weight: 500; }
@media (max-width: 760px) { .lp-nav-links { display: none; } }
@media (max-width: 520px) { .navbar .inner .btn-ghost { display: none; } }

/* Крупная кнопка */
.btn-lg { padding: 13px 24px; font-size: 1.02rem; border-radius: var(--radius); }

/* ---- Hero ---- */
.lp-hero { position: relative; overflow: hidden; }
.lp-hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.lp-hero-bg .blob {
  position: absolute; border-radius: 50%; filter: blur(80px); opacity: .5;
}
.lp-hero-bg .blob-1 {
  width: 520px; height: 520px; top: -160px; right: -120px;
  background: radial-gradient(circle, var(--accent), transparent 70%);
}
.lp-hero-bg .blob-2 {
  width: 460px; height: 460px; bottom: -200px; left: -140px;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 60%, #22d3ee), transparent 70%);
  opacity: .35;
}
.lp-hero-inner {
  position: relative; z-index: 1;
  max-width: var(--maxw); margin: 0 auto; padding: clamp(40px, 7vw, 88px) 16px clamp(48px, 6vw, 80px);
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 56px); align-items: center;
}
@media (max-width: 900px) { .lp-hero-inner { grid-template-columns: 1fr; } }

.lp-eyebrow {
  display: inline-block; padding: 5px 13px; border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--accent); font-weight: 600; font-size: .85rem; margin-bottom: 18px;
  border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
}
.lp-title {
  font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1.08; letter-spacing: -.02em;
  margin: 0 0 18px; font-weight: 800;
}
.lp-title .grad {
  background: linear-gradient(120deg, var(--accent), color-mix(in srgb, var(--accent) 40%, #06b6d4));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lp-sub { font-size: clamp(1.02rem, 1.6vw, 1.2rem); color: var(--text-muted); max-width: 33em; margin: 0 0 28px; }

.lp-cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.lp-cta-note { margin: 16px 0 0; max-width: 34em; }

.lp-trust { list-style: none; display: flex; flex-wrap: wrap; gap: 28px; margin: 34px 0 0; padding: 28px 0 0; border-top: 1px solid var(--border); }
.lp-trust li { display: flex; flex-direction: column; }
.lp-trust b { font-size: 1.5rem; font-weight: 800; color: var(--text); line-height: 1; }
.lp-trust span { font-size: .82rem; color: var(--text-muted); margin-top: 4px; }

/* ---- Демо-мокап ---- */
.lp-demo { perspective: 1400px; }
.lp-demo-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
  box-shadow: 0 24px 60px -20px rgba(20, 24, 40, .35), var(--shadow);
  overflow: hidden; transform: rotateY(-7deg) rotateX(3deg); transition: transform .4s ease;
}
.lp-demo:hover .lp-demo-card { transform: rotateY(0) rotateX(0); }
@media (max-width: 900px) { .lp-demo-card { transform: none; } }

.lp-demo-head { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid var(--border); background: var(--surface-2); }
.lp-demo-head .dot { width: 11px; height: 11px; border-radius: 50%; display: inline-block; }
.lp-demo-head .dot.r { background: #ff5f57; } .lp-demo-head .dot.y { background: #febc2e; } .lp-demo-head .dot.g { background: #28c840; }
.lp-demo-title { margin-left: 8px; font-size: .82rem; color: var(--text-muted); }
.lp-chip {
  margin-left: auto; padding: 2px 10px; border-radius: 999px; font-weight: 700; font-size: .78rem;
  background: color-mix(in srgb, var(--accent) 15%, transparent); color: var(--accent);
}

.lp-demo-screen {
  position: relative; aspect-ratio: 16/9; overflow: hidden; background: #0c0f17;
  display: flex; align-items: center; justify-content: center;
}
/* Слои отрывков (video): плавный crossfade между уровнями */
.lp-frames { position: absolute; inset: 0; }
.lp-frame {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity .7s ease; background: #0c0f17;
}
.lp-frame.is-active { opacity: 1; }
/* Затемнение снизу под субтитр */
.lp-demo-screen::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(0,0,0,.6) 0%, rgba(0,0,0,.05) 38%, transparent 60%);
}
/* Кнопка звука отрывка */
.lp-sound {
  position: absolute; z-index: 2; top: 10px; right: 10px; width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: .95rem; line-height: 1;
  background: rgba(0,0,0,.5); color: #fff; border: 1px solid rgba(255,255,255,.3);
  backdrop-filter: blur(4px); transition: background .2s ease, border-color .2s ease;
}
.lp-sound:hover { background: rgba(0,0,0,.72); }
.lp-sound.on { background: var(--accent); border-color: transparent; }
/* Субтитр: центрируется left/right + margin (без transform — иначе анимация появления дёргает по горизонтали) */
.lp-sub-line {
  position: absolute; z-index: 1; left: 16px; right: 16px; bottom: 14px;
  width: fit-content; max-width: calc(100% - 32px); margin: 0 auto;
  background: rgba(0,0,0,.62); color: #fff; padding: 6px 14px; border-radius: 7px;
  font-size: .92rem; text-align: center; line-height: 1.3;
  box-shadow: 0 2px 10px rgba(0,0,0,.3);
}

/* Анимация смены текстовых элементов при переключении уровня */
.swap-on-change.swapping { animation: lpSwap .5s ease; }
@keyframes lpSwap {
  0% { opacity: 0; transform: translateY(6px); }
  100% { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .lp-frame { transition: none; animation: none !important; }
  .swap-on-change.swapping { animation: none; }
}

/* Точки-уровни под мокапом */
.lp-demo-dots { display: flex; gap: 8px; justify-content: center; margin-top: 16px; flex-wrap: wrap; }
.lp-demo-dots button {
  font: inherit; font-weight: 700; font-size: .8rem; cursor: pointer;
  padding: 5px 13px; border-radius: 999px; color: var(--text-muted);
  background: var(--surface-2); border: 1px solid var(--border); transition: all .2s ease;
}
.lp-demo-dots button:hover { color: var(--text); border-color: color-mix(in srgb, var(--accent) 40%, var(--border)); }
.lp-demo-dots button.is-active {
  color: var(--accent-contrast); background: var(--accent); border-color: transparent;
  box-shadow: 0 4px 14px -4px var(--accent);
}
.lp-demo-body { padding: 18px 18px 20px; }
.lp-field-label { font-size: .78rem; color: var(--text-muted); margin-bottom: 6px; font-weight: 600; }
.lp-field {
  background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 11px 13px; font-size: .95rem; color: var(--text);
}
.lp-verdict {
  display: flex; align-items: center; gap: 12px; margin-top: 14px;
  background: var(--success-bg); border: 1px solid color-mix(in srgb, var(--success) 35%, transparent);
  border-radius: var(--radius-sm); padding: 12px 14px;
}
.lp-verdict-icon {
  flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%; background: var(--success); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 700;
}
.lp-verdict b { display: block; color: var(--success); }

/* ---- Секции ---- */
.lp-section { max-width: var(--maxw); margin: 0 auto; padding: clamp(48px, 7vw, 90px) 16px; }
.lp-section-head { text-align: center; max-width: 40rem; margin: 0 auto clamp(32px, 5vw, 52px); }
.lp-kicker { display: inline-block; color: var(--accent); font-weight: 700; font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 10px; }
.lp-section-head h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); letter-spacing: -.01em; }

/* Шаги */
.lp-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 800px) { .lp-steps { grid-template-columns: 1fr; } }
.lp-step {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px 24px; box-shadow: var(--shadow); position: relative;
}
.lp-step-num {
  display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px;
  border-radius: 11px; font-weight: 800; font-size: 1.15rem; margin-bottom: 14px;
  background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 55%, #06b6d4));
  color: var(--accent-contrast);
}
.lp-step h3 { margin-bottom: 8px; }
.lp-step p { margin: 0; }

/* Фичи */
.lp-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 900px) { .lp-features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .lp-features { grid-template-columns: 1fr; } }
.lp-feature {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px 22px; box-shadow: var(--shadow); transition: transform .2s ease, border-color .2s ease;
}
.lp-feature:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); }
.lp-feature-ic {
  display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px;
  border-radius: 12px; font-size: 1.5rem; margin-bottom: 14px;
  background: color-mix(in srgb, var(--accent) 10%, transparent);
}
.lp-feature h3 { margin-bottom: 7px; font-size: 1.08rem; }
.lp-feature p { margin: 0; font-size: .94rem; }

/* Уровни */
.lp-levels {
  display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(28px, 5vw, 56px); align-items: center;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: clamp(28px, 4vw, 48px); box-shadow: var(--shadow);
}
@media (max-width: 820px) { .lp-levels { grid-template-columns: 1fr; } }
.lp-levels-copy h2 { font-size: clamp(1.4rem, 2.6vw, 2rem); }
.lp-levels-copy p { margin: 0; }
.lp-levels-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 420px) { .lp-levels-grid { grid-template-columns: repeat(2, 1fr); } }
.lp-level {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  aspect-ratio: 3/2; border-radius: var(--radius-sm); font-weight: 800; font-size: 1.4rem;
  color: var(--accent); background: color-mix(in srgb, var(--accent) 9%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
}
.lp-level small { font-weight: 600; font-size: .68rem; color: var(--text-muted); letter-spacing: .02em; }

/* Финальный CTA */
.lp-final {
  text-align: center; max-width: 44rem; margin: 0 auto;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 14%, var(--surface)), var(--surface));
  border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--border)); border-radius: var(--radius);
  padding: clamp(36px, 6vw, 64px) 24px; box-shadow: var(--shadow);
}
.lp-final h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
.lp-final p { max-width: 34em; margin: 0 auto 26px; }
.lp-final .lp-cta-row { justify-content: center; }

/* ---- Футер ---- */
.lp-footer { border-top: 1px solid var(--border); background: var(--surface); }
.lp-footer-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 32px 16px 20px;
  display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between;
}
.lp-footer-links { display: flex; flex-wrap: wrap; gap: 18px; }
.lp-footer-links a { color: var(--text-muted); }
.lp-footer-links a:hover { color: var(--text); }
.lp-footer-legal { max-width: var(--maxw); margin: 0 auto; padding: 0 16px 32px; line-height: 1.6; }

/* ---- Анимация появления ---- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }
