/* ========================================
   RAZDEVATOR.HELP — Main Stylesheet
   ======================================== */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { overflow-x: hidden; max-width: 100%; }

:root {
  --bg: #08080f;
  --bg2: #0f0f1a;
  --surface: #131320;
  --surface2: #1a1a2e;
  --accent: #ff3d6b;
  --accent2: #ff7043;
  --purple: #9b59ff;
  --cyan: #00d4ff;
  --text: #f0eff8;
  --muted: #8886a8;
  --border: rgba(255,255,255,0.07);
  --glow-r: rgba(255,61,107,0.3);
  --glow-p: rgba(155,89,255,0.25);
  --radius: 14px;
  --radius-sm: 8px;
  --font-head: 'Unbounded', 'Inter', sans-serif;
  --font-body: 'Inter', 'Manrope', sans-serif;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Ambient background glow */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 10% 0%, rgba(155,89,255,0.12) 0%, transparent 55%),
    radial-gradient(ellipse 55% 60% at 90% 85%, rgba(255,61,107,0.1) 0%, transparent 55%),
    radial-gradient(ellipse 40% 40% at 50% 30%, rgba(0,212,255,0.05) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

/* ─── Typography ─────────────────────────────────────────── */
h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; }

.section-title {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-family: var(--font-head);
  font-weight: 700;
  margin-bottom: 12px;
}
.section-sub {
  color: var(--muted);
  font-size: 1rem;
  max-width: 520px;
  margin: 0 auto 48px;
  line-height: 1.6;
}

/* ─── Layout ─────────────────────────────────────────────── */
.container {
  position: relative;
  z-index: 1;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
}

section { padding: 80px 0; }

.text-center { text-align: center; }

/* ─── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, #ff6b35 100%);
  color: #fff;
  box-shadow: 0 4px 24px var(--glow-r);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px var(--glow-r);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
}
.btn-outline:hover {
  border-color: rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.04);
}

/* OAuth buttons */
.oauth-btn {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  padding: 14px 20px; border-radius: 50px; font-weight: 700; font-size: 0.95rem;
  text-decoration: none; transition: opacity 0.2s, transform 0.15s; cursor: pointer;
}
.oauth-btn:hover { opacity: 0.9; transform: translateY(-1px); }
.oauth-btn--google {
  background: #fff; color: #222;
}
.oauth-btn--yandex {
  background: #FC3F1D; color: #fff;
}

.btn-ghost {
  background: transparent;
  color: var(--muted);
  padding: 14px 20px;
}
.btn-ghost:hover { color: var(--text); }

.btn-purple {
  background: linear-gradient(135deg, var(--purple) 0%, #6c3fff 100%);
  color: #fff;
  box-shadow: 0 4px 24px var(--glow-p);
}
.btn-purple:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px var(--glow-p);
}

.btn-lg { padding: 18px 36px; font-size: 1.05rem; }

.btn-full { width: 100%; justify-content: center; }

/* ─── Header ─────────────────────────────────────────────── */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8,8,15,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 24px;
}

.logo {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--text);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
}
.logo span { color: var(--accent); }

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
}
.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  padding: 8px 14px;
  border-radius: 8px;
  transition: color 0.2s;
}
.nav a:hover { color: var(--text); }

.header__actions { display: flex; align-items: center; gap: 10px; }

.lang-switcher {
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--surface);
  border-radius: 8px;
  padding: 4px;
}
.lang-switcher a {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  text-decoration: none;
  color: var(--muted);
  transition: all 0.2s;
}
.lang-switcher a.active {
  background: var(--accent);
  color: #fff;
}

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: transparent;
  border: none;
}
.burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s;
}

/* ─── Hero ───────────────────────────────────────────────── */
.hero {
  padding: 80px 0 60px;
  position: relative;
  overflow: hidden;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 60px;
  align-items: center;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(155,89,255,0.12);
  border: 1px solid rgba(155,89,255,0.25);
  border-radius: 50px;
  padding: 6px 14px;
  font-size: 0.8rem;
  color: var(--purple);
  margin-bottom: 24px;
}
.hero__badge::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--purple);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.4); }
}

