/* LEKANDO landing — glass, gloss and light. Animations use transform/opacity only;
   everything calms down under prefers-reduced-motion. No external fonts, no images. */
:root {
  --ink: #02100f;
  --deep: #03181b;
  --teal: #0c3b40;
  --aqua: #087f86;
  --neon: #3ff3e6;
  --gold: #e9c37a;
  --gold-2: #b78a44;
  --text: #ecfffd;
  --muted: #9cc9c5;
  --glass: rgba(255, 255, 255, .06);
  --glass-edge: rgba(255, 255, 255, .16);
  --danger: #ff8a8a;
  --ok: #7dffcf;
  --radius: 22px;
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-ar: "Segoe UI", "Geeza Pro", "Noto Kufi Arabic", "Noto Sans Arabic", Tahoma, sans-serif;
  --mx: 50vw;
  --my: 40vh;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
html { background: var(--ink); color-scheme: dark; }
body {
  min-height: 100svh;
  background: radial-gradient(120% 90% at 50% 0%, #06343a 0%, var(--deep) 45%, var(--ink) 100%);
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
[lang="ar"] { font-family: var(--font-ar); }
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------------- Loader ---------------- */
.loader {
  position: fixed; inset: 0; z-index: 50;
  display: grid; place-items: center;
  background: radial-gradient(80% 60% at 50% 50%, #052a2e 0%, var(--ink) 75%);
  /* Self-dismisses even if JavaScript never runs. */
  animation: loader-out .7s cubic-bezier(.7, 0, .2, 1) 2.6s forwards;
}
.loader.done { animation: loader-out .7s cubic-bezier(.7, 0, .2, 1) forwards; }
.loader-core { width: min(560px, 82vw); text-align: center; position: relative; z-index: 2; transition: opacity .35s, transform .5s; }
.loader.done .loader-core { opacity: 0; transform: scale(1.08); }
.loader-wm { width: 100%; height: auto; overflow: visible; }
.loader-wm use { fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.loader-wm .draw { stroke: url(#g-neon); stroke-width: 7; animation: draw 1.6s cubic-bezier(.6, .05, .25, 1) .15s forwards; }
.loader-wm .draw-glow { stroke: var(--neon); stroke-width: 16; opacity: .25; filter: blur(6px); animation: draw 1.6s cubic-bezier(.6, .05, .25, 1) .15s forwards, pulse 1.2s ease-in-out 1.7s infinite; }
.loader-bar { margin: 26px auto 12px; height: 2px; width: 70%; background: rgba(255, 255, 255, .08); border-radius: 2px; overflow: hidden; }
.loader-bar i { display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--neon), var(--gold)); box-shadow: 0 0 12px var(--neon); animation: bar 2.2s cubic-bezier(.4, 0, .2, 1) forwards; }
.loader-txt { margin: 0; display: flex; justify-content: center; gap: 14px; font-size: 12px; letter-spacing: .35em; color: var(--muted); }
.loader-txt [lang="ar"] { letter-spacing: 0; font-size: 13px; }
.loader-txt b { color: var(--gold); font-weight: 600; letter-spacing: .1em; min-width: 4ch; font-variant-numeric: tabular-nums; }
.curtain { position: absolute; inset-inline: 0; height: 50.5%; background: var(--ink); z-index: 1; transition: transform .8s cubic-bezier(.8, 0, .2, 1) .15s; }
.c1 { top: 0; } .c2 { bottom: 0; }
.loader.done .c1 { transform: translateY(-101%); }
.loader.done .c2 { transform: translateY(101%); }
.loader.done { background: transparent; }

@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pulse { 50% { opacity: .55; } }
@keyframes bar { 0% { transform: scaleX(0); } 60% { transform: scaleX(.75); } 100% { transform: scaleX(1); } }
@keyframes loader-out { to { opacity: 0; visibility: hidden; } }

/* ---------------- Background ---------------- */
.bg { position: fixed; inset: 0; overflow: hidden; z-index: 0; pointer-events: none; }
.aurora { position: absolute; width: 70vmax; height: 70vmax; border-radius: 50%; filter: blur(80px); opacity: .5; mix-blend-mode: screen; }
.a1 { background: radial-gradient(circle, #0fb5ab 0%, transparent 60%); top: -35vmax; inset-inline-start: -20vmax; animation: drift1 22s ease-in-out infinite alternate; }
.a2 { background: radial-gradient(circle, #b78a44 0%, transparent 60%); bottom: -40vmax; inset-inline-end: -25vmax; opacity: .35; animation: drift2 26s ease-in-out infinite alternate; }
.a3 { background: radial-gradient(circle, #1d6bff 0%, transparent 60%); top: 20vh; inset-inline-start: 30vw; width: 45vmax; height: 45vmax; opacity: .18; animation: drift1 30s ease-in-out infinite alternate-reverse; }
@keyframes drift1 { to { transform: translate3d(12vw, 10vh, 0) scale(1.15); } }
@keyframes drift2 { to { transform: translate3d(-10vw, -12vh, 0) scale(1.1); } }

.spot { position: absolute; width: 520px; height: 520px; left: 0; top: 0; border-radius: 50%;
  background: radial-gradient(circle, rgba(63, 243, 230, .13), transparent 65%);
  transform: translate3d(calc(var(--mx) - 260px), calc(var(--my) - 260px), 0); transition: transform .25s ease-out; }

.ghost { position: absolute; width: 150vw; max-width: none; left: 50%; top: 50%; transform: translate(-50%, -50%); overflow: visible; }
.ghost use { fill: none; stroke: rgba(63, 243, 230, .07); stroke-width: 1.2; stroke-linejoin: round; }
.ghost { animation: ghost 40s linear infinite; }
.ghost-2 { width: 110vw; top: 18%; opacity: .7; animation-duration: 55s; animation-direction: reverse; }
.ghost-2 use { stroke: rgba(233, 195, 122, .08); }
@keyframes ghost { 0% { transform: translate(-46%, -50%); } 50% { transform: translate(-54%, -48%); } 100% { transform: translate(-46%, -50%); } }

.letters { position: absolute; inset: 0; }
.letters span {
  position: absolute; font-weight: 900; line-height: 1; color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, .09);
  font-size: clamp(90px, 18vw, 260px);
  animation: float 14s ease-in-out infinite;
}
.letters span:nth-child(1) { top: 6%; inset-inline-start: 4%; animation-delay: -2s; }
.letters span:nth-child(2) { top: 62%; inset-inline-start: 8%; animation-delay: -6s; -webkit-text-stroke-color: rgba(233, 195, 122, .1); }
.letters span:nth-child(3) { top: 12%; inset-inline-end: 6%; animation-delay: -4s; }
.letters span:nth-child(4) { top: 70%; inset-inline-end: 10%; animation-delay: -9s; -webkit-text-stroke-color: rgba(63, 243, 230, .12); }
.letters span:nth-child(5) { top: 38%; inset-inline-start: -2%; animation-delay: -11s; font-size: clamp(70px, 12vw, 180px); }
.letters span:nth-child(6) { top: 40%; inset-inline-end: -1%; animation-delay: -7s; font-size: clamp(70px, 12vw, 180px); }
.letters span:nth-child(7) { top: -4%; inset-inline-start: 44%; animation-delay: -3s; font-size: clamp(60px, 10vw, 150px); -webkit-text-stroke-color: rgba(233, 195, 122, .08); }
@keyframes float { 0%, 100% { transform: translate3d(0, 0, 0) rotate(-3deg); } 50% { transform: translate3d(0, -26px, 0) rotate(3deg); } }

.shard { position: absolute; border-radius: 18px; border: 1px solid rgba(255, 255, 255, .12);
  background: linear-gradient(135deg, rgba(255, 255, 255, .10), rgba(255, 255, 255, .01));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), 0 20px 50px rgba(0, 0, 0, .35); }
.s1 { width: 120px; height: 160px; top: 16%; inset-inline-start: 14%; transform: rotate(-18deg); animation: orbit 18s ease-in-out infinite; }
.s2 { width: 80px; height: 80px; top: 22%; inset-inline-end: 18%; transform: rotate(24deg); animation: orbit 22s ease-in-out infinite reverse; }
.s3 { width: 150px; height: 90px; bottom: 22%; inset-inline-start: 20%; transform: rotate(12deg); animation: orbit 26s ease-in-out infinite; }
.s4 { width: 60px; height: 110px; bottom: 26%; inset-inline-end: 16%; transform: rotate(-30deg); animation: orbit 20s ease-in-out infinite reverse; }
@keyframes orbit { 50% { translate: 0 -30px; rotate: 14deg; } }

.floor { position: absolute; inset-inline: -50%; bottom: -10%; height: 55%; perspective: 420px; }
.grid { position: absolute; inset: 0;
  background-image: linear-gradient(rgba(63, 243, 230, .22) 1px, transparent 1px), linear-gradient(90deg, rgba(63, 243, 230, .22) 1px, transparent 1px);
  background-size: 64px 64px;
  transform: rotateX(70deg); transform-origin: 50% 0;
  mask-image: linear-gradient(to bottom, transparent 0%, #000 35%, #000 70%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 35%, #000 70%, transparent 100%);
  animation: grid 3.2s linear infinite; }
@keyframes grid { to { background-position: 0 64px, 0 0; } }

.beam { position: absolute; top: -20%; width: 28vw; height: 140%; background: linear-gradient(180deg, rgba(63, 243, 230, .16), transparent 70%); filter: blur(18px); transform-origin: 50% 0; }
.b1 { inset-inline-start: 12%; transform: rotate(18deg); animation: sweep 9s ease-in-out infinite alternate; }
.b2 { inset-inline-end: 12%; transform: rotate(-18deg); background: linear-gradient(180deg, rgba(233, 195, 122, .14), transparent 70%); animation: sweep 11s ease-in-out infinite alternate-reverse; }
@keyframes sweep { from { rotate: -8deg; opacity: .5; } to { rotate: 8deg; opacity: 1; } }

.grain { position: absolute; inset: 0; opacity: .06;
  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='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* ---------------- Stage ---------------- */
.stage {
  position: relative; z-index: 2;
  min-height: 100svh;
  display: grid; grid-template-rows: 1fr auto auto; align-items: center; justify-items: center;
  gap: clamp(22px, 4vh, 40px);
  padding: max(28px, env(safe-area-inset-top)) 16px max(20px, env(safe-area-inset-bottom));
  text-align: center;
}
.brand { display: grid; justify-items: center; gap: 14px; align-self: end; }

.mark { position: relative; width: 74px; height: 74px; border-radius: 22px; overflow: hidden;
  background: linear-gradient(145deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .02));
  border: 1px solid var(--glass-edge);
  box-shadow: 0 0 0 1px rgba(63, 243, 230, .15), 0 10px 40px rgba(8, 127, 134, .45), inset 0 1px 0 rgba(255, 255, 255, .35);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  animation: rise .9s cubic-bezier(.2, .8, .2, 1) both; animation-delay: var(--d0, 2.7s); }
.mark svg { width: 100%; height: 100%; }
.mark path { fill: none; stroke: url(#g-neon); stroke-width: 9; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1s ease-out forwards; animation-delay: calc(var(--d0, 2.7s) + .2s); filter: drop-shadow(0 0 6px rgba(63, 243, 230, .8)); }
.mark-shine { position: absolute; inset: -50%; background: linear-gradient(115deg, transparent 40%, rgba(255, 255, 255, .45) 50%, transparent 60%); transform: translateX(-60%); animation: shine 4.5s ease-in-out infinite; animation-delay: calc(var(--d0, 2.7s) + 1s); }
@keyframes shine { 0%, 60% { transform: translateX(-60%); } 85%, 100% { transform: translateX(60%); } }

.wordmark { margin: 0; display: grid; justify-items: center; gap: 6px; font-weight: 400; }
.wordmark svg { width: min(640px, 86vw); height: auto; overflow: visible; filter: drop-shadow(0 6px 30px rgba(63, 243, 230, .25)); }
.wordmark use { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.wm-base { stroke: rgba(63, 243, 230, .25); stroke-width: 16; filter: blur(5px); opacity: 0; animation: fade .8s ease forwards, pulse 3.5s ease-in-out infinite; animation-delay: calc(var(--d0, 2.7s) + .4s), calc(var(--d0, 2.7s) + 1.4s); }
.wm-chrome { stroke: url(#g-chrome); stroke-width: 8; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.4s cubic-bezier(.6, .05, .25, 1) forwards; animation-delay: calc(var(--d0, 2.7s) + .1s); }
.wm-ar { font-size: clamp(20px, 4.6vw, 30px); font-weight: 700; letter-spacing: 0;
  background: linear-gradient(90deg, var(--gold), #fff3d6, var(--gold)); background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: rise .9s cubic-bezier(.2, .8, .2, 1) both, gloss 5s linear infinite; animation-delay: calc(var(--d0, 2.7s) + .5s), 0s; }
@keyframes gloss { to { background-position: -200% 0; } }

.tag { margin: 4px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; color: var(--muted); font-size: clamp(13px, 3.4vw, 15px); letter-spacing: .04em;
  animation: rise .9s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--d0, 2.7s) + .7s); }
.tag .sep { color: var(--gold-2); font-size: 8px; font-style: normal; align-self: center; }

@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes fade { to { opacity: 1; } }

/* ---------------- Tracking card ---------------- */
.track { width: min(560px, 100%); animation: rise 1s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--d0, 2.7s) + .9s); }
.glass {
  position: relative; padding: clamp(20px, 4vw, 30px); border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(255, 255, 255, .11), rgba(255, 255, 255, .03) 60%);
  border: 1px solid var(--glass-edge);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .25), inset 0 -1px 0 rgba(255, 255, 255, .05);
  backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%);
  isolation: isolate;
}
/* Rotating neon edge */
.glass::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; z-index: -1;
  background: conic-gradient(from var(--ang, 0deg), transparent 0 70%, var(--neon) 80%, var(--gold) 88%, transparent 96%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation: spin 6s linear infinite; }
@property --ang { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes spin { to { --ang: 360deg; } }

.track-title { margin: 0 0 16px; font-size: clamp(16px, 4vw, 19px); font-weight: 600; display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 10px; }
.track-title .dot { color: var(--gold); }
.track-form { display: flex; gap: 10px; }
.field { position: relative; flex: 1; min-width: 0; }
.field-ico { position: absolute; inset-inline-start: 14px; top: 50%; width: 20px; height: 20px; transform: translateY(-50%); fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; pointer-events: none; }
.field input {
  width: 100%; height: 54px; padding-inline: 44px 14px; border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, .14); background: rgba(2, 16, 15, .55); color: var(--text);
  font: 600 16px/1 var(--font); letter-spacing: .06em; outline: none;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.field input::placeholder { color: rgba(156, 201, 197, .7); font-weight: 400; letter-spacing: .02em; }
.field input:focus { border-color: var(--neon); box-shadow: 0 0 0 4px rgba(63, 243, 230, .15), 0 0 24px rgba(63, 243, 230, .25); background: rgba(2, 16, 15, .75); }

.btn { position: relative; height: 54px; padding-inline: 22px; border: 0; border-radius: 14px; cursor: pointer; color: #02201f; font: 700 15px/1 var(--font); overflow: hidden;
  background: linear-gradient(135deg, var(--neon), #9ff8ef 45%, var(--gold));
  box-shadow: 0 10px 30px rgba(63, 243, 230, .35), inset 0 1px 0 rgba(255, 255, 255, .7);
  transition: transform .15s, box-shadow .2s, filter .2s; }
.btn::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, .7) 50%, transparent 65%); transform: translateX(-120%); transition: transform .6s; }
.btn:hover::after, .btn:focus-visible::after { transform: translateX(120%); }
.btn:hover { box-shadow: 0 14px 40px rgba(63, 243, 230, .5), inset 0 1px 0 rgba(255, 255, 255, .7); }
.btn:active { transform: scale(.97); }
.btn:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.btn-txt { display: inline-flex; gap: 8px; align-items: center; }
.btn-txt i { font-style: normal; opacity: .5; }
.btn-spin { position: absolute; inset: 0; margin: auto; width: 22px; height: 22px; border-radius: 50%; border: 2.5px solid rgba(2, 32, 31, .25); border-top-color: #02201f; opacity: 0; }
.btn.busy .btn-txt { opacity: 0; }
.btn.busy .btn-spin { opacity: 1; animation: rot .7s linear infinite; }
@keyframes rot { to { transform: rotate(360deg); } }

.t-msg { margin: 14px 0 0; padding: 12px 14px; border-radius: 12px; font-size: 14px; line-height: 1.6;
  background: rgba(255, 138, 138, .08); border: 1px solid rgba(255, 138, 138, .3); color: #ffd1d1;
  display: grid; gap: 2px; animation: pop .35s cubic-bezier(.2, .9, .3, 1.3); }
.t-msg:empty { display: none; }
.t-msg.ok { background: rgba(125, 255, 207, .08); border-color: rgba(125, 255, 207, .3); color: #d6fff0; }
.shake { animation: shake .45s cubic-bezier(.36, .07, .19, .97); }
@keyframes pop { from { opacity: 0; transform: translateY(-6px) scale(.98); } }
@keyframes shake { 20%, 60% { transform: translateX(-7px); } 40%, 80% { transform: translateX(7px); } }

/* ---------------- Footer ---------------- */
.foot { display: grid; justify-items: center; gap: 10px; animation: rise 1s ease both; animation-delay: calc(var(--d0, 2.7s) + 1.1s); }
.mail { display: inline-flex; align-items: center; gap: 10px; padding: 11px 18px; border-radius: 999px; color: var(--text); text-decoration: none; font-weight: 600; letter-spacing: .02em;
  background: var(--glass); border: 1px solid var(--glass-edge); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: border-color .2s, box-shadow .2s, transform .2s; }
.mail svg { width: 18px; height: 18px; fill: none; stroke: var(--gold); stroke-width: 1.8; stroke-linejoin: round; }
.mail:hover, .mail:focus-visible { border-color: var(--gold); box-shadow: 0 0 24px rgba(233, 195, 122, .25); transform: translateY(-2px); outline: none; }
.copy { margin: 0; font-size: 12px; color: var(--muted); letter-spacing: .04em; }

/* When JS reports the loader finished early, start reveals sooner. */
body.ready { --d0: .05s; }

@media (max-width: 480px) {
  .track-form { flex-direction: column; }
  .btn { width: 100%; }
  .shard, .ghost-2 { display: none; }
  .letters span:nth-child(n+5) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
  .loader { display: none; }
  .wordmark use, .mark path { stroke-dashoffset: 0; }
  .wm-base { opacity: 1; }
}
