/* ===========================================================================
   LEKIMCHECKER — landing (space theme, cursor parallax)
   =========================================================================== */
:root {
  --bg: #010205;
  --cyan: #5be3ff;
  --violet: #9b6cff;
  --text: #e7eaf0;
  --text-dim: #9aa3bd;
}
* { box-sizing: border-box; margin: 0; padding: 0; }

html, body { height: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: "Sora", -apple-system, BlinkMacSystemFont, sans-serif;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

/* deep-space backdrop */
.scene {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background:
    radial-gradient(1200px 800px at 70% 16%, rgba(155, 108, 255, 0.10), transparent 60%),
    radial-gradient(1000px 700px at 22% 82%, rgba(91, 227, 255, 0.08), transparent 60%),
    radial-gradient(150% 130% at 50% -5%, #05060e 0%, #020207 50%, #000000 100%);
  perspective: 900px;
}

.scene { cursor: none; }

/* exchange "planets": the logo IS the planet surface (clipped to a sphere) */
.planet { position: absolute; pointer-events: none; will-change: transform; z-index: 3; }
.planet-inner {
  position: relative; width: 100%; height: 100%; border-radius: 50%; overflow: hidden;
  border: 1.5px solid rgba(var(--ptint), 0.6);
  box-shadow: 0 0 26px rgba(var(--ptint), 0.25),
              inset -6px -8px 16px rgba(0, 0, 0, 0.65);
}
.planet-inner img { width: 100%; height: 100%; object-fit: cover; display: block; }
.planet-inner::after {                 /* spherical gloss + terminator shadow */
  content: ""; position: absolute; inset: 0; border-radius: 50%; pointer-events: none;
  background:
    radial-gradient(circle at 30% 26%, rgba(255, 255, 255, 0.4), transparent 46%),
    radial-gradient(circle at 74% 82%, rgba(0, 0, 0, 0.45), transparent 56%);
}
/* extra layers ---------------------------------------------------------- */
.patmo {                               /* coloured atmosphere halo */
  position: absolute; inset: -24%; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(var(--patmo), 0.45), transparent 66%);
  filter: blur(4px);
}
.pbands {                              /* gas-giant horizontal bands */
  position: absolute; inset: 0; border-radius: 50%; pointer-events: none;
  background: repeating-linear-gradient(-16deg,
    rgba(0, 0, 0, 0.18) 0 5px, rgba(255, 255, 255, 0.06) 5px 11px);
  mix-blend-mode: overlay; opacity: 0.75;
}
.pwash {                               /* colour wash to vary the hue */
  position: absolute; inset: 0; border-radius: 50%; pointer-events: none;
  mix-blend-mode: soft-light;
}
.pglyph {                              /* glyph-based planet (e.g. Propr) */
  position: absolute; inset: 0; display: grid; place-items: center; color: #eef1f8;
}
.pglyph svg { width: 54%; height: 54%; display: block; filter: drop-shadow(0 0 4px rgba(0, 0, 0, 0.4)); }
.pring {                               /* tilted Saturn-style ring */
  position: absolute; left: 50%; top: 50%;
  width: 182%; height: 56%;
  transform: translate(-50%, -50%) rotate(-22deg);
  border: 2px solid rgba(var(--ptint), 0.5);
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(var(--ptint), 0.3);
}

/* minimalist spaceship cursor */
#ship {
  position: fixed; left: 0; top: 0; z-index: 50; pointer-events: none;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 0 6px rgba(91,227,255,0.85));
  transition: transform 0.08s ease-out;
}
#ship svg { display: block; }

/* layers move with the cursor (transform set by JS) */
.layer {
  position: absolute;
  inset: -8%;            /* bleed so parallax never shows an edge */
  will-change: transform;
  pointer-events: none;
}

/* nebula blobs */
.nebula {
  background:
    radial-gradient(360px 360px at 24% 30%, rgba(155, 108, 255, 0.18), transparent 70%),
    radial-gradient(420px 420px at 78% 62%, rgba(91, 227, 255, 0.13), transparent 70%),
    radial-gradient(300px 300px at 60% 18%, rgba(255, 95, 170, 0.10), transparent 70%),
    radial-gradient(340px 340px at 12% 78%, rgba(120, 160, 255, 0.12), transparent 70%),
    radial-gradient(280px 280px at 88% 22%, rgba(255, 170, 110, 0.09), transparent 70%);
  filter: blur(32px);
}
/* a second, deeper nebula band for extra colour depth (different hues/spots) */
.nebula2 {
  background:
    radial-gradient(460px 460px at 42% 70%, rgba(124, 92, 255, 0.13), transparent 72%),
    radial-gradient(380px 380px at 68% 36%, rgba(80, 210, 200, 0.10), transparent 72%),
    radial-gradient(320px 320px at 8% 14%, rgba(255, 120, 190, 0.09), transparent 72%),
    radial-gradient(300px 300px at 94% 84%, rgba(150, 130, 255, 0.10), transparent 72%);
  filter: blur(44px);
  opacity: 0.9;
}

/* stars: individual dots are injected by JS as box-shadow on ::before? No —
   we append spans; each .star gets its own position/animation. */
.star {
  position: absolute;
  border-radius: 50%;
  background: #fff;
  animation: twinkle var(--tw, 4s) ease-in-out infinite;
  animation-delay: var(--dl, 0s);
}
@keyframes twinkle {
  0%, 100% { opacity: var(--op, 0.7); }
  50%      { opacity: 0.15; }
}