.hero__title {
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 20px;
}
.hero__title .accent { color: var(--accent); }
.hero__title .gradient {
  background: linear-gradient(135deg, var(--accent) 0%, var(--purple) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__desc {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 480px;
  margin-bottom: 36px;
}

.hero__cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.hero__stats {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}

.stat {
  display: flex;
  flex-direction: column;
}
.stat__num {
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text);
}
.stat__label {
  font-size: 0.78rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Hero right: feature cards */
.hero__cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hero-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  color: var(--text);
  transition: all 0.25s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.hero-card::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  background: linear-gradient(135deg, var(--accent) 0%, var(--purple) 100%);
  transition: opacity 0.25s;
}
.hero-card:hover {
  border-color: rgba(255,61,107,0.3);
  transform: translateX(4px);
}
.hero-card:hover::before { opacity: 0.05; }

.hero-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}
.hero-card__icon.pink { background: rgba(255,61,107,0.15); }
.hero-card__icon.purple { background: rgba(155,89,255,0.15); }
.hero-card__icon.cyan { background: rgba(0,212,255,0.12); }

.hero-card__info { flex: 1; position: relative; z-index: 1; }
.hero-card__title { font-weight: 700; font-size: 0.95rem; margin-bottom: 2px; }
.hero-card__sub { font-size: 0.8rem; color: var(--muted); }

.hero-card__price {
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent);
  position: relative;
  z-index: 1;
}

.hero-card.featured {
  background: linear-gradient(135deg, rgba(255,61,107,0.1) 0%, rgba(155,89,255,0.1) 100%);
  border-color: rgba(255,61,107,0.2);
}

/* NEW badge */
.badge-new {
  font-size: 0.65rem;
  font-weight: 700;
  background: var(--accent);
  color: #fff;
  padding: 2px 7px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ─── Demo Generator ─────────────────────────────────────── */
.demo {
  background: var(--bg2);
  padding: 80px 0;
}

.demo__inner {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.upload-zone {
  border: 2px dashed rgba(255,61,107,0.3);
  border-radius: var(--radius);
  padding: 48px 32px;
  background: rgba(255,61,107,0.04);
  cursor: pointer;
  transition: all 0.25s;
  position: relative;
  margin: 32px 0;
}
.upload-zone:hover, .upload-zone.drag-over {
  border-color: var(--accent);
  background: rgba(255,61,107,0.08);
}
.upload-zone input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}
.upload-zone__icon { font-size: 2.5rem; margin-bottom: 12px; }
.upload-zone__title { font-weight: 700; font-size: 1.1rem; margin-bottom: 6px; }
.upload-zone__sub { color: var(--muted); font-size: 0.85rem; }

.upload-zone.has-file {
  border-color: var(--purple);
  background: rgba(155,89,255,0.08);
}
.upload-zone__preview {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.upload-zone.has-file .upload-zone__preview { display: flex; }
.upload-zone.has-file .upload-zone__prompt { display: none; }
.upload-zone__preview img {
  max-height: 200px;
  border-radius: 10px;
  object-fit: cover;
}

.demo__modes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 20px 0 24px;
}

.mode-pill {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 10px 8px;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--muted);
}
.mode-pill:hover { border-color: rgba(255,61,107,0.3); color: var(--text); }
.mode-pill.active {
  border-color: var(--accent);
  background: rgba(255,61,107,0.1);
  color: var(--text);
}
.mode-pill__emoji { font-size: 1.2rem; display: block; margin-bottom: 4px; }

.demo__note {
  font-size: 0.8rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 12px;
}

/* ─── How it works ───────────────────────────────────────── */
.steps__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
  position: relative;
}

.steps__grid::before {
  content: '';
  position: absolute;
  top: 36px;
  left: calc(16.67% + 24px);
  right: calc(16.67% + 24px);
  height: 1px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--purple) 100%);
  opacity: 0.3;
}

.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
  position: relative;
}

.step__num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent) 0%, var(--purple) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.1rem;
  margin: 0 auto 18px;
  position: relative;
  z-index: 1;
}

.step__title { font-weight: 700; margin-bottom: 8px; font-size: 1rem; }
.step__desc { font-size: 0.85rem; color: var(--muted); line-height: 1.6; }

/* ─── Features / Modes ───────────────────────────────────── */
.modes__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 48px;
}

