:root {
  --ink: #0c0a26;
  --ink-2: #14113a;
  --navy: #28245d;
  --navy-lit: #4a459a;
  --crimson: #c82051;
  --lavender: #7f7cc3;
  --cyan: #5fccf3;
  --paper: #ecebfa;
  --muted: #a7a4d6;
  --font: 'Alexandria', system-ui, sans-serif;
  --gutter: clamp(16px, 4vw, 56px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0;
  min-height: 100svh;
  font-family: var(--font);
  color: var(--paper);
  background:
    radial-gradient(60vmax 60vmax at 22% 38%, #1d1957 0%, transparent 60%),
    radial-gradient(40vmax 40vmax at 90% 110%, rgba(200, 32, 81, .18) 0%, transparent 60%),
    var(--ink);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
::selection { background: var(--cyan); color: var(--ink); }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 8px; }
a { color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.noise {
  position: fixed; inset: 0; pointer-events: none; z-index: 50; opacity: .06; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%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)'/%3E%3C/svg%3E");
}

/* ---------- top ---------- */
.top {
  position: relative; z-index: 5;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: calc(14px + env(safe-area-inset-top)) var(--gutter) 0;
}
.brand img { display: block; height: clamp(54px, 6.4vw, 76px); width: auto; }
.top-meta { display: flex; align-items: center; gap: 14px; }
.live { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.live i { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 0 rgba(95, 204, 243, .6); animation: ping 2s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(95, 204, 243, .55); } 80%, 100% { box-shadow: 0 0 0 10px rgba(95, 204, 243, 0); } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 999px;
  font: 600 16px/1 var(--font); text-decoration: none; cursor: pointer; border: 0;
  transition: transform .25s cubic-bezier(.2, .8, .2, 1), background .25s, color .25s, border-color .25s;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--paper); color: var(--ink); }
.btn-primary:hover { background: var(--cyan); }
.btn-primary span[aria-hidden] { transition: transform .25s; }
.btn-primary:hover span[aria-hidden] { transform: translateX(-4px); }
.btn-ghost { background: transparent; color: var(--paper); border: 1px solid rgba(236, 235, 250, .22); }
.btn-ghost:hover { border-color: var(--paper); background: rgba(236, 235, 250, .06); }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: 14px; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: clamp(8px, 3vw, 48px);
  min-height: calc(100svh - 150px);
  padding: 12px var(--gutter) 40px;
  max-width: 1400px; margin: 0 auto;
}
.copy { position: relative; z-index: 2; }
.kicker { margin: 0 0 22px; font-size: 14px; letter-spacing: .02em; color: var(--muted); }
.kicker span { color: var(--cyan); font-weight: 600; letter-spacing: .18em; }

h1 {
  margin: 0; font-weight: 800; line-height: 1.12;
  font-size: clamp(2.5rem, 6.6vw, 6.2rem);
  letter-spacing: -.01em;
}
h1 .line { display: block; overflow: hidden; padding: .06em 0 .22em; margin-bottom: -.16em; white-space: nowrap; }
h1 .line > span { display: block; transform: translateY(105%); animation: rise 1.2s cubic-bezier(.2, .8, .2, 1) forwards; }
h1 .line:nth-child(2) > span { animation-delay: .12s; }
h1 em {
  font-style: normal;
  background: linear-gradient(100deg, var(--cyan), var(--lavender) 45%, var(--crimson));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
@keyframes rise { to { transform: none; } }

.lead { margin: 26px 0 0; max-width: 34rem; font-size: clamp(1.02rem, 1.4vw, 1.2rem); line-height: 1.9; color: rgba(236, 235, 250, .78); font-weight: 300; }
.lead b { color: var(--paper); font-weight: 600; }

.status { margin-top: 30px; max-width: 26rem; }
.status .bar { position: relative; height: 3px; border-radius: 3px; background: rgba(127, 124, 195, .22); overflow: hidden; }
.status .bar i {
  position: absolute; inset: 0 auto 0 0; width: 38%; border-radius: 3px;
  background: linear-gradient(90deg, var(--crimson), var(--lavender), var(--cyan));
  animation: scan 2.6s cubic-bezier(.6, 0, .4, 1) infinite;
}
@keyframes scan { 0% { transform: translateX(-110%); } 100% { transform: translateX(290%); } }
.status p { margin: 12px 0 0; display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); min-height: 1.6em; }
.status .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--crimson); flex: none; }
#status-text { transition: opacity .35s, transform .35s; }
#status-text.out { opacity: 0; transform: translateY(6px); }

.ctas { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }

