/* ================================================================
   MPBox Landing Pages — Shared Styles
   Marketplace theming via CSS custom properties:
     --mp-primary, --mp-primary-light, --mp-primary-glow,
     --mp-gradient, --mp-bg, --mp-surface
   ================================================================ */

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
}
body {
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  background: var(--mp-bg);
  color: #e2e8f0;
  line-height: 1.6;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  cursor: pointer;
  border: none;
  background: none;
  font: inherit;
  color: inherit;
}
ul,
ol {
  list-style: none;
}

/* ---------- Typography ---------- */
h1,
h2,
h3,
h4 {
  font-family: "Plus Jakarta Sans", "Inter", sans-serif;
  font-weight: 800;
  line-height: 1.2;
  color: #f8fafc;
}

/* ---------- Container ---------- */
.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}
@media (min-width: 768px) {
  .container {
    padding: 0 32px;
  }
}

/* ---------- i18n visibility ---------- */
[data-lang="ru"] [data-i18n-en] {
  display: none;
}
[data-lang="en"] [data-i18n-ru] {
  display: none;
}

/* ---------- Header ---------- */
.lp-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--mp-bg);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.lp-header .container {
  display: flex;
  align-items: center;
  height: 56px;
}
.lp-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}
.mp-logo {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #0055ff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.mp-logo svg {
  width: 20px;
  height: 20px;
}
.mp-name {
  font-family: "Plus Jakarta Sans", "Inter", sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  color: #f8fafc;
}
.mp-badge {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 10px;
  margin-left: 6px;
  background: var(--mp-primary-light);
  color: var(--mp-primary);
}
.lp-header-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}
.header-link {
  font-size: 0.85rem;
  color: #64748b;
  padding: 6px 12px;
  border-radius: 8px;
  transition: color 0.2s;
}
.header-link:hover {
  color: #e2e8f0;
}
.lang-toggle {
  font-size: 0.75rem;
  font-weight: 700;
  color: #64748b;
  padding: 6px 10px;
  border-radius: 8px;
  transition:
    color 0.2s,
    background 0.2s;
}
.lang-toggle:hover {
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.06);
}
.header-cta {
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #ff6b00, #ff8534);
  padding: 8px 18px;
  border-radius: 10px;
  transition:
    transform 0.15s,
    box-shadow 0.2s;
  box-shadow: 0 4px 12px rgba(255, 107, 0, 0.25);
  display: none;
}
.header-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(255, 107, 0, 0.35);
}
@media (min-width: 768px) {
  .header-cta {
    display: inline-flex;
  }
}

/* Hamburger */
.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  border-radius: 8px;
  flex-shrink: 0;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: #94a3b8;
  border-radius: 2px;
  transition:
    transform 0.3s,
    opacity 0.3s;
}
.nav-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}
@media (min-width: 768px) {
  .nav-toggle {
    display: none;
  }
}

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 56px;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--mp-bg);
  z-index: 99;
  padding: 24px 20px;
  flex-direction: column;
  gap: 8px;
  animation: slideDown 0.25s ease-out;
}
.mobile-menu.active {
  display: flex;
}
.mobile-menu .nav-link {
  display: block;
  padding: 14px 16px;
  font-size: 1rem;
  color: #cbd5e1;
  border-radius: 12px;
}
.mobile-menu .nav-link:hover {
  background: rgba(255, 255, 255, 0.04);
}
.mobile-menu .nav-cta {
  display: block;
  text-align: center;
  padding: 14px;
  margin-top: 8px;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #ff6b00, #ff8534);
  border-radius: 12px;
}
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- Hero ---------- */
.lp-hero {
  padding: 64px 0 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
@media (max-width: 767px) {
  .lp-hero {
    padding: 40px 0 32px;
  }
}
.lp-hero::before {
  content: "";
  position: absolute;
  top: -40%;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 700px;
  background: radial-gradient(
    circle,
    var(--mp-primary-glow) 0%,
    transparent 70%
  );
  opacity: 0.3;
  pointer-events: none;
}
.hero-free-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 8px 18px;
  background: rgba(16, 185, 129, 0.12);
  color: #34d399;
  border-radius: 100px;
  margin-bottom: 24px;
  position: relative;
}
.hero-free-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.4;
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero-free-badge .dot {
    animation: none;
  }
}
.lp-hero h1 {
  font-size: 2rem;
  max-width: 600px;
  margin: 0 auto 16px;
  letter-spacing: -0.02em;
  position: relative;
}
@media (min-width: 768px) {
  .lp-hero h1 {
    font-size: 2.75rem;
  }
}
.accent {
  background: var(--mp-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.accent-green {
  background: linear-gradient(135deg, #10b981, #34d399);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-subtitle {
  font-size: 1rem;
  color: #94a3b8;
  max-width: 520px;
  margin: 0 auto 28px;
  line-height: 1.7;
  position: relative;
}
@media (max-width: 767px) {
  .hero-subtitle {
    font-size: 0.9rem;
  }
}
.btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 36px;
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #ff6b00, #ff8534);
  border-radius: 14px;
  transition:
    transform 0.15s,
    box-shadow 0.2s;
  box-shadow: 0 8px 24px rgba(255, 107, 0, 0.3);
  position: relative;
}
.btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(255, 107, 0, 0.4);
  color: #fff;
}
.btn-cta:active {
  transform: scale(0.98);
}
@media (max-width: 767px) {
  .btn-cta {
    width: 100%;
    max-width: 340px;
    padding: 16px 24px;
  }
}
.hero-note {
  font-size: 0.8rem;
  color: #475569;
  margin-top: 14px;
  position: relative;
}

/* ---------- Section ---------- */
.lp-section {
  padding: 48px 0;
}
@media (max-width: 767px) {
  .lp-section {
    padding: 32px 0;
  }
}
.lp-section-alt {
  background: var(--mp-surface);
}
.section-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--mp-primary);
  margin-bottom: 20px;
}