.mode-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  position: relative;
  overflow: hidden;
  transition: all 0.25s;
  text-decoration: none;
  color: var(--text);
  display: block;
}
.mode-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255,61,107,0.25);
  box-shadow: 0 16px 48px rgba(0,0,0,0.4);
}

.mode-card__glow {
  position: absolute;
  top: -40px;
  right: -40px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.4;
  pointer-events: none;
}
.mode-card__glow.pink { background: var(--accent); }
.mode-card__glow.purple { background: var(--purple); }
.mode-card__glow.cyan { background: var(--cyan); }

.mode-card__icon {
  font-size: 2rem;
  margin-bottom: 16px;
}
.mode-card__title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 8px;
}
.mode-card__desc {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.6;
  margin-bottom: 16px;
}
.mode-card__price {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--accent);
  font-size: 0.9rem;
}

/* ─── Pricing ────────────────────────────────────────────── */
.pricing {
  background: var(--bg2);
}

.pricing__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
}

.price-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  transition: all 0.25s;
  position: relative;
  overflow: hidden;
}
.price-card:hover { transform: translateY(-4px); }
.price-card.featured {
  border-color: var(--accent);
  background: linear-gradient(135deg, rgba(255,61,107,0.08) 0%, rgba(155,89,255,0.06) 100%);
}

.price-card__popular {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 0 0 10px 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.price-card__name {
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
  margin-top: 12px;
}

.price-card__amount {
  font-family: var(--font-head);
  font-size: 2.4rem;
  font-weight: 900;
  margin-bottom: 4px;
}
.price-card__amount span { font-size: 1.1rem; font-weight: 400; color: var(--muted); }

.price-card__peaches {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 24px;
}
.price-card__peaches strong { color: var(--accent); font-weight: 700; }

.price-card__features {
  list-style: none;
  text-align: left;
  margin-bottom: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.price-card__features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--muted);
}
.price-card__features li::before {
  content: '✓';
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
}

/* ─── Testimonials ───────────────────────────────────────── */
.reviews__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
}

.review-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.review-card__stars {
  color: #ffb800;
  font-size: 0.85rem;
  margin-bottom: 12px;
}

.review-card__text {
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--text);
  margin-bottom: 16px;
}

.review-card__author {
  display: flex;
  align-items: center;
  gap: 10px;
}
.review-card__avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent) 0%, var(--purple) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  color: #fff;
}
.review-card__name { font-weight: 600; font-size: 0.88rem; }
.review-card__date { font-size: 0.76rem; color: var(--muted); }

/* ─── Blog article ───────────────────────────────────────── */
.article-body {
  color: var(--text);
  line-height: 1.85;
  font-size: 1rem;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.article-body h2 {
  font-family: var(--font-head);
  font-size: clamp(1.15rem, 2.5vw, 1.4rem);
  font-weight: 700;
  margin-top: 8px;
  line-height: 1.3;
}
.article-body p { color: var(--muted); }
.article-body strong { color: var(--text); }
.article-body ol, .article-body ul {
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--muted);
}
.article-body li { line-height: 1.6; }
@media (max-width: 768px) {
  .article-body { font-size: 0.95rem; }
}

/* ─── Blog ───────────────────────────────────────────────── */
.blog__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.blog-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  display: block;
  transition: all 0.25s;
}
.blog-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255,61,107,0.2);
}

.blog-card__img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  background: var(--surface2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
}

.blog-card__body { padding: 20px; }
.blog-card__tag {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}
.blog-card__title {
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.4;
  margin-bottom: 8px;
}
.blog-card__desc {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.55;
}

/* ─── FAQ ────────────────────────────────────────────────── */
.faq__list {
  max-width: 720px;
  margin: 48px auto 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq-item__q {
  padding: 20px 24px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  transition: color 0.2s;
}

.faq-item__q::after {
  content: '+';
  font-size: 1.3rem;
  color: var(--accent);
  flex-shrink: 0;
  transition: transform 0.25s;
}
.faq-item.open .faq-item__q::after { transform: rotate(45deg); }

.faq-item__a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.faq-item.open .faq-item__a { max-height: 300px; }
.faq-item__a p {
  padding: 0 24px 20px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* ─── CTA Banner ─────────────────────────────────────────── */
.cta-banner {
  background: linear-gradient(135deg, rgba(255,61,107,0.12) 0%, rgba(155,89,255,0.1) 100%);
  border: 1px solid rgba(255,61,107,0.2);
  border-radius: 20px;
  padding: 64px 40px;
  text-align: center;
  margin: 80px 0;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255,61,107,0.2) 0%, transparent 70%);
  pointer-events: none;
}
.cta-banner h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); margin-bottom: 12px; }
.cta-banner p { color: var(--muted); margin-bottom: 28px; }
.cta-banner__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ─── Footer ─────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  padding: 48px 0 32px;
}

