:root {
  --bg: #ffffff;
  --bg-alt: #f6f7fb;
  --text: #14161f;
  --text-muted: #5c6070;
  --border: #e7e8ef;
  --primary: #3d5afe;
  --primary-dark: #2c3fd6;
  --primary-tint: #eef1ff;
  --success: #14b866;
  --radius: 14px;
  --shadow: 0 8px 30px rgba(20, 22, 31, 0.06);
  --max-width: 1160px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

html[dir="rtl"] body {
  font-family: 'Noto Sans Arabic', 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}


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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 { line-height: 1.15; margin: 0 0 16px; font-weight: 800; }
h1 { font-size: clamp(2.1rem, 4vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); text-align: center; }
h3 { font-size: 1.15rem; margin-bottom: 8px; }
p { margin: 0 0 16px; color: var(--text-muted); }

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-tint);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 6px 16px rgba(61, 90, 254, 0.28); }
.btn-primary:hover { background: var(--primary-dark); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { background: var(--bg-alt); }
.btn-lg { padding: 14px 26px; font-size: 1rem; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
}
.logo {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text);
  text-decoration: none;
}
.logo span { color: var(--primary); }
.nav {
  display: flex;
  gap: 28px;
}
.nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
}
.nav a:hover { color: var(--text); }
.header-actions { display: flex; align-items: center; gap: 12px; }

.lang-switch {
  display: flex;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}
.lang-switch button {
  background: transparent;
  border: none;
  padding: 7px 10px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text-muted);
  cursor: pointer;
  font-family: inherit;
}
.lang-switch button + button { border-left: 1px solid var(--border); }
.lang-switch button:hover { background: var(--bg-alt); color: var(--text); }
.lang-switch button.active { background: var(--primary-tint); color: var(--primary-dark); }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; }

/* Hero */
.hero { padding: 72px 0 40px; }
.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.hero-actions { display: flex; gap: 14px; margin: 28px 0 36px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 32px; flex-wrap: wrap; }
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats strong { font-size: 1.6rem; font-weight: 800; }
.hero-stats span { font-size: 0.82rem; color: var(--text-muted); max-width: 140px; }

.hero-visual { display: flex; justify-content: center; }
.mock-card {
  width: 100%;
  max-width: 340px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
}
.mock-card-row { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.mock-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); }
.mock-label { font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.03em; }
.mock-tracking { font-family: 'Roboto Mono', monospace; font-size: 1.15rem; font-weight: 700; margin-bottom: 20px; }
.mock-status { display: flex; gap: 6px; margin-bottom: 20px; }
.mock-step {
  flex: 1;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 8px 4px;
  border-radius: 8px;
  background: var(--bg-alt);
  color: var(--text-muted);
}
.mock-step.done { background: var(--primary-tint); color: var(--primary-dark); }
.mock-meta { display: flex; justify-content: space-between; border-top: 1px solid var(--border); padding-top: 16px; }
.mock-meta div { display: flex; flex-direction: column; gap: 2px; }
.mock-meta span { font-size: 0.72rem; color: var(--text-muted); }
.mock-meta strong { font-size: 0.9rem; }

/* Logos strip */
.logos { padding: 24px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.logos p { text-align: center; margin: 0; font-size: 0.85rem; letter-spacing: 0.02em; }

/* Features */
.features { padding: 88px 0; background: var(--bg-alt); }
.features h2 { margin-bottom: 48px; }
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
}
.feature-icon { font-size: 1.8rem; margin-bottom: 14px; }
.feature-card p { margin: 0; font-size: 0.93rem; }

/* Tracking section */
.tracking { padding: 88px 0; }
.tracking-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.mock-search {
  display: flex;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 10px;
}
.mock-search input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 0.95rem;
  padding: 10px 12px;
  font-family: inherit;
  color: var(--text);
  background: transparent;
}
.mock-search button {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0 20px;
  font-weight: 600;
  font-size: 0.9rem;
}

/* Agencies CTA */
.agencies { padding: 96px 0; background: var(--text); color: #fff; text-align: center; }
.agencies-inner { max-width: 640px; margin: 0 auto; }
.agencies h2 { color: #fff; }
.agencies p { color: rgba(255,255,255,0.72); }

/* Footer */
.site-footer { padding: 32px 0; border-top: 1px solid var(--border); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; }
.footer-inner p { margin: 0; font-size: 0.85rem; }

@media (max-width: 860px) {
  .nav, .header-actions { display: none; }
  .nav-toggle { display: flex; }
  .hero-inner, .tracking-inner { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .features-grid { grid-template-columns: 1fr 1fr; }

  .nav.nav-open {
    display: flex;
    flex-direction: column;
    gap: 4px;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 12px 24px 20px;
  }
  .nav.nav-open a { padding: 10px 0; }
}

@media (max-width: 560px) {
  .features-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 20px; }
  .footer-inner { flex-direction: column; gap: 12px; text-align: center; }
}
