/* ==========================================================================
   iLANATi · Coming Soon landing page
   ========================================================================== */

:root {
  /* Palette */
  --bg-deep: #13062f;
  --band-top: #1a0940;
  --band-mid: #2c1068;
  --band-bottom: #4b1fa6;
  --glow-magenta: rgba(168, 38, 196, 0.55);
  --glow-violet: rgba(124, 58, 237, 0.5);

  --text: #ffffff;
  --text-soft: rgba(237, 233, 254, 0.86);
  --text-muted: rgba(221, 214, 254, 0.68);
  --lavender: #c9b6f5;
  --pink-soft: #f5d0fe;
  --accent: #e879f9;

  --line: rgba(216, 180, 254, 0.22);
  --pill-bg: rgba(255, 255, 255, 0.05);
  --pill-border: rgba(216, 180, 254, 0.28);

  /* Layout */
  --container: 1000px;
  --gutter: clamp(16px, 4vw, 32px);
  --frame-pad: 8px;
  --band-pb: 0px;

  /* Type */
  --font: "Tajawal", "Segoe UI", Tahoma, system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------- Base ---------- */

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg-deep);
  color: var(--text);
  font-family: var(--font);
  font-weight: 300;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img,
video { display: block; max-width: 100%; }

h1, h2, p { margin: 0; }

strong { font-weight: 700; color: var(--text); }

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

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 8px;
}

.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}

/* ---------- Background band ----------
   The purple band ends exactly at the vertical middle of the video,
   computed from the same width the video frame uses. */

.band {
  --video-w: min(var(--container), 100vw - 2 * var(--gutter));
  --band-cut: calc((var(--video-w) - 2 * var(--frame-pad)) * 9 / 32 + var(--frame-pad) + var(--band-pb));

  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-top: clamp(28px, 4.5vw, 48px);
  padding-bottom: var(--band-pb);
  background:
    linear-gradient(180deg, var(--band-top) 0%, var(--band-mid) 48%, var(--band-bottom) 100%)
      top / 100% calc(100% - var(--band-cut)) no-repeat,
    var(--bg-deep);
}

/* Faint star field, fading out towards the bottom */
.band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.55;
  background-image:
    radial-gradient(1.2px 1.2px at 24px 40px, #fff, transparent),
    radial-gradient(1px 1px at 150px 110px, #fff, transparent),
    radial-gradient(1.4px 1.4px at 290px 60px, #fff, transparent),
    radial-gradient(1px 1px at 80px 230px, #fff, transparent),
    radial-gradient(1.2px 1.2px at 220px 300px, #fff, transparent),
    radial-gradient(1px 1px at 340px 200px, #fff, transparent);
  background-size: 380px 340px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.35) 60%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.35) 60%, transparent 100%);
}

.band__glow {
  position: absolute;
  z-index: -1;
  pointer-events: none;
  border-radius: 50%;
}

.band__glow--start {
  top: -18vw;
  inset-inline-end: -14vw;           /* top-left in RTL */
  width: 62vw;
  height: 62vw;
  max-width: 820px;
  max-height: 820px;
  background: radial-gradient(closest-side, var(--glow-magenta), transparent);
  animation: drift 22s ease-in-out infinite alternate;
}

.band__glow--end {
  top: 4vw;
  inset-inline-start: -16vw;         /* right side in RTL */
  width: 58vw;
  height: 70vw;
  max-width: 760px;
  max-height: 920px;
  background: radial-gradient(closest-side, var(--glow-violet), transparent);
  animation: drift 26s ease-in-out -8s infinite alternate-reverse;
}

/* ---------- Brand header ---------- */

.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.brand__card {
  background: #fff;
  border-radius: clamp(20px, 3vw, 30px);
  padding: clamp(14px, 2.7vw, 39px) clamp(22px, 3.9vw, 56px);
  box-shadow:
    0 0 0 clamp(6px, 0.8vw, 10px) rgba(255, 255, 255, 0.07),
    0 0 0 clamp(7px, 0.9vw, 11px) rgba(216, 180, 254, 0.1),
    0 24px 60px -18px rgba(10, 2, 30, 0.7),
    0 0 70px -10px rgba(192, 132, 252, 0.45);
}

.brand__logo {
  width: clamp(190px, 29vw, 419px);
  height: auto;
}

.brand__slogan {
  margin-top: clamp(16px, 2vw, 22px);
  font-size: clamp(1.05rem, 0.85rem + 0.9vw, 1.4rem);
  font-weight: 700;
  line-height: 1.5;
}

.brand__tagline {
  margin-top: 2px;
  font-size: clamp(0.95rem, 0.84rem + 0.5vw, 1.25rem);
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--lavender);
}

/* ---------- Intro (bilingual) ---------- */

.intro {
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: stretch;
  margin-top: clamp(40px, 6vw, 64px);
}

.intro__col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;            /* "start" follows each column's own dir */
  justify-content: center;
}