.footer__inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer__brand p {
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.6;
  margin-top: 12px;
  max-width: 240px;
}

.footer__title {
  font-weight: 700;
  font-size: 0.88rem;
  margin-bottom: 16px;
  color: var(--text);
}

.footer__links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer__links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.2s;
}
.footer__links a:hover { color: var(--text); }

.footer__bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer__copy { color: var(--muted); font-size: 0.8rem; }
.footer__legal {
  display: flex;
  gap: 16px;
}
.footer__legal a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.8rem;
  transition: color 0.2s;
}
.footer__legal a:hover { color: var(--text); }

/* ─── Auth Modal ─────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s;
}
.modal-overlay.active { opacity: 1; visibility: visible; }

.modal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 36px;
  max-width: min(420px, calc(100vw - 40px));
  width: 100%;
  transform: scale(0.95);
  transition: transform 0.25s;
}
.modal-overlay.active .modal { transform: scale(1); }

.modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--surface2);
  border: none;
  color: var(--muted);
  width: 32px;
  height: 32px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
}
.modal__close:hover { color: var(--text); }

.modal { position: relative; }

.modal__title {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.4rem;
  margin-bottom: 6px;
}
.modal__sub { color: var(--muted); font-size: 0.88rem; margin-bottom: 28px; }

.form-group { margin-bottom: 16px; }
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text);
}
.form-group input {
  width: 100%;
  background: var(--bg2);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 12px 16px;
  color: var(--text);
  font-size: 0.95rem;
  font-family: var(--font-body);
  transition: border-color 0.2s;
  outline: none;
}
.form-group input:focus { border-color: var(--accent); }
.form-group input::placeholder { color: var(--muted); }

.modal__toggle {
  text-align: center;
  margin-top: 16px;
  font-size: 0.85rem;
  color: var(--muted);
}
.modal__toggle a {
  color: var(--accent);
  cursor: pointer;
  text-decoration: none;
}
.modal__toggle a:hover { text-decoration: underline; }

.modal__error {
  background: rgba(255,61,107,0.1);
  border: 1px solid rgba(255,61,107,0.3);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 0.85rem;
  color: var(--accent);
  margin-bottom: 16px;
  display: none;
}
.modal__error.show { display: block; }

/* ─── Result Modal ───────────────────────────────────────── */
.result-modal .modal { max-width: 520px; }
.result-modal__img {
  width: 100%;
  border-radius: 12px;
  margin: 20px 0;
  display: block;
}
.result-modal__actions {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

/* ─── Toast ──────────────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 20px;
  font-size: 0.88rem;
  z-index: 2000;
  transform: translateY(80px);
  opacity: 0;
  transition: all 0.3s;
  max-width: 320px;
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast.success { border-color: rgba(74,222,128,0.3); color: #4ade80; }
.toast.error { border-color: rgba(255,61,107,0.3); color: var(--accent); }

/* ─── Spinner ────────────────────────────────────────────── */
.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ─── Scrollbar ──────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--surface2); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--muted); }