.stage { position: relative; aspect-ratio: 1; width: 100%; max-width: 640px; justify-self: center; }
#sphere { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: pan-y; }
.ring { position: absolute; border-radius: 50%; pointer-events: none; border: 1px solid rgba(127, 124, 195, .18); }
.ring.r1 { inset: 3%; }
.ring.r2 { inset: -6%; border-style: dashed; border-color: rgba(127, 124, 195, .12); animation: spin 90s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- ticker ---------- */
.ticker { border-block: 1px solid rgba(127, 124, 195, .18); overflow: hidden; direction: ltr; }
.ticker .track { display: flex; width: max-content; animation: marquee 48s linear infinite; }
.ticker ul { display: flex; margin: 0; padding: 0; list-style: none; direction: rtl; }
.ticker li {
  display: flex; align-items: center; gap: 28px; padding: 22px 0 22px 28px;
  font-size: clamp(1.1rem, 2.2vw, 1.6rem); font-weight: 500; white-space: nowrap; color: rgba(236, 235, 250, .85);
}
.ticker li::after { content: ''; width: 3px; height: 26px; border-radius: 3px; background: var(--navy-lit); }
.ticker li.c1::after { background: var(--crimson); }
.ticker li.c2::after { background: var(--cyan); }
.ticker li.c3::after { background: var(--lavender); }
/* Arabic reading flow: names travel left → right */
@keyframes marquee { from { transform: translateX(-50%); } to { transform: translateX(0); } }

/* ---------- notify ---------- */
.notify {
  max-width: 1400px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 28px 48px; align-items: end;
  padding: clamp(56px, 9vw, 110px) var(--gutter);
}
.notify h2 { margin: 0; font-weight: 700; font-size: clamp(2rem, 4.4vw, 3.6rem); line-height: 1.2; }
.muted { color: var(--muted); font-weight: 300; line-height: 1.8; margin: 14px 0 0; }
.notify-form { position: relative; width: 100%; }
.field {
  display: flex; gap: 8px; padding: 6px; border-radius: 999px;
  background: rgba(236, 235, 250, .06); border: 1px solid rgba(236, 235, 250, .14);
  transition: border-color .25s, background .25s;
}
.field:focus-within { border-color: var(--cyan); background: rgba(236, 235, 250, .09); }
.field input {
  flex: 1; min-width: 0; min-height: 50px; padding: 0 18px; border: 0; outline: 0; background: transparent;
  color: var(--paper); font: 400 16px var(--font); text-align: right;
}
.field input::placeholder { color: rgba(167, 164, 214, .6); }
.field .btn { min-height: 50px; }
.notify-form.sending .btn { opacity: .7; cursor: wait; }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); opacity: 0; pointer-events: none; }
.form-msg { margin: 12px 8px 0; min-height: 1.5em; font-size: 14px; color: var(--muted); }
.form-msg.ok { color: var(--cyan); }
.form-msg.err { color: #ff7a9c; }
.dock { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 420px)); justify-content: start; gap: 12px; margin-top: 8px; }
.dock-item {
  position: relative; display: flex; align-items: center; gap: 14px; min-height: 84px; padding: 16px 18px;
  border-radius: 20px; text-decoration: none; overflow: hidden;
  background: linear-gradient(160deg, rgba(236, 235, 250, .07), rgba(236, 235, 250, .02));
  border: 1px solid rgba(127, 124, 195, .22);
  transition: border-color .3s, transform .3s cubic-bezier(.2, .8, .2, 1), background .3s;
}
.dock-item::before { content: ''; position: absolute; inset-block: 18px; inset-inline-start: 0; width: 3px; border-radius: 3px; background: var(--lavender); transition: inset-block .3s; }
.dock-item:nth-child(2)::before { background: var(--cyan); }
.dock-item.wa::before { background: #3ddc84; }
.dock-item:hover { transform: translateY(-3px); border-color: rgba(236, 235, 250, .35); background: linear-gradient(160deg, rgba(236, 235, 250, .11), rgba(236, 235, 250, .03)); }
.dock-item:hover::before { inset-block: 0; }
.ico { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: rgba(127, 124, 195, .16); color: var(--paper); }
.ico svg { width: 22px; height: 22px; }
.wa .ico { background: rgba(61, 220, 132, .14); color: #3ddc84; }
.txt { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.txt small { font-size: 12px; color: var(--muted); }
.txt b { font-weight: 600; font-size: 16px; letter-spacing: .02em; color: var(--paper); white-space: nowrap; font-feature-settings: 'tnum' 1; text-align: right; }

/* ---------- footer ---------- */
.foot { padding: 0 var(--gutter) calc(28px + env(safe-area-inset-bottom)); max-width: 1400px; margin: 0 auto; }
.foot-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 28px 0 22px; border-top: 1px solid rgba(127, 124, 195, .18); }
.foot-logo { height: 58px; width: auto; opacity: .92; }
.social { display: flex; gap: 10px; }
.social a {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  color: var(--paper); border: 1px solid rgba(127, 124, 195, .3); transition: background .25s, color .25s, border-color .25s, transform .25s;
}
.social a:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); transform: translateY(-2px); }
.social svg { width: 20px; height: 20px; }
.copy-line { margin: 0; font-size: 13px; color: var(--muted); text-align: center; line-height: 1.8; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: 0; padding-top: 0; gap: 0; }
  .stage { order: -1; width: min(86vw, 420px); margin: -4px auto -12px; }
  .copy { text-align: right; }
  .notify { grid-template-columns: 1fr; }
  .live { display: none; }
}
@media (max-width: 480px) {
  .ctas .btn { flex: 1 1 100%; }
  .field { flex-direction: column; border-radius: 22px; }
  .field .btn { width: 100%; }
  .dock { grid-template-columns: 1fr; margin-top: 0; }
  .notify { gap: 20px; }
  .foot-inner { flex-direction: column; gap: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  h1 .line > span { transform: none; }
}
