:root {
  --brand-red: #E53935;
  --brand-red-dark: #C62828;
  --brand-red-light: #FFEBEE;
  --brand-black: #1A1A1A;
  --brand-surface: #FAFAF8;
  --brand-surface-elevated: #FFFFFF;
  --brand-muted: #6B7280;
  --brand-border: #E5E7EB;
  --brand-success: #16A34A;
  --brand-gradient: linear-gradient(135deg, #E53935 0%, #FF6B35 50%, #D97706 100%);
  --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --bg: #FAFAF8;
  --bg-elevated: #FFFFFF;
  --text: #1A1A1A;
  --text-muted: #6B7280;
  --border: #E5E7EB;
  --shadow: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.12);
}

.dark {
  --bg: #0F1724;
  --bg-elevated: #1A2332;
  --text: #F9FAFB;
  --text-muted: #9CA3AF;
  --border: #2A3444;
  --shadow: 0 4px 20px rgba(0,0,0,0.3);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.4);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background 0.3s, color 0.3s;
}

html[dir="rtl"] body {
  font-family: 'Cairo', var(--font-sans);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* ─── Navbar ─── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0.75rem 1.5rem;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s;
}

.navbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 800;
  font-size: 1.5rem;
}

.logo-img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: contain;
}

.logo-text {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
  font-size: 1.35rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s;
  position: relative;
}

.nav-links a:hover { color: var(--brand-red); }

.lang-toggle {
  background: none;
  border: 1px solid var(--border);
  padding: 0.35rem 0.75rem;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  transition: all 0.2s;
}

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

.theme-toggle {
  background: none;
  border: 1px solid var(--border);
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.1rem;
  color: var(--text);
  transition: all 0.2s;
}

.theme-toggle:hover {
  border-color: var(--brand-red);
  color: var(--brand-red);
}

.nav-cta {
  background: var(--brand-gradient);
  color: white !important;
  padding: 0.5rem 1.25rem;
  border-radius: 100px;
  font-weight: 600 !important;
  font-size: 0.85rem !important;
  transition: transform 0.2s, box-shadow 0.2s;
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(229,57,53,0.4);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  width: 38px;
  height: 38px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
}

.mobile-menu-btn span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ─── Hero ─── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 6rem 1.5rem 4rem;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg-circle {
  position: absolute;
  border-radius: 50%;
  opacity: 0.08;
}

.hero-bg-circle:nth-child(1) {
  width: 600px;
  height: 600px;
  background: var(--brand-red);
  top: -200px;
  right: -200px;
}

.hero-bg-circle:nth-child(2) {
  width: 400px;
  height: 400px;
  background: #FF6B35;
  bottom: -100px;
  left: -100px;
}

.hero-bg-circle:nth-child(3) {
  width: 300px;
  height: 300px;
  background: #D97706;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-content {
  animation: fadeUp 0.8s ease-out;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--brand-red-light);
  color: var(--brand-red);
  padding: 0.4rem 1rem;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.25rem;
}

.hero-logo-icon {
  display: inline-block;
  vertical-align: middle;
  width: 48px;
  height: 48px;
  margin-left: 0.25rem;
  border-radius: 12px;
}

.hero-title .highlight {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 540px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  border-radius: 100px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: var(--brand-gradient);
  color: white;
  box-shadow: 0 4px 20px rgba(229,57,53,0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(229,57,53,0.45);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 2px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--brand-red);
  color: var(--brand-red);
  transform: translateY(-2px);
}

.btn-store {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 1.5rem;
  border-radius: 12px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: all 0.3s;
  cursor: pointer;
}

.btn-store:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  border-color: var(--brand-red);
}

.btn-store-icon { font-size: 1.5rem; }
.btn-store-label { text-align: left; }
.btn-store-label small { display: block; font-size: 0.65rem; color: var(--text-muted); font-weight: 400; }
.btn-store-label strong { display: block; font-size: 0.9rem; font-weight: 700; }

/* Phone mockup */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeUp 0.8s ease-out 0.2s both;
}

.phone-mockup {
  width: 320px;
  background: var(--bg-elevated);
  border-radius: 40px;
  padding: 12px;
  box-shadow: var(--shadow-lg), 0 0 0 1px var(--border);
  position: relative;
}

.phone-screen {
  border-radius: 30px;
  overflow: hidden;
  aspect-ratio: 9/19;
  background: linear-gradient(180deg, #FFF5F5 0%, #FFFFFF 30%, #FFFFFF 100%);
  display: flex;
  flex-direction: column;
  position: relative;
}

.phone-notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 28px;
  background: var(--bg-elevated);
  border-radius: 0 0 16px 16px;
  z-index: 2;
}

.phone-header {
  padding: 2.5rem 1.25rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.phone-header-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--brand-red);
}

.phone-header-text {
  display: flex;
  gap: 0.3rem;
}

.phone-header-text span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--border);
}

.phone-content {
  flex: 1;
  padding: 0 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.phone-card {
  background: white;
  border-radius: 12px;
  padding: 0.75rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  animation: phoneCardAppear 0.5s ease-out both;
}

.phone-card:nth-child(1) { animation-delay: 0.3s; }
.phone-card:nth-child(2) { animation-delay: 0.5s; }
.phone-card:nth-child(3) { animation-delay: 0.7s; }

.phone-card-img {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  flex-shrink: 0;
}

.phone-card-img.r { background: linear-gradient(135deg, #FFEBEE, #FFCDD2); }
.phone-card-img.g { background: linear-gradient(135deg, #E8F5E9, #C8E6C9); }
.phone-card-img.o { background: linear-gradient(135deg, #FFF3E0, #FFE0B2); }

.phone-card-info { flex: 1; }
.phone-card-info .line {
  height: 10px;
  border-radius: 5px;
  background: #F0F0F0;
  margin-bottom: 5px;
  width: 80%;
}
.phone-card-info .line:last-child { width: 50%; }
.phone-card-price {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--brand-red);
}

.phone-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--brand-red);
  color: white;
  font-size: 0.6rem;
  font-weight: 700;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes phoneCardAppear {
  from { opacity: 0; transform: translateX(-20px); }
  to { opacity: 1; transform: translateX(0); }
}

/* ─── Sections ─── */
.section {
  padding: 5rem 1.5rem;
}

.section-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-label {
  display: inline-block;
  background: var(--brand-red-light);
  color: var(--brand-red);
  padding: 0.3rem 1rem;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.section-title {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 800;
  margin-bottom: 0.75rem;
  line-height: 1.15;
}

.section-desc {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* ─── Features ─── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.feature-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2rem;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--brand-gradient);
  opacity: 0;
  transition: opacity 0.3s;
}

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

.feature-card:hover::before { opacity: 1; }

.feature-icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1.25rem;
}

.feature-icon.red { background: var(--brand-red-light); }
.feature-icon.green { background: #E8F5E9; }
.feature-icon.amber { background: #FFF8E1; }
.feature-icon.blue { background: #E3F2FD; }
.feature-icon.purple { background: #F3E5F5; }
.feature-icon.teal { background: #E0F2F1; }

.feature-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

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

/* ─── How It Works ─── */
.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  counter-reset: step;
}

.how-step {
  text-align: center;
  position: relative;
}

.how-step::after {
  content: '';
  position: absolute;
  top: 35px;
  left: calc(50% + 40px);
  right: calc(-50% + 40px);
  height: 2px;
  background: linear-gradient(90deg, var(--brand-red), transparent);
  opacity: 0.3;
}

.how-step:last-child::after { display: none; }

.how-number {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: var(--brand-gradient);
  color: white;
  font-size: 1.5rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  box-shadow: 0 4px 20px rgba(229,57,53,0.3);
}

.how-step h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.how-step p {
  color: var(--text-muted);
  font-size: 0.9rem;
  max-width: 280px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ─── Stats ─── */
.stats {
  background: var(--brand-gradient);
  color: white;
  border-radius: 24px;
  padding: 3.5rem 2rem;
  text-align: center;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.9rem;
  opacity: 0.85;
  font-weight: 500;
}

/* ─── CTA ─── */
.cta-section {
  text-align: center;
  padding: 6rem 1.5rem;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--brand-gradient);
  opacity: 0.03;
}

.cta-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  margin-bottom: 1rem;
}

.cta-desc {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 2.5rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.qr-section {
  display: flex;
  gap: 2rem;
  justify-content: center;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}

.qr-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.qr-placeholder {
  width: 120px;
  height: 120px;
  background: var(--bg-elevated);
  border: 2px dashed var(--border);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all 0.3s;
}

.qr-placeholder:hover {
  border-color: var(--brand-red);
  border-style: solid;
}

.qr-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
}

.qr-item img {
  width: 120px;
  height: 120px;
  border-radius: 16px;
  object-fit: contain;
}

.cta-stores {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ─── Footer ─── */
.footer {
  background: #0F1724;
  color: #94A3B8;
  padding: 3rem 1.5rem 1.5rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.footer-brand h3 {
  color: white;
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.7;
  max-width: 320px;
}

.footer-col h4 {
  color: white;
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-col ul a {
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-col ul a:hover { color: white; }

.footer-bottom {
  border-top: 1px solid #1E2A3A;
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
}

.footer-social {
  display: flex;
  gap: 0.75rem;
}

.footer-social a {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid #1E2A3A;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: all 0.2s;
}

.footer-social a:hover {
  border-color: var(--brand-red);
  color: var(--brand-red);
  background: rgba(229,57,53,0.1);
}

/* ─── Legal Pages ─── */
.legal-page {
  padding: 8rem 1.5rem 4rem;
  max-width: 800px;
  margin: 0 auto;
}

.legal-page h1 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

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

.legal-content h2 {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 2rem 0 0.75rem;
}

.legal-content p {
  margin-bottom: 1rem;
  line-height: 1.7;
  color: var(--text-muted);
}

.legal-content ul {
  margin: 0 0 1rem 1.5rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ─── Responsive ─── */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--bg-elevated);
    flex-direction: column;
    padding: 1.5rem;
    gap: 1rem;
    border-bottom: 1px solid var(--border);
    transform: translateY(-100%);
    opacity: 0;
    transition: all 0.3s;
    pointer-events: none;
  }
  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }
  .mobile-menu-btn { display: flex; }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }
  .hero-subtitle { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .phone-mockup { width: 260px; }

  .features-grid { grid-template-columns: 1fr; }
  .how-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .how-step::after { display: none; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .hero { padding: 5rem 1rem 3rem; }
  .section { padding: 3rem 1rem; }
  .phone-mockup { width: 220px; }
}