/* ─── Pricing list (pack rows) ───────────────────────────── */
.pricing__list {
  max-width: 480px;
  margin: 40px auto 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pack-row {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}
.pack-row:hover {
  border-color: rgba(255,61,107,0.4);
  transform: translateX(4px);
  background: rgba(255,61,107,0.05);
}
.pack-row.featured {
  border-color: rgba(255,61,107,0.35);
  background: linear-gradient(135deg, rgba(255,61,107,0.08) 0%, rgba(155,89,255,0.06) 100%);
}

.pack-row__popular {
  position: absolute;
  top: 0; right: 0;
  background: var(--accent);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 0 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pack-row__label {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 800;
}

.pack-row__price {
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.pack-badge {
  font-size: 0.7rem;
  padding: 3px 8px;
  border-radius: 6px;
  font-weight: 700;
}

/* ─── Dashboard ──────────────────────────────────────────── */
.dashboard {
  min-height: 100vh;
  padding: 32px 0 80px;
}

.dashboard__grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
  align-items: start;
}

.dash-sidebar {
  position: sticky;
  top: 88px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

/* ─── Balance card ───────────────────────────────────────── */
.dash-balance {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  padding: 24px 20px 20px;
  text-align: center;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #1a0d1f 0%, #0d1229 100%);
  border: 1px solid transparent;
  background-clip: padding-box;
}
.dash-balance::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 16px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255,61,107,0.5), rgba(155,89,255,0.4), rgba(0,212,255,0.3));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.dash-balance::after {
  content: '';
  position: absolute;
  top: -40%;
  left: -20%;
  width: 140%;
  height: 140%;
  background: radial-gradient(ellipse at 50% 0%, rgba(255,61,107,0.18) 0%, transparent 60%);
  pointer-events: none;
}
.dash-balance__peach {
  font-size: 2.4rem;
  line-height: 1;
  margin-bottom: 6px;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 0 12px rgba(255,140,60,0.5));
}
.dash-balance__num {
  font-family: var(--font-head);
  font-size: 3rem;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 2px;
  position: relative;
  z-index: 1;
  background: linear-gradient(135deg, #fff 30%, rgba(255,184,80,0.8) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.dash-balance__label {
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  position: relative;
  z-index: 1;
  margin-bottom: 16px;
}

/* ─── Dash nav ───────────────────────────────────────────── */
.dash-nav {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.dash-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 500;
  transition: all 0.18s;
  position: relative;
}
.dash-nav a:hover { background: rgba(255,255,255,0.05); color: var(--text); }
.dash-nav a.active {
  background: linear-gradient(90deg, rgba(255,61,107,0.18) 0%, rgba(155,89,255,0.1) 100%);
  color: var(--text);
  font-weight: 600;
}
.dash-nav a.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 20%;
  bottom: 20%;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: linear-gradient(180deg, var(--accent), var(--purple));
}

/* ─── Dash main & cards ──────────────────────────────────── */
.dash-main { display: flex; flex-direction: column; gap: 20px; }

.dash-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  position: relative;
  overflow: hidden;
}
.dash-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,61,107,0.3), rgba(155,89,255,0.2), transparent);
}
.dash-card__title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* History table */
.history-table { width: 100%; border-collapse: collapse; }
.history-table th {
  text-align: left;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0 0 12px;
  border-bottom: 1px solid var(--border);
}
.history-table td {
  padding: 12px 0;
  font-size: 0.88rem;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  vertical-align: middle;
}
.history-table td:last-child { text-align: right; }