.intro__divider {
  background: linear-gradient(180deg, transparent, var(--line) 20%, var(--line) 80%, transparent);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 5px 16px;
  border: 1px solid var(--pill-border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  color: var(--pink-soft);
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.4;
}

.intro__col--en .badge {
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.badge__dot {
  position: relative;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}

.badge__dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--accent);
  animation: ping 2.4s var(--ease) infinite;
}

.intro__title {
  margin-top: 12px;
  font-weight: 800;
  line-height: 1.2;
}

.intro__col--ar .intro__title {
  font-size: clamp(2.5rem, 1.6rem + 3.4vw, 4rem);
  background: linear-gradient(90deg, var(--pink-soft), #fbe7ff 50%, #e9b8ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.intro__col--en .intro__title {
  font-size: clamp(2.2rem, 1.4rem + 2.8vw, 3.4rem);
}

.intro__text {
  margin-top: clamp(12px, 1.4vw, 18px);
  color: var(--text-soft);
}

.intro__col--ar .intro__text {
  font-size: clamp(1.1rem, 0.95rem + 0.6vw, 1.45rem);
  line-height: 1.72;
}

.intro__col--en .intro__text {
  font-size: clamp(1.02rem, 0.92rem + 0.45vw, 1.28rem);
  line-height: 1.58;
}

/* ---------- Scroll cue ---------- */

.scroll-cue-wrap {
  display: flex;
  justify-content: center;
  margin-top: clamp(36px, 5vw, 58px);
  padding-inline: var(--gutter);
}

.scroll-cue {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 18px;
  color: var(--lavender);
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.01em;
  text-align: center;
  transition: color 0.25s var(--ease);
}

.scroll-cue__text {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 6px;
}

.scroll-cue__sep { opacity: 0.6; }

.scroll-cue__icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(216, 180, 254, 0.26);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 0 18px -2px rgba(192, 132, 252, 0.35);
  color: var(--pink-soft);
  animation: float 2.6s ease-in-out infinite;
  transition: border-color 0.25s var(--ease), background-color 0.25s var(--ease);
}

.scroll-cue:hover { color: #fff; }

.scroll-cue:hover .scroll-cue__icon {
  border-color: rgba(232, 121, 249, 0.6);
  background: rgba(232, 121, 249, 0.1);
}

.scroll-cue:focus-visible { border-radius: 18px; }

/* ---------- Video ---------- */

.video {
  margin-top: clamp(12px, 1.4vw, 20px);
  scroll-margin-top: clamp(12px, 3vw, 28px);
}

/* Receives focus after the scroll cue is used; it is not itself interactive */
.video:focus { outline: none; }

.video__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
  padding-inline: 2px;
}

.video__label {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--lavender);
}

.video__label--en {
  font-size: 1rem;
  font-weight: 500;
}

.video__frame {
  position: relative;
  padding: var(--frame-pad);
  border-radius: clamp(18px, 2.4vw, 28px);
  background: linear-gradient(135deg, #d8b4fe 0%, #9b6cf7 30%, #7c3aed 60%, #b47cf6 100%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 0 50px -6px rgba(168, 85, 247, 0.55),
    0 40px 90px -30px rgba(8, 2, 24, 0.9);
}

.video__media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: calc(clamp(18px, 2.4vw, 28px) - var(--frame-pad));
  background: #0d0420;
}

.video__media video {
  width: 100%;
  height: 100%;
  object-fit: contain;               /* never crops a non-16:9 video or poster */
}

.video__media video::cue {
  font-family: var(--font);
  font-size: clamp(0.85rem, 0.6rem + 1vw, 1.25rem);
  line-height: 1.5;
  color: #fff;
  background: rgba(10, 3, 30, 0.6);
}

