/* ============================================
   ApexLab Pro — Marketing Website
   Shared stylesheet (RTL + LTR support)
   ============================================ */

:root {
  --primary: #1A3F6E;
  --primary-dark: #0F2641;
  --primary-light: #2874A6;
  --accent: #2ECC71;
  --accent-dark: #27AE60;
  --whatsapp: #25D366;
  --bg: #F8FAFC;
  --bg-alt: #EEF2F7;
  --card: #FFFFFF;
  --text: #1A2540;
  --text-muted: #64748B;
  --border: #E2E8F0;
  --shadow: 0 4px 24px rgba(15, 38, 65, 0.08);
  --shadow-lg: 0 12px 40px rgba(15, 38, 65, 0.12);
  --radius: 14px;
  --radius-sm: 8px;
  color-scheme: light;
}

/* Dark mode variables */
[data-theme="dark"] {
  --primary: #5B9FE0;
  --primary-dark: #1A3060;
  --primary-light: #6BAEE8;
  --bg: #0F1923;
  --bg-alt: #141F2E;
  --card: #1A2840;
  --text: #E2EAF4;
  --text-muted: #8B9DB5;
  --border: #253448;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.4);
  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) {
    --primary: #5B9FE0;
    --primary-dark: #1A3060;
    --primary-light: #6BAEE8;
    --bg: #0F1923;
    --bg-alt: #141F2E;
    --card: #1A2840;
    --text: #E2EAF4;
    --text-muted: #8B9DB5;
    --border: #253448;
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.4);
    color-scheme: dark;
  }
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', Tahoma, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

[dir="rtl"] body { font-family: 'Segoe UI', 'Tahoma', Arial, sans-serif; }

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

/* ============================================
   THEME TOGGLE BUTTON
   ============================================ */
.theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
  padding: 0;
}

.theme-toggle:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.theme-toggle svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}

/* ============================================
   HEADER
   ============================================ */
.header {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
  padding: 14px 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--primary);
}

.logo-wrap img {
  width: 44px;
  height: 44px;
}

.logo-text {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.3px;
}

.logo-tag {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: 1px;
}

.lang-switch {
  display: flex;
  gap: 4px;
  background: var(--bg-alt);
  border-radius: 999px;
  padding: 4px;
}

.lang-switch a {
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  transition: all 0.2s;
}

.lang-switch a.active,
.lang-switch a:hover {
  background: var(--primary);
  color: white;
}

.header-cta {
  background: var(--whatsapp);
  color: white;
  padding: 10px 20px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.header-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.35);
}

/* ============================================
   HERO
   ============================================ */
.hero {
  background:
    radial-gradient(circle at 10% 20%, rgba(46, 204, 113, 0.08), transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(26, 63, 110, 0.08), transparent 40%),
    linear-gradient(135deg, var(--bg), var(--bg-alt));
  padding: 80px 0 100px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-badge {
  display: inline-block;
  background: rgba(46, 204, 113, 0.12);
  color: var(--accent-dark);
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 800;
  letter-spacing: -1px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 18px;
  line-height: 1.15;
}

.hero p {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--text-muted);
  max-width: 720px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary {
  background: var(--whatsapp);
  color: white;
  padding: 16px 32px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
}

.btn-secondary {
  background: var(--card);
  color: var(--primary);
  border: 2px solid var(--primary);
  padding: 14px 30px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.2s;
}

.btn-secondary:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
}

.hero-stats {
  display: flex;
  gap: 40px;
  justify-content: center;
  margin-top: 60px;
  flex-wrap: wrap;
}

.stat {
  text-align: center;
}

.stat-num {
  font-size: 32px;
  font-weight: 800;
  color: var(--primary);
  display: block;
}

