*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0d0d0f;
  --bg-card: #16161a;
  --bg-card-hover: #1c1c22;
  --border: #2a2a35;
  --accent: #7c6af7;
  --accent-hover: #9585ff;
  --accent-glow: rgba(124, 106, 247, 0.25);
  --text: #f0f0f5;
  --text-muted: #8888a0;
  --text-dim: #555568;
  --radius: 16px;
  --radius-sm: 10px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

a { color: inherit; text-decoration: none; }

/* ── HEADER ── */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 13, 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;
  gap: 32px;
  height: 60px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.logo-icon { width: 28px; height: 28px; border-radius: 7px; }

.logo-text {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.3px;
}

.nav {
  display: flex;
  gap: 24px;
  flex: 1;
}

.nav a {
  font-size: 14px;
  color: var(--text-muted);
  transition: color 0.2s;
}

.nav a:hover { color: var(--text); }

.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

/* ── LANG SWITCHER ── */
.lang-switcher { position: relative; }

.lang-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 13px;
  font-family: var(--font);
  padding: 6px 10px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.lang-btn:hover { border-color: var(--accent); background: var(--bg-card-hover); }

.chevron { transition: transform 0.2s; }
.lang-btn[aria-expanded="true"] .chevron { transform: rotate(180deg); }

.lang-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  min-width: 160px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0,0,0,0.5);
  z-index: 200;
}

.lang-dropdown.open { display: block; }

.lang-option {
  display: block;
  width: 100%;
  background: none;
  border: none;
  color: var(--text);
  font-size: 13px;
  font-family: var(--font);
  padding: 9px 14px;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s;
}

.lang-option:hover { background: var(--bg-card-hover); }
.lang-option.active { color: var(--accent); }

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  white-space: nowrap;
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  padding: 8px 18px;
  font-size: 14px;
}

.btn-primary:hover {
  background: var(--accent-hover);
  box-shadow: 0 0 20px var(--accent-glow);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 8px 18px;
  font-size: 14px;
}

.btn-ghost:hover { color: var(--text); border-color: var(--text-muted); }

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 12px 24px;
  font-size: 15px;
}

.btn-outline:hover {
  background: var(--accent-glow);
}

.btn-large { padding: 14px 28px; font-size: 16px; }

.btn-full { width: 100%; margin-top: auto; }

/* ── HERO ── */
.hero {
  padding: 96px 0 80px;
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero-badge {
  display: inline-block;
  background: rgba(124, 106, 247, 0.15);
  border: 1px solid rgba(124, 106, 247, 0.3);
  color: var(--accent);
  font-size: 13px;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: 100px;
  margin-bottom: 20px;
}

.hero-title {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1.5px;
  margin-bottom: 20px;
}

.hero-subtitle {
  font-size: 18px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 32px;
  max-width: 440px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.hero-providers {
  font-size: 13px;
  color: var(--text-dim);
}

.hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.screenshot-hero {
  width: 100%;
  max-width: 520px;
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: 0 32px 80px rgba(0,0,0,0.6);
}

/* ── SCREENSHOTS STRIP ── */
.screenshots {
  padding: 0 0 80px;
}

.screenshots-grid {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 4px 0;
}

.screenshots-grid::-webkit-scrollbar { display: none; }

.screenshot-thumb {
  height: 200px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  flex-shrink: 0;
  object-fit: cover;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  cursor: pointer;
}

.screenshot-thumb:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  border-color: var(--accent);
}

/* ── LIGHTBOX ── */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.lightbox.open {
  display: flex;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  cursor: pointer;
}

.lightbox-img {
  position: relative;
  z-index: 1;
  max-width: 90vw;
  max-height: 88vh;
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: 0 40px 100px rgba(0,0,0,0.8);
  object-fit: contain;
  animation: lb-in 0.2s ease;
}

@keyframes lb-in {
  from { opacity: 0; transform: scale(0.95); }
  to   { opacity: 1; transform: scale(1); }
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  z-index: 2;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--text);
  font-family: var(--font);
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  line-height: 1;
}

.lightbox-close {
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-prev,
.lightbox-next {
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

.lightbox-close:hover  { background: rgba(255,255,255,0.16); }
.lightbox-prev:hover   { background: rgba(255,255,255,0.16); transform: translateY(-50%) scale(1.1); }
.lightbox-next:hover   { background: rgba(255,255,255,0.16); transform: translateY(-50%) scale(1.1); }

/* ── FEATURES ── */
.features { padding: 80px 0; }

.section-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -1px;
  text-align: center;
  margin-bottom: 12px;
}

.section-subtitle {
  font-size: 17px;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 56px;
}

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

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: border-color 0.2s, background 0.2s;
}

.feature-card:hover {
  border-color: var(--accent);
  background: var(--bg-card-hover);
}

.feature-icon {
  font-size: 28px;
  margin-bottom: 14px;
}

.feature-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ── PRICING ── */
.pricing { padding: 80px 0 100px; }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 0;
  align-items: start;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  transition: border-color 0.2s;
}

.pricing-card--featured {
  border-color: var(--accent);
  background: linear-gradient(160deg, rgba(124,106,247,0.08) 0%, var(--bg-card) 60%);
  box-shadow: 0 0 40px var(--accent-glow);
}

.pricing-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 100px;
  white-space: nowrap;
}

.pricing-header { margin-bottom: 24px; }

.pricing-name {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 10px;
}

.pricing-price { margin-bottom: 6px; }

.price-amount {
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -1.5px;
}

.pricing-desc {
  font-size: 13px;
  color: var(--text-muted);
}

.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
  flex: 1;
}

.pricing-features li {
  font-size: 14px;
  color: var(--text-muted);
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.pricing-features li::before {
  content: "✓";
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ── CURRENCY SWITCHER ── */
.currency-switcher {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 36px;
  font-size: 14px;
  color: var(--text-muted);
}

.currency-btn {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-muted);
  font-size: 13px;
  font-family: var(--font);
  font-weight: 600;
  padding: 5px 14px;
  cursor: pointer;
  transition: all 0.2s;
}

.currency-btn:hover { border-color: var(--accent); color: var(--text); }

.currency-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

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

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 15px;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  font-size: 14px;
  color: var(--text-muted);
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--text); }

.footer-copy {
  font-size: 13px;
  color: var(--text-dim);
}

/* ── RTL support (Arabic) ── */
[dir="rtl"] .nav { flex-direction: row-reverse; }
[dir="rtl"] .hero-inner { direction: rtl; }
[dir="rtl"] .lang-dropdown { right: auto; left: 0; }
[dir="rtl"] .lightbox-prev { left: auto; right: 20px; }
[dir="rtl"] .lightbox-next { right: auto; left: 20px; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-image { order: -1; }
  .screenshot-hero { max-width: 100%; }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
}

@media (max-width: 600px) {
  .features-grid { grid-template-columns: 1fr; }
  .nav { display: none; }
  .hero { padding: 64px 0 48px; }
  .hero-title { letter-spacing: -1px; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
  .lightbox-img { max-width: 96vw; max-height: 80vh; }
  .lightbox-prev, .lightbox-next { width: 36px; height: 36px; font-size: 22px; }
}
