:root {
  --bg: #f6f9fc;
  --text: #0f2137;
  --muted: #617286;
  --line: #dce6f1;
  --blue: #075ca8;
  --blue-2: #0a7bd3;
  --cyan: #1eb7d8;
  --navy: #061a31;
  --white: #ffffff;
  --shadow: 0 24px 70px rgba(15, 33, 55, 0.14);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Tajawal", Tahoma, Arial, sans-serif;
  line-height: 1.7;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ===== Scroll-reveal animation ===== */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-stagger.is-visible .feature-card,
.reveal-stagger.is-visible .steps-grid article,
.reveal-stagger.is-visible .integration-list span {
  animation: revealUp 0.6s var(--ease) backwards;
}

.reveal-stagger.is-visible .feature-card:nth-child(1),
.reveal-stagger.is-visible .steps-grid article:nth-child(1) { animation-delay: 0.05s; }
.reveal-stagger.is-visible .feature-card:nth-child(2),
.reveal-stagger.is-visible .steps-grid article:nth-child(2) { animation-delay: 0.15s; }
.reveal-stagger.is-visible .feature-card:nth-child(3),
.reveal-stagger.is-visible .steps-grid article:nth-child(3) { animation-delay: 0.25s; }
.reveal-stagger.is-visible .feature-card:nth-child(4) { animation-delay: 0.35s; }

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

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

.nav-shell {
  width: min(1180px, calc(100% - 32px));
  height: 74px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--navy);
  transition: opacity 0.2s ease;
}

.brand:hover {
  opacity: 0.8;
}

.brand img {
  width: 46px;
  height: 46px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  color: #31465d;
  font-weight: 700;
  font-size: 0.95rem;
  margin-inline-start: auto;
}

.nav-links a {
  position: relative;
  padding: 8px 0;
}

.nav-links a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--blue-2);
  transition: width 0.25s var(--ease);
}

.nav-links a:hover::after {
  width: 100%;
}

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

.login-link {
  color: #31465d;
  font-weight: 800;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 8px;
  font-weight: 800;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0) scale(0.98);
}

.btn-primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--blue), var(--blue-2));
  box-shadow: 0 14px 28px rgba(7, 92, 168, 0.24);
}

.btn-secondary {
  color: var(--blue);
  background: var(--white);
  border: 1px solid var(--line);
}

.btn-whatsapp {
  color: var(--white);
  background: #16a765;
  box-shadow: 0 14px 28px rgba(22, 167, 101, 0.2);
}

.nav-whatsapp {
  min-height: 40px;
  padding: 0 16px;
}

.btn-large {
  min-height: 52px;
  padding: 0 28px;
}

.hero {
  position: relative;
  min-height: 680px;
  overflow: hidden;
  color: var(--white);
  background: var(--navy);
}

.hero-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(3, 16, 35, 0.92) 0%, rgba(5, 37, 70, 0.78) 48%, rgba(3, 16, 35, 0.56) 100%),
    url("../images/hero.webp") center / cover no-repeat;
  transform: scale(1.06);
  animation: heroZoom 1.4s var(--ease) forwards;
}

@keyframes heroZoom {
  from { transform: scale(1.12); opacity: 0; }
  to { transform: scale(1.06); opacity: 1; }
}

.hero-copy {
  animation: fadeUp 0.8s var(--ease) backwards;
  animation-delay: 0.15s;
}

.hero-panel {
  animation: fadeUp 0.8s var(--ease) backwards;
  animation-delay: 0.35s;
}

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

.hero-shell {
  position: relative;
  width: min(1180px, calc(100% - 32px));
  min-height: 680px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.7fr);
  align-items: center;
  gap: 58px;
  padding: 68px 0;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--cyan);
  font-weight: 800;
  letter-spacing: 0;
}

.hero h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(2.4rem, 6vw, 5rem);
  line-height: 1.08;
  letter-spacing: 0;
}

.hero-text {
  max-width: 650px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.2rem;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 34px;
}

.trust-strip {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.trust-strip span {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.84);
  font-weight: 700;
}

.stats-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  gap: 12px;
  max-width: 620px;
  margin-top: 34px;
}

.stats-strip div {
  min-height: 94px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
}

.stats-strip strong,
.stats-strip span {
  display: block;
}

.stats-strip strong {
  font-size: 2rem;
  line-height: 1.1;
}

.stats-strip span {
  margin-top: 7px;
  color: rgba(255, 255, 255, 0.76);
  font-weight: 800;
}

.hero-panel {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.13);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}

.panel-top {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 800;
  margin-bottom: 18px;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 0 6px rgba(52, 211, 153, 0.16);
  animation: pulseDot 2s ease-in-out infinite;
}

@keyframes pulseDot {
  0%, 100% { box-shadow: 0 0 0 6px rgba(52, 211, 153, 0.16); }
  50% { box-shadow: 0 0 0 10px rgba(52, 211, 153, 0.08); }
}

.shipment-card,
.mini-grid > div {
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  padding: 18px;
}

.shipment-card {
  display: grid;
  gap: 4px;
}

.shipment-card strong {
  font-size: 2.6rem;
  line-height: 1;
}

.shipment-card small {
  color: #0b8f65;
  font-weight: 800;
}

.mini-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 12px;
}

.mini-grid span,
.shipment-card span {
  color: var(--muted);
  font-weight: 700;
}

.mini-grid strong {
  display: block;
  font-size: 1.7rem;
  line-height: 1.2;
}

