:root {
  --primary: #00c753;
  --primary-dark: #00a344;
  --bg: #f8fafc;
  --surface: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --border: #e2e8f0;
  --shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
  --radius: 18px;
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Noto Sans Arabic", "Noto Sans", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
}

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

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(var(--max), calc(100% - 2rem));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
  position: relative;
}

.nav-end {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.2rem;
  border-radius: 999px;
  background: #f1f5f9;
  border: 1px solid var(--border);
  position: relative;
  z-index: 40;
}

.lang-switch button {
  border: 0;
  background: transparent;
  color: var(--muted);
  border-radius: 999px;
  padding: 0.35rem 0.55rem;
  font-size: 0.72rem;
  font-weight: 800;
  cursor: pointer;
  line-height: 1;
}

.lang-switch button.active {
  background: white;
  color: var(--text);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}

.lang-switch button:hover {
  color: var(--text);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 800;
  color: var(--text);
  text-decoration: none;
}

.brand:hover {
  text-decoration: none;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  display: grid;
  place-items: center;
  color: white;
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(0, 199, 83, 0.28);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
}

.nav-toggle {
  display: none;
  border: 0;
  background: transparent;
  font-size: 1.5rem;
  cursor: pointer;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.25rem;
  border-radius: 999px;
  border: 0;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
  text-decoration: none;
}

.btn-primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 12px 30px rgba(0, 199, 83, 0.28);
}

.btn-primary:hover {
  background: var(--primary-dark);
  color: white;
}

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

.hero {
  padding: 4.5rem 0 3rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: rgba(0, 199, 83, 0.1);
  color: var(--primary-dark);
  font-weight: 700;
  font-size: 0.9rem;
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.2;
  margin: 1rem 0;
}

.hero p {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 38rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.phone-mock {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
}

.hero-app-shot {
  width: min(100%, 320px);
  height: auto;
  display: block;
  filter: drop-shadow(0 24px 40px rgba(15, 23, 42, 0.18));
}

.section {
  padding: 4rem 0;
}

.section-title {
  text-align: center;
  margin-bottom: 2rem;
}

.section-title h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin: 0 0 0.5rem;
}

.section-title p {
  color: var(--muted);
  margin: 0;
}

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

.feature-card,
.legal-card,
.info-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(0, 199, 83, 0.12);
  color: var(--primary-dark);
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.cta {
  background: linear-gradient(135deg, #0f172a, #1e293b);
  color: white;
  border-radius: 28px;
  padding: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.cta p {
  margin: 0.35rem 0 0;
  color: rgba(255, 255, 255, 0.78);
}

.legal-page {
  padding: 3rem 0 4rem;
}

.legal-page h1 {
  margin-top: 0;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
}

.legal-meta {
  color: var(--muted);
  margin-bottom: 2rem;
}

.legal-section {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
}

.legal-section h2 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
}

.legal-section p {
  margin: 0;
  color: #334155;
}

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

.contact-grid a {
  font-weight: 700;
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.info-card .card-actions .btn,
.legal-section .card-actions .btn {
  min-width: 11rem;
}

.btn-footer {
  padding: 0.65rem 1rem;
  font-size: 0.9rem;
}

.footer-compact {
  grid-template-columns: 1fr auto;
  align-items: center;
}

.footer-inline-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-inline-links a {
  color: var(--muted);
  font-weight: 600;
}

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

.site-footer {
  margin-top: 3rem;
  padding: 2rem 0 3rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 1.5rem;
}

.footer-grid h3 {
  color: var(--text);
  margin-top: 0;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 1rem;
  border-radius: 14px;
  background: #111827;
  color: white;
  font-weight: 700;
}

.store-badge.soon {
  background: #475569;
}

@media (max-width: 900px) {
  .hero-grid,
  .features,
  .footer-grid,
  .contact-grid,
  .footer-compact {
    grid-template-columns: 1fr;
  }

  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    inset-inline: 1rem;
    top: 72px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1rem;
    flex-direction: column;
    align-items: stretch;
    display: none;
    box-shadow: var(--shadow);
    z-index: 30;
  }

  .nav-end {
    margin-inline-start: auto;
  }

  .lang-switch {
    order: -1;
  }

  .nav-links.open {
    display: flex;
  }
}
