:root {
  --primary: #6D1A1A;
  --primary-dark: #4A1010;
  --primary-light: #F3D6D6;
  --bg: #FAFAFA;
  --surface: #FFFFFF;
  --text: #1A1A1A;
  --text-muted: #6B6B6B;
  --border: #E5E5E5;
  --shadow: 0 10px 30px rgba(109, 26, 26, 0.12);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Cairo', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

[dir="ltr"] body { text-align: left; }
[dir="rtl"] body { text-align: right; }

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

/* Nav */
nav {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 20px;
  color: var(--primary);
  text-decoration: none;
}

.brand img { width: 36px; height: 36px; border-radius: 8px; }

.lang-toggle {
  background: var(--primary-light);
  color: var(--primary-dark);
  border: none;
  padding: 8px 16px;
  border-radius: 20px;
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.lang-toggle:hover { background: var(--primary); color: white; }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-cta {
  background: var(--primary);
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
}
.nav-cta:hover { background: var(--primary-dark); }

/* Hero */
.hero {
  padding: 80px 0 60px;
  background: linear-gradient(135deg, #F9E8E8 0%, #FAFAFA 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--primary-dark);
}

.hero p {
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 32px;
  max-width: 520px;
}

.store-badges {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #000;
  color: #fff;
  padding: 12px 24px;
  border-radius: 12px;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  min-width: 180px;
}
.store-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}
.store-badge svg { width: 28px; height: 28px; flex-shrink: 0; }
.store-badge-text small { display: block; font-size: 11px; opacity: 0.8; }
.store-badge-text strong { display: block; font-size: 16px; font-weight: 700; }

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.phone-mockup {
  width: 281px;
  height: 578px;
  background: linear-gradient(135deg, #2a2a2a 0%, #000 50%, #1a1a1a 100%);
  border-radius: 40px;
  padding: 12px;
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  position: relative;
}
.phone-screen {
  background: #000;
  border-radius: 28px;
  height: 100%;
  overflow: hidden;
  position: relative;
}

.carousel-track {
  position: relative;
  width: 100%;
  height: 100%;
}
.carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.5s ease;
}
.carousel-slide.active { opacity: 1; }
.carousel-slide img,
.carousel-slide video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: left top;
  display: block;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.9);
  color: var(--primary-dark);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.carousel-btn:hover { background: white; }
.carousel-prev { left: -18px; }
.carousel-next { right: -18px; }
[dir="rtl"] .carousel-prev { left: auto; right: -18px; }
[dir="rtl"] .carousel-next { right: auto; left: -18px; }

.carousel-dots {
  position: absolute;
  bottom: -32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}
.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary-light);
  border: none;
  cursor: pointer;
  transition: background 0.2s, width 0.2s;
  padding: 0;
}
.carousel-dot.active {
  background: var(--primary);
  width: 24px;
  border-radius: 4px;
}

/* Feature banner */
.banner {
  padding: 48px 0;
  background: var(--bg);
}
.banner img {
  width: 100%;
  max-width: 1024px;
  height: auto;
  border-radius: 16px;
  box-shadow: var(--shadow);
  display: block;
  margin: 0 auto;
}

/* Features */
.features {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 16px;
  color: var(--primary-dark);
}
.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 48px;
  font-size: 18px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px 24px;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--primary-light);
}

.feature-icon {
  width: 64px;
  height: 64px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}
.feature-icon svg { width: 32px; height: 32px; }

.feature-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}
.feature-card p { color: var(--text-muted); font-size: 15px; }

/* Merchant Banner */
.merchant-banner {
  padding: 64px 0;
}
.merchant-banner-inner {
  background: linear-gradient(135deg, var(--primary-light) 0%, #F9E8E8 100%);
  border: 2px solid var(--primary);
  border-radius: 20px;
  padding: 48px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.merchant-banner-icon {
  width: 64px;
  height: 64px;
  background: var(--primary);
  color: white;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.merchant-banner-icon svg { width: 32px; height: 32px; }
.merchant-banner-content h2 {
  font-size: 28px;
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 8px;
}
.merchant-banner-content p {
  color: var(--text-muted);
  font-size: 17px;
  max-width: 500px;
}
.merchant-banner-btn {
  display: inline-block;
  background: var(--primary);
  color: white;
  padding: 16px 36px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 18px;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}
.merchant-banner-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(109, 26, 26, 0.25);
}
@media (max-width: 768px) {
  .merchant-banner { padding: 40px 0; }
  .merchant-banner-inner {
    flex-direction: column;
    text-align: center;
    padding: 32px 24px;
  }
  .merchant-banner-content p { margin: 0 auto; }
}

/* CTA */
.cta {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  padding: 64px 0;
  text-align: center;
}
.cta h2 {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 16px;
}
.cta p { opacity: 0.9; margin-bottom: 32px; font-size: 18px; }
.cta .store-badges { justify-content: center; }
.cta .store-badge { background: white; color: #000; }

/* Footer */
footer {
  background: #1A1A1A;
  color: #A0A0A0;
  padding: 48px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
  margin-bottom: 32px;
}
.footer-col h4 {
  color: white;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
}
.footer-col a {
  display: block;
  color: #A0A0A0;
  text-decoration: none;
  padding: 4px 0;
  transition: color 0.2s;
}
.footer-col a:hover { color: white; }

.footer-bottom {
  border-top: 1px solid #2A2A2A;
  padding-top: 24px;
  text-align: center;
  font-size: 14px;
}

/* Sub-page hero */
.page-hero {
  padding: 64px 0 40px;
  background: linear-gradient(135deg, #F9E8E8 0%, #FAFAFA 100%);
  text-align: center;
}
.page-hero h1 {
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 12px;
}
.page-hero p {
  color: var(--text-muted);
  font-size: 18px;
  max-width: 640px;
  margin: 0 auto;
}

/* Sub-page content */
.page-content {
  padding: 56px 0 80px;
}
.page-content .container {
  max-width: 840px;
}
.page-content h2 {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary-dark);
  margin: 32px 0 12px;
}
.page-content h2:first-child { margin-top: 0; }
.page-content p {
  color: var(--text);
  margin-bottom: 16px;
  font-size: 16px;
}
.page-content ul {
  padding-inline-start: 24px;
  margin-bottom: 16px;
}
.page-content li {
  margin-bottom: 8px;
  color: var(--text);
}
.page-content a {
  color: var(--primary);
  text-decoration: none;
}
.page-content a:hover { text-decoration: underline; }

/* Contact form */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.contact-info-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.contact-info-card .feature-icon {
  margin: 0;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  flex-shrink: 0;
}
.contact-info-card .feature-icon svg { width: 24px; height: 24px; }
.contact-info-card h4 {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 4px;
  font-weight: 500;
}
.contact-info-card a, .contact-info-card span {
  color: var(--text);
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
}

.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--text);
}
.form-group input, .form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-family: inherit;
  font-size: 15px;
  transition: border-color 0.2s;
  background: var(--surface);
}
.form-group input:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
}
.form-group textarea { resize: vertical; min-height: 120px; }

.btn-primary {
  background: var(--primary);
  color: white;
  border: none;
  padding: 14px 32px;
  border-radius: 10px;
  font-family: inherit;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

/* Responsive */
@media (max-width: 768px) {
  .hero { padding: 48px 0 32px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .hero p { margin-left: auto; margin-right: auto; }
  .store-badges { justify-content: center; }
  .phone-mockup { width: 220px; height: 490px; }
  .features { padding: 48px 0; }
  .section-title { font-size: 28px; }
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
}
