/* ============================================================
   Delphi Video Downloader — Site5
   Modern dark, responsive, bilingual
   ============================================================ */

/* ---------- 1. RESET & BASE ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter",
               "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji",
               "Segoe UI Emoji", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg-0);
  background-image:
    radial-gradient(1200px 700px at 80% -10%, rgba(99, 102, 241, 0.18), transparent 60%),
    radial-gradient(900px 600px at -10% 30%, rgba(168, 85, 247, 0.15), transparent 60%),
    radial-gradient(1000px 700px at 50% 100%, rgba(34, 211, 238, 0.10), transparent 60%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

[data-theme="light"] body,
[data-theme="light"] {
  background-color: var(--bg-0);
  background-image:
    radial-gradient(1200px 700px at 80% -10%, rgba(99, 102, 241, 0.07), transparent 60%),
    radial-gradient(900px 600px at -10% 30%, rgba(168, 85, 247, 0.06), transparent 60%),
    radial-gradient(1000px 700px at 50% 100%, rgba(34, 211, 238, 0.05), transparent 60%);
}

[data-theme="light"] h1,
[data-theme="light"] h2,
[data-theme="light"] h3,
[data-theme="light"] h4,
[data-theme="light"] h5,
[data-theme="light"] h6 { color: var(--text-strong); }

[data-theme="light"] .topbar {
  background: rgba(255,255,255,0.65);
  border-bottom: 1px solid var(--line);
}

[data-theme="light"] .header {
  background: rgba(255, 255, 255, 0.78);
}

[data-theme="light"] .nav.open {
  background: rgba(255, 255, 255, 0.98);
}

[data-theme="light"] .card.feature,
[data-theme="light"] .plat-group,
[data-theme="light"] .tech-card,
[data-theme="light"] .step,
[data-theme="light"] .shot {
  background: linear-gradient(180deg, rgba(255,255,255,0.7), rgba(255,255,255,0.4));
  border-color: var(--line);
}

[data-theme="light"] .card.feature:hover,
[data-theme="light"] .plat-group:hover,
[data-theme="light"] .tech-card:hover,
[data-theme="light"] .step:hover,
[data-theme="light"] .shot:hover {
  background: linear-gradient(180deg, rgba(255,255,255,0.9), rgba(255,255,255,0.6));
}

[data-theme="light"] .card.feature::before {
  background: linear-gradient(135deg, rgba(99,102,241,0.06), transparent 50%);
}

[data-theme="light"] .hero-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.6), rgba(255,255,255,0.3));
}

[data-theme="light"] .stat {
  background: rgba(255,255,255,0.5);
  border-color: var(--line);
}

[data-theme="light"] .stat:hover {
  background: rgba(255,255,255,0.7);
}

[data-theme="light"] .badge {
  background: rgba(99,102,241,0.08);
  border-color: rgba(99,102,241,0.20);
  color: #4f46e5;
}

[data-theme="light"] .kbd {
  background: rgba(99,102,241,0.10);
  color: #4f46e5;
  border-color: rgba(99,102,241,0.20);
}

[data-theme="light"] .tag {
  background: rgba(99,102,241,0.08);
  color: #4f46e5;
  border-color: rgba(99,102,241,0.20);
}

[data-theme="light"] .plat {
  background: rgba(255,255,255,0.6);
  border-color: var(--line);
  color: var(--muted);
}

[data-theme="light"] .plat:hover {
  background: rgba(99,102,241,0.08);
  border-color: rgba(99,102,241,0.25);
  color: var(--text-strong);
}

[data-theme="light"] .chip {
  background: rgba(255,255,255,0.5);
  border-color: var(--line);
}

[data-theme="light"] .section-alt {
  background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.015) 100%);
}

[data-theme="light"] .lang-switch {
  background: rgba(0,0,0,0.03);
}

[data-theme="light"] .btn-ghost {
  background: rgba(0,0,0,0.03);
  color: var(--text-strong);
  border-color: var(--line);
}

[data-theme="light"] .btn-ghost:hover {
  background: rgba(0,0,0,0.06);
  border-color: var(--line-2);
}

[data-theme="light"] .menu-toggle {
  background: rgba(0,0,0,0.03);
  border-color: var(--line);
}

[data-theme="light"] .footer {
  background: #f0f1f5;
  border-top: 1px solid var(--line);
}

[data-theme="light"] .footer-cols a {
  color: var(--muted);
}

[data-theme="light"] .plat-group-generic {
  background: linear-gradient(135deg, rgba(99,102,241,0.06), rgba(168,85,247,0.06));
  border-color: rgba(99,102,241,0.18);
}

[data-theme="light"] .dev-card {
  background: linear-gradient(135deg, rgba(99,102,241,0.06), rgba(168,85,247,0.05));
  border-color: rgba(99,102,241,0.18);
}

[data-theme="light"] .ico {
  border-color: rgba(99,102,241,0.20);
}

[data-theme="light"] .ico-violet { background: rgba(99,102,241,0.10); border-color: rgba(99,102,241,0.22); }
[data-theme="light"] .ico-pink   { background: rgba(236,72,153,0.10); border-color: rgba(236,72,153,0.22); }
[data-theme="light"] .ico-blue   { background: rgba(59,130,246,0.10); border-color: rgba(59,130,246,0.22); }
[data-theme="light"] .ico-amber  { background: rgba(245,158,11,0.10); border-color: rgba(245,158,11,0.22); }
[data-theme="light"] .ico-green  { background: rgba(16,185,129,0.10); border-color: rgba(16,185,129,0.22); }
[data-theme="light"] .ico-cyan   { background: rgba(34,211,238,0.10); border-color: rgba(34,211,238,0.22); }

[data-theme="light"] .tech-icon {
  background: linear-gradient(135deg, rgba(99,102,241,0.12), rgba(168,85,247,0.12));
}

[data-theme="light"] .section-kicker {
  background: rgba(99,102,241,0.08);
  border-color: rgba(99,102,241,0.18);
}

[data-theme="light"] .compar-table th,
[data-theme="light"] .compar-table td {
  border-color: var(--line);
}

[data-theme="light"] .compar-table tr:hover td {
  background: rgba(99,102,241,0.04);
}

[data-theme="light"] .compar-table .highlight {
  background: rgba(99,102,241,0.06);
}

[data-theme="light"] .lightbox {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

[data-theme="light"] .lightbox-close {
  background: rgba(0,0,0,0.1);
  color: #1e1f2e;
}

[data-theme="light"] .lightbox-close:hover {
  background: rgba(0,0,0,0.2);
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }

h1, h2, h3, h4, h5, h6 { font-weight: 700; line-height: 1.2; margin: 0; color: #f5f6fa; }
p { margin: 0; }

:root {
  --indigo-500: #6366f1;
  --purple-500: #a855f7;
  --cyan-400:   #22d3ee;
  --pink-500:   #ec4899;
  --amber-500:  #f59e0b;
  --green-500:  #10b981;

  --bg-0: #0a0a13;
  --bg-1: #11111d;
  --bg-2: #181828;
  --bg-3: #1f1f31;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.12);
  --muted: #a3a7b7;
  --text: #e6e7ee;
  --text-strong: #f5f6fa;

  --radius-sm: 8px;
  --radius:    14px;
  --radius-lg: 22px;

  --shadow-1: 0 4px 20px rgba(0, 0, 0, 0.35);
  --shadow-2: 0 12px 50px rgba(0, 0, 0, 0.55);
  --grad:     linear-gradient(135deg, var(--indigo-500) 0%, var(--purple-500) 100%);
}

[data-theme="light"] {
  --bg-0: #f5f6fa;
  --bg-1: #ffffff;
  --bg-2: #f0f1f5;
  --bg-3: #e8e9ee;
  --line: rgba(0, 0, 0, 0.08);
  --line-2: rgba(0, 0, 0, 0.14);
  --muted: #5a5e72;
  --text: #1e1f2e;
  --text-strong: #0a0b14;

  --shadow-1: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-2: 0 12px 50px rgba(0, 0, 0, 0.12);
}

/* ---------- 2. LAYOUT ---------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
  position: relative;
}

.section-alt {
  background: linear-gradient(180deg, transparent 0%, rgba(255,255,255,0.015) 100%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 60px;
}

.section-kicker {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--indigo-500);
  background: rgba(99, 102, 241, 0.10);
  border: 1px solid rgba(99, 102, 241, 0.25);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.section-title {
  font-size: clamp(28px, 4vw, 44px);
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.section-sub {
  color: var(--muted);
  font-size: clamp(15px, 1.6vw, 17px);
  line-height: 1.7;
}

/* ---------- 3. TOP BAR ---------- */
.topbar {
  background: rgba(0,0,0,0.45);
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 36px;
}
.topbar-left, .topbar-right { display: flex; gap: 10px; align-items: center; }
.kbd {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(99,102,241,0.15);
  color: #c4c8ff;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  border: 1px solid rgba(99,102,241,0.25);
}
.muted { color: var(--muted); }

