/* ===== Reset & Base ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --orange: #E8956A;
  --orange-dark: #D4784E;
  --coral: #FF8A65;
  --mint: #B8D4CE;
  --teal: #7FB5A8;
  --grad-start: #D4E8E3;
  --grad-mid: #BDD9D1;
  --grad-end: #A8C9C0;
  --success: #81C784;
  --bg-light: #E8F0ED;
  --surface: #FFFFFF;
  --text-primary: #2D3436;
  --text-secondary: #636E72;
  --text-light: #B2BEC3;
  --dark-bg: #1A1D21;
  --dark-surface: #252830;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 4px 24px rgba(0,0,0,0.06);
  --shadow-lg: 0 12px 48px rgba(0,0,0,0.1);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text-primary);
  background: var(--surface);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* RTL support */
html[dir="rtl"] { direction: rtl; text-align: right; }
html[dir="rtl"] .nav-links { flex-direction: row-reverse; }
html[dir="rtl"] .hero-content { flex-direction: row-reverse; }
html[dir="rtl"] .store-btn svg { margin-right: 0; margin-left: 12px; }
html[dir="rtl"] .step-connector { transform: scaleX(-1); }
html[dir="rtl"] .footer-brand { flex-direction: row-reverse; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

a { text-decoration: none; color: inherit; }

/* ===== Navbar ===== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0,0,0,0.05);
  transition: var(--transition);
}
.navbar.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.08); }

.nav-content {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px; gap: 12px;
}

.nav-logo { display: flex; align-items: center; flex-shrink: 0; text-decoration: none; gap: 10px; }
.logo-img {
  height: 42px; width: 42px;
  object-fit: contain;
  border-radius: 10px;
}
.logo-text {
  font-size: 1.25rem; font-weight: 700; color: var(--text-primary);
  letter-spacing: -0.5px;
}

.nav-links {
  display: flex; align-items: center; gap: 32px;
}
.nav-links a {
  font-size: 0.9rem; font-weight: 500; color: var(--text-secondary);
  transition: var(--transition); position: relative;
}
.nav-links a:hover { color: var(--orange); }
.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0; right: 0;
  height: 2px; background: var(--orange); transform: scaleX(0);
  transition: var(--transition);
}
.nav-links a:hover::after { transform: scaleX(1); }

.lang-switcher { display: flex !important; gap: 4px; align-items: center; flex-shrink: 0; z-index: 100; }
html[dir="rtl"] .lang-switcher { direction: ltr; }
.lang-btn {
  padding: 5px 11px; border: 1.5px solid var(--text-light); border-radius: 6px;
  background: rgba(255,255,255,0.7); color: var(--text-secondary); font-size: 0.75rem;
  font-weight: 600; cursor: pointer; transition: var(--transition);
  font-family: 'Poppins', sans-serif; white-space: nowrap;
}
.lang-btn:hover { border-color: var(--orange); color: var(--orange); }
.lang-btn.active { background: var(--orange); border-color: var(--orange); color: #fff; }

.mobile-menu-btn {
  display: none; flex-direction: column; gap: 5px; padding: 8px;
  background: none; border: none; cursor: pointer;
}
.mobile-menu-btn span {
  width: 24px; height: 2px; background: var(--text-primary);
  transition: var(--transition); border-radius: 2px;
}
.mobile-menu-btn.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.mobile-menu-btn.active span:nth-child(2) { opacity: 0; }
.mobile-menu-btn.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ===== Hero ===== */
.hero {
  position: relative; min-height: 100vh; padding: 120px 0 80px;
  background: linear-gradient(135deg, var(--grad-start) 0%, var(--grad-mid) 50%, var(--grad-end) 100%);
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-shape {
  position: absolute; border-radius: 50%; opacity: 0.15;
  animation: float 20s ease-in-out infinite;
}
.hero-shape-1 {
  width: 500px; height: 500px; top: -10%; right: -5%;
  background: var(--orange);
}
.hero-shape-2 {
  width: 300px; height: 300px; bottom: 10%; left: -5%;
  background: var(--teal); animation-delay: -7s;
}
.hero-shape-3 {
  width: 200px; height: 200px; top: 40%; left: 30%;
  background: var(--mint); animation-delay: -14s;
}
@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -30px) scale(1.05); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}

