/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #6C3AED;
  --primary-dark: #5B21B6;
  --primary-light: #8B5CF6;
  --accent: #EC4899;
  --bg: #ffffff;
  --bg-alt: #F8F7FF;
  --text: #1E1B4B;
  --text-muted: #6B7280;
  --border: #E5E7EB;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08);
  --shadow-md: 0 4px 20px rgba(0,0,0,.1);
  --shadow-lg: 0 10px 40px rgba(108,58,237,.15);
  --transition: .3s cubic-bezier(.4,0,.2,1);
  --font-en: 'Inter', sans-serif;
  --font-he: 'Heebo', sans-serif;
}

html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  font-family: var(--font-en);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}

html[dir="rtl"] body { font-family: var(--font-he); }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
  font-size: 1rem;
  padding: 10px 24px;
}
.btn-sm { padding: 8px 18px; font-size: .875rem; }
.btn-lg { padding: 14px 32px; font-size: 1.1rem; }
.btn-primary { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; transform: translateY(-2px); }

/* ===== Navbar ===== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}
.navbar.scrolled { box-shadow: var(--shadow-sm); }
.nav-container { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { display: flex; align-items: center; gap: 10px; font-size: 1.4rem; font-weight: 800; color: var(--text); }
.logo-icon {
  width: 36px; height: 36px; border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.1rem;
}
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a:not(.btn) { font-weight: 500; color: var(--text-muted); transition: var(--transition); }
.nav-links a:not(.btn):hover { color: var(--primary); }

.lang-toggle {
  background: var(--bg-alt); border: 1px solid var(--border); border-radius: 8px;
  padding: 6px 14px; cursor: pointer; font-weight: 600; font-size: .9rem;
  transition: var(--transition); font-family: inherit;
}
.lang-toggle:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

.mobile-menu-btn {
  display: none; background: none; border: none; cursor: pointer;
  width: 32px; height: 24px; position: relative;
}
.mobile-menu-btn span {
  display: block; width: 100%; height: 2px; background: var(--text);
  position: absolute; left: 0; transition: var(--transition);
}
.mobile-menu-btn span:nth-child(1) { top: 0; }
.mobile-menu-btn span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.mobile-menu-btn span:nth-child(3) { bottom: 0; }
.mobile-menu-btn.active span:nth-child(1) { top: 50%; transform: translateY(-50%) rotate(45deg); }
.mobile-menu-btn.active span:nth-child(2) { opacity: 0; }
.mobile-menu-btn.active span:nth-child(3) { bottom: 50%; transform: translateY(50%) rotate(-45deg); }

.mobile-menu {
  display: none; position: fixed; top: 72px; left: 0; right: 0;
  background: #fff; padding: 24px; flex-direction: column; gap: 16px;
  border-bottom: 1px solid var(--border); box-shadow: var(--shadow-md);
  z-index: 999;
}
.mobile-menu.active { display: flex; }
.mobile-menu a { font-size: 1.1rem; font-weight: 500; padding: 8px 0; }

/* ===== Hero ===== */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center;
  padding: 120px 0 80px; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, #EDE9FE 0%, #FCE7F3 50%, #DBEAFE 100%);
  z-index: -1;
}
.hero-container { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.hero-title {
  font-size: 3.5rem; font-weight: 800; line-height: 1.15;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-subtitle { font-size: 1.2rem; color: var(--text-muted); margin-top: 20px; max-width: 520px; }
.hero-cta { display: flex; gap: 16px; margin-top: 36px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 40px; margin-top: 48px; }
.stat-number { font-size: 1.5rem; font-weight: 800; color: var(--primary); display: block; }
.stat-label { font-size: .85rem; color: var(--text-muted); }

.hero-wave { position: absolute; bottom: -1px; left: 0; right: 0; }
.hero-wave svg { display: block; width: 100%; }

/* Phone Mockup */
.hero-visual { display: flex; justify-content: center; }
.phone-mockup {
  width: 280px; height: 560px;
  background: #1a1a2e; border-radius: 40px;
  padding: 12px; box-shadow: var(--shadow-lg), 0 0 60px rgba(108,58,237,.2);
  animation: float 6s ease-in-out infinite;
}
.phone-screen {
  width: 100%; height: 100%; border-radius: 30px; overflow: hidden;
  background: linear-gradient(180deg, var(--primary-light), var(--accent));
}
.mockup-content { padding: 40px 20px; text-align: center; color: #fff; }
.mockup-header { font-weight: 800; font-size: 1.2rem; margin-bottom: 40px; }
.mockup-avatar {
  width: 120px; height: 120px; border-radius: 50%;
  background: rgba(255,255,255,.25); margin: 0 auto 24px;
  border: 3px solid rgba(255,255,255,.4);
}
.mockup-text { font-size: 1.1rem; font-weight: 600; margin-bottom: 20px; }
.mockup-btn {
  display: inline-block; background: #fff; color: var(--primary);
  padding: 12px 28px; border-radius: 30px; font-weight: 700;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

/* ===== Features ===== */
.features { padding: 100px 0; background: var(--bg); }
.section-title { font-size: 2.5rem; font-weight: 800; text-align: center; }
.section-subtitle { text-align: center; color: var(--text-muted); font-size: 1.15rem; max-width: 600px; margin: 16px auto 60px; }
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.feature-card {
  background: var(--bg-alt); border-radius: var(--radius-lg); padding: 32px;
  border: 1px solid var(--border); transition: var(--transition);
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--primary-light); }
.feature-icon {
  width: 56px; height: 56px; border-radius: 14px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff; display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.feature-card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 10px; }
.feature-card p { color: var(--text-muted); font-size: .95rem; line-height: 1.6; }

/* ===== How It Works ===== */
.how-it-works { padding: 100px 0; background: var(--bg-alt); }
.steps { display: flex; align-items: flex-start; justify-content: center; gap: 20px; margin-top: 20px; }
.step { text-align: center; flex: 1; max-width: 300px; position: relative; }
.step-number {
  position: absolute; top: -10px; right: -10px; width: 36px; height: 36px;
  background: var(--accent); color: #fff; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: .9rem; z-index: 2;
}
html[dir="rtl"] .step-number { right: auto; left: -10px; }
.step-icon {
  width: 100px; height: 100px; border-radius: 50%;
  background: linear-gradient(135deg, #EDE9FE, #FCE7F3);
  color: var(--primary); display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px; transition: var(--transition);
}
.step:hover .step-icon { transform: scale(1.1); box-shadow: var(--shadow-lg); }
.step h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 8px; }
.step p { color: var(--text-muted); font-size: .95rem; }
.step-arrow { color: var(--primary-light); margin-top: 40px; flex-shrink: 0; }
html[dir="rtl"] .step-arrow svg { transform: rotate(180deg); }

/* ===== Business ===== */
.business { padding: 100px 0; background: linear-gradient(135deg, #1E1B4B, #312E81); color: #fff; }
.business-content { display: grid; grid-template-columns: 1.2fr 1fr; gap: 60px; align-items: center; }
.badge {
  display: inline-block; background: rgba(255,255,255,.15); border-radius: 20px;
  padding: 6px 16px; font-size: .85rem; font-weight: 600; margin-bottom: 16px;
  backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,.2);
}
.business-text h2 { font-size: 2.4rem; font-weight: 800; margin-bottom: 16px; }
.business-text p { color: rgba(255,255,255,.75); font-size: 1.1rem; margin-bottom: 28px; }
.business-benefits { list-style: none; display: flex; flex-direction: column; gap: 14px; margin-bottom: 36px; }
.business-benefits li { display: flex; align-items: center; gap: 12px; font-size: 1rem; }
.business-benefits svg { color: #34D399; flex-shrink: 0; }
.business-cta { display: flex; gap: 16px; flex-wrap: wrap; }
.business-cta .btn-primary { background: #fff; color: var(--primary-dark); border-color: #fff; }
.business-cta .btn-primary:hover { background: var(--primary-light); color: #fff; border-color: var(--primary-light); }
.business-cta .btn-outline { border-color: rgba(255,255,255,.4); color: #fff; }
.business-cta .btn-outline:hover { background: rgba(255,255,255,.15); }

.biz-card {
  background: rgba(255,255,255,.08); border-radius: var(--radius-lg);
  padding: 40px; backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.15);
  display: flex; flex-direction: column; gap: 28px;
}
.biz-metric { text-align: center; }
.biz-metric-value { font-size: 2.5rem; font-weight: 800; display: block; background: linear-gradient(135deg, #34D399, #60A5FA); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.biz-metric-label { font-size: .9rem; color: rgba(255,255,255,.6); }

/* ===== Download ===== */
.download { padding: 100px 0; text-align: center; background: var(--bg); }
.download h2 { font-size: 2.5rem; font-weight: 800; margin-bottom: 16px; }
.download p { color: var(--text-muted); font-size: 1.15rem; margin-bottom: 40px; }
.store-badges { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; }
.store-badge {
  display: flex; align-items: center; gap: 12px;
  background: var(--text); color: #fff; padding: 14px 28px;
  border-radius: var(--radius); transition: var(--transition);
}
.store-badge:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); background: #000; }
.store-badge small { display: block; font-size: .7rem; text-transform: uppercase; letter-spacing: .5px; opacity: .8; }
.store-badge strong { font-size: 1.1rem; }

/* ===== Footer ===== */
.footer { background: var(--bg-alt); border-top: 1px solid var(--border); padding: 60px 0 30px; }
.footer-container { display: flex; flex-wrap: wrap; gap: 40px; }
.footer-brand { flex: 1; min-width: 200px; }
.footer-brand p { color: var(--text-muted); margin-top: 10px; font-size: .95rem; }
.footer-links { display: flex; gap: 60px; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col h4 { font-weight: 700; margin-bottom: 6px; }
.footer-col a { color: var(--text-muted); font-size: .95rem; transition: var(--transition); }
.footer-col a:hover { color: var(--primary); }
.footer-bottom {
  width: 100%; display: flex; justify-content: space-between; align-items: center;
  margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--border);
}
.footer-bottom p { color: var(--text-muted); font-size: .9rem; }

/* ===== RTL ===== */
html[dir="rtl"] .hero-stats { direction: rtl; }
html[dir="rtl"] .features-grid,
html[dir="rtl"] .steps { direction: rtl; }
html[dir="rtl"] .business-benefits li { flex-direction: row-reverse; text-align: right; }
html[dir="rtl"] .business-content { direction: rtl; }
html[dir="rtl"] .footer-bottom { flex-direction: row-reverse; }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .hero-title { font-size: 2.8rem; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .business-content { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .mobile-menu-btn { display: block; }
  .hero-container { grid-template-columns: 1fr; text-align: center; }
  .hero-subtitle { margin: 20px auto 0; }
  .hero-cta { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-visual { margin-top: 40px; }
  .hero-title { font-size: 2.2rem; }
  .section-title { font-size: 2rem; }
  .steps { flex-direction: column; align-items: center; }
  .step-arrow { transform: rotate(90deg); margin: 0; }
  html[dir="rtl"] .step-arrow svg { transform: rotate(0deg); }
  .business-text { text-align: center; }
  .business-benefits { align-items: center; }
  html[dir="rtl"] .business-benefits li { flex-direction: row; }
  .business-cta { justify-content: center; }
  .footer-container { flex-direction: column; text-align: center; }
  .footer-links { flex-direction: column; gap: 30px; }
  .footer-bottom { flex-direction: column; gap: 16px; }
  html[dir="rtl"] .footer-bottom { flex-direction: column; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 1.8rem; }
  .features-grid { grid-template-columns: 1fr; }
  .phone-mockup { width: 220px; height: 440px; }
}

/* ===== Download extras ===== */
.store-badge-disabled {
  opacity: .45;
  cursor: default;
  pointer-events: none;
}
button.store-badge {
  border: none;
  cursor: pointer;
  font-family: inherit;
}
.dl-note {
  margin-top: 24px;
  font-size: .9rem;
  color: var(--text-muted);
}

/* ===== Password Modal ===== */
.modal-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(6px);
  z-index: 2000;
  justify-content: center;
  align-items: center;
}
.modal-overlay.active { display: flex; }
.modal {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 40px;
  max-width: 420px;
  width: 90%;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
  text-align: center;
}
.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--text-muted);
  line-height: 1;
}
html[dir="rtl"] .modal-close { right: auto; left: 14px; }
.modal h3 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 8px;
}
.modal p {
  color: var(--text-muted);
  margin-bottom: 24px;
}
.modal-input {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: inherit;
  outline: none;
  transition: var(--transition);
  text-align: center;
  letter-spacing: 2px;
}
.modal-input:focus { border-color: var(--primary); }
.modal-input.shake {
  animation: shake .4s ease;
  border-color: #EF4444;
}
.modal-error {
  color: #EF4444 !important;
  font-size: .85rem;
  margin: 8px 0 0 !important;
  display: none;
}
.modal-error.visible { display: block; }
.modal-submit {
  width: 100%;
  margin-top: 20px;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-8px); }
  40%, 80% { transform: translateX(8px); }
}

/* ===== Animations ===== */
.fade-in { opacity: 0; transform: translateY(30px); transition: opacity .6s ease, transform .6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }
