:root {
  --bg0: #f7fbff;
  --bg1: #edf5fb;
  --surface: #ffffff;
  --surface-soft: #f3f8fe;
  --text: #10253a;
  --muted: #5d738a;
  --line: #d4e2ef;
  --primary: #0c6fb0;
  --primary-strong: #0a5f98;
  --accent: #13b8d0;
  --shadow-sm: 0 8px 20px rgba(16, 37, 58, 0.08);
  --shadow-md: 0 18px 42px rgba(16, 37, 58, 0.11);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: "Cairo", "Tajawal", "Noto Sans Arabic", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, var(--bg0), #ffffff 40%, var(--bg1));
  overflow-x: hidden;
}

a {
  color: inherit;
}

.container {
  width: min(1180px, 92vw);
  margin-inline: auto;
}

.ambient-layer {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.ambient-orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(56px);
  opacity: 0.8;
  will-change: transform;
}

.orb-a {
  width: 420px;
  height: 420px;
  background: rgba(19, 184, 208, 0.18);
  top: -140px;
  inset-inline-end: -100px;
}

.orb-b {
  width: 480px;
  height: 480px;
  background: rgba(12, 111, 176, 0.15);
  bottom: -180px;
  inset-inline-start: -120px;
}

.ambient-grid {
  position: absolute;
  inset: 0;
  opacity: 0.28;
  background-image:
    linear-gradient(rgba(12, 111, 176, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(12, 111, 176, 0.05) 1px, transparent 1px);
  background-size: 42px 42px;
}

.cursor-glow {
  position: fixed;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  z-index: 4;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(19, 184, 208, 0.16), rgba(19, 184, 208, 0));
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  border-bottom: 1px solid transparent;
  transition: border-color 180ms ease, backdrop-filter 180ms ease, box-shadow 180ms ease;
}

.site-header.scrolled {
  backdrop-filter: blur(8px);
  border-color: var(--line);
  box-shadow: 0 8px 18px rgba(16, 37, 58, 0.06);
}

