:root {
  --navy: #0a4d7a;
  --navy-deep: #062a44;
  --navy-mid: #0d5a8c;
  --signal: #e8922e;
  --ink: #0c1a26;
  --text: #152433;
  --muted: #5d7184;
  --canvas: #eef3f8;
  --line: rgba(10, 77, 122, 0.14);
  --font-ar: "Cairo", "Segoe UI", Tahoma, sans-serif;
  --font-en: "Syne", "Cairo", sans-serif;
  --header-h: 68px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: var(--font-ar);
  background: var(--canvas);
  line-height: 1.55;
}

html[lang="en"] body,
html[lang="en"] .hero-title,
html[lang="en"] .section-title {
  font-family: var(--font-en);
}

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

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

button,
input,
textarea {
  font: inherit;
}

/* —— Top bar —— */
.topbar {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 40;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 1.25rem;
  transition: background 0.35s ease, box-shadow 0.35s ease, color 0.35s ease;
  color: #fff;
}

.topbar.is-solid {
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink);
  box-shadow: 0 1px 0 var(--line);
  backdrop-filter: blur(10px);
}

.topbar-brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.topbar-logo {
  height: 34px;
  width: auto;
}

.topbar-logo--dark {
  display: none;
}

.topbar.is-solid .topbar-logo--light {
  display: none;
}

.topbar.is-solid .topbar-logo--dark {
  display: block;
}

.topbar-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-weight: 600;
  font-size: 0.95rem;
}

.topbar-nav a {
  opacity: 0.88;
}

.topbar-nav a:hover {
  opacity: 1;
  color: var(--signal);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-shrink: 0;
}

.lang-toggle {
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  padding: 0.4rem 0.65rem;
  opacity: 0.9;
}

.lang-toggle:hover {
  opacity: 1;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 44px;
  padding: 0.65rem 1.25rem;
  border-radius: 10px;
  border: 1px solid transparent;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

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

.btn-primary {
  background: var(--signal);
  color: #1a1208;
  border-color: var(--signal);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
}

.btn-outline:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.topbar .btn-ghost {
  background: transparent;
  color: inherit;
  border-color: currentColor;
  opacity: 0.85;
  min-height: 38px;
  padding: 0.4rem 0.9rem;
  font-size: 0.92rem;
}

.topbar.is-solid .btn-ghost {
  border-color: var(--navy);
  color: var(--navy);
}

/* —— Hero —— */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #fff;
  padding: calc(var(--header-h) + 2rem) 1.25rem 4rem;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 20%, rgba(232, 146, 46, 0.28), transparent 55%),
    radial-gradient(ellipse 70% 50% at 15% 80%, rgba(13, 90, 140, 0.55), transparent 50%),
    linear-gradient(155deg, #041c2e 0%, var(--navy-deep) 42%, var(--navy) 100%);
  animation: heroShift 18s ease-in-out infinite alternate;
}

.hero-mesh {
  position: absolute;
  inset: 0;
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 75% 65% at 50% 40%, #000 20%, transparent 75%);
}

.hero-signal {
  position: absolute;
  width: 140%;
  height: 55%;
  left: -20%;
  bottom: -18%;
  background: radial-gradient(ellipse at center, rgba(232, 146, 46, 0.18), transparent 65%);
  animation: signalPulse 7s ease-in-out infinite;
}

@keyframes heroShift {
  from {
    filter: hue-rotate(0deg) saturate(1);
  }
  to {
    filter: hue-rotate(-8deg) saturate(1.08);
  }
}

@keyframes signalPulse {
  0%,
  100% {
    opacity: 0.55;
    transform: translateY(0);
  }
  50% {
    opacity: 0.9;
    transform: translateY(-12px);
  }
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
  text-align: center;
}

.hero-logo {
  margin: 0 auto 1.75rem;
  width: min(300px, 74vw);
  height: auto;
  filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.25));
}

.hero-title {
  margin: 0;
  font-size: clamp(2.4rem, 6vw, 3.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.hero-lead {
  margin: 1rem auto 0;
  max-width: 36rem;
  font-size: clamp(1.05rem, 2.4vw, 1.25rem);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.88);
}

.hero-cta {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.hero-scroll {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  width: 1px;
  height: 42px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.7), transparent);
  transform: translateX(-50%);
  animation: scrollLine 2.2s ease-in-out infinite;
}

