/* ============================================
   imok Website — Design System
   Colors matched from the mobile app
   ============================================ */

/* ---------- Google Font ---------- */
@import url('https://fonts.googleapis.com/css2?family=Rubik:wght@300;400;500;600;700;800;900&display=swap');

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

/* ---------- Light Theme (default) ---------- */
:root {
  /* App-matched colors */
  --bg: #eef2f6;
  --surface: #ffffff;
  --surface-elevated: #f6f8fb;
  --text: #1a2332;
  --text-secondary: #6b7b8d;
  --border: #e2e8f0;

  /* Brand — teal from the app */
  --primary: #1C8D93;
  --primary-hover: #1C8D93;
  --primary-light: rgba(42, 157, 143, 0.1);
  --primary-glow: rgba(42, 157, 143, 0.2);

  /* Alert colors from the app */
  --accent-red: #e63946;
  --success: #1C8D93;
  --warning: #f4a261;

  /* Shadows — soft like the app */
  --shadow-sm: 0 1px 4px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.08);
  --shadow-glow: 0 4px 24px rgba(42, 157, 143, 0.2);

  /* Radii — generously rounded like the app */
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-xl: 30px;
  --radius-full: 9999px;

  /* Glass */
  --glass-bg: rgba(255, 255, 255, 0.8);
  --glass-border: rgba(255, 255, 255, 0.5);
  --glass-blur: 20px;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* ---------- Dark Theme ---------- */
[data-theme="dark"] {
  --bg: #0f1923;
  --surface: #172231;
  --surface-elevated: #1e2d3e;
  --text: #e8edf2;
  --text-secondary: #8899aa;
  --border: #253545;

  --primary: #1C8D93;
  --primary-hover: #35b5a5;
  --primary-light: rgba(42, 157, 143, 0.15);
  --primary-glow: rgba(42, 157, 143, 0.25);

  --shadow-sm: 0 1px 4px rgba(0, 0, 0, 0.15);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.2);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.3);
  --shadow-glow: 0 4px 30px rgba(42, 157, 143, 0.3);

  --glass-bg: rgba(23, 34, 49, 0.85);
  --glass-border: rgba(37, 53, 69, 0.6);
}

/* System preference for auto mode */
@media (prefers-color-scheme: dark) {
  [data-theme="system"] {
    --bg: #0f1923;
    --surface: #172231;
    --surface-elevated: #1e2d3e;
    --text: #e8edf2;
    --text-secondary: #8899aa;
    --border: #253545;

    --primary: #1C8D93;
    --primary-hover: #35b5a5;
    --primary-light: rgba(42, 157, 143, 0.15);
    --primary-glow: rgba(42, 157, 143, 0.25);

    --shadow-sm: 0 1px 4px rgba(0, 0, 0, 0.15);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 4px 30px rgba(42, 157, 143, 0.3);

    --glass-bg: rgba(23, 34, 49, 0.85);
    --glass-border: rgba(37, 53, 69, 0.6);
  }
}

/* ---------- Base Styles ---------- */
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  background-color: var(--surface);
}

body {
  font-family: 'Rubik', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  transition: background-color var(--transition-normal), color var(--transition-normal);
  overflow-x: hidden;
  min-height: 100vh;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--primary-hover);
}

img {
  max-width: 100%;
  height: auto;
}

/* ---------- Container ---------- */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Header / Navbar ---------- */
.navbar {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border-bottom: 1px solid var(--glass-border);
  padding: 0 20px;
  transition: background var(--transition-normal), border-color var(--transition-normal);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  position: relative;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.5px;
}

.navbar-brand .logo-img {
  height: 32px;
  width: auto;
}

.navbar-brand span {
  color: var(--primary);
}

.navbar-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-install-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.nav-install-btn:hover {
  background: var(--primary-hover);
  transform: translateX(-50%) translateY(-2px);
  box-shadow: 0 6px 30px rgba(42, 157, 143, 0.35);
  color: #fff;
}

/* Language Dropdown */
.lang-dropdown {
  position: relative;
}

.lang-toggle {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 6px 10px;
  font-size: 0.85rem;
  font-family: inherit;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.lang-toggle:hover {
  border-color: var(--primary);
}

.lang-menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 4px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  z-index: 1001;
  min-width: 140px;
  overflow: hidden;
}

[dir="ltr"] .lang-menu {
  right: auto;
  left: 0;
}

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

.lang-menu button {
  display: block;
  width: 100%;
  padding: 10px 16px;
  border: none;
  background: none;
  color: var(--text);
  font-size: 0.9rem;
  font-family: inherit;
  cursor: pointer;
  text-align: start;
  white-space: nowrap;
  transition: background var(--transition-fast);
}