/* ---------- Competitor Table ---------- */
.comp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}
.comp-table th {
  text-align: left;
  padding: 10px 12px;
  color: #64748b;
  font-weight: 600;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.8rem;
}
.comp-table td {
  padding: 10px 12px;
  color: #cbd5e1;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.comp-table .price {
  font-weight: 700;
}
.price-paid {
  color: #f87171;
}
.price-free {
  color: #34d399;
  font-weight: 800;
  font-size: 0.95rem;
}
.comp-table .highlight-row {
  background: var(--mp-primary-light);
  border-radius: 8px;
}
.comp-table .highlight-row td {
  color: #f8fafc;
  font-weight: 600;
}
@media (max-width: 640px) {
  .comp-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .comp-table {
    min-width: 460px;
  }
}

/* ---------- Dashboard Mockup ---------- */
.dashboard-mock {
  background: var(--mp-surface);
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  margin-top: 20px;
}
.dash-titlebar {
  padding: 10px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  gap: 6px;
}
.dash-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.dash-url {
  font-size: 0.75rem;
  color: #475569;
  margin-left: 10px;
  font-family: "JetBrains Mono", monospace;
}
.dash-content {
  padding: 20px;
}
.stats-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}
.stat-card {
  padding: 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: color-mix(in srgb, var(--mp-primary) 8%, transparent);
}
.stat-label {
  font-size: 0.75rem;
  color: #64748b;
  margin-bottom: 4px;
}
.stat-value {
  font-size: 1.25rem;
  font-weight: 800;
  color: #f8fafc;
  font-family: "Plus Jakarta Sans", "Inter", sans-serif;
}
.stat-change {
  font-size: 0.7rem;
  font-weight: 600;
  margin-top: 4px;
}
.stat-up {
  color: #34d399;
}
.stat-down {
  color: #f87171;
}
.chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: 56px;
  margin-top: 12px;
}
.chart-bar {
  flex: 1;
  border-radius: 4px 4px 0 0;
  min-width: 0;
  background: var(--mp-primary);
  transition: opacity 0.3s;
}

/* ---------- Checklist ---------- */
.checklist {
  padding: 0;
}
.checklist li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  font-size: 0.9rem;
  color: #cbd5e1;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.checklist li:last-child {
  border-bottom: none;
}
.check-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--mp-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.7rem;
  color: #fff;
  font-weight: 700;
}

/* ---------- Why Free Block ---------- */
.why-free {
  border-radius: 14px;
  padding: 24px;
  background: color-mix(in srgb, var(--mp-primary) 8%, transparent);
  border: 1px solid color-mix(in srgb, var(--mp-primary) 20%, transparent);
  margin-top: 20px;
}
.why-free h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #e2e8f0;
  margin-bottom: 8px;
}
.why-free p {
  font-size: 0.85rem;
  color: #94a3b8;
  line-height: 1.7;
}

/* ---------- Social Proof ---------- */
.proof-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 20px;
}
.proof-item {
  text-align: center;
  padding: 16px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
}
.proof-num {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--mp-primary);
  font-family: "Plus Jakarta Sans", "Inter", sans-serif;
}
.proof-label {
  font-size: 0.75rem;
  color: #64748b;
  margin-top: 4px;
}

/* ---------- Testimonials ---------- */
.testimonial {
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 24px;
  margin-top: 16px;
}
.testimonial:first-child {
  margin-top: 20px;
}
.testimonial-text {
  font-size: 0.9rem;
  color: #cbd5e1;
  line-height: 1.7;
  font-style: italic;
  margin-bottom: 14px;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.author-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--mp-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}
.author-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: #e2e8f0;
}
.author-role {
  font-size: 0.75rem;
  color: #64748b;
}

/* ---------- Final CTA ---------- */
.final-cta {
  padding: 64px 0;
  text-align: center;
  background: var(--mp-bg);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
@media (max-width: 767px) {
  .final-cta {
    padding: 40px 0;
  }
}
.final-cta h2 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}
@media (min-width: 768px) {
  .final-cta h2 {
    font-size: 2rem;
  }
}
.final-cta p {
  font-size: 0.95rem;
  color: #94a3b8;
  margin-bottom: 24px;
}

/* ---------- Footer ---------- */
.lp-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 24px 0;
}
.lp-footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}
@media (min-width: 768px) {
  .lp-footer .container {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}
.footer-copy {
  font-size: 0.8rem;
  color: #475569;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}
.footer-link {
  font-size: 0.8rem;
  color: #64748b;
  transition: color 0.2s;
}
.footer-link:hover {
  color: var(--mp-primary);
}

/* ---------- Scroll Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.6s ease-out,
    transform 0.6s ease-out;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------- Divider ---------- */
.lp-divider {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  margin: 0;
}