.status-pill {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 700;
}
.status-pill.done { background: rgba(74,222,128,0.15); color: #4ade80; }
.status-pill.pending { background: rgba(255,184,0,0.15); color: #ffb800; }
.status-pill.error { background: rgba(255,61,107,0.15); color: var(--accent); }

/* Gen mode cards */
.gen-mode-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}
.gen-mode-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 16px 8px 14px;
  cursor: pointer;
  color: var(--muted);
  font-family: var(--font-body);
  text-align: center;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  position: relative;
  overflow: hidden;
}
.gen-mode-card:hover { border-color: rgba(255,61,107,0.35); color: var(--text); }
.gen-mode-card.active {
  border-color: var(--accent);
  background: rgba(255,61,107,0.08);
  color: var(--text);
  box-shadow: 0 0 16px rgba(255,61,107,0.15);
}
.gen-mode-card__icon { font-size: 1.5rem; line-height: 1; margin-bottom: 2px; }
.gen-mode-card__title { font-weight: 700; font-size: 0.82rem; line-height: 1.25; color: inherit; }
.gen-mode-card__sub { font-size: 0.7rem; color: var(--muted); }
.gen-mode-card__price {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 0.78rem;
  color: var(--accent);
  margin-top: 3px;
}
.gen-mode-card--video {
  border-color: rgba(155,89,255,0.4);
  background: rgba(155,89,255,0.05);
  animation: video-card-pulse 3s ease-in-out infinite;
}
.gen-mode-card--video:hover,
.gen-mode-card--video.active {
  border-color: var(--purple);
  background: rgba(155,89,255,0.12);
  box-shadow: 0 0 22px rgba(155,89,255,0.28);
  animation: none;
}
.gen-mode-card--video .gen-mode-card__price { color: var(--purple); }
.gen-mode-card__hot {
  position: absolute;
  top: 0; right: 0;
  background: var(--purple);
  color: #fff;
  font-size: 0.52rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 0 14px 0 8px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
@keyframes video-card-pulse {
  0%, 100% { box-shadow: 0 0 0 rgba(155,89,255,0); border-color: rgba(155,89,255,0.4); }
  50% { box-shadow: 0 0 18px rgba(155,89,255,0.3); border-color: rgba(155,89,255,0.7); }
}
@media (max-width: 480px) {
  .gen-mode-card { padding: 12px 4px 10px; }
  .gen-mode-card__title { font-size: 0.72rem; }
  .gen-mode-card__sub { display: none; }
}

/* Wizard */
.wiz-choice-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  cursor: pointer;
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 600;
  font-family: var(--font-body);
  text-align: left;
  transition: all 0.18s;
  width: 100%;
}
.wiz-choice-btn:hover {
  border-color: rgba(255,61,107,0.4);
  background: rgba(255,61,107,0.06);
  transform: translateX(3px);
}
.wiz-choice-btn--hot {
  border-color: rgba(155,89,255,0.4);
  background: rgba(155,89,255,0.05);
  animation: video-card-pulse 3s ease-in-out infinite;
}
.wiz-choice-btn--hot:hover {
  border-color: var(--purple);
  background: rgba(155,89,255,0.1);
  transform: translateX(3px);
  animation: none;
}
.wiz-choice-price {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 0.88rem;
  flex-shrink: 0;
  margin-left: 12px;
}
.wiz-back-btn {
  display: block;
  margin-top: 14px;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 0.85rem;
  cursor: pointer;
  padding: 6px 0;
  font-family: var(--font-body);
  transition: color 0.2s;
  text-align: left;
}
.wiz-back-btn:hover { color: var(--text); }
.wiz-thumb {
  text-align: center;
  margin-bottom: 16px;
}
.wiz-thumb img {
  max-height: 120px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

/* Video mode grid */
.video-modes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 8px;
  max-height: 320px;
  overflow-y: auto;
  padding-right: 4px;
}
.video-modes-grid::-webkit-scrollbar { width: 4px; }
.video-modes-grid::-webkit-scrollbar-thumb { background: var(--surface2); border-radius: 2px; }

.vmode-btn {
  background: var(--bg2);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 10px 8px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  text-align: center;
  transition: all 0.2s;
  line-height: 1.3;
}
.vmode-btn:hover { border-color: rgba(255,61,107,0.3); color: var(--text); }
.vmode-btn.active { border-color: var(--accent); background: rgba(255,61,107,0.1); color: var(--text); }

/* ─── Animated generate button ───────────────────────────── */
.dash-gen-btn {
  position: relative;
  overflow: hidden;
  font-size: 1rem;
  letter-spacing: 0.03em;
  padding: 16px;
}
.dash-gen-btn::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.18), transparent);
  animation: btn-shimmer 2.4s ease-in-out infinite;
}
@keyframes btn-shimmer {
  0%   { left: -100%; }
  60%  { left: 150%; }
  100% { left: 150%; }
}
.dash-gen-btn:disabled::after { display: none; }

/* ─── Pack rows in dashboard ─────────────────────────────── */
.pack-row {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.18s;
  overflow: hidden;
}
.pack-row:hover { border-color: rgba(255,61,107,0.35); background: rgba(255,61,107,0.06); transform: translateX(2px); }
.pack-row.featured { border-color: rgba(0,212,255,0.3); background: rgba(0,212,255,0.05); }
.pack-row.featured:hover { border-color: rgba(0,212,255,0.5); background: rgba(0,212,255,0.1); }

@media (max-width: 900px) {
  .dashboard__grid { grid-template-columns: 1fr; }
  .dash-sidebar { position: static; }
  .dash-nav { flex-direction: row; flex-wrap: wrap; gap: 4px; }
  .dash-nav a {
    flex: 1; min-width: 70px; justify-content: center;
    font-size: 0.75rem; padding: 8px 6px; text-align: center;
  }
  .dash-nav a.active::before { display: none; }
  .dash-balance { padding: 20px 16px 16px; }
  .dash-balance__num { font-size: 2.4rem; }
  .dash-card { padding: 20px 16px; }
}