.lang-menu button:hover {
  background: var(--primary-light);
}

.lang-menu button.active {
  color: var(--primary);
  font-weight: 600;
}

/* Theme Toggle */
.theme-toggle {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 6px 10px;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  color: var(--text);
}

.theme-toggle:hover {
  border-color: var(--primary);
  transform: scale(1.05);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  border: none;
  transition: all var(--transition-fast);
  text-decoration: none;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(42, 157, 143, 0.35);
  color: #fff;
}

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
}

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

.btn-disabled {
  background: var(--surface-elevated);
  color: var(--text-secondary);
  cursor: default;
  opacity: 0.7;
}

.btn-disabled:hover {
  transform: none;
  color: var(--text-secondary);
}

/* ---------- Phone Frame ---------- */
.phone-frame {
  background: var(--surface);
  border-radius: 28px;
  border: 3px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 9 / 19.5;
}

.phone-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
}

/* ---------- Hero Section ---------- */
.hero {
  padding: 40px 20px 0px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -150px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--primary-light) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
  color: var(--text);
}

.hero h1 .highlight {
  color: var(--primary);
  white-space: nowrap;
  font-size: 1.06em;
}

.hero-logo {
  display: inline-block;
  height: 2.8rem;
  width: auto;
  vertical-align: middle;
  margin-top: 4px;
}

.hero p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
  line-height: 1.7;
}

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

/* Hero Phone Mockup */
.hero-phone {
  display: flex;
  justify-content: center;
  margin-top: 32px;
  position: relative;
  z-index: 1;
}

.hero-phone .phone-frame {
  max-width: 240px;
  width: 100%;
}

/* ---------- Section Headers ---------- */
.section-header {
  text-align: center;
  margin-bottom: 36px;
}

.section-header h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.section-header p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 550px;
  margin: 0 auto;
}

/* ---------- Features Section ---------- */
.features {
  padding: 60px 20px;
}

/* Feature Showcase — alternating text + phone */
.feature-showcase {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
}

.feature-showcase:last-of-type {
  border-bottom: none;
  margin-bottom: 32px;
}

.feature-showcase-text {
  flex: 1;
}

.feature-showcase-text .feature-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 14px;
  background: var(--primary-light);
  border-radius: var(--radius-md);
}

.feature-showcase-text h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.feature-showcase-text p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
  max-width: 450px;
}

.feature-showcase-phone {
  flex: 0 0 auto;
}

.feature-showcase-phone .phone-frame {
  width: 200px;
}

/* Reverse direction for alternating layout */
.feature-showcase.reverse {
  flex-direction: row-reverse;
}

[dir="rtl"] .feature-showcase.reverse .feature-showcase-text {
  text-align: right;
}

[dir="rtl"] .feature-showcase.reverse .feature-showcase-text p {
  margin-left: auto;
  margin-right: 0;
}

[dir="ltr"] .feature-showcase.reverse .feature-showcase-text {
  text-align: left;
}

/* ---------- New Marketing Classes ---------- */

.benefits-list li {
  font-size: 1.1rem;
  font-weight: 500;
}

.trust-indicators span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.step-badge {
  display: inline-block;
  background: var(--surface);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.core-value,
.vs-whatsapp,
.screenshots {
  padding: 80px 20px;
}

.core-value img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  max-width: 100%;
}

.vs-whatsapp .card ul li {
  margin-bottom: 12px;
}

.testimonial-card {
  position: relative;
  transition: transform var(--transition-normal);
}
.testimonial-card:hover {
  transform: translateY(-4px);
}

/* Compact Features Grid / Carousel */
.carousel-container {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  padding: 0 20px;
  overflow: hidden;
}

.features-grid {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 20px;
  scrollbar-width: none;
}

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

.feature-card {
  flex: 0 0 85%;
  scroll-snap-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

@media (min-width: 768px) {
  .carousel-container {
    width: 100%;
    position: static;
    margin: 0;
    padding: 0;
  }
  .features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    overflow-x: visible;
    padding-bottom: 0;
  }
  .feature-card {
    flex: auto;
  }
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.feature-card .feature-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 14px;
  background: var(--primary-light);
  border-radius: var(--radius-md);
}

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

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.6;
}

/* ---------- Screenshots Section ---------- */
.screenshots {
  padding: 80px 20px;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.screenshots-grid {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding-bottom: 20px;
  max-width: 100%;
  -webkit-overflow-scrolling: touch;
  flex-wrap: nowrap;
}

.screenshot-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  transition: all var(--transition-normal);
}

