@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Arabic:wght@400;500;600;700&family=Manrope:wght@400;500;600;700&display=swap');

:root {
  --bg: #0b1714;
  --sand-light: #f1d2a3;
  --cream: #f7efe4;
  --cream-soft: rgba(247, 239, 228, 0.72);
  --accent: #dfaa61;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--cream);
  font-family: "IBM Plex Sans Arabic", "Manrope", sans-serif;
}

body[data-lang="en"] {
  font-family: "Manrope", "IBM Plex Sans Arabic", sans-serif;
}

button {
  font: inherit;
  color: inherit;
}

.page-shell {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100svh;
  padding: 28px clamp(22px, 4vw, 64px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.background {
  position: absolute;
  inset: 0;
  z-index: -6;
  background:
    linear-gradient(
      110deg,
      rgba(5, 15, 12, 0.98) 0%,
      rgba(7, 20, 16, 0.86) 42%,
      rgba(18, 25, 19, 0.50) 100%
    ),
    url("https://images.unsplash.com/photo-1509316785289-025f5b846b35?auto=format&fit=crop&w=2400&q=88")
      center 58% / cover no-repeat;
  transform: scale(1.04);
  transition: transform 0.2s ease-out;
}

.background::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      circle at 75% 35%,
      rgba(244, 196, 132, 0.14),
      transparent 30%
    ),
    linear-gradient(
      to top,
      rgba(4, 11, 9, 0.93),
      transparent 48%
    );
}

.grain {
  position: absolute;
  inset: 0;
  z-index: -3;
  opacity: 0.17;
  pointer-events: none;
  background-image:
    repeating-radial-gradient(
      circle at 0 0,
      rgba(255, 255, 255, 0.06) 0,
      rgba(255, 255, 255, 0.06) 1px,
      transparent 1px,
      transparent 4px
    );
  mix-blend-mode: soft-light;
}

.glow {
  position: absolute;
  z-index: -2;
  pointer-events: none;
  border-radius: 999px;
  filter: blur(10px);
}

.glow-one {
  width: 420px;
  height: 420px;
  top: -150px;
  right: -110px;
  background: rgba(223, 170, 97, 0.08);
}

.glow-two {
  width: 320px;
  height: 320px;
  bottom: -120px;
  left: -100px;
  background: rgba(95, 155, 134, 0.10);
}

.topbar {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

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

.brand-logo {
  display: block;
  width: clamp(120px, 12vw, 165px);
  max-height: 54px;
  object-fit: contain;
}

.language-switch {
  min-width: 58px;
  height: 42px;
  padding: 0 17px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(14px);
  cursor: pointer;
  transition:
    transform 0.25s ease,
    background 0.25s ease,
    border-color 0.25s ease;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.language-switch:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.10);
}

.hero {
  flex: 1;
  width: 100%;
  max-width: 1480px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  padding: 70px 0 48px;
}

.hero-content {
  max-width: 900px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  color: rgba(247, 239, 228, 0.76);
  font-size: 14px;
  font-weight: 500;
}

.eyebrow-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 7px rgba(223, 170, 97, 0.10);
}

.hero-title {
  margin: 0;
  max-width: 900px;
  font-size: clamp(48px, 6.4vw, 92px);
  line-height: 1.07;
  letter-spacing: -0.045em;
  font-weight: 600;
  text-wrap: balance;
}

html[dir="rtl"] .hero-title {
  letter-spacing: -0.025em;
}

.changing-word-wrap {
  position: relative;
  display: inline-block;
  color: var(--sand-light);
  white-space: nowrap;
  vertical-align: baseline;
}

.changing-word-wrap::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 5px;
  height: 9px;
  z-index: -1;
  border-radius: 999px;
  background:
    linear-gradient(
      90deg,
      rgba(223, 170, 97, 0),
      rgba(223, 170, 97, 0.25),
      rgba(223, 170, 97, 0)
    );
  filter: blur(7px);
}

.changing-word {
  display: inline-block;
  min-width: 3.8em;
  will-change: opacity, transform, filter;
  transition:
    opacity 0.32s ease,
    transform 0.32s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.32s ease;
}

.changing-word.word-out {
  opacity: 0;
  transform: translateY(18px);
  filter: blur(6px);
}

.changing-word.word-in {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

.hero-description {
  max-width: 710px;
  margin: 30px 0 0;
  color: var(--cream-soft);
  font-size: clamp(17px, 1.6vw, 21px);
  line-height: 1.95;
  font-weight: 400;
}

html[dir="ltr"] .hero-description {
  line-height: 1.75;
}

.status-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 24px;
  margin-top: 36px;
}

.coming-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  backdrop-filter: blur(14px);
  color: rgba(247, 239, 228, 0.94);
  font-size: 14px;
  font-weight: 600;
}

.pulse {
  position: relative;
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #e4b775;
}

.pulse::after {
  content: "";
  position: absolute;
  inset: -6px;
  border: 1px solid rgba(228, 183, 117, 0.55);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(0.7);
    opacity: 0.9;
  }

  100% {
    transform: scale(1.8);
    opacity: 0;
  }
}

.mini-copy {
  color: rgba(247, 239, 228, 0.52);
  font-size: 13px;
}

.footer {
  width: 100%;
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.copyright {
  color: rgba(247, 239, 228, 0.45);
  font-size: 12px;
}

.national-logos {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  direction: ltr;
}

.national-logo-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  opacity: 0.9;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

.national-logo-link:hover {
  opacity: 1;
  transform: translateY(-2px);
}

.national-logo {
  display: block;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.28));
}

.visit-saudi-logo {
  height: 45px;
  max-width: 104px;
}

.vision-logo {
  height: 58px;
  max-width: 94px;
}

.footer-logo-divider {
  width: 1px;
  height: 34px;
  background: rgba(255, 255, 255, 0.13);
}

@media (max-width: 980px) {
  .hero {
    padding: 72px 0 44px;
  }

  .hero-content {
    max-width: 860px;
  }
}

@media (max-width: 640px) {
  .page-shell {
    padding: 20px 18px;
  }

  .language-switch {
    height: 38px;
    min-width: 52px;
    padding-inline: 14px;
  }

  .hero {
    padding: 58px 0 34px;
  }

  .eyebrow {
    margin-bottom: 18px;
    font-size: 12px;
  }

  .hero-title {
    font-size: clamp(42px, 13vw, 64px);
    line-height: 1.09;
  }

  .changing-word {
    min-width: auto;
  }

  .hero-description {
    margin-top: 22px;
    font-size: 16px;
    line-height: 1.85;
  }

  .status-row {
    align-items: flex-start;
    flex-direction: column;
    margin-top: 28px;
  }

  .footer {
    min-height: 0;
    padding: 18px 0 2px;
    flex-direction: column-reverse;
    align-items: flex-start;
    gap: 14px;
  }

  .national-logos {
    gap: 14px;
  }

  .visit-saudi-logo {
    height: 38px;
    max-width: 90px;
  }

  .vision-logo {
    height: 50px;
    max-width: 82px;
  }
}

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