/* ---------- 4. HEADER ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 10, 19, 0.78);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 30px;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-logo {
  display: grid;
  place-items: center;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(99,102,241,0.25);
}
.brand-text strong {
  display: block;
  font-size: 16px;
  color: var(--text-strong);
  letter-spacing: -0.2px;
}
.brand-text small {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

.nav {
  display: flex;
  gap: 20px;
  margin-left: auto;
  white-space: nowrap;
}
.nav a {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.2s ease;
  position: relative;
  white-space: nowrap;
}
.nav a:hover { color: var(--text-strong); }
.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -22px;
  height: 2px;
  background: var(--grad);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.nav a:hover::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: 12px; }

.lang-switch {
  display: inline-flex;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
}
.lang-btn {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  transition: all 0.2s ease;
  white-space: nowrap;
}
.lang-btn:hover { color: var(--text-strong); }
.lang-btn.active {
  background: var(--grad);
  color: white;
  box-shadow: 0 2px 10px rgba(99,102,241,0.35);
}

.menu-toggle {
  display: none;
  width: 40px; height: 40px;
  border-radius: 10px;
  border: 1px solid var(--line);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  background: rgba(255,255,255,0.03);
}
.menu-toggle span {
  width: 18px; height: 2px;
  background: var(--text-strong);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* ---------- 5. BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.1px;
  transition: all 0.2s ease;
  white-space: nowrap;
  border: 1px solid transparent;
  text-decoration: none;
}
.btn-lg { padding: 14px 26px; font-size: 15px; border-radius: 12px; }

.btn-primary {
  background: var(--grad);
  color: white;
  box-shadow: 0 6px 20px rgba(99,102,241,0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(99,102,241,0.50);
}

.btn-ghost {
  background: rgba(255,255,255,0.04);
  color: var(--text-strong);
  border: 1px solid var(--line);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.08);
  border-color: var(--line-2);
  transform: translateY(-2px);
}

.link-ico { font-size: 16px; }

/* ---------- 6. HERO ---------- */
.hero {
  position: relative;
  padding: 90px 0 110px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
  animation: floaty 18s ease-in-out infinite;
}
.blob-1 { width: 480px; height: 480px; background: #6366f1; top: -120px; right: -100px; }
.blob-2 { width: 380px; height: 380px; background: #a855f7; bottom: -120px; left: -60px; animation-delay: -6s; }
.blob-3 { width: 300px; height: 300px; background: #22d3ee; top: 30%; left: 30%; animation-delay: -12s; opacity: 0.35; }
@keyframes floaty {
  0%, 100% { transform: translate(0,0) scale(1); }
  50%      { transform: translate(40px,-30px) scale(1.08); }
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  align-items: center;
}

.badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(99,102,241,0.10);
  border: 1px solid rgba(99,102,241,0.30);
  color: #c4c8ff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 22px;
}

.hero-title {
  font-size: clamp(34px, 5vw, 60px);
  letter-spacing: -1.5px;
  margin-bottom: 22px;
  line-height: 1.05;
}
.hero-title span { display: inline; }
.gradient-text {
  background: linear-gradient(120deg, #818cf8 0%, #c084fc 50%, #22d3ee 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-desc {
  color: var(--muted);
  font-size: clamp(15px, 1.6vw, 17px);
  line-height: 1.7;
  max-width: 560px;
  margin-bottom: 32px;
}

.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.hero-downloads {
  margin-bottom: 10px;
}
.hero-dl-label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-strong);
  margin-bottom: 12px;
  letter-spacing: 0.3px;
}
.hero-dl-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.btn-download {
  background: rgba(99,102,241,0.10);
  color: var(--text-strong);
  border: 1px solid rgba(99,102,241,0.25);
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.btn-download:hover {
  background: rgba(99,102,241,0.20);
  border-color: rgba(99,102,241,0.45);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(99,102,241,0.25);
}
[data-theme="light"] .btn-download {
  background: rgba(99,102,241,0.06);
  border-color: rgba(99,102,241,0.18);
}
[data-theme="light"] .btn-download:hover {
  background: rgba(99,102,241,0.12);
  border-color: rgba(99,102,241,0.35);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  max-width: 540px;
}
.stat {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 14px;
  text-align: center;
  transition: all 0.2s ease;
}
.stat:hover {
  border-color: var(--line-2);
  transform: translateY(-2px);
  background: rgba(255,255,255,0.05);
}
.stat-num {
  font-size: 22px;
  font-weight: 800;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: -0.5px;
}
.stat-lbl {
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Hero visual mockup */
.hero-visual {
  position: relative;
}
.hero-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 14px;
  box-shadow: var(--shadow-2);
  transform: perspective(1200px) rotateY(-6deg) rotateX(3deg);
  transition: transform 0.5s ease;
}
.hero-card:hover { transform: perspective(1200px) rotateY(-2deg) rotateX(1deg); }

.hero-card-top {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 4px 12px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 12px;
}
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.dot-r { background: #ef4444; }
.dot-y { background: #f59e0b; }
.dot-g { background: #10b981; }
.hero-card-title {
  margin-left: 12px;
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
}
.hero-card img {
  width: 100%;
  border-radius: 8px;
  display: block;
}
.hero-card-foot {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  padding-top: 12px;
  margin-top: 8px;
  border-top: 1px solid var(--line);
}
.chip {
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  color: var(--muted);
  border: 1px solid var(--line);
}
.chip-ok { color: #6ee7b7; border-color: rgba(16,185,129,0.30); background: rgba(16,185,129,0.10); }

/* ---------- 7. DOWNLOAD SECTION ---------- */
.dl-versions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 960px;
  margin: 0 auto;
}
.dl-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: all 0.25s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.dl-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-2);
  box-shadow: var(--shadow-1);
}
.dl-current {
  border-color: rgba(99,102,241,0.30);
}
.dl-current:hover {
  border-color: rgba(99,102,241,0.50);
  box-shadow: 0 8px 30px rgba(99,102,241,0.15);
}
.dl-badge {
  display: inline-block;
  align-self: flex-start;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--grad);
  color: white;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.dl-badge-old {
  background: var(--muted);
  color: var(--bg-0);
}
.dl-card h3 {
  font-size: 20px;
  letter-spacing: -0.3px;
}
.dl-card p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}
.dl-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.dl-vt {
  margin-top: 4px;
}
.btn-sm {
  padding: 8px 14px;
  font-size: 12px;
  border-radius: 8px;
}
[data-theme="light"] .dl-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.7), rgba(255,255,255,0.4));
}
[data-theme="light"] .dl-card:hover {
  background: linear-gradient(180deg, rgba(255,255,255,0.9), rgba(255,255,255,0.6));
}
[data-theme="light"] .dl-current {
  border-color: rgba(99,102,241,0.25);
}

@media (max-width: 720px) {
  .dl-versions {
    grid-template-columns: 1fr;
  }
}

/* ---------- 9. FEATURES ---------- */
.grid.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.card.feature {
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}
.card.feature::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(99,102,241,0.10), transparent 50%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.card.feature:hover {
  transform: translateY(-4px);
  border-color: var(--line-2);
  box-shadow: var(--shadow-1);
}
.card.feature:hover::before { opacity: 1; }

.ico {
  width: 52px; height: 52px;
  display: grid;
  place-items: center;
  font-size: 26px;
  border-radius: 12px;
  margin-bottom: 18px;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.25);
}
.ico-violet { background: rgba(99, 102, 241, 0.12); border-color: rgba(99,102,241,0.30); }
.ico-pink   { background: rgba(236, 72, 153, 0.12); border-color: rgba(236, 72, 153, 0.30); }
.ico-blue   { background: rgba(59, 130, 246, 0.12); border-color: rgba(59, 130, 246, 0.30); }
.ico-amber  { background: rgba(245, 158, 11, 0.12); border-color: rgba(245, 158, 11, 0.30); }
.ico-green  { background: rgba(16, 185, 129, 0.12); border-color: rgba(16, 185, 129, 0.30); }
.ico-cyan   { background: rgba(34, 211, 238, 0.12); border-color: rgba(34, 211, 238, 0.30); }