.stat-lbl {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* ============================================
   SECTIONS
   ============================================ */
.section {
  padding: 72px 0;
}

.section-alt {
  background: var(--card);
}

.section-head {
  text-align: center;
  margin-bottom: 44px;
}

.section-head h2 {
  font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 10px;
  letter-spacing: -0.5px;
}

.section-head p {
  font-size: 15px;
  color: var(--text-muted);
  max-width: 580px;
  margin: 0 auto;
}

/* ============================================
   FEATURES GRID
   ============================================ */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

@media (max-width: 900px) {
  .features { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .features { grid-template-columns: 1fr; }
}

.feature {
  background: var(--card);
  padding: 22px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  display: flex;
  flex-direction: column;
}

.feature:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--primary-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  color: white;
  box-shadow: 0 4px 12px rgba(46, 204, 113, 0.22);
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.feature-icon::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.18), transparent 60%);
  pointer-events: none;
}

.feature-icon svg {
  width: 22px;
  height: 22px;
  stroke: white;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  position: relative;
  z-index: 1;
}

.feature:hover .feature-icon {
  transform: scale(1.06) rotate(-3deg);
  transition: transform 0.3s;
}

.feature h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 6px;
}

.feature p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ============================================
   PRICING
   ============================================ */
.pricing {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 820px;
  margin: 0 auto;
}

@media (max-width: 640px) {
  .pricing { grid-template-columns: 1fr; max-width: 440px; }
}

.plan {
  background: var(--card);
  padding: 28px 24px;
  border-radius: var(--radius);
  border: 2px solid var(--border);
  position: relative;
  transition: transform 0.2s, box-shadow 0.2s;
}

.plan:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.plan-popular {
  border-color: var(--accent);
  background: linear-gradient(180deg, var(--card), color-mix(in srgb, var(--accent) 8%, var(--card)));
}

.plan-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: white;
  padding: 4px 16px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.plan h3 {
  font-size: 20px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 4px;
}

.plan-tag {
  color: var(--text-muted);
  font-size: 13px;
  margin-bottom: 14px;
}

.plan-price {
  font-size: 48px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 2px;
}

.plan-price-tag {
  color: var(--text-muted);
  font-size: 12px;
  margin-bottom: 18px;
  font-weight: 600;
}

.plan-features {
  list-style: none;
  margin-bottom: 20px;
}

.plan-features li {
  padding: 7px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13.5px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.plan-features li:last-child {
  border-bottom: none;
}

.plan-features li::before {
  content: "✓";
  color: var(--accent);
  font-weight: 800;
  font-size: 14px;
  flex-shrink: 0;
}

.plan .btn-primary {
  width: 100%;
  justify-content: center;
  padding: 13px 24px;
  font-size: 15px;
}

/* ============================================
   WHY US
   ============================================ */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.why-item {
  text-align: center;
  padding: 24px 16px;
}

.why-num {
  width: 60px;
  height: 60px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, var(--accent), var(--primary-light));
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  font-weight: 800;
}

.why-item h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 10px;
}

.why-item p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ============================================
   SCREENSHOTS SLIDESHOW
   ============================================ */
.slideshow {
  max-width: 980px;
  margin: 0 auto;
  background: var(--card);
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(15, 38, 65, 0.12);
  border: 1px solid var(--border);
  overflow: hidden;
  position: relative;
}

.slides-track {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #EEF2F7 0%, #DDE3EE 100%);
  overflow: hidden;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.slide.active {
  opacity: 1;
  visibility: visible;
}

.slide img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 8px;
  box-shadow: 0 8px 30px rgba(15, 38, 65, 0.18);
  cursor: zoom-in;
  background: white;
}

.slide-caption {
  padding: 14px 24px;
  background: var(--card);
  border-top: 1px solid var(--border);
  text-align: center;
}

.slide-caption h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 3px;
}

.slide-caption p {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.5;
}

.slide-caption-item {
  display: none;
}

.slide-caption-item.active {
  display: block;
}

/* Arrows */
.slide-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--primary);
  font-size: 22px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(15, 38, 65, 0.15);
  transition: all 0.2s;
  z-index: 10;
}

.slide-nav:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-50%) scale(1.08);
}

.slide-nav.prev { left: 16px; }
.slide-nav.next { right: 16px; }