.hero-content {
  display: flex; align-items: center; gap: 80px;
  position: relative; z-index: 1;
}
.hero-text { flex: 1; }

.hero-text h1 {
  font-size: 3.8rem; font-weight: 700; line-height: 1.1;
  color: var(--text-primary); margin-bottom: 20px;
}
.hero-subtitle {
  font-size: 1.15rem; color: var(--text-secondary); max-width: 480px;
  margin-bottom: 32px; line-height: 1.7;
}

.hero-cta { display: flex; gap: 16px; margin-bottom: 32px; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 32px; border-radius: var(--radius-sm); font-family: 'Poppins', sans-serif;
  font-size: 1rem; font-weight: 600; cursor: pointer; transition: var(--transition);
  border: 2px solid transparent;
}
.btn-primary {
  background: var(--orange); color: #fff; border-color: var(--orange);
}
.btn-primary:hover {
  background: var(--orange-dark); border-color: var(--orange-dark);
  transform: translateY(-2px); box-shadow: 0 8px 24px rgba(232,149,106,0.35);
}
.btn-outline {
  background: rgba(255,255,255,0.6); color: var(--text-primary);
  border-color: rgba(0,0,0,0.12);
}
.btn-outline:hover {
  background: #fff; border-color: var(--orange); color: var(--orange);
  transform: translateY(-2px);
}

.hero-badges { display: flex; gap: 12px; flex-wrap: wrap; }
.badge {
  padding: 6px 16px; border-radius: 20px; font-size: 0.8rem; font-weight: 500;
  background: rgba(255,255,255,0.7); color: var(--text-secondary);
  backdrop-filter: blur(8px);
}

/* Phone Mockup */
.hero-visual { flex: 0 0 320px; }
.phone-mockup { perspective: 1000px; }
.phone-frame {
  width: 280px; height: 480px; margin: 0 auto;
  background: #1a1a2e; border-radius: 36px;
  padding: 10px; position: relative;
  box-shadow: 0 30px 80px rgba(0,0,0,0.25), inset 0 0 0 2px rgba(255,255,255,0.1);
  animation: phoneFloat 6s ease-in-out infinite;
}
@keyframes phoneFloat {
  0%, 100% { transform: translateY(0) rotateY(-5deg); }
  50% { transform: translateY(-12px) rotateY(0deg); }
}
.phone-notch {
  width: 120px; height: 28px; background: #1a1a2e;
  border-radius: 0 0 16px 16px; margin: 0 auto;
  position: relative; z-index: 2;
}
.phone-screen {
  background: linear-gradient(180deg, #E8F0ED 0%, #f5f8f7 100%);
  border-radius: 26px; height: 100%;
  overflow: hidden; position: relative;
}

/* Screenshot inside phone */
.screenshot-img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center bottom;
  border-radius: 28px;
  display: block;
}

/* ===== Screenshots Carousel ===== */
.screenshots {
  padding: 100px 0 80px;
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg-light) 100%);
  overflow: hidden;
}
.screenshots-track-wrapper {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 60px;
}
.screenshots-track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  padding: 20px 20px 40px;
  -ms-overflow-style: none;
  scrollbar-width: none;
  justify-content: flex-start;
}
.screenshots-track::-webkit-scrollbar { display: none; }

.screenshot-phone {
  flex-shrink: 0;
  scroll-snap-align: center;
  text-align: center;
  transition: transform 0.4s ease, opacity 0.4s ease;
}
.screenshot-phone:hover {
  transform: translateY(-8px);
}