.feature h3 {
  font-size: 17px;
  margin-bottom: 10px;
  letter-spacing: -0.2px;
}
.feature p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

/* ---------- 9. SCREENSHOTS ---------- */
.screenshots {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
.shot {
  margin: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.25s ease;
}
.shot:hover {
  transform: translateY(-4px);
  border-color: var(--line-2);
  box-shadow: var(--shadow-1);
}
.shot img {
  width: 100%;
  height: auto;
  display: block;
  border-bottom: 1px solid var(--line);
}
.shot figcaption {
  padding: 16px 18px;
}
.shot figcaption strong {
  display: block;
  font-size: 15px;
  margin-bottom: 4px;
  color: var(--text-strong);
}
.shot figcaption span {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}
.shot-wide {
  grid-column: 1 / -1;
}

/* ---------- 10. PLATFORMS ---------- */
.platforms {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.plat-group {
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 22px 18px;
  transition: all 0.25s ease;
}
.plat-group:hover {
  border-color: var(--line-2);
  transform: translateY(-2px);
}
.plat-group h3 {
  font-size: 15px;
  margin-bottom: 14px;
  color: var(--text-strong);
  letter-spacing: -0.1px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.plat-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.plat {
  font-size: 12px;
  padding: 5px 10px;
  border-radius: 6px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line);
  color: var(--muted);
  transition: all 0.15s ease;
}
.plat:hover {
  background: rgba(99,102,241,0.12);
  border-color: rgba(99,102,241,0.35);
  color: var(--text-strong);
}
.plat-group-generic {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, rgba(99,102,241,0.10), rgba(168,85,247,0.10));
  border-color: rgba(99,102,241,0.25);
}
.plat-group-generic p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

/* ---------- 11. STEPS ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  position: relative;
}
.steps::before {
  content: "";
  position: absolute;
  top: 36px; left: 10%; right: 10%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--line-2), transparent);
  z-index: 0;
}
.step {
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  position: relative;
  z-index: 1;
  transition: all 0.25s ease;
}
.step:hover {
  border-color: var(--line-2);
  transform: translateY(-4px);
  box-shadow: var(--shadow-1);
}
.step-num {
  width: 56px; height: 56px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--grad);
  color: white;
  font-size: 24px;
  font-weight: 800;
  margin: 0 auto 20px;
  box-shadow: 0 6px 20px rgba(99,102,241,0.35);
}
.step h3 {
  font-size: 19px;
  text-align: center;
  margin-bottom: 12px;
}
.step p {
  color: var(--muted);
  font-size: 14px;
  text-align: center;
  line-height: 1.65;
  margin-bottom: 18px;
}
.step-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
}
.tag {
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(99,102,241,0.10);
  color: #c4c8ff;
  border: 1px solid rgba(99,102,241,0.25);
  font-weight: 600;
  letter-spacing: 0.3px;
}

/* ---------- 12. TECH GRID ---------- */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.tech-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  transition: all 0.25s ease;
}
.tech-card:hover {
  border-color: rgba(99,102,241,0.35);
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(99,102,241,0.10);
}
.tech-icon {
  width: 50px; height: 50px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(99,102,241,0.20), rgba(168,85,247,0.20));
  font-size: 24px;
  margin-bottom: 16px;
}
.tech-card h3 {
  font-size: 17px;
  margin-bottom: 10px;
}
.tech-card p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