/* ─── Responsive ─────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero__grid { grid-template-columns: 1fr; gap: 48px; }
  .hero__cards { flex-direction: row; flex-wrap: wrap; }
  .hero-card { flex: 1; min-width: 200px; }
  .pricing__grid { grid-template-columns: 1fr; max-width: 400px; margin: 48px auto 0; }
  .reviews__grid { grid-template-columns: 1fr; max-width: 500px; margin: 48px auto 0; }
  .footer__inner { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 768px) {
  section { padding: 60px 0; }
  .hero { padding: 60px 0 40px; }

  .nav { display: none; }
  .burger { display: flex; }

  .steps__grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .steps__grid::before { display: none; }

  .modes__grid { grid-template-columns: 1fr; }
  .blog__grid { grid-template-columns: 1fr; }

  .hero__cards { flex-direction: column; }

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

  .footer__inner { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; text-align: center; }

  .cta-banner { padding: 40px 20px; }

  .header__actions .btn-outline { display: none !important; }
  .header__actions .btn-ghost { display: none !important; }
  .header__actions .btn-primary { display: none !important; }
  .lang-switcher { display: none; }
  .header__actions { gap: 8px; }
}

/* FAQ hover only on real hover devices */
@media (hover: hover) {
  
}

@media (max-width: 480px) {
  .hero__cta { flex-direction: column; }
  .hero__cta .btn { width: 100%; justify-content: center; }
  .hero__stats { gap: 20px; }
  .demo__modes { grid-template-columns: 1fr 1fr; }
  .modal { padding: 24px 20px; max-width: calc(100vw - 32px); }
}

/* ─── Noise texture overlay ───────────────────────────────── */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.025;
  pointer-events: none;
  z-index: 1;
}

/* ─── Ticker ──────────────────────────────────────────────── */
.ticker-wrap {
  overflow: hidden;
  background: rgba(255,61,107,0.07);
  border-top: 1px solid rgba(255,61,107,0.15);
  border-bottom: 1px solid rgba(255,61,107,0.15);
  padding: 12px 0;
}
.ticker {
  display: flex;
  gap: 0;
  width: max-content;
  animation: ticker-scroll 28s linear infinite;
}
.ticker:hover { animation-play-state: paused; }
.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 32px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.ticker-item span { color: var(--accent); }
.ticker-dot {
  width: 4px;
  height: 4px;
  background: rgba(255,61,107,0.4);
  border-radius: 50%;
  flex-shrink: 0;
}
@keyframes ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ─── Why us section ─────────────────────────────────────── */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 40px;
  text-align: left;
}
.why-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
}
.why-card:hover { border-color: rgba(255,61,107,0.3); transform: translateY(-2px); }
.why-card__icon {
  font-size: 1.6rem;
  margin-bottom: 12px;
  display: block;
}
.why-card__title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 6px;
}
.why-card__desc {
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.55;
}
.why-card__tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

/* ─── Counter animation ─ (removed, was causing vibration) ── */

/* ─── Counter animation ──────────────────────────────────── */
.stat__num { display: inline-block; }
.stat__num.counting { opacity: 1; }

/* ─── Animated gradient accent ──────────────────────────── */
.gradient {
  background: linear-gradient(90deg, var(--accent), var(--purple), var(--cyan), var(--accent));
  background-size: 300% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: grad-shift 5s linear infinite;
}
@keyframes grad-shift {
  0%   { background-position: 0% 50%; }
  100% { background-position: 300% 50%; }
}

/* ─── Mobile nav overlay ─────────────────────────────────── */
.mobile-nav {
  position: fixed;
  inset: 0;
  top: 68px;
  background: rgba(8,8,15,0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 99;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}
.mobile-nav.open { transform: translateX(0); }
.mobile-nav a {
  color: var(--text);
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 600;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

/* ─── Utility ────────────────────────────────────────────── */
.hidden { display: none !important; }
.text-accent { color: var(--accent); }
.text-purple { color: var(--purple); }
.text-muted { color: var(--muted); }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