.screenshot-card:hover {
  transform: translateY(-6px);
}

.screenshot-card .phone-frame {
  width: 100%;
  max-width: 180px;
  box-shadow: var(--shadow-md);
}

.screenshot-label {
  background: var(--primary);
  color: #fff;
  padding: 5px 16px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
  letter-spacing: 0.3px;
}

/* ---------- Download Section ---------- */
.download {
  padding: 60px 20px;
  text-align: center;
}

.download-options {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin-top: 40px;
}

.download-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  text-align: center;
  transition: all var(--transition-normal);
  min-width: 200px;
  box-shadow: var(--shadow-sm);
}

.download-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.download-card .store-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
}

.download-card .store-icon-svg {
  font-size: unset;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
}

.download-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.download-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.download-card.available {
  border-color: var(--primary);
  cursor: pointer;
  background: var(--primary-light);
}

.download-card.available:hover {
  box-shadow: var(--shadow-glow);
  border-color: var(--primary-hover);
}

.download-card.available h3 {
  color: var(--primary);
}

.download-card .badge-soon {
  display: inline-block;
  background: var(--surface-elevated);
  color: var(--text-secondary);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  margin-top: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ---------- Floating Play Store Button (FAB) ---------- */
.fab-playstore {
  position: fixed;
  bottom: 24px;
  inset-inline-end: 24px;   /* RTL-aware: right in LTR, left in RTL */
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.95rem;
  font-family: inherit;
  text-decoration: none;
  box-shadow: var(--shadow-glow), 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.fab-playstore:hover {
  background: var(--primary-hover);
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(42, 157, 143, 0.45), 0 4px 12px rgba(0, 0, 0, 0.2);
  color: #fff;
}

.fab-playstore:active {
  transform: translateY(-1px);
}

.fab-playstore svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  flex-shrink: 0;
}

/* ---------- Footer ---------- */
.footer {
  padding: 40px 20px;
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  transition: color var(--transition-fast);
}

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

.footer-copy {
  color: var(--text-secondary);
  font-size: 0.8rem;
  text-align: center;
}

/* ---------- Legal Pages (Privacy, Terms) ---------- */
.legal-page {
  padding: 100px 20px 60px;
  min-height: 100vh;
}

.legal-page .container {
  max-width: 750px;
}

.legal-page h1 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.legal-page .legal-updated {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 40px;
}

.legal-page h2 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-top: 36px;
  margin-bottom: 12px;
  color: var(--primary);
}

.legal-page p,
.legal-page li {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 12px;
}

.legal-page ul {
  padding-inline-start: 24px;
  margin-bottom: 16px;
}

.legal-page li {
  margin-bottom: 8px;
}

.legal-page strong {
  color: var(--text);
}

/* ---------- 404 Error Page ---------- */
.error-page {
  padding: 120px 20px 60px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.error-page::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--primary-light) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.error-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
}

.error-code {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-bottom: 24px;
}

.error-code .digit {
  font-size: 7rem;
  font-weight: 900;
  color: var(--text);
  line-height: 1;
  letter-spacing: -4px;
  opacity: 0.15;
}

.error-code .digit-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  animation: float404 3s ease-in-out infinite;
}

.error-logo-img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  filter: drop-shadow(0 4px 20px rgba(42, 157, 143, 0.35));
}

.error-content h1 {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.error-content p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 28px;
}

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