/* ---------- 13. DEVELOPER ---------- */
.dev-card {
  display: flex;
  gap: 36px;
  align-items: center;
  background: linear-gradient(135deg, rgba(99,102,241,0.10), rgba(168,85,247,0.08));
  border: 1px solid rgba(99,102,241,0.25);
  border-radius: var(--radius-lg);
  padding: 40px;
  position: relative;
  overflow: hidden;
}
.dev-card::before {
  content: "";
  position: absolute;
  top: -100px; right: -100px;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(99,102,241,0.30), transparent 70%);
  filter: blur(40px);
  pointer-events: none;
}
.dev-avatar {
  flex-shrink: 0;
  width: 120px; height: 120px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--grad);
  color: white;
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -1px;
  box-shadow: 0 10px 40px rgba(99,102,241,0.45);
  position: relative;
  z-index: 1;
}
.dev-info {
  flex: 1;
  position: relative;
  z-index: 1;
}
.dev-info h2 {
  font-size: clamp(24px, 3vw, 32px);
  margin: 8px 0 14px;
}
.dev-info p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 22px;
  max-width: 720px;
}
.dev-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ---------- 14. FOOTER ---------- */
.footer {
  background: #06060d;
  border-top: 1px solid var(--line);
  padding: 60px 0 30px;
  color: var(--muted);
  font-size: 14px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 2fr;
  gap: 40px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.footer-brand strong {
  display: block;
  color: var(--text-strong);
  font-size: 15px;
}
.footer-brand small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 2px;
}
.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.footer-cols h4 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--text-strong);
  margin-bottom: 14px;
  font-weight: 700;
}
.footer-cols a {
  display: block;
  font-size: 13px;
  color: var(--muted);
  padding: 4px 0;
  transition: color 0.15s ease;
}
.footer-cols a:hover { color: var(--text-strong); }
.footer-bottom {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding-top: 24px;
  margin-top: 24px;
  font-size: 13px;
  color: var(--muted);
  flex-wrap: wrap;
  gap: 14px;
}
.lang-switch-foot { padding: 2px; }
.lang-switch-foot .lang-btn { padding: 4px 10px; font-size: 12px; }