.screenshot-frame {
  width: 180px;
  height: 380px;
  border-radius: 28px;
  overflow: hidden;
  background: #1a1a2e;
  padding: 6px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.15), inset 0 0 0 2px rgba(255,255,255,0.08);
  position: relative;
}
.screenshot-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  border-radius: 22px;
  display: block;
}

.screenshot-label {
  margin-top: 16px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.scroll-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-60%);
  z-index: 10;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.9);
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
  font-size: 1.6rem;
  color: var(--text-primary);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
}
.scroll-btn:hover {
  background: var(--orange);
  color: #fff;
  box-shadow: 0 6px 24px rgba(232,149,106,0.35);
}
.scroll-btn-left { left: 16px; }
.scroll-btn-right { right: 16px; }

/* ===== Sections Common ===== */
.section-header { text-align: center; max-width: 600px; margin: 0 auto 56px; }
.section-header h2 {
  font-size: 2.4rem; font-weight: 700; margin-bottom: 12px;
  color: var(--text-primary);
}
.section-header p { font-size: 1.05rem; color: var(--text-secondary); }

/* ===== Features ===== */
.features { padding: 100px 0; background: var(--surface); }
.features-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
}
.feature-card {
  background: var(--bg-light); border-radius: var(--radius); padding: 36px 28px;
  transition: var(--transition); position: relative; overflow: hidden;
}
.feature-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--orange), var(--coral));
  transform: scaleX(0); transition: var(--transition);
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); background: #fff; }
.feature-card:hover::before { transform: scaleX(1); }

.feature-icon { font-size: 2.2rem; margin-bottom: 16px; }
.feature-card h3 { font-size: 1.15rem; font-weight: 600; margin-bottom: 8px; }
.feature-card p { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.65; }

/* ===== How It Works ===== */
.how-it-works {
  padding: 100px 0;
  background: linear-gradient(135deg, var(--dark-bg) 0%, var(--dark-surface) 100%);
  color: #fff;
}
.how-it-works .section-header h2 { color: #fff; }
.how-it-works .section-header p { color: rgba(255,255,255,0.6); }

.steps { display: flex; align-items: flex-start; justify-content: center; gap: 0; }
.step {
  flex: 1; max-width: 280px; text-align: center; padding: 0 20px;
}
.step-number {
  width: 56px; height: 56px; border-radius: 50%; margin: 0 auto 20px;
  background: linear-gradient(135deg, var(--orange), var(--coral));
  color: #fff; font-size: 1.4rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.step h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: 8px; }
.step p { font-size: 0.88rem; color: rgba(255,255,255,0.6); line-height: 1.65; }

.step-connector {
  width: 60px; height: 2px; margin-top: 28px; flex-shrink: 0;
  background: linear-gradient(90deg, var(--orange), transparent);
  opacity: 0.4;
}

/* ===== Highlights ===== */
.highlights { padding: 80px 0; background: var(--bg-light); }
.highlights-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px;
  text-align: center;
}
.highlight-number {
  font-size: 2.8rem; font-weight: 700; color: var(--orange);
  margin-bottom: 4px;
}
.highlight-label { font-size: 0.9rem; color: var(--text-secondary); font-weight: 500; }

/* ===== Download ===== */
.download {
  padding: 100px 0;
  background: linear-gradient(135deg, var(--grad-start) 0%, var(--grad-end) 100%);
}
.download-content { text-align: center; }

.store-buttons {
  display: flex; justify-content: center; gap: 20px; flex-wrap: wrap;
  margin-top: 8px;
}
.store-btn {
  display: flex; align-items: center; gap: 12px;
  background: var(--text-primary); color: #fff; padding: 14px 28px;
  border-radius: var(--radius-sm); transition: var(--transition);
  font-family: 'Poppins', sans-serif; text-align: left;
}
html[dir="rtl"] .store-btn { text-align: right; }
.store-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}
.store-icon { width: 28px; height: 28px; flex-shrink: 0; }
.store-label { display: block; font-size: 0.7rem; opacity: 0.7; font-weight: 400; }
.store-name { display: block; font-size: 1.05rem; font-weight: 600; }