[dir="rtl"] .slide-nav.prev { left: auto; right: 16px; }
[dir="rtl"] .slide-nav.next { right: auto; left: 16px; }

/* Dots indicator */
.slide-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 16px 0 24px;
  background: var(--card);
}

.slide-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  padding: 0;
}

.slide-dot.active {
  background: var(--accent);
  width: 32px;
  border-radius: 5px;
}

.slide-dot:hover {
  background: var(--primary-light);
}

/* Counter */
.slide-counter {
  position: absolute;
  bottom: 16px;
  inset-inline-end: 16px;
  background: rgba(15, 38, 65, 0.7);
  color: white;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  backdrop-filter: blur(6px);
  z-index: 5;
}

/* Image lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(15, 38, 65, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 40px;
  cursor: zoom-out;
}

.lightbox.active { display: flex; }

.lightbox img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

/* ============================================
   FAQ
   ============================================ */
.faq {
  max-width: 780px;
  margin: 0 auto;
}

.faq-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  overflow: hidden;
}

.faq-item summary {
  padding: 13px 18px;
  font-weight: 700;
  font-size: 14px;
  color: var(--primary);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  font-size: 18px;
  color: var(--accent);
  font-weight: 800;
  transition: transform 0.2s;
  margin-inline-start: 12px;
  flex-shrink: 0;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item p {
  padding: 0 18px 13px;
  color: var(--text-muted);
  font-size: 13.5px;
  line-height: 1.6;
}

/* ============================================
   CONTACT CTA
   ============================================ */
.contact-cta {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  padding: 56px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.contact-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(46, 204, 113, 0.15), transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(40, 116, 166, 0.2), transparent 40%);
}

.contact-cta > .container { position: relative; }

.contact-cta h2 {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 800;
  margin-bottom: 10px;
  letter-spacing: -0.5px;
}

.contact-cta p {
  font-size: 15px;
  opacity: 0.82;
  max-width: 560px;
  margin: 0 auto 24px;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  max-width: 680px;
  margin: 0 auto 28px;
}

@media (max-width: 600px) {
  .contact-grid { grid-template-columns: 1fr; max-width: 320px; }
}

.contact-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 16px 14px;
  border-radius: var(--radius);
  transition: transform 0.2s, background 0.2s;
  text-decoration: none;
}

.contact-card:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.13);
}

.contact-card-icon {
  margin-bottom: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  margin-left: auto;
  margin-right: auto;
}

