:root {
  --black: #020106;
  --ink: #07030e;
  --white: #f8f6fb;
  --muted: #aaa3b5;
  --violet: #8b19ff;
  --magenta: #d233ff;
  --line: rgba(255, 255, 255, 0.14);
}

* { box-sizing: border-box; }

html, body { min-height: 100%; }

body {
  margin: 0;
  color: var(--white);
  background: var(--black);
  font-family: "Barlow Condensed", sans-serif;
  overflow-x: hidden;
}

button, a { font: inherit; }

.launch {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 42%, rgba(102, 0, 216, 0.16), transparent 36%),
    linear-gradient(180deg, #030108 0%, #07020d 56%, #020106 100%);
}

.launch::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(90deg, transparent 49.9%, rgba(255,255,255,.025) 50%, transparent 50.1%),
    linear-gradient(0deg, transparent 49.9%, rgba(255,255,255,.018) 50%, transparent 50.1%);
  background-size: 80px 80px;
  mask-image: linear-gradient(to bottom, black, transparent 75%);
}

.topbar, .footer {
  width: min(100% - 48px, 1420px);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 5;
}

.topbar {
  padding-block: 24px;
  border-bottom: 1px solid var(--line);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  text-decoration: none;
  font-weight: 800;
  font-style: italic;
  letter-spacing: .14em;
  font-size: .88rem;
}

.brand-dot {
  width: 9px;
  height: 9px;
  border: 2px solid var(--magenta);
  border-radius: 50%;
  box-shadow: 0 0 14px var(--violet);
}

.language {
  color: #d8d2df;
  background: transparent;
  border: 0;
  padding: 8px 0 8px 18px;
  cursor: pointer;
  letter-spacing: .06em;
  font-family: "Tajawal", sans-serif;
  font-size: .8rem;
  transition: color .2s ease;
}

.language:hover { color: var(--magenta); }
.language:focus-visible { outline: 2px solid var(--magenta); outline-offset: 6px; }

.hero {
  width: min(100% - 40px, 1100px);
  margin: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-block: 34px 28px;
}

.status {
  margin: 0 0 18px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #c6bfce;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
}

.status span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--magenta);
  box-shadow: 0 0 10px var(--magenta);
  animation: blink 1.7s ease-in-out infinite;
}

.logo-stage {
  width: min(860px, 90vw);
  position: relative;
}

.logo-stage::after {
  content: "";
  position: absolute;
  inset: 8% 5%;
  background: linear-gradient(90deg, transparent, rgba(146, 26, 255, .14), transparent);
  filter: blur(30px);
  z-index: -1;
}

.logo-stage img {
  display: block;
  width: 100%;
  height: auto;
  mix-blend-mode: screen;
  filter: drop-shadow(0 18px 45px rgba(78, 0, 142, .25));
  -webkit-mask-image: radial-gradient(ellipse 74% 68% at center, #000 68%, transparent 100%);
  mask-image: radial-gradient(ellipse 74% 68% at center, #000 68%, transparent 100%);
  animation: reveal 1.1s cubic-bezier(.2,.7,.2,1) both;
}

.pulse {
  position: absolute;
  left: 24.8%;
  top: 50%;
  translate: -50% -50%;
  aspect-ratio: 1;
  border: 1px solid rgba(193, 78, 255, .28);
  border-radius: 50%;
  pointer-events: none;
}

.pulse--outer { width: 38%; animation: orbit 5s ease-out infinite; }
.pulse--inner { width: 31%; animation: orbit 5s 1.2s ease-out infinite; }

.message { margin-top: clamp(30px, 3.5vw, 52px); }

.eyebrow {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: clamp(.7rem, 1.2vw, .84rem);
  text-transform: uppercase;
  letter-spacing: .26em;
  font-weight: 600;
}

h1 {
  margin: 0;
  color: var(--white);
  font-size: clamp(3.2rem, 8vw, 6.8rem);
  line-height: .88;
  letter-spacing: -.02em;
  font-weight: 800;
  font-style: italic;
  text-shadow: 0 1px 0 rgba(255,255,255,.4);
}

h1 em {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--magenta);
  text-shadow: 0 0 24px rgba(160, 18, 255, .32);
}

.intro {
  max-width: 500px;
  margin: 16px auto 0;
  color: #aaa3b5;
  font-family: "Tajawal", sans-serif;
  font-size: clamp(.85rem, 1.6vw, 1rem);
  line-height: 1.7;
}

.footer {
  min-height: 74px;
  border-top: 1px solid var(--line);
  color: #8f8799;
  font-size: .7rem;
  letter-spacing: .2em;
}

.footer strong { color: var(--magenta); font-weight: 700; }
.footer p { margin: 0; }
.domain { color: #bbb4c5; font-weight: 700; }

.match-line {
  position: absolute;
  left: 50%;
  top: 0;
  translate: -50% -50%;
  display: flex;
  align-items: center;
  gap: 8px;
}

.match-line span { display: block; width: 36px; height: 1px; background: var(--violet); }
.match-line i { width: 5px; height: 5px; rotate: 45deg; background: var(--magenta); box-shadow: 0 0 12px var(--magenta); }

.atmosphere, .grain { position: absolute; inset: 0; z-index: -1; pointer-events: none; }

.beam {
  position: absolute;
  width: 1px;
  height: 70vh;
  top: -10vh;
  background: linear-gradient(to bottom, rgba(207,75,255,.45), transparent);
  filter: blur(.3px);
  transform-origin: top;
  opacity: .35;
}

.beam--one { left: 15%; rotate: -17deg; }
.beam--two { right: 18%; rotate: 15deg; }
.beam--three { left: 50%; opacity: .15; }

.grain {
  opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.75'/%3E%3C/svg%3E");
}

html[dir="rtl"] body { font-family: "Tajawal", sans-serif; }
html[dir="rtl"] .brand-mark, html[dir="rtl"] .domain { font-family: "Barlow Condensed", sans-serif; }
html[dir="rtl"] h1 { font-family: "Tajawal", sans-serif; font-style: normal; letter-spacing: -.07em; }
html[dir="rtl"] h1 em { font-style: normal; }
html[dir="rtl"] .status, html[dir="rtl"] .eyebrow { letter-spacing: .08em; }

@keyframes reveal {
  from { opacity: 0; transform: scale(.96); filter: blur(10px); }
  to { opacity: 1; transform: scale(1); filter: blur(0) drop-shadow(0 18px 45px rgba(78, 0, 142, .25)); }
}

@keyframes orbit {
  0% { scale: .84; opacity: 0; }
  24% { opacity: .8; }
  100% { scale: 1.28; opacity: 0; }
}

@keyframes blink { 50% { opacity: .35; scale: .75; } }

@media (max-width: 700px) {
  .topbar, .footer { width: calc(100% - 32px); }
  .topbar { padding-block: 18px; }
  .hero { width: calc(100% - 24px); padding-block: 24px 20px; }
  .logo-stage { width: 100%; }
  .status { margin-bottom: 8px; font-size: .62rem; letter-spacing: .15em; }
  .message { margin-top: 32px; }
  .intro { max-width: 340px; margin-top: 13px; }
  .footer { min-height: 62px; }
  .footer > p:first-child { display: none; }
  .domain { margin-inline: auto !important; }
}

@media (max-height: 650px) and (min-width: 701px) {
  .logo-stage { width: min(620px, 70vw); }
  h1 { font-size: clamp(3rem, 8vh, 4.8rem); }
  .intro { margin-top: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