/* ---------- 13b. LANGUAGE PICKER (15 languages, dropdown) ---------- */
.lang-picker { position: relative; display: inline-block; }
.lang-picker-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line);
  color: var(--text-strong);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  min-width: 78px;
  justify-content: space-between;
}
.lang-picker-btn:hover {
  background: rgba(255,255,255,0.08);
  border-color: var(--line-2);
}
.lang-picker-current { display: inline-block; }
.lang-picker-caret {
  font-size: 10px; opacity: 0.75;
  transition: transform 0.2s ease;
}
.lang-picker.open .lang-picker-caret { transform: rotate(180deg); }

.lang-picker-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 100;
  min-width: 180px;
  max-height: 360px;
  overflow-y: auto;
  padding: 6px;
  background: var(--bg-0);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 14px 40px rgba(0,0,0,0.45), 0 2px 6px rgba(0,0,0,0.30);
  display: none;
  flex-direction: column;
  gap: 2px;
}
.lang-picker.open .lang-picker-menu { display: flex; }
.lang-picker-item {
  display: flex; align-items: center; gap: 10px;
  width: 100%;
  padding: 8px 12px;
  border-radius: 8px;
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.lang-picker-item:hover {
  background: rgba(99,102,241,0.12);
  color: var(--text-strong);
}
.lang-picker-item.active {
  background: var(--grad);
  color: white;
  font-weight: 600;
}
.lang-picker-item.active:hover {
  background: var(--grad);
  color: white;
}

/* Footer variant */
.lang-picker-foot .lang-picker-btn {
  padding: 4px 10px;
  font-size: 12px;
  min-width: 70px;
}
.lang-picker-foot .lang-picker-menu {
  bottom: calc(100% + 8px);
  top: auto;
  right: 0;
}

/* Light theme */
[data-theme="light"] .lang-picker-btn {
  background: rgba(0,0,0,0.03);
  border-color: var(--line);
}
[data-theme="light"] .lang-picker-btn:hover {
  background: rgba(0,0,0,0.06);
  border-color: var(--line-2);
}
[data-theme="light"] .lang-picker-menu {
  background: #ffffff;
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.15), 0 2px 6px rgba(15, 23, 42, 0.10);
}
[data-theme="light"] .lang-picker-item:hover {
  background: rgba(99,102,241,0.08);
}
[data-theme="light"] .lang-picker-item.active {
  color: white;
}