.contact-card-icon svg {
  width: 20px;
  height: 20px;
  stroke: rgba(255, 255, 255, 0.95);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-card:hover .contact-card-icon {
  background: rgba(255, 255, 255, 0.2);
}

.contact-card-label {
  font-size: 10.5px;
  opacity: 0.65;
  font-weight: 600;
  letter-spacing: 0.8px;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.contact-card-value {
  font-size: 13px;
  font-weight: 700;
  color: white;
  text-decoration: none;
  display: block;
  word-break: break-all;
}

.contact-card-value:hover {
  color: var(--accent);
}

.contact-cta .btn-primary {
  padding: 13px 30px;
  font-size: 15px;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--primary-dark);
  color: white;
  padding: 40px 0 24px;
  text-align: center;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.footer-logo img { width: 36px; height: 36px; }
.footer-logo span { font-size: 16px; font-weight: 800; }

.footer p {
  font-size: 13px;
  opacity: 0.6;
  margin-bottom: 6px;
}

.footer-dev {
  font-size: 13px;
  opacity: 0.8;
  margin-top: 12px;
}

.footer-dev a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 700;
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin: 18px 0 6px;
}

.footer-social a {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 999px;
  padding: 8px 18px;
  color: white;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.2s;
}

.footer-social a:hover {
  background: rgba(255,255,255,0.18);
  transform: translateY(-2px);
}

.footer-social svg {
  width: 18px;
  height: 18px;
  fill: white;
  flex-shrink: 0;
}

/* ============================================
   RESPONSIVE
   ============================================ */

/* Small laptop ≤ 1100px */
@media (max-width: 1100px) {
  .section { padding: 60px 0; }
  .section-head { margin-bottom: 38px; }
  .container { padding: 0 20px; }
}

/* Tablet ≤ 768px */
@media (max-width: 768px) {
  .section { padding: 52px 0; }
  .section-head { margin-bottom: 32px; }
  .hero { padding: 56px 0 72px; }
  .hero-stats { gap: 24px; }
  .header-cta span { display: none; }
  .lang-switch a { padding: 6px 10px; font-size: 12px; }
  .logo-tag { display: none; }
  .contact-cta { padding: 44px 0; }
  .slideshow { border-radius: 14px; }
}

/* Hide header CTA on small screens */
@media (max-width: 540px) {
  .header-cta { display: none; }
  .lang-switch a { padding: 5px 9px; font-size: 11.5px; }
}

/* Mobile ≤ 480px */
@media (max-width: 480px) {
  .container { padding: 0 14px; }
  .header-inner { gap: 10px; }
  .logo-wrap img { width: 36px; height: 36px; }
  .logo-text { font-size: 15px; }

  .hero { padding: 44px 0 58px; }
  .hero-actions { flex-direction: column; align-items: center; }
  .hero-actions .btn-primary,
  .hero-actions .btn-secondary { width: 100%; max-width: 300px; justify-content: center; }
  .hero-stats { gap: 16px; }
  .stat-num { font-size: 24px; }
  .stat-lbl { font-size: 11px; }

  .section { padding: 44px 0; }
  .section-head { margin-bottom: 28px; }

  .feature { padding: 18px 16px; }
  .feature-icon { width: 38px; height: 38px; }
  .feature-icon svg { width: 18px; height: 18px; }
  .feature h3 { font-size: 14px; }
  .feature p { font-size: 12.5px; }

  .plan { padding: 22px 18px; }
  .plan-price { font-size: 32px; }
  .plan h3 { font-size: 18px; }

  .faq-item summary { padding: 11px 14px; font-size: 13px; }
  .faq-item p { padding: 0 14px 11px; font-size: 12.5px; }

  .contact-cta { padding: 36px 0; }
  .contact-cta p { font-size: 13.5px; }

  .slide { padding: 10px; }
  .slide-caption { padding: 10px 14px; }
  .slide-caption h3 { font-size: 12px; }
  .slide-caption p { font-size: 11px; }

  .why-item { padding: 16px 10px; }
}

/* Slideshow arrows ≤ 640px */
@media (max-width: 640px) {
  .slide-nav { width: 36px; height: 36px; font-size: 17px; }
  .slide-nav.prev { left: 8px; }
  .slide-nav.next { right: 8px; }
  [dir="rtl"] .slide-nav.prev { right: 8px; }
  [dir="rtl"] .slide-nav.next { left: 8px; }
}

/* Dark mode element overrides (hardcoded values that can't use variables) */
[data-theme="dark"] .header,
html:not([data-theme="light"]):is([data-theme="dark"]) .header {
  background: rgba(15, 25, 38, 0.96);
}

@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .header {
    background: rgba(15, 25, 38, 0.96);
  }
  html:not([data-theme="light"]) .btn-secondary:hover {
    background: var(--primary);
  }
}

[data-theme="dark"] .btn-secondary:hover {
  background: var(--primary);
  color: white;
}

/* Small phones ≤ 360px */
@media (max-width: 360px) {
  .header-cta { display: none; }
  .lang-switch a { padding: 5px 7px; font-size: 10.5px; }
  .logo-wrap img { width: 32px; height: 32px; }
  .logo-text { font-size: 13px; }

  .plan-price { font-size: 28px; }
  .hero-stats { gap: 10px; }
  .stat-num { font-size: 20px; }

  .slide-nav { width: 32px; height: 32px; font-size: 15px; }
  .slide-counter { font-size: 11px; padding: 4px 9px; }

  .feature { padding: 16px 14px; }
  .feature-icon { width: 34px; height: 34px; margin-bottom: 10px; }
  .feature-icon svg { width: 16px; height: 16px; }
}
