:root {
  --bg: #030712;
  --bg-2: #07111f;
  --cyan: #22d3ee;
  --blue: #60a5fa;
  --violet: #818cf8;
  --white: #f8fbff;
  --muted: rgba(226, 232, 255, 0.62);
  --glass: rgba(8, 16, 36, 0.55);
  --line: rgba(125, 211, 252, 0.18);
  --glow: 0 0 40px rgba(34, 211, 238, 0.35);
  --font: "Outfit", "Segoe UI", sans-serif;
  --display: "Rajdhani", "Outfit", sans-serif;
  --royal: #1e40ff;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--white);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 50;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  background: #fff;
  color: #0b1220;
  font-weight: 600;
  text-decoration: none;
}

.skip:focus {
  top: 1rem;
}

.bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(96, 165, 250, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(96, 165, 250, 0.05) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 78%);
  animation: gridDrift 28s linear infinite;
}

@keyframes gridDrift {
  to {
    background-position: 72px 72px;
  }
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.55;
  animation: float 12s ease-in-out infinite;
}

.orb-a {
  width: 42vw;
  height: 42vw;
  left: -8vw;
  top: -10vw;
  background: #1d4ed8;
}

.orb-b {
  width: 38vw;
  height: 38vw;
  right: -10vw;
  bottom: -8vw;
  background: #6d28d9;
  animation-delay: -4s;
}

.orb-c {
  width: 24vw;
  height: 24vw;
  left: 38%;
  top: 28%;
  background: #0891b2;
  opacity: 0.35;
  animation-delay: -7s;
}

@keyframes float {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(3%, -4%, 0) scale(1.08);
  }
}

#net {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center, transparent 40%, rgba(3, 7, 18, 0.88) 100%),
    linear-gradient(to bottom, rgba(3, 7, 18, 0.35), transparent 18%, transparent 82%, rgba(3, 7, 18, 0.55));
}

.noise {
  position: absolute;
  inset: 0;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.stage {
  position: relative;
  z-index: 2;
  min-height: 100%;
  display: grid;
  place-items: center;
  padding: 2rem 1.25rem 3.5rem;
}

.card {
  width: min(680px, 100%);
  text-align: center;
}

.logo-wrap {
  position: relative;
  width: min(420px, 88vw);
  margin: 0 auto 1.35rem;
  border-radius: 22px;
  overflow: hidden;
  isolation: isolate;
  line-height: 0;
  font-size: 0;
  filter: drop-shadow(0 18px 36px rgba(15, 40, 180, 0.45));
  opacity: 0;
  transform: translateY(18px) scale(0.94);
  animation: markIn 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.12s forwards;
}

.logo {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
  border-radius: 22px;
  vertical-align: bottom;
}

.shine {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    105deg,
    transparent 35%,
    rgba(255, 255, 255, 0.28) 48%,
    transparent 62%
  );
  transform: translateX(-120%);
  animation: shine 2.4s ease 0.7s both;
}

@keyframes shine {
  to {
    transform: translateX(120%);
  }
}

@keyframes fade {
  to {
    opacity: 1;
  }
}

@keyframes markIn {
  to {
    opacity: 1;
    transform: none;
  }
}

.brand {
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 0.28em;
  font-family: var(--display);
  font-size: clamp(2.7rem, 9vw, 5rem);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
  text-indent: 0.08em;
}

