/* Language gateway landing — site root */

:root {
  --landing-primary: #b17613;
  --landing-primary-dark: #8f5f0f;
  --landing-ink: #1a1a1a;
  --landing-muted: #5a5a5a;
  --landing-bg: #eef0f2;
  --landing-bg-center: #fafafa;
  --font-ar: "Swissra", "Segoe UI", Tahoma, sans-serif;
  --font-en: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
}

html {
  overflow: hidden;
}

body.landing-page {
  height: 100%;
  max-height: 100dvh;
  overflow: hidden;
  font-family: var(--font-ar);
  color: var(--landing-ink);
  background:
    radial-gradient(ellipse 70% 55% at 50% 42%, var(--landing-bg-center) 0%, var(--landing-bg) 72%, #e4e7ea 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1rem 0.85rem;
  text-align: center;
  -webkit-font-smoothing: antialiased;
}

.landing {
  width: 100%;
  max-width: 36rem;
  max-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  min-height: 0;
}

/* Entrance */
.landing > * {
  opacity: 0;
  animation: landing-in 0.65s ease forwards;
}

.landing__logo {
  animation-delay: 0.05s;
}

.landing__titles {
  animation-delay: 0.12s;
}

.landing__portrait {
  animation-delay: 0.22s;
}

.landing__brand {
  animation-delay: 0.32s;
}

.landing__langs {
  animation-delay: 0.42s;
}

.landing__counter {
  animation-delay: 0.52s;
}

@keyframes landing-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.landing__logo {
  display: block;
  width: clamp(2.75rem, 7vw, 3.75rem);
  height: auto;
  flex-shrink: 0;
  margin: 0 0 0.45rem;
}

.landing__titles {
  margin: 0 0 0.55rem;
  flex-shrink: 0;
}

.landing__titles h1 {
  margin: 0;
  font-family: var(--font-ar);
  font-weight: 400;
  font-size: clamp(0.9rem, 2.1vw, 1.15rem);
  line-height: 1.45;
  color: var(--landing-ink);
}

.landing__titles p {
  margin: 0.2rem 0 0;
  font-family: var(--font-en);
  font-weight: 400;
  font-size: clamp(0.72rem, 1.6vw, 0.88rem);
  letter-spacing: 0.02em;
  color: var(--landing-muted);
  line-height: 1.35;
}

.landing__portrait {
  position: relative;
  width: min(42vh, 14rem);
  max-width: 70%;
  margin: 0 auto 0.5rem;
  flex-shrink: 1;
  min-height: 0;
}

.landing__portrait::before {
  content: "";
  position: absolute;
  inset: 8% -6% -4%;
  background:
    radial-gradient(ellipse at 50% 60%, rgba(177, 118, 19, 0.08) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}

.landing__portrait img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
  max-height: 38vh;
  object-fit: contain;
  margin: 0 auto;
  filter: drop-shadow(0 8px 18px rgba(26, 26, 26, 0.1));
}

.landing__brand {
  margin: 0 0 0.65rem;
  max-width: 26rem;
  font-family: var(--font-ar);
  font-weight: 400;
  font-size: clamp(0.95rem, 2.2vw, 1.2rem);
  line-height: 1.45;
  color: var(--landing-primary);
  flex-shrink: 0;
}

.landing__langs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.25rem 1.5rem;
  margin: 0 0 0.75rem;
  padding: 0;
  list-style: none;
  direction: rtl;
  flex-shrink: 0;
}

.landing__langs a {
  font-family: var(--font-en);
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  font-weight: 400;
  color: var(--landing-ink);
  text-decoration: none;
  letter-spacing: 0.01em;
  border-bottom: 1px solid transparent;
  padding-bottom: 0.1rem;
  transition: color 0.25s ease, border-color 0.25s ease;
}

.landing__langs a[lang="ar"],
.landing__langs a.lang-ar {
  font-family: var(--font-ar);
  letter-spacing: 0;
}

.landing__langs a:hover,
.landing__langs a:focus-visible {
  color: var(--landing-primary);
  border-bottom-color: var(--landing-primary);
  outline: none;
}

.landing__langs a.is-preferred {
  color: var(--landing-primary-dark);
  border-bottom-color: rgba(177, 118, 19, 0.45);
  font-weight: 500;
}

.landing__counter {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.05rem;
  flex-shrink: 0;
}

.landing__counter-days {
  font-family: var(--font-en);
  font-size: clamp(1.05rem, 2.6vw, 1.35rem);
  font-weight: 600;
  color: var(--landing-primary);
  letter-spacing: 0.02em;
  direction: ltr;
  unicode-bidi: isolate;
  line-height: 1.2;
}

.landing__counter-label {
  font-family: var(--font-ar);
  font-size: clamp(0.75rem, 1.7vw, 0.88rem);
  font-weight: 400;
  color: var(--landing-ink);
  line-height: 1.4;
}

.landing__counter-label--en {
  font-family: var(--font-en);
  font-size: clamp(0.68rem, 1.5vw, 0.78rem);
  color: var(--landing-muted);
}

@media (max-height: 700px) {
  .landing__logo {
    width: clamp(2.25rem, 5.5vh, 3rem);
    margin-bottom: 0.3rem;
  }

  .landing__portrait {
    width: min(34vh, 11.5rem);
  }

  .landing__portrait img {
    max-height: 30vh;
  }

  .landing__titles {
    margin-bottom: 0.35rem;
  }

  .landing__brand {
    margin-bottom: 0.45rem;
  }

  .landing__langs {
    margin-bottom: 0.5rem;
  }
}

@media (max-height: 560px) {
  .landing__logo {
    width: 2rem;
    margin-bottom: 0.2rem;
  }

  .landing__titles h1 {
    font-size: 0.85rem;
  }

  .landing__titles p {
    font-size: 0.7rem;
  }

  .landing__portrait {
    width: min(28vh, 9.5rem);
  }

  .landing__portrait img {
    max-height: 24vh;
  }

  .landing__brand {
    font-size: 0.9rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .landing > * {
    opacity: 1;
    animation: none;
  }
}
