@font-face {
  font-family: "IBM Plex Sans Arabic";
  src: url("assets/fonts/IBMPlexSansArabic-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Sans Arabic";
  src: url("assets/fonts/IBMPlexSansArabic-SemiBold.ttf") format("truetype");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Sans Arabic";
  src: url("assets/fonts/IBMPlexSansArabic-Bold.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --purple-950: #1b1128;
  --purple-900: #2e1b44;
  --purple-800: #4c2776;
  --purple-600: #6f4c93;
  --gold: #f0b83f;
  --teal: #2aa6a1;
  --white: #ffffff;
  --page-gutter: clamp(1.25rem, 4.25vw, 4.75rem);
}

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

html {
  min-width: 320px;
  min-height: 100%;
  background: var(--purple-950);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  min-width: 320px;
  min-height: 100%;
  margin: 0;
  overflow-x: hidden;
  background: var(--purple-950);
  color: var(--white);
  font-family: "IBM Plex Sans Arabic", "Noto Sans Arabic", Tahoma, Arial, sans-serif;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

p,
h1 {
  margin: 0;
}

::selection {
  background: rgb(240 184 63 / 28%);
  color: var(--white);
}

.launch-page {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 45%, rgb(76 39 118 / 22%) 0, transparent 34%),
    linear-gradient(148deg, #160d23 0%, var(--purple-950) 42%, #25143a 72%, #160d23 100%);
}

.launch-page::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(90deg, rgb(27 17 40 / 24%), transparent 21%, transparent 79%, rgb(27 17 40 / 24%)),
    linear-gradient(180deg, rgb(0 0 0 / 8%), transparent 25%, transparent 78%, rgb(0 0 0 / 18%));
  content: "";
  pointer-events: none;
}

.visual-field {
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
}

.visual-field::after {
  position: absolute;
  inset: 19% 13% 17%;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgb(27 17 40 / 72%) 0%, rgb(27 17 40 / 38%) 48%, transparent 76%);
  content: "";
  filter: blur(24px);
}

.flow-field {
  width: 100%;
  height: 100%;
  opacity: 0;
  transform: scale(1.025);
  animation: field-arrival 1.8s 0.15s cubic-bezier(0.2, 0.75, 0.25, 1) forwards;
}

.flow-lines {
  fill: none;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}

.flow-lines path {
  vector-effect: non-scaling-stroke;
}

.signal {
  opacity: 0;
}

.signal--halo {
  filter: url("#soft-glow");
}

.site-header {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  padding: clamp(2rem, 6.5vh, 5.2rem) var(--page-gutter) 1rem;
  animation: content-arrival 0.9s 0.05s cubic-bezier(0.2, 0.75, 0.25, 1) both;
}

.brand-lockup {
  display: flex;
  direction: rtl;
  align-items: center;
  justify-content: center;
  gap: clamp(1.25rem, 2.7vw, 2.6rem);
  width: min(100%, 59rem);
}

:root[lang="en"] .brand-lockup {
  direction: ltr;
}

.language-switch {
  position: absolute;
  z-index: 3;
  inset-block-start: clamp(1rem, 2.7vh, 1.8rem);
  right: auto;
  left: var(--page-gutter);
  min-width: 6.4rem;
  min-height: 2.65rem;
  padding: 0.55rem 1rem 0.62rem;
  border: 1px solid rgb(255 255 255 / 25%);
  border-radius: 0.4rem;
  background: rgb(255 255 255 / 6%);
  color: rgb(255 255 255 / 86%);
  font: 600 0.9rem/1 "IBM Plex Sans Arabic", "Segoe UI", Arial, sans-serif;
  letter-spacing: 0;
  cursor: pointer;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition:
    color 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease,
    transform 180ms ease;
}

:root[lang="en"] .language-switch {
  right: var(--page-gutter);
  left: auto;
}

.language-switch:hover {
  border-color: rgb(240 184 63 / 68%);
  background: rgb(255 255 255 / 10%);
  color: var(--white);
  transform: translateY(-1px);
}

.language-switch:focus-visible {
  outline: 3px solid rgb(42 166 161 / 68%);
  outline-offset: 3px;
}

.brand {
  display: block;
  flex: 0 1 auto;
}

.brand__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.brand--valley {
  width: clamp(10.25rem, 19.8vw, 19rem);
  aspect-ratio: 322 / 143;
}

.brand--university {
  width: clamp(14.8rem, 26vw, 25rem);
  aspect-ratio: 690 / 158;
}

.brand-lockup__divider {
  flex: 0 0 1px;
  width: 1px;
  height: clamp(3.25rem, 7.1vw, 6.8rem);
  background: linear-gradient(180deg, transparent, rgb(255 255 255 / 56%) 24%, rgb(255 255 255 / 56%) 76%, transparent);
}

.launch-content {
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  width: min(100%, 82rem);
  margin-inline: auto;
  padding: clamp(2rem, 5vh, 4.5rem) var(--page-gutter) clamp(4.6rem, 8vh, 7rem);
  text-align: center;
  transform: translateY(clamp(-4rem, -6.2vh, -2.8rem));
}

.launch-title {
  display: grid;
  gap: clamp(0.6rem, 1.5vh, 1.15rem);
  width: 100%;
  color: var(--white);
  font-size: clamp(3rem, 5.45vw, 5.65rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.3;
  text-wrap: balance;
}

:root[lang="en"] .launch-title {
  direction: ltr;
  gap: clamp(0.75rem, 1.8vh, 1.35rem);
  font-size: clamp(2.8rem, 5vw, 5.05rem);
  letter-spacing: -0.045em;
  line-height: 1.13;
}

.launch-title__primary,
.launch-title__accent {
  animation: title-arrival 1s cubic-bezier(0.2, 0.75, 0.25, 1) both;
}

.launch-title__primary {
  font-size: 1.025em;
  animation-delay: 0.18s;
  text-shadow: 0 8px 42px rgb(8 3 15 / 46%);
}

:root[lang="en"] .launch-title__primary {
  font-size: 1em;
}

.launch-title__accent {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1rem, 2.7vw, 2.3rem);
  color: var(--gold);
  font-size: 0.76em;
  font-weight: 500;
  animation-delay: 0.28s;
}

:root[lang="en"] .launch-title__accent {
  font-size: 0.64em;
  letter-spacing: -0.025em;
}

.accent-rule {
  flex: 0 1 clamp(3.4rem, 8vw, 8.5rem);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
  box-shadow: 0 0 12px rgb(240 184 63 / 18%);
}

.accent-rule:last-child {
  background: linear-gradient(90deg, var(--gold), transparent);
}

.launch-status {
  margin-top: clamp(2.4rem, 5vh, 4.6rem);
  color: rgb(255 255 255 / 88%);
  font-size: clamp(1.35rem, 2.45vw, 2.45rem);
  font-weight: 400;
  line-height: 1.6;
  animation: content-arrival 0.9s 0.5s cubic-bezier(0.2, 0.75, 0.25, 1) both;
}

.launch-contact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.55rem, 1vw, 0.8rem);
  max-width: 100%;
  margin-top: clamp(1.3rem, 2.6vh, 1.9rem);
  padding: clamp(0.65rem, 1.2vh, 0.82rem) clamp(0.9rem, 1.7vw, 1.3rem);
  border: 1px solid rgb(240 184 63 / 26%);
  border-radius: 999px;
  background: linear-gradient(135deg, rgb(240 184 63 / 9%), rgb(255 255 255 / 3%));
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 7%), 0 10px 36px rgb(8 3 15 / 16%);
  color: inherit;
  font-size: clamp(0.88rem, 1.15vw, 1.04rem);
  line-height: 1.4;
  text-decoration: none;
  animation: content-arrival 0.9s 0.6s cubic-bezier(0.2, 0.75, 0.25, 1) both;
  transition: border-color 180ms ease, background-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.launch-contact:hover {
  border-color: rgb(240 184 63 / 55%);
  background: linear-gradient(135deg, rgb(240 184 63 / 14%), rgb(255 255 255 / 5%));
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 9%), 0 12px 40px rgb(240 184 63 / 9%);
  transform: translateY(-1px);
}