.brand .name,
.brand .lab {
  display: inline-block;
  opacity: 0;
  transform: translateY(22px);
  animation: letter 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.brand .name {
  color: #f8fbff;
  text-shadow: 0 8px 30px rgba(59, 130, 246, 0.35);
  animation-delay: 0.45s;
}

.brand .lab {
  background: linear-gradient(180deg, #ffffff 10%, #93c5fd 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation-delay: 0.62s;
}

.motto {
  margin: 0 auto 1.35rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.58em;
  text-indent: 0.58em;
  text-transform: uppercase;
  color: rgba(191, 219, 254, 0.78);
  opacity: 0;
  animation: mottoIn 1s ease 0.85s forwards;
}

@keyframes mottoIn {
  from {
    letter-spacing: 0.18em;
    text-indent: 0.18em;
    opacity: 0;
  }
  to {
    letter-spacing: 0.58em;
    text-indent: 0.58em;
    opacity: 1;
  }
}

.tag {
  max-width: 28rem;
  margin: 0 auto 1.6rem;
  font-size: clamp(1rem, 2.4vw, 1.2rem);
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0.01em;
  opacity: 0;
  transform: translateY(12px);
  animation: up 0.7s ease 1.35s forwards;
}

.pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem;
  margin-bottom: 2rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.42rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--glass);
  backdrop-filter: blur(12px);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: #dbeafe;
  opacity: 0;
  transform: translateY(10px);
  animation: up 0.55s ease forwards;
}

.pill i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
}

.progress-wrap {
  width: min(360px, 86%);
  margin: 0 auto 1.1rem;
  opacity: 0;
  animation: up 0.6s ease 1.85s forwards;
}

.progress {
  height: 4px;
  border-radius: 99px;
  overflow: hidden;
  background: rgba(148, 163, 184, 0.18);
}

.bar {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--cyan), var(--violet), var(--cyan));
  background-size: 200% 100%;
  box-shadow: var(--glow);
  animation: shimmer 1.4s linear infinite;
}

@keyframes shimmer {
  to {
    background-position: -200% 0;
  }
}

.status {
  margin-top: 0.7rem;
  font-size: 0.82rem;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cta {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.35rem;
  padding: 0.75rem 1.25rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: linear-gradient(var(--bg), var(--bg)) padding-box,
    linear-gradient(120deg, var(--cyan), var(--violet)) border-box;
  color: var(--white);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  opacity: 0;
  animation: up 0.55s ease 2.1s forwards;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.cta:hover,
.cta:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(34, 211, 238, 0.18);
  outline: none;
}

.topbar,
.foot {
  position: fixed;
  left: 0;
  right: 0;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.1rem 1.4rem;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(226, 232, 255, 0.55);
}

.topbar {
  top: 0;
}

.foot {
  bottom: 0;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.live {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 10px #34d399;
  animation: blink 1.6s ease infinite;
}

@keyframes blink {
  50% {
    opacity: 0.35;
  }
}

.foot a {
  color: inherit;
  text-decoration: none;
}

.foot a:hover {
  color: var(--white);
}

.warp {
  position: fixed;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  background: radial-gradient(circle at center, rgba(34, 211, 238, 0.55), rgba(99, 102, 241, 0.4) 28%, transparent 58%);
  opacity: 0;
  transform: scale(0.2);
}

body.is-leaving .stage,
body.is-leaving .topbar,
body.is-leaving .foot {
  animation: leave 0.55s ease forwards;
}

body.is-leaving .warp {
  animation: warp 0.55s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes leave {
  to {
    opacity: 0;
    transform: scale(1.06);
    filter: blur(10px);
  }
}

@keyframes warp {
  to {
    opacity: 1;
    transform: scale(3.2);
  }
}

@keyframes letter {
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes up {
  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 640px) {
  .logo-wrap {
    width: min(340px, 90vw);
    border-radius: 18px;
  }

  .logo {
    border-radius: 18px;
  }

  .brand {
    font-size: clamp(2.1rem, 11vw, 2.8rem);
    letter-spacing: 0.12em;
  }

  .motto {
    letter-spacing: 0.32em;
    text-indent: 0.32em;
  }

  .topbar,
  .foot {
    padding: 0.9rem 1rem;
    letter-spacing: 0.06em;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .logo-wrap,
  .brand .name,
  .brand .lab,
  .motto,
  .tag,
  .pill,
  .progress-wrap,
  .cta {
    opacity: 1;
    transform: none;
  }
}
