/* ============================================================
   Landing — UI 2026
   ============================================================ */

.header-brand { display: inline-flex; align-items: center; }

/* ── HERO ──────────────────────────────────────────────── */

.hero {
  position: relative;
  padding: clamp(56px, 9vw, 110px) 0 clamp(48px, 8vw, 96px);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: var(--mesh-hero);
  z-index: -1;
}

.hero-bg::before,
.hero-bg::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.6;
}
.hero-bg::before {
  width: 360px; height: 360px;
  top: -120px; right: -80px;
  background: radial-gradient(circle, rgba(201,169,110,0.30), transparent 70%);
}
.hero-bg::after {
  width: 320px; height: 320px;
  bottom: -100px; left: -60px;
  background: radial-gradient(circle, rgba(107,158,125,0.30), transparent 70%);
}

.hero-inner {
  text-align: center;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: var(--fs-display);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--text);
  max-width: 18ch;
  margin: 0 auto;
  text-wrap: balance;
}

.hero-lead {
  font-size: var(--fs-lead);
  color: var(--text-secondary);
  max-width: 56ch;
  margin: 0 auto;
  line-height: 1.55;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 8px;
}

.trust-line {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  justify-content: center;
  margin-top: 20px;
  padding: 0;
  font-size: 0.84rem;
  color: var(--text-secondary);
  font-weight: 500;
}
.trust-line li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.trust-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 22%, transparent);
}

/* ── Section heads ────────────────────────────────────── */

.section-head {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-bottom: 48px;
}

.section-display {
  font-family: var(--font-display);
  font-size: var(--fs-h1);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: var(--text);
  max-width: 22ch;
  text-wrap: balance;
}

.section-sub {
  font-size: var(--fs-lead);
  color: var(--text-secondary);
  max-width: 58ch;
  line-height: 1.55;
}

/* ── PROCESS / STEPS ─────────────────────────────────── */

.process {
  padding: clamp(48px, 7vw, 96px) 0;
  background: var(--bg);
}

.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  position: relative;
  padding: 0;
}

.steps::before {
  content: '';
  position: absolute;
  top: 36px;
  left: 12%;
  right: 12%;
  height: 2px;
  background-image: linear-gradient(90deg, var(--primary) 50%, transparent 50%);
  background-size: 14px 2px;
  background-repeat: repeat-x;
  opacity: 0.4;
  pointer-events: none;
}

.step {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  transition: border-color var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out);
}
.step:hover {
  border-color: color-mix(in srgb, var(--primary) 35%, var(--border));
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.step-num {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-elevated);
  border: 1.5px solid var(--primary);
  color: var(--primary-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}
[data-theme="dark"] .step-num { color: var(--primary); }

.step-body h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}
.step-body p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* Step mocks (mini visual proofs) */
.step-mock {
  margin-top: 14px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 14px;
  background: var(--card-muted);
  min-height: 110px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.step-mock-login .mock-row {
  display: flex; align-items: center; gap: 8px;
}
.mock-logo {
  width: 18px; height: 18px;
  background: #fc3f1d;
  border-radius: 4px;
  position: relative;
}
.mock-logo::after {
  content: 'Я';
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 11px; font-weight: 800; font-family: var(--font-display);
}
.mock-text {
  flex: 1;
  height: 8px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--border) 60%, transparent);
  background-size: 70% 100%;
  background-repeat: no-repeat;
}
.mock-text.short { background-size: 40% 100%; }
.mock-button {
  height: 28px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, #fc3f1d, #d92e0f);
}
.mock-hint {
  height: 6px;
  border-radius: 3px;
  background: var(--border);
  width: 50%;
}