/* RTL support for Arabic */
[data-lang="ar"] .lang-picker-menu {
  right: auto;
  left: 0;
  text-align: right;
}
[data-lang="ar"] .lang-picker-item { text-align: right; }

/* ---------- 15. BACK TO TOP ---------- */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--grad);
  color: white;
  font-size: 20px;
  font-weight: 800;
  display: grid;
  place-items: center;
  box-shadow: 0 6px 20px rgba(99,102,241,0.40);
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: all 0.3s ease;
  z-index: 40;
}
.back-to-top.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.back-to-top:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(99,102,241,0.55);
}

/* ---------- 16. ANIMATIONS ---------- */
.fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.in {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---------- 17. THEME TOGGLE ---------- */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.04);
  font-size: 18px;
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}
.theme-toggle:hover {
  background: rgba(99,102,241,0.10);
  border-color: rgba(99,102,241,0.30);
  transform: scale(1.08);
}
.theme-toggle .ico-sun,
.theme-toggle .ico-moon {
  position: absolute;
  transition: all 0.35s ease;
}
.theme-toggle .ico-sun {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}
.theme-toggle .ico-moon {
  opacity: 0;
  transform: rotate(-90deg) scale(0.5);
}
[data-theme="light"] .theme-toggle .ico-sun {
  opacity: 0;
  transform: rotate(90deg) scale(0.5);
}
[data-theme="light"] .theme-toggle .ico-moon {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

/* ---------- 18. LIGHTBOX ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.lightbox.active {
  opacity: 1;
  pointer-events: auto;
}
.lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: 12px;
  box-shadow: 0 20px 80px rgba(0,0,0,0.6);
  transform: scale(0.92);
  transition: transform 0.35s ease;
  cursor: zoom-out;
}
.lightbox.active .lightbox-img {
  transform: scale(1);
}
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  color: white;
  font-size: 22px;
  font-weight: 700;
  display: grid;
  place-items: center;
  cursor: pointer;
  border: 1px solid rgba(255,255,255,0.15);
  transition: all 0.2s ease;
}
.lightbox-close:hover {
  background: rgba(255,255,255,0.2);
  transform: scale(1.08);
}
.lightbox-caption {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  font-size: 14px;
  font-weight: 500;
  background: rgba(0,0,0,0.5);
  padding: 8px 18px;
  border-radius: 999px;
  white-space: nowrap;
  pointer-events: none;
}
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  color: white;
  font-size: 24px;
  font-weight: 700;
  display: grid;
  place-items: center;
  cursor: pointer;
  border: 1px solid rgba(255,255,255,0.15);
  transition: all 0.2s ease;
  z-index: 10;
  user-select: none;
}
.lightbox-nav:hover {
  background: rgba(255,255,255,0.22);
  transform: translateY(-50%) scale(1.08);
}
.lightbox-nav-prev { left: 20px; }
.lightbox-nav-next { right: 20px; }
.lightbox-counter {
  position: absolute;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  font-size: 13px;
  font-weight: 600;
  background: rgba(0,0,0,0.4);
  padding: 5px 14px;
  border-radius: 999px;
  pointer-events: none;
}
[data-theme="light"] .lightbox-nav {
  background: rgba(0,0,0,0.08);
  color: #1e1f2e;
  border-color: rgba(0,0,0,0.12);
}
[data-theme="light"] .lightbox-nav:hover {
  background: rgba(0,0,0,0.15);
}
[data-theme="light"] .lightbox-counter {
  background: rgba(0,0,0,0.5);
  color: white;
}
.shot img,
.hero-card img {
  cursor: zoom-in;
}

/* ---------- 19. COMPARISON TABLE ---------- */
.compar-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
}
.compar-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
  min-width: 820px;
}
.compar-table th,
.compar-table td {
  padding: 9px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}