.route-line {
  height: 4px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  margin: 22px 0;
}

.route-line span {
  border-radius: 999px;
  background: var(--cyan);
}

.hero-panel p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
}

.section,
.split-section,
.pricing-band,
.cta-section,
.site-footer {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.section {
  padding: 92px 0 36px;
}

.section-head {
  max-width: 680px;
}

h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  line-height: 1.25;
  letter-spacing: 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 34px;
}

.feature-card {
  min-height: 240px;
  padding: 24px;
  border-radius: 8px;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 16px 38px rgba(15, 33, 55, 0.06);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 46px rgba(15, 33, 55, 0.12);
}

.feature-icon {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #e7f6fb;
  color: var(--blue);
  font-size: 1.25rem;
  font-weight: 900;
}

.feature-card h3 {
  margin: 20px 0 10px;
  font-size: 1.25rem;
}

.feature-card p,
.split-section p,
.pricing-band p,
.cta-section p,
.lead-section p,
.steps-grid p,
.site-footer p {
  margin: 0;
  color: var(--muted);
}

.how-section {
  padding-top: 58px;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 30px;
}

.steps-grid article {
  position: relative;
  min-height: 220px;
  padding: 26px;
  border-radius: 8px;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 16px 38px rgba(15, 33, 55, 0.05);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.steps-grid article:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 46px rgba(15, 33, 55, 0.1);
}

.steps-grid article::before {
  content: "";
  position: absolute;
  top: 42px;
  left: 26px;
  width: 38%;
  height: 2px;
  background: #d8e7f4;
}

.steps-grid span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: var(--navy);
  color: var(--white);
  font-weight: 900;
}

.steps-grid h3 {
  margin: 22px 0 10px;
  font-size: 1.25rem;
}

.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 72px 0;
}

.split-section p {
  max-width: 570px;
  margin-top: 16px;
  font-size: 1.08rem;
}

.integration-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.integration-list span {
  min-height: 78px;
  display: flex;
  align-items: center;
  padding: 0 20px;
  border-radius: 8px;
  background: var(--white);
  border: 1px solid var(--line);
  color: #25435f;
  font-weight: 800;
  box-shadow: 0 12px 30px rgba(15, 33, 55, 0.05);
}

.pricing-band {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  align-items: center;
  padding: 34px;
  border-radius: 8px;
  background: #eaf4fb;
  border: 1px solid #cfe3f3;
}

.pricing-band p {
  margin-top: 10px;
}

.lead-section {
  width: min(1180px, calc(100% - 32px));
  margin: 76px auto 0;
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 1fr);
  gap: 34px;
  align-items: stretch;
  padding: 34px;
  border-radius: 8px;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.lead-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.lead-copy p {
  margin: 16px 0 24px;
  font-size: 1.08rem;
}

.lead-copy .btn {
  align-self: flex-start;
}

.lead-form-card {
  display: grid;
  gap: 10px;
  padding: 24px;
  border-radius: 8px;
  background: #f5f9fd;
  border: 1px solid #dbe8f2;
}

.lead-form-card label {
  color: #243d57;
  font-weight: 900;
}

.lead-form-card input,
.lead-form-card select {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border-radius: 8px;
  border: 1px solid #cbd9e6;
  background: var(--white);
  color: var(--text);
  font: inherit;
}

.lead-form-card input:focus,
.lead-form-card select:focus {
  outline: 3px solid rgba(30, 183, 216, 0.18);
  border-color: var(--cyan);
}

.lead-form-card button {
  width: 100%;
  margin-top: 10px;
  border: 0;
  cursor: pointer;
}

.cta-section {
  margin-top: 76px;
  margin-bottom: 76px;
  padding: 58px 32px;
  text-align: center;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--navy), #073e70);
  color: var(--white);
}

.cta-section p {
  margin: 14px auto 26px;
  color: rgba(255, 255, 255, 0.78);
}

.cta-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.site-footer {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 32px;
  padding: 34px 0 46px;
  border-top: 1px solid var(--line);
}

.site-footer img {
  width: 58px;
  height: 58px;
  object-fit: contain;
}

.site-footer h2 {
  font-size: 1rem;
  margin-bottom: 12px;
}

.site-footer a {
  display: block;
  color: var(--muted);
  margin: 8px 0;
  font-weight: 700;
}

@media (max-width: 980px) {
  .nav-shell {
    height: auto;
    min-height: 72px;
    flex-wrap: wrap;
    padding: 12px 0;
    gap: 14px;
  }

  .nav-links {
    order: 3;
    width: 100%;
    overflow-x: auto;
    gap: 18px;
    padding-bottom: 4px;
  }

  .hero-shell {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero-panel {
    max-width: 520px;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .split-section,
  .lead-section {
    grid-template-columns: 1fr;
  }

  .steps-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .nav-actions {
    width: 100%;
  }

  .nav-actions .btn,
  .login-link {
    flex: 1;
    text-align: center;
  }

  .hero,
  .hero-shell {
    min-height: auto;
  }

  .hero-shell {
    padding: 54px 0;
  }

  .hero h1 {
    font-size: 2.35rem;
  }

  .hero-text {
    font-size: 1rem;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .stats-strip {
    grid-template-columns: 1fr;
  }

  .features-grid,
  .integration-list,
  .mini-grid,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .pricing-band {
    align-items: stretch;
    flex-direction: column;
  }

  .lead-section {
    padding: 22px;
  }

  .lead-copy .btn {
    align-self: stretch;
  }
}