.nav-wrap {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand img {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
}

.brand-copy {
  display: grid;
  line-height: 1.08;
}

.brand-copy strong {
  font-size: 22px;
  font-weight: 800;
}

.brand-copy span {
  font-size: 12px;
  color: var(--muted);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
  position: relative;
  transition: color 180ms ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: -6px;
  height: 2px;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 200ms ease;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

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

.nav-links a:hover::after {
  transform: scaleX(1);
}

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

.lang-toggle {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px;
  background: var(--surface);
}

.lang-btn {
  border: 0;
  background: transparent;
  padding: 6px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  color: var(--muted);
  cursor: pointer;
}

.lang-btn.active {
  color: #fff;
  background: linear-gradient(120deg, var(--primary), var(--accent));
}

.jump-download {
  text-decoration: none;
  border: 1px solid var(--primary);
  background: var(--primary);
  color: #fff;
  border-radius: 999px;
  padding: 9px 15px;
  font-size: 13px;
  font-weight: 800;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.jump-download:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 16px rgba(12, 111, 176, 0.2);
}

.section {
  padding: 78px 0;
}

.hero {
  min-height: calc(100vh - 84px);
  display: flex;
  align-items: center;
}

.hero-grid,
.split-grid,
.service-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(22px, 4vw, 56px);
  align-items: center;
}

.kicker {
  margin: 0 0 10px;
  color: var(--primary);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1,
h2 {
  letter-spacing: -0.02em;
  line-height: 1.2;
}

h1 {
  font-size: clamp(36px, 5.2vw, 64px);
}

h2 {
  font-size: clamp(29px, 3.9vw, 46px);
}

.lead {
  margin-top: 16px;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.9;
  max-width: 40ch;
}

.role-switch {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.role-switch-center {
  justify-content: center;
}

.role-chip {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 160ms ease, color 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.role-chip:hover {
  transform: translateY(-2px);
  border-color: rgba(12, 111, 176, 0.4);
}

.role-chip.active {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(120deg, var(--primary), var(--accent));
  box-shadow: 0 10px 20px rgba(12, 111, 176, 0.22);
}

.store-row {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.store-btn {
  text-decoration: none;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  border-radius: 14px;
  padding: 11px 14px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.store-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 25%, rgba(12, 111, 176, 0.08) 50%, transparent 75%);
  transform: translateX(-120%);
  transition: transform 420ms ease;
}

.store-btn:hover {
  transform: translateY(-3px);
  border-color: rgba(12, 111, 176, 0.35);
  box-shadow: var(--shadow-md);
}

.store-btn:hover::before {
  transform: translateX(120%);
}

.store-ico {
  width: 28px;
  min-width: 28px;
  text-align: center;
  font-size: 20px;
  font-weight: 800;
  color: var(--primary);
}

.store-text {
  display: grid;
  line-height: 1.2;
}

.store-text small {
  font-size: 11px;
  color: var(--muted);
}

.store-text strong {
  font-size: 15px;
}

.hero-note {
  margin-top: 11px;
  color: var(--muted);
  font-size: 13px;
}

.hero-stage,
.scene-card,
.captain-card,
.service-card,
.benefit-card,
.step-item,
.download-card,
.social-panel,
.mini-points article {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.hero-stage {
  position: relative;
  min-height: clamp(380px, 58vh, 640px);
  padding: 16px;
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform 180ms ease-out;
}

.scene-panel {
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #f7fbff, #ecf4fc);
  border: 1px solid #d8e6f4;
  min-height: 100%;
  padding: 6px;
  animation: floatScene 5.4s ease-in-out infinite;
}

.hero-stat {
  position: absolute;
  bottom: 24px;
  inset-inline-end: 24px;
  display: grid;
  gap: 4px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--line);
  padding: 11px 13px;
  box-shadow: var(--shadow-md);
}

.hero-stat strong {
  font-size: 22px;
  color: var(--primary);
}

.hero-stat span {
  font-size: 12px;
  color: var(--muted);
}

.hero-stat-alt {
  bottom: auto;
  top: 20px;
  inset-inline-end: auto;
  inset-inline-start: 24px;
}

.lottie-box {
  width: 100%;
  min-height: 280px;
}

.scene-box {
  min-height: clamp(300px, 50vh, 560px);
}

.lottie-box svg {
  width: 100% !important;
  height: 100% !important;
  background: transparent !important;
}

.scene-fallback-frame {
  display: block;
  width: 100%;
  height: 100%;
  min-height: inherit;
  border: 0;
  background: #fff;
  border-radius: inherit;
}

.section-copy .lead {
  max-width: 46ch;
}

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

.mini-points article {
  padding: 16px;
}

.mini-points h3 {
  font-size: 19px;
}

.mini-points p {
  margin-top: 7px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
}

.scene-stack {
  display: grid;
  gap: 12px;
}

.scene-card {
  padding: 8px;
}

.scene-card-small .scene-box {
  min-height: 230px;
}

.captain-grid {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.captain-card {
  padding: 14px;
  transition: transform 170ms ease, box-shadow 170ms ease;
}

.captain-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.captain-scene {
  min-height: 240px;
}

.captain-card h3 {
  margin-top: 10px;
  font-size: 22px;
}

.captain-card p {
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
}

.service-layout {
  align-items: stretch;
}

.service-cards {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.service-card {
  text-align: start;
  padding: 16px;
  cursor: pointer;
  transition: transform 170ms ease, border-color 170ms ease, box-shadow 170ms ease;
}

.service-card:hover,
.service-card.active {
  transform: translateY(-3px);
  border-color: rgba(12, 111, 176, 0.42);
  box-shadow: var(--shadow-md);
}

.service-card h3 {
  font-size: 24px;
}

.service-card p {
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.8;
}

.service-scene-card .scene-box {
  min-height: 480px;
}

.benefit-grid {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.benefit-card {
  padding: 14px;
  transition: transform 170ms ease, box-shadow 170ms ease;
}

.benefit-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.mini-lottie {
  min-height: 170px;
}

.benefit-card h3 {
  margin-top: 8px;
  font-size: 21px;
}

.benefit-card p {
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.8;
  font-size: 14px;
}

.stepper {
  margin-top: 18px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.step-item {
  position: relative;
  padding: 16px;
  transition: transform 170ms ease, border-color 170ms ease, box-shadow 170ms ease;
}

.step-item::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  border-radius: 4px;
  background: transparent;
}

.step-item:hover,
.step-item.active {
  transform: translateY(-2px);
  border-color: rgba(12, 111, 176, 0.42);
  box-shadow: var(--shadow-md);
}

.step-item.active::before {
  background: linear-gradient(180deg, var(--primary), var(--accent));
}

.step-item strong {
  font-size: 20px;
}

.step-item p {
  margin-top: 7px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.download-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.download-card {
  padding: 18px;
  opacity: 0.7;
  transition: opacity 170ms ease, transform 170ms ease, border-color 170ms ease;
}

.download-card.active {
  opacity: 1;
  transform: translateY(-2px);
  border-color: rgba(12, 111, 176, 0.42);
  box-shadow: var(--shadow-md);
}

.download-card h3 {
  font-size: 28px;
}

.download-card p {
  margin-top: 8px;
  line-height: 1.9;
  color: var(--muted);
}

.section-social {
  padding-top: 40px;
}

.social-panel {
  padding: 26px;
  text-align: center;
}

.social-panel h2 {
  font-size: clamp(24px, 3vw, 34px);
}

.social-links {
  margin-top: 16px;
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.social-links a {
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 11px 18px;
  background: var(--surface-soft);
  font-size: 14px;
  font-weight: 700;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.social-links a:hover {
  transform: translateY(-2px);
  border-color: rgba(12, 111, 176, 0.4);
  box-shadow: var(--shadow-sm);
}

.sticky-cta {
  position: fixed;
  bottom: 16px;
  inset-inline-start: 50%;
  transform: translateX(-50%) translateY(18px);
  z-index: 40;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-md);
  display: flex;
  gap: 6px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 170ms ease, transform 170ms ease;
}

.sticky-cta.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.store-mini {
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 12px;
  background: var(--surface);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.store-mini:hover {
  border-color: rgba(12, 111, 176, 0.4);
}

.site-footer {
  padding: 36px 0 100px;
}

.footer-wrap {
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

.footer-wrap small {
  font-size: 11px;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 520ms ease, transform 520ms ease;
}

.reveal.show {
  opacity: 1;
  transform: translateY(0);
}

@keyframes floatScene {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-7px);
  }
}

@media (max-width: 1120px) {
  .nav-links {
    display: none;
  }

  .hero-grid,
  .split-grid,
  .service-layout {
    grid-template-columns: 1fr;
  }

  .hero-stage {
    order: -1;
  }

  .captain-grid,
  .benefit-grid,
  .download-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .nav-wrap {
    min-height: 72px;
  }

  .brand img {
    width: 46px;
    height: 46px;
  }

  .brand-copy strong {
    font-size: 18px;
  }

  .brand-copy span {
    font-size: 11px;
  }

  .jump-download {
    display: none;
  }

  .section {
    padding: 62px 0;
  }

  h1 {
    font-size: clamp(30px, 10vw, 44px);
  }

  h2 {
    font-size: clamp(24px, 7.5vw, 34px);
  }

  .lead {
    font-size: 17px;
    line-height: 1.85;
  }

  .hero-stage {
    min-height: 340px;
  }

  .scene-box {
    min-height: 280px;
  }

  .hero-stat {
    inset-inline-end: 12px;
    bottom: 12px;
  }

  .hero-stat-alt {
    inset-inline-start: 12px;
    top: 12px;
  }

  .captain-grid,
  .benefit-grid,
  .download-grid,
  .mini-points,
  .store-row {
    grid-template-columns: 1fr;
  }

  .service-scene-card .scene-box {
    min-height: 340px;
  }

  .sticky-cta {
    width: calc(100vw - 20px);
    max-width: 640px;
    overflow-x: auto;
    justify-content: flex-start;
    padding-inline: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
  }

  .cursor-glow {
    display: none !important;
  }
}