.compar-table thead th {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-strong);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  background: rgba(255,255,255,0.03);
  position: sticky;
  top: 0;
  white-space: nowrap;
}
.compar-table thead th:first-child {
  border-radius: var(--radius) 0 0 0;
}
.compar-table thead th:last-child {
  border-radius: 0 var(--radius) 0 0;
}
.compar-table tbody tr {
  transition: background 0.15s ease;
}
.compar-table tbody tr:hover td {
  background: rgba(99,102,241,0.05);
}
.compar-table td:first-child {
  font-weight: 600;
  color: var(--text-strong);
  white-space: nowrap;
}
.compar-table .highlight {
  background: rgba(99,102,241,0.06);
  font-weight: 600;
  color: var(--indigo-500);
}
.compar-table .yes {
  color: #10b981;
  font-weight: 600;
}
.compar-table .no {
  color: #ef4444;
  font-weight: 600;
}
.compar-table .partial {
  color: #f59e0b;
  font-weight: 600;
}
.compar-table .price {
  font-weight: 700;
  color: var(--purple-500);
}
.compar-table .row-prominent td {
  background: rgba(99,102,241,0.06);
  font-size: 13px;
  padding: 12px 10px;
}
.compar-table .row-prominent td:first-child {
  font-size: 14px;
  letter-spacing: 0.3px;
}
.compar-table .row-prominent .highlight {
  background: rgba(99,102,241,0.12);
}
.compar-table .row-prominent .price {
  font-size: 14px;
}
[data-theme="light"] .compar-table .row-prominent td {
  background: rgba(99,102,241,0.04);
}
[data-theme="light"] .compar-table .row-prominent .highlight {
  background: rgba(99,102,241,0.08);
}

/* ---------- 20. RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: repeat(3, 1fr); }
  .dev-card { flex-direction: column; text-align: center; padding: 30px 24px; }
  .dev-info p { margin-left: auto; margin-right: auto; }
  .dev-links { justify-content: center; }
}

@media (max-width: 820px) {
  .nav { display: none; }
  .menu-toggle { display: flex; }
  .header-inner { gap: 12px; }

  .nav.open {
    display: flex;
    position: absolute;
    top: 72px;
    left: 0; right: 0;
    flex-direction: column;
    background: rgba(10, 10, 19, 0.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--line);
    padding: 16px 24px 24px;
    gap: 16px;
  }
  [data-theme="light"] .nav.open {
    background: rgba(255, 255, 255, 0.98);
  }
  .nav.open a { font-size: 15px; }
  .nav.open a::after { display: none; }

  .header-actions .btn-primary { display: none; }

  .section { padding: 70px 0; }
  .section-head { margin-bottom: 40px; }

  .hero { padding: 60px 0 80px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .hero-card { transform: none; }

  .screenshots { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 16px; }
  .steps::before { display: none; }
  .footer-cols { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 520px) {
  .container { padding: 0 18px; }
  .topbar-inner { font-size: 11px; gap: 8px; }
  .topbar-inner .muted { display: none; }
  .header-inner { height: 64px; }
  .brand-text small { display: none; }
  .hero-stats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat { padding: 14px 10px; }
  .stat-num { font-size: 18px; }
  .footer-cols { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .grid.features { grid-template-columns: 1fr; }
  .hero-dl-links { flex-direction: column; }
  .hero-dl-links .btn-download { text-align: center; }
  .tech-grid { grid-template-columns: 1fr; }
  .platforms { grid-template-columns: 1fr; }
  .back-to-top { bottom: 16px; right: 16px; width: 40px; height: 40px; }
  .lang-btn { padding: 5px 9px; font-size: 12px; }
  .lang-picker-btn { padding: 5px 10px; font-size: 12px; min-width: 70px; }
  .lang-picker-menu { min-width: 160px; max-height: 280px; }
  .lightbox-nav { width: 42px; height: 42px; font-size: 20px; }
  .lightbox-nav-prev { left: 10px; }
  .lightbox-nav-next { right: 10px; }
  .lightbox-counter { top: 16px; font-size: 12px; }
}