.step-mock-dashboard .mock-list-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px;
  background: var(--bg-elevated);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-soft);
}
.mock-list-item.active { border-color: color-mix(in srgb, var(--primary) 40%, transparent); }
.mock-dot {
  width: 18px; height: 18px; border-radius: 6px;
  flex-shrink: 0;
}
.mock-dot-phone { background: #ddf3e4; }
.mock-dot-tg { background: #dbeef8; }
.mock-dot-vk { background: #ede4f5; }
[data-theme="dark"] .mock-dot-phone { background: #2a4233; }
[data-theme="dark"] .mock-dot-tg { background: #1f3548; }
[data-theme="dark"] .mock-dot-vk { background: #322647; }

.step-mock-plate {
  align-items: center;
  justify-content: center;
}
.mock-plate {
  width: 100%;
  max-width: 130px;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(0,0,0,0.10);
  display: flex;
  flex-direction: column;
}
.mock-plate-header {
  background: linear-gradient(135deg, #4F46E5, #7C3AED);
  color: #fff;
  font-family: var(--font-display);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-align: center;
  padding: 6px 0;
}
.mock-plate-qr {
  padding: 10px;
  display: flex;
  justify-content: center;
  color: #1f1147;
}
.mock-plate-qr svg { width: 80px; height: 80px; }
.mock-plate-url {
  font-size: 8px;
  font-weight: 700;
  text-align: center;
  padding: 4px 0 6px;
  color: #4F46E5;
  letter-spacing: 0.04em;
}

/* ── DEMO ────────────────────────────────────────────── */

.demo {
  padding: clamp(48px, 7vw, 96px) 0;
  background: linear-gradient(180deg, var(--bg) 0%, var(--card-muted) 100%);
}

.demo-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 56px;
  align-items: center;
}

.demo-text { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.demo-text .section-display { text-align: left; }

.demo-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0;
  margin: 8px 0;
}
.demo-features li {
  display: flex; align-items: center; gap: 12px;
  font-size: 0.95rem;
  color: var(--text);
}
.check {
  width: 22px; height: 22px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--primary-light);
  display: inline-flex;
  align-items: center; justify-content: center;
  position: relative;
}
.check::after {
  content: '';
  width: 9px; height: 5px;
  border-left: 2px solid var(--primary-dark);
  border-bottom: 2px solid var(--primary-dark);
  transform: rotate(-45deg) translate(1px, -1px);
}
[data-theme="dark"] .check::after { border-color: var(--primary); }

/* Phone frame mockup */
.phone-frame {
  margin: 0 auto;
  width: 320px;
  background: linear-gradient(165deg, #1d2724, #0d1311);
  border-radius: 44px;
  padding: 14px;
  box-shadow: var(--shadow-xl), inset 0 0 0 1px rgba(255,255,255,0.08);
  position: relative;
}
.phone-notch {
  position: absolute;
  top: 22px; left: 50%;
  transform: translateX(-50%);
  width: 110px; height: 24px;
  background: #0d1311;
  border-radius: 16px;
  z-index: 2;
}
.phone-screen {
  background: var(--bg);
  border-radius: 32px;
  overflow: hidden;
  padding: 44px 14px 18px;
  min-height: 540px;
}
.phone-card {
  background: var(--card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
}
.phone-card-header {
  background: var(--mesh-card);
  padding: 22px 18px 16px;
  text-align: center;
  color: #fff;
}
.phone-avatar {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: rgba(255,255,255,0.18);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  margin: 0 auto 10px;
  border: 2px solid rgba(255,255,255,0.4);
}
.phone-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}
.phone-about {
  font-size: 0.78rem;
  opacity: 0.85;
  margin-top: 2px;
}
.phone-card-body { padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.phone-cta {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  border: none;
  padding: 11px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.85rem;
  font-family: inherit;
  margin-bottom: 4px;
  cursor: default;
}
.phone-row {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  background: var(--card-muted);
  border: 1px solid var(--border-soft);
}
.phone-icon {
  width: 32px; height: 32px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center; justify-content: center;
  font-size: 0.95rem;
  flex-shrink: 0;
}
.phone-icon-phone { background: #ddf3e4; color: #3d7a52; }
.phone-icon-tg { background: #dbeef8; color: #2a7ab5; }
.phone-icon-mail { background: #f3eddc; color: #8a6d2b; }
[data-theme="dark"] .phone-icon-phone { background: #2a4233; color: #9ed1ad; }
[data-theme="dark"] .phone-icon-tg { background: #1f3548; color: #87b9dd; }
[data-theme="dark"] .phone-icon-mail { background: #3a3120; color: #d9b97f; }

.phone-row-label { font-size: 0.7rem; color: var(--text-secondary); }
.phone-row-value { font-size: 0.82rem; font-weight: 500; color: var(--text); }

/* ── FEATURES ─────────────────────────────────────────── */

.features {
  padding: clamp(48px, 7vw, 96px) 0;
  background: var(--bg);
}

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

.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.feature-tile {
  width: 56px; height: 56px;
  border-radius: var(--radius-md);
  background: var(--mesh-soft), var(--primary-light);
  display: inline-flex;
  align-items: center; justify-content: center;
  color: var(--primary-dark);
  margin-bottom: 6px;
}
[data-theme="dark"] .feature-tile { color: var(--primary); }
.feature-tile svg { width: 28px; height: 28px; }

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.feature-card p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.55;
}

/* ── FINAL CTA ───────────────────────────────────────── */

.final-cta {
  padding: clamp(48px, 7vw, 96px) 0;
}

.final-cta-card {
  background: var(--mesh-card);
  border-radius: var(--radius-xl);
  padding: clamp(40px, 7vw, 72px) clamp(28px, 5vw, 56px);
  text-align: center;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow-xl);
  position: relative;
  overflow: hidden;
}
.final-cta-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(380px 220px at 0% 0%, rgba(255,255,255,0.18), transparent 60%),
    radial-gradient(380px 220px at 100% 100%, rgba(0,0,0,0.18), transparent 60%);
  pointer-events: none;
}
.final-cta-card > * { position: relative; z-index: 1; }
.final-cta-card h2 {
  font-family: var(--font-display);
  font-size: var(--fs-h1);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: #fff;
  max-width: 22ch;
}
.final-cta-card p {
  font-size: var(--fs-lead);
  color: rgba(255,255,255,0.88);
  max-width: 50ch;
}
.final-cta-card .btn-primary {
  background: #fff;
  color: var(--primary-dark);
}
.final-cta-card .btn-primary:hover { background: #f5f9f4; box-shadow: 0 10px 30px rgba(0,0,0,0.18); }

/* ── FOOTER ──────────────────────────────────────────── */

.landing-footer {
  padding: 32px 0;
  border-top: 1px solid var(--border-soft);
  background: var(--bg);
}

.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.footer-logo { height: 30px; opacity: 0.85; }
.landing-footer p {
  color: var(--text-secondary);
  font-size: 0.82rem;
}

/* ── Responsive ──────────────────────────────────────── */

@media (max-width: 1024px) {
  .demo-grid { grid-template-columns: 1fr; gap: 36px; }
  .demo-text .section-display { text-align: center; }
  .demo-text { align-items: center; text-align: center; }
}

@media (max-width: 768px) {
  .steps {
    grid-template-columns: 1fr;
  }
  .steps::before {
    top: 10%;
    bottom: 10%;
    left: 36px;
    right: auto;
    width: 2px;
    height: auto;
    background-image: linear-gradient(180deg, var(--primary) 50%, transparent 50%);
    background-size: 2px 14px;
    background-repeat: repeat-y;
  }
  .features-grid { grid-template-columns: 1fr; }
  .hero-cta { flex-direction: column; width: 100%; }
  .hero-cta .btn { width: 100%; }
  .phone-frame { width: 280px; }
  .phone-screen { min-height: 480px; padding-top: 40px; }
}

@media (max-width: 480px) {
  .trust-line { font-size: 0.78rem; gap: 8px 16px; }
  .step { padding: 18px; }

  /* Disable decorative blurred glows on mobile to reduce paint cost */
  .hero-bg::before, .hero-bg::after { display: none; }
}