/* ===== Footer ===== */
.footer {
  background: var(--dark-bg); color: rgba(255,255,255,0.5);
  padding: 40px 0;
}
.footer-content {
  display: flex; flex-direction: column; align-items: center;
  gap: 16px; text-align: center;
}
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-logo { width: 32px; height: 32px; border-radius: 8px; }
.footer-name { color: #fff; font-size: 1.1rem; font-weight: 600; }
.footer-links { display: flex; gap: 24px; }
.footer-links a {
  color: rgba(255,255,255,0.5); font-size: 0.85rem;
  transition: var(--transition);
}
.footer-links a:hover { color: var(--orange); }
.footer-copy { font-size: 0.8rem; }

/* ===== Animations ===== */
.fade-in {
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .hero-text h1 { font-size: 3rem; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-content {
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: nowrap;
  }
  .nav-logo { order: 0; flex-shrink: 0; }
  .logo-img { height: 36px; width: 36px; }
  .logo-text { display: none; }
  .lang-switcher {
    display: flex !important; gap: 4px; order: 1;
    justify-content: center; flex: 1;
  }
  .lang-btn {
    padding: 6px 10px; font-size: 0.7rem;
    border: 1.5px solid rgba(0,0,0,0.15);
    background: rgba(255,255,255,0.8);
    min-width: 32px; text-align: center;
  }
  .lang-btn.active {
    background: var(--orange); border-color: var(--orange); color: #fff;
  }
  .mobile-menu-btn { display: flex; order: 2; }

  .nav-links {
    display: none;
    position: fixed; top: 72px; left: 0; right: 0; z-index: 999;
    background: rgba(255,255,255,0.98); backdrop-filter: blur(20px);
    flex-direction: column; gap: 0; padding: 16px 0;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px 24px; width: 100%; font-size: 1rem; }
  html[dir="rtl"] .nav-links { flex-direction: column; }

  .hero { padding: 100px 0 60px; min-height: auto; }
  .hero-content { flex-direction: column; gap: 48px; text-align: center; }
  html[dir="rtl"] .hero-content { flex-direction: column; }
  .hero-text h1 { font-size: 2.6rem; }
  .hero-subtitle { margin: 0 auto 28px; }
  .hero-cta { justify-content: center; }
  .hero-badges { justify-content: center; }
  .hero-visual { flex: none; }
  .phone-frame { width: 240px; height: 420px; }

  .section-header h2 { font-size: 1.9rem; }
  .features-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }

  .steps { flex-direction: column; align-items: center; gap: 16px; }
  .step-connector { width: 2px; height: 40px; background: linear-gradient(180deg, var(--orange), transparent); }

  .highlights-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .highlight-number { font-size: 2.2rem; }

  .screenshot-frame { width: 160px; height: 340px; border-radius: 24px; }
  .screenshot-frame img { border-radius: 18px; }
  .screenshots-track-wrapper { max-width: 100%; padding: 0 50px; }
  .screenshots-track { gap: 16px; }
  .scroll-btn { width: 36px; height: 36px; font-size: 1.2rem; }
}

@media (max-width: 480px) {
  .hero-text h1 { font-size: 2.1rem; }
  .btn { padding: 12px 24px; font-size: 0.9rem; }
  .phone-frame { width: 210px; height: 370px; }
  .store-buttons { flex-direction: column; align-items: center; }
  .store-btn { width: 100%; max-width: 280px; justify-content: center; }

  .screenshot-frame { width: 140px; height: 300px; border-radius: 22px; }
  .screenshot-frame img { border-radius: 16px; }
  .screenshots-track { gap: 12px; }
}