/* faint perspective grid floor for depth */
.grid-floor {
  inset: auto -20% -12% -20%;
  height: 55%;
  background-image:
    linear-gradient(rgba(91, 227, 255, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(91, 227, 255, 0.16) 1px, transparent 1px);
  background-size: 64px 64px;
  transform: rotateX(72deg);
  transform-origin: bottom center;
  -webkit-mask-image: linear-gradient(to top, #000 0%, transparent 80%);
          mask-image: linear-gradient(to top, #000 0%, transparent 80%);
  opacity: 0.5;
}

/* comets: a glowing head with a fading tail behind it */
.shooting {
  position: absolute;
  width: 170px; height: 2px;
  background: linear-gradient(90deg, rgba(255,255,255,0), rgba(180,210,255,0.85));
  border-radius: 2px;
  opacity: 0;
  transform: rotate(18deg);
}
.shooting::after {                 /* the bright comet head */
  content: "";
  position: absolute; right: -2px; top: -2px;
  width: 6px; height: 6px; border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 8px 2px rgba(255,255,255,0.9),
              0 0 18px 5px rgba(120,180,255,0.55);
}
@keyframes shoot {
  0%   { opacity: 0; transform: translate(0,0) rotate(18deg); }
  10%  { opacity: 1; }
  100% { opacity: 0; transform: translate(680px, 221px) rotate(18deg); }
}

/* ---------- foreground ---------- */
.hero {
  position: relative;
  z-index: 5;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  will-change: transform;
}

.kicker {
  font-size: clamp(11px, 1.4vw, 14px);
  letter-spacing: 6px;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 18px;
  opacity: 0.9;
  animation: rise 0.9s 0.05s cubic-bezier(.2,.7,.2,1) both;
}

.title {
  font-family: "Chakra Petch", sans-serif;
  font-weight: 900;
  font-size: clamp(2.6rem, 11vw, 9rem);
  line-height: 0.95;
  letter-spacing: clamp(1px, 0.6vw, 8px);
  background: linear-gradient(180deg, #ffffff 0%, #cfe6ff 38%, var(--cyan) 75%, var(--violet) 110%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 26px rgba(91, 227, 255, 0.45))
          drop-shadow(0 0 60px rgba(155, 108, 255, 0.30));
  animation: rise 1s 0.12s cubic-bezier(.2,.7,.2,1) both, glow 4.5s ease-in-out infinite;
}
@keyframes glow {
  0%, 100% { filter: drop-shadow(0 0 26px rgba(91,227,255,.45)) drop-shadow(0 0 60px rgba(155,108,255,.30)); }
  50%      { filter: drop-shadow(0 0 38px rgba(91,227,255,.65)) drop-shadow(0 0 90px rgba(155,108,255,.45)); }
}

.subtitle {
  margin-top: 20px;
  font-size: clamp(11px, 1.5vw, 14px);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--text-dim);
  animation: rise 1s 0.22s cubic-bezier(.2,.7,.2,1) both;
}

.enter {
  margin-top: 40px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #04111a;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.3px;
  padding: 15px 34px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--cyan), #7fd0ff 55%, var(--violet));
  box-shadow: 0 0 0 1px rgba(255,255,255,0.18) inset,
              0 10px 40px -8px rgba(91, 227, 255, 0.7);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
  animation: rise 1s 0.32s cubic-bezier(.2,.7,.2,1) both;
}
.enter:hover {
  transform: translateY(-3px) scale(1.03);
  filter: brightness(1.08);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.28) inset,
              0 16px 54px -8px rgba(91, 227, 255, 0.9),
              0 0 60px -10px rgba(155, 108, 255, 0.8);
}
.enter:active { transform: translateY(-1px) scale(0.99); }
.enter svg { transition: transform 0.18s ease; }
.enter:hover svg { transform: translateX(4px); }

.hint {
  margin-top: 22px;
  font-size: 12.5px;
  color: var(--text-dim);
  opacity: 0.7;
  animation: rise 1s 0.42s cubic-bezier(.2,.7,.2,1) both, pulse 2.6s ease-in-out infinite;
}
.hint kbd {
  font-family: "Sora", sans-serif;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 6px;
  padding: 1px 7px;
  font-size: 11.5px;
}
@keyframes pulse { 0%,100% { opacity: 0.45; } 50% { opacity: 0.85; } }

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

.signature {
  position: absolute;
  z-index: 6;
  bottom: 20px; left: 0; right: 0;
  display: flex;
  justify-content: center;
  gap: 10px;
}
.x-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  color: var(--text-dim);
  font-size: 15px;
  letter-spacing: 0.5px;
  padding: 12px 24px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  transition: color 0.18s ease, border-color 0.18s ease,
              box-shadow 0.18s ease, transform 0.18s ease;
}
.x-link:hover { color: #fff; transform: translateY(-2px); }
.x-link svg { opacity: 0.95; width: 18px; height: 18px; }

/* per-logo tinted glow: X greyish, Telegram light blue */
.x-tw { border-color: rgba(205, 211, 224, 0.28); box-shadow: 0 0 16px -5px rgba(205, 211, 224, 0.5); }
.x-tw:hover { border-color: rgba(205, 211, 224, 0.7); box-shadow: 0 0 28px -3px rgba(205, 211, 224, 0.8); }
.x-tg { border-color: rgba(91, 200, 255, 0.34); box-shadow: 0 0 16px -5px rgba(91, 200, 255, 0.55); }
.x-tg:hover { border-color: rgba(91, 200, 255, 0.78); box-shadow: 0 0 28px -3px rgba(91, 200, 255, 0.9); }

@media (prefers-reduced-motion: reduce) {
  .title, .kicker, .subtitle, .enter, .hint { animation: none; }
  .star, .planet-inner { animation: none; }
}