@keyframes float404 {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@media (min-width: 600px) {
  .error-code .digit {
    font-size: 10rem;
  }
  .error-logo-img {
    width: 110px;
    height: 110px;
  }
  .error-content h1 {
    font-size: 2.2rem;
  }
}

@media (max-width: 480px) {
  .error-code .digit {
    font-size: 5rem;
    letter-spacing: -2px;
  }
  .error-logo-img {
    width: 56px;
    height: 56px;
  }
  .error-content h1 {
    font-size: 1.4rem;
  }
  .error-content p {
    font-size: 0.95rem;
  }
}

/* ---------- Animations ---------- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered animation delays */
.animate-delay-1 {
  transition-delay: 0.1s;
}

.animate-delay-2 {
  transition-delay: 0.2s;
}

.animate-delay-3 {
  transition-delay: 0.3s;
}

.animate-delay-4 {
  transition-delay: 0.4s;
}

.animate-delay-5 {
  transition-delay: 0.5s;
}

.animate-delay-6 {
  transition-delay: 0.6s;
}

.animate-delay-7 {
  transition-delay: 0.7s;
}

.animate-delay-8 {
  transition-delay: 0.8s;
}

/* ---------- RTL Support ---------- */
[dir="rtl"] {
  text-align: right;
}

[dir="rtl"] .hero,
[dir="rtl"] .section-header,
[dir="rtl"] .download {
  text-align: center;
}

[dir="ltr"] .hero,
[dir="ltr"] .section-header,
[dir="ltr"] .download {
  text-align: center;
}

[dir="rtl"] .footer .container {
  text-align: center;
}

/* ---------- Responsive — Tablet + Desktop ---------- */
@media (min-width: 600px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .screenshots-grid {
    justify-content: center;
  }

  .screenshot-card .phone-frame {
    max-width: 160px;
  }

  .hero h1 {
    font-size: 2.8rem;
  }

  .hero-logo {
    height: 3.8rem;
  }
}

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

  .hero h1 {
    font-size: 3rem;
  }

  .hero-logo {
    height: 4.2rem;
  }

  .hero p {
    font-size: 1.15rem;
  }

  .navbar .container {
    height: 72px;
  }

  .hero {
    padding: 30px 12px 0px;
  }

  .features,
  .download {
    padding: 20px 20px;
  }

  .feature-showcase {
    gap: 48px;
    padding: 36px 0;
  }

  .feature-showcase-phone .phone-frame {
    width: 220px;
  }

  .feature-showcase-text h3 {
    font-size: 1.4rem;
  }
}

@media (min-width: 1200px) {
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
    padding-top: 36px;
  }
}

/* ---------- Mobile — Stacked Layouts ---------- */
@media (max-width: 599px) {
  .feature-showcase {
    flex-direction: column !important;
    gap: 24px;
    padding: 32px 0;
  }

  [dir="rtl"] .feature-showcase {
    text-align: right;
  }

  [dir="ltr"] .feature-showcase {
    text-align: left;
  }

  .feature-showcase-text {
    display: flex;
    flex-direction: column;
  }

  [dir="rtl"] .feature-showcase-text {
    align-items: flex-start;
  }

  [dir="ltr"] .feature-showcase-text {
    align-items: flex-start;
  }

  .feature-showcase-text p {
    max-width: 100%;
  }

  .feature-showcase-phone .phone-frame {
    width: 180px;
  }

  .hero-phone .phone-frame {
    max-width: 200px;
  }

  .screenshots-grid {
    gap: 14px;
  }

  .screenshot-card .phone-frame {
    max-width: 140px;
  }
}

@media (max-width: 480px) {
  .navbar {
    padding: 0 8px;
  }

  .container {
    padding: 0 12px;
  }

  .core-value,
  .vs-whatsapp,
  .screenshots {
    padding: 60px 12px;
  }

  .navbar .container {
    height: 56px;
    padding: 0 4px;
  }

  .navbar-controls {
    gap: 6px;
  }

  .nav-install-btn {
    padding: 5px 10px;
    font-size: 0.75rem;
  }

  .navbar-brand {
    font-size: 1.1rem;
  }

  .lang-toggle {
    font-size: 0.78rem;
    padding: 5px 8px;
  }

  .theme-toggle {
    min-width: 34px;
    height: 34px;
    font-size: 1rem;
    padding: 5px 8px;
  }

  .hero {
    padding: 20px 10px 20px;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .hero-logo {
    height: 2.2rem;
  }

  .hero p {
    font-size: 0.95rem;
  }

  .btn {
    padding: 12px 22px;
    font-size: 0.92rem;
  }

  .download-card {
    min-width: 160px;
    padding: 20px 16px;
  }
}

/* ---------- Focus Visible ---------- */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* ---------- Selection ---------- */
::selection {
  background: rgba(42, 157, 143, 0.2);
  color: var(--text);
}

/* ---------- Scrollbar (Webkit) ---------- */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-secondary);
}

/* ---------- Fullscreen Image Lightbox ---------- */
.image-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  padding-top: 60px;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(5px);
}

.image-modal .modal-content {
  margin: auto;
  display: block;
  max-width: 90%;
  max-height: 85vh;
  border-radius: var(--radius-lg);
  object-fit: contain;
  animation: zoomIn 0.25s cubic-bezier(0.25, 1, 0.5, 1);
}

.image-modal .close-modal {
  position: absolute;
  top: 20px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  transition: 0.2s;
  cursor: pointer;
  z-index: 10000;
}

.image-modal .close-modal:hover,
.image-modal .close-modal:focus {
  color: var(--primary-light);
}

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