.launch-contact:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 0.32rem;
}

.launch-contact__icon {
  display: grid;
  flex: 0 0 auto;
  width: 1.45rem;
  height: 1.45rem;
  place-items: center;
  color: var(--gold);
}

.launch-contact__icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.launch-contact__label {
  color: rgb(255 255 255 / 72%);
  white-space: nowrap;
}

.launch-contact__divider {
  flex: 0 0 1px;
  width: 1px;
  height: 1.05rem;
  background: rgb(240 184 63 / 34%);
}

.launch-contact__email {
  color: var(--gold);
  font-weight: 500;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.site-footer {
  z-index: 1;
  padding: 0 var(--page-gutter) max(1.35rem, env(safe-area-inset-bottom));
  color: rgb(255 255 255 / 73%);
  font-size: clamp(0.78rem, 1.05vw, 0.96rem);
  font-weight: 400;
  line-height: 1.7;
  text-align: center;
  animation: content-arrival 0.9s 0.7s cubic-bezier(0.2, 0.75, 0.25, 1) both;
}

@keyframes field-arrival {
  from {
    opacity: 0;
    transform: scale(1.055);
  }

  to {
    opacity: 1;
    transform: scale(1.025);
  }
}

@keyframes title-arrival {
  from {
    opacity: 0;
    transform: translateY(1.1rem);
    filter: blur(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@keyframes content-arrival {
  from {
    opacity: 0;
    transform: translateY(0.6rem);
  }

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

@media (max-width: 760px) {
  .launch-page {
    min-height: 100svh;
  }

  .site-header {
    padding-top: clamp(1.5rem, 5.4vh, 2.8rem);
  }

  .language-switch {
    inset-block-start: 0.85rem;
    min-width: 5.35rem;
    min-height: 2.35rem;
    padding: 0.45rem 0.75rem 0.52rem;
    font-size: 0.8rem;
  }

  .brand-lockup {
    gap: clamp(0.65rem, 3vw, 1rem);
  }

  .brand--valley {
    width: clamp(6.8rem, 33vw, 9.2rem);
  }

  .brand--university {
    width: clamp(9.2rem, 43vw, 12.6rem);
  }

  .brand-lockup__divider {
    height: clamp(2.5rem, 13vw, 3.75rem);
  }

  .launch-content {
    justify-content: center;
    padding-top: clamp(2.4rem, 8vh, 4.75rem);
    padding-bottom: clamp(4rem, 11vh, 6.5rem);
    transform: none;
  }

  .launch-title {
    gap: 0.75rem;
    max-width: 40rem;
    font-size: clamp(2.6rem, 11.8vw, 4.7rem);
    letter-spacing: -0.025em;
    line-height: 1.35;
  }

  .launch-title__primary {
    max-width: 11ch;
    margin-inline: auto;
  }

  .launch-title__accent {
    gap: clamp(0.75rem, 3vw, 1.2rem);
    font-size: 0.67em;
  }

  :root[lang="en"] .launch-title {
    max-width: 22rem;
    font-size: clamp(2.25rem, 10.4vw, 3.2rem);
    line-height: 1.14;
  }

  :root[lang="en"] .launch-title__primary {
    max-width: 10.5ch;
  }

  :root[lang="en"] .launch-title__accent {
    font-size: 0.57em;
    line-height: 1.25;
  }

  .accent-rule {
    flex-basis: clamp(1.9rem, 9vw, 3.5rem);
  }

  .launch-status {
    margin-top: clamp(2.2rem, 5.2vh, 3.5rem);
  }

  .launch-contact {
    gap: 0.52rem;
    padding-inline: 0.82rem;
    font-size: clamp(0.79rem, 3.5vw, 0.92rem);
  }

  .launch-contact__icon {
    width: 1.25rem;
    height: 1.25rem;
  }

  .visual-field::after {
    inset: 22% 3% 19%;
  }
}

@media (max-width: 390px) {
  .brand--valley {
    width: 6.25rem;
  }

  .brand--university {
    width: 8.4rem;
  }

  .launch-title {
    font-size: clamp(2.3rem, 11.5vw, 2.8rem);
  }

  .launch-title__accent {
    font-size: 0.64em;
  }

  :root[lang="en"] .launch-title {
    font-size: clamp(2.05rem, 10vw, 2.45rem);
  }

  :root[lang="en"] .launch-title__accent {
    font-size: 0.58em;
  }
}

@media (max-height: 700px) and (min-width: 761px) {
  .site-header {
    padding-top: 1.6rem;
  }

  .brand--valley {
    width: 10.5rem;
  }

  .brand--university {
    width: 15rem;
  }

  .brand-lockup__divider {
    height: 3.6rem;
  }

  .launch-content {
    padding-block: 1.5rem 3rem;
    transform: translateY(-1rem);
  }

  .launch-title {
    font-size: clamp(2.8rem, 6.4vh, 4.2rem);
  }

  .launch-status {
    margin-top: 1.8rem;
  }
}

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

  .signal-lights {
    display: none;
  }
}