.video__fallback {
  position: absolute;
  inset-inline: 0;
  bottom: clamp(12px, 3vw, 28px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  margin-inline: auto;
  width: max-content;
  max-width: calc(100% - 24px);
  padding: 8px 18px;
  border: 1px solid var(--pill-border);
  border-radius: 14px;
  background: rgba(19, 6, 47, 0.72);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  font-size: clamp(0.78rem, 0.7rem + 0.35vw, 0.95rem);
  font-weight: 500;
  text-align: center;
  line-height: 1.5;
}

.video__fallback [lang="en"] { color: var(--lavender); font-size: 0.9em; }
.video__fallback[hidden] { display: none; }
.video__fallback-short { display: none; }

/* When the MP4 isn't available yet, show the poster without an empty player */
.video.is-unavailable .video__media {
  background: #1b0942 url("../assets/images/video-poster.jpg") center / cover no-repeat;
}
.video.is-unavailable video { visibility: hidden; }

/* ---------- Footer ---------- */

.footer {
  padding-block: clamp(40px, 6vw, 56px) clamp(24px, 4vw, 36px);
  text-align: center;
}

.footer__contacts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;                   /* comfortable touch target */
  padding: 6px 18px;
  border: 1px solid var(--pill-border);
  border-radius: 999px;
  background: var(--pill-bg);
  color: var(--text-soft);
  font-size: 0.95rem;
  font-weight: 500;
  transition: border-color 0.25s var(--ease), background-color 0.25s var(--ease), transform 0.25s var(--ease), color 0.25s var(--ease);
}

.pill__icon {
  flex: none;
  color: var(--accent);
}

.pill:hover {
  border-color: rgba(232, 121, 249, 0.6);
  background: rgba(232, 121, 249, 0.1);
  color: #fff;
  transform: translateY(-1px);
}

.pill:focus-visible { border-radius: 999px; }

.footer__copy [lang="en"] { white-space: nowrap; }

.footer__copy {
  margin-top: clamp(18px, 3vw, 26px);
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.8;
}

/* ---------- Motion ---------- */

.reveal {
  animation: rise 0.8s var(--ease) var(--d, 0s) both;
}

@keyframes rise {
  from { opacity: 0; transform: translate3d(0, 14px, 0); }
  to   { opacity: 1; transform: none; }
}

@keyframes ping {
  0%   { transform: scale(1);   opacity: 0.7; }
  70%,
  100% { transform: scale(2.8); opacity: 0; }
}

@keyframes float {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50%      { transform: translate3d(0, 7px, 0); }
}

@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(-3vw, 2.5vw, 0) scale(1.08); }
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }   /* used when JS is off; JS handles it otherwise */
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .badge__dot::after { display: none; }
}

/* ---------- Responsive ---------- */

/* Desktop/tablet: tighten vertical rhythm on shorter screens so the top of
   the video frame peeks above the fold on common laptop heights */
@media (min-width: 761px) {
  .band { padding-top: clamp(20px, min(4.5vw, 3.5vh), 48px); }
  .brand__logo { width: clamp(190px, min(29vw, 46vh), 419px); }
  .intro { margin-top: clamp(32px, min(6vw, 5.5vh), 64px); }
  .scroll-cue-wrap { margin-top: clamp(34px, calc(min(4vw, 3.5vh) + 14px), 58px); }
}

@media (max-width: 1023px) {
  .intro__text br { display: none; }
}

@media (max-width: 760px) {
  :root { --frame-pad: 5px; }

  .intro {
    grid-template-columns: 1fr;
    gap: 22px;
    margin-top: 32px;
    text-align: center;
  }

  .scroll-cue-wrap { margin-top: 32px; }

  .intro__col { align-items: center; }

  .intro__divider {
    width: 64%;
    height: 1px;
    justify-self: center;
    background: linear-gradient(90deg, transparent, var(--line), transparent);
  }

  .video__label { font-size: 0.85rem; }
  .video__label--en { font-size: 0.8rem; }

  .pill { font-size: 0.9rem; }

  /* Compact chip so it doesn't cover the poster slogan; full text stays for screen readers */
  .video__fallback {
    bottom: 8px;
    padding: 3px 12px;
    border-radius: 999px;
    font-size: 0.72rem;
    white-space: nowrap;
  }
  .video__fallback-full {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .video__fallback-short { display: inline; }
  .video__fallback-short [lang="en"] { font-size: 1em; }
}

@media (max-width: 380px) {
  .scroll-cue__text { flex-direction: column; }
  .scroll-cue__sep { display: none; }
  .scroll-cue { gap: 6px; }
  .footer__contacts { flex-direction: column; align-items: center; }
}