@keyframes scrollLine {
  0%,
  100% {
    opacity: 0.35;
    transform: translateX(-50%) scaleY(0.85);
  }
  50% {
    opacity: 1;
    transform: translateX(-50%) scaleY(1);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  animation: riseIn 0.85s ease forwards;
}

.reveal.delay-1 {
  animation-delay: 0.12s;
}

.reveal.delay-2 {
  animation-delay: 0.24s;
}

.reveal.delay-3 {
  animation-delay: 0.36s;
}

@keyframes riseIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* —— Trust band —— */
.trust-band {
  background: #fff;
  border-block: 1px solid var(--line);
  padding: 1.35rem 1.25rem;
}

.trust-inner {
  width: min(900px, 100%);
  margin: 0 auto;
  text-align: center;
}

.trust-inner p {
  margin: 0;
  color: var(--navy-deep);
  font-weight: 600;
  font-size: clamp(1rem, 2.2vw, 1.15rem);
}

/* —— Sections —— */
.section {
  padding: 5rem 1.25rem;
}

.section-inner {
  width: min(980px, 100%);
  margin: 0 auto;
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.section-title {
  margin: 0;
  font-size: clamp(1.75rem, 3.5vw, 2.35rem);
  font-weight: 800;
  color: var(--navy-deep);
  letter-spacing: -0.02em;
}

.section-lead {
  margin: 0.75rem 0 0;
  max-width: 38rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.section-channels {
  background: #fff;
}

.channel-list {
  margin-top: 2.5rem;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.channel {
  display: grid;
  gap: 0.45rem;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--line);
}

.channel-kicker {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.channel--live .channel-kicker {
  color: var(--signal);
}

.channel h3 {
  margin: 0;
  font-size: 1.35rem;
  color: var(--navy);
}

.channel p:last-child {
  margin: 0;
  color: var(--muted);
  max-width: 42rem;
}

.section-why {
  background:
    linear-gradient(180deg, rgba(10, 77, 122, 0.05), transparent 35%),
    var(--canvas);
}

.why-grid {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem 2.5rem;
  border-top: 1px solid var(--line);
  padding-top: 2rem;
}

.why-item h3 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
  color: var(--navy-deep);
}

.why-item p {
  margin: 0;
  color: var(--muted);
}

.section-start {
  background: #fff;
}

.steps {
  list-style: none;
  margin: 2.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 1.5rem;
}

.steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
}

.steps li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.step-num {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--navy-deep);
  color: #fff;
  font-weight: 800;
  font-size: 1rem;
}

.steps h3 {
  margin: 0.15rem 0 0.35rem;
  font-size: 1.15rem;
}

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

.section-faq {
  background: var(--canvas);
}

.faq-list {
  margin-top: 2rem;
  border-top: 1px solid var(--line);
}

.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 0.35rem 0;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 1.1rem 0;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--navy-deep);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  float: inline-end;
  color: var(--signal);
  font-weight: 800;
}

.faq-item[open] summary::after {
  content: "–";
}

.faq-item p {
  margin: 0 0 1.1rem;
  color: var(--muted);
  max-width: 40rem;
}

.section-contact {
  background: var(--navy-deep);
  color: #fff;
}

.section-contact .section-title {
  color: #fff;
}

.section-contact .section-lead {
  color: rgba(255, 255, 255, 0.78);
}

.contact-mail {
  display: inline-block;
  margin-top: 1.25rem;
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  font-weight: 700;
  color: var(--signal);
  letter-spacing: 0.01em;
}

.contact-form {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  max-width: 640px;
}

.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.75);
}

.contact-form .span-full {
  grid-column: 1 / -1;
}

.contact-form input,
.contact-form textarea {
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  border-radius: 10px;
  padding: 0.7rem 0.85rem;
  outline: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--signal);
}

.contact-form .btn-primary {
  grid-column: 1 / -1;
  justify-self: start;
  margin-top: 0.25rem;
}

/* —— Footer —— */
.site-footer {
  background: #031521;
  color: rgba(255, 255, 255, 0.8);
  padding: 3rem 1.25rem 2rem;
}

.footer-inner {
  width: min(980px, 100%);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.footer-inner img {
  width: 118px;
  opacity: 0.95;
}

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

.footer-links a {
  color: #fff;
  font-weight: 600;
}

.footer-links a:hover {
  color: var(--signal);
}

.footer-copy {
  margin: 0.5rem 0 0;
  font-size: 0.85rem;
  opacity: 0.55;
}

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

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

  .contact-form {
    grid-template-columns: 1fr;
  }

  .topbar .btn-ghost {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .hero-bg,
  .hero-signal,
  .hero-scroll,
  .section-inner {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
}
