:root {
  --ink: #122033;
  --muted: #5a6b7c;
  --brand: #0f3d59;
  --accent: #0f766e;
  --warm: #c45c26;
  --paper: #f7f4ef;
  --line: rgba(18, 32, 51, 0.1);
  --font: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;
  --shadow: 0 24px 60px rgba(11, 28, 44, 0.22);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
}

img { max-width: 100%; display: block; }

.site-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(12px);
  background: rgba(11, 28, 44, 0.78);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.nav-inner {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nav-brand {
  color: #fffaf4;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-links a {
  color: rgba(255,250,244,0.86);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 8px 12px;
}

.nav-links a:hover { color: #fff; }

.nav-cta {
  background: var(--accent) !important;
  color: #fff !important;
  border-radius: 999px;
  padding: 9px 16px !important;
}

/* Hero: full-bleed image plane + brand-first content */
.hero {
  position: relative;
  min-height: min(92vh, 880px);
  display: grid;
  align-items: end;
  overflow: hidden;
  background: #0b1c2c;
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  animation: heroDrift 18s ease-in-out infinite alternate;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(11, 28, 44, 0.88) 0%, rgba(11, 28, 44, 0.55) 42%, rgba(11, 28, 44, 0.28) 100%),
    linear-gradient(0deg, rgba(11, 28, 44, 0.78) 0%, transparent 45%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 96px 0 64px;
  color: #fffaf4;
  animation: riseIn 0.9s ease both;
}

.brand {
  margin: 0 0 10px;
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.hero h1 {
  margin: 0 0 12px;
  font-size: clamp(1.35rem, 2.8vw, 2rem);
  font-weight: 600;
  max-width: 18ch;
  line-height: 1.3;
}

.lead {
  margin: 0 0 28px;
  max-width: 34ch;
  font-size: 1.08rem;
  color: rgba(255,250,244,0.86);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.btn-primary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 700;
  border-radius: 999px;
  padding: 14px 22px;
  transition: transform .18s ease, filter .18s ease, background .18s ease;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 12px 30px rgba(15, 118, 110, 0.35);
}

.btn-primary:hover { filter: brightness(1.08); transform: translateY(-2px); }

.btn-ghost {
  color: #fffaf4;
  border: 1px solid rgba(255,250,244,0.35);
  background: rgba(255,255,255,0.06);
}

.btn-ghost:hover { background: rgba(255,255,255,0.12); }

.btn-meta {
  font-size: 0.82rem;
  font-weight: 600;
  opacity: 0.9;
  border-inline-start: 1px solid rgba(255,255,255,0.35);
  padding-inline-start: 10px;
}

.btn-large { padding: 16px 28px; font-size: 1.05rem; }

.note {
  margin: 16px 0 0;
  color: rgba(255,250,244,0.68);
  font-size: 0.9rem;
}

.section {
  padding: 88px 0;
}

.section-alt {
  background:
    radial-gradient(700px 280px at 100% 0%, rgba(15, 118, 110, 0.12), transparent 60%),
    linear-gradient(180deg, #efeae2, #f7f4ef);
}

.section-inner {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.section h2 {
  margin: 0 0 10px;
  font-size: clamp(1.7rem, 3vw, 2.25rem);
  letter-spacing: -0.02em;
  color: var(--brand);
}

.section-lead {
  margin: 0 0 36px;
  color: var(--muted);
  max-width: 42ch;
  font-size: 1.05rem;
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 22px;
}

.steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: start;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .55s ease, transform .55s ease;
}

.steps li.in {
  opacity: 1;
  transform: none;
}

.steps li:nth-child(2) { transition-delay: .08s; }
.steps li:nth-child(3) { transition-delay: .16s; }

.steps h3 {
  margin: 0 0 6px;
  font-size: 1.2rem;
}

.steps p {
  margin: 0;
  color: var(--muted);
  max-width: 58ch;
}

.step-num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
}

.features-layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
}

.feature-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 14px;
}

.feature-list li {
  position: relative;
  padding-inline-start: 22px;
  font-weight: 600;
  color: #243447;
}

.feature-list li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0.55em;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--warm);
}

.features-copy,
.features-visual {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s ease, transform .6s ease;
}

.features-copy.in,
.features-visual.in {
  opacity: 1;
  transform: none;
}

.features-visual {
  margin: 0;
  overflow: hidden;
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.features-visual img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
}

.download-band {
  background:
    radial-gradient(600px 260px at 10% 20%, rgba(196, 92, 38, 0.22), transparent 55%),
    linear-gradient(145deg, #0b1c2c, #123047 55%, #0f766e);
  color: #fffaf4;
}

.download-band h2,
.download-band .section-lead { color: inherit; }
.download-band .section-lead { opacity: 0.84; }

.download-inner {
  text-align: center;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .55s ease, transform .55s ease;
}

.download-inner.in {
  opacity: 1;
  transform: none;
}

.support {
  margin: 18px 0 0;
  opacity: 0.85;
}

.support a {
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.site-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  justify-content: center;
  align-items: center;
  padding: 28px 16px;
  background: #0a1622;
  color: rgba(255,250,244,0.72);
  font-size: 0.92rem;
}

.site-foot strong { color: #fffaf4; }

@keyframes heroDrift {
  from { transform: scale(1.04) translate3d(0, 0, 0); }
  to { transform: scale(1.1) translate3d(-1.5%, -1%, 0); }
}

@keyframes riseIn {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 860px) {
  .features-layout { grid-template-columns: 1fr; }
  .hero-content { padding: 120px 0 48px; }
  .nav-links a:not(.nav-cta) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .hero-media img { transform: none; }
  .steps li, .features-copy, .features-visual, .download-inner {
    opacity: 1;
    transform: none;
  }
}
