:root {
  --bg: #07070b;
  --fg: #f4f4f8;
  --muted: #9a9ab0;
  --line: rgba(255, 255, 255, 0.08);
  --a: #7c5cff;
  --b: #22d3ee;
  --c: #ff5ca8;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--fg);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Backdrop */

.backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.55;
  will-change: transform;
}

.orb-a {
  width: 46vmax;
  height: 46vmax;
  top: -14vmax;
  left: -10vmax;
  background: var(--a);
  animation: drift-a 22s ease-in-out infinite alternate;
}

.orb-b {
  width: 40vmax;
  height: 40vmax;
  bottom: -16vmax;
  right: -10vmax;
  background: var(--b);
  opacity: 0.4;
  animation: drift-b 26s ease-in-out infinite alternate;
}

.orb-c {
  width: 28vmax;
  height: 28vmax;
  top: 38%;
  left: 52%;
  background: var(--c);
  opacity: 0.28;
  animation: drift-c 30s ease-in-out infinite alternate;
}

.grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 0%, transparent 72%);
  mask-image: radial-gradient(ellipse at center, #000 0%, transparent 72%);
}

/* Layout */

.top,
.bottom {
  padding: 28px clamp(20px, 5vw, 56px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--fg);
  text-decoration: none;
  font-weight: 650;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.brand img {
  display: block;
}

.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px clamp(20px, 5vw, 56px) 48px;
  animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 28px;
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--b);
  box-shadow: 0 0 0 0 rgba(34, 211, 238, 0.6);
  animation: pulse 2s ease-out infinite;
}

h1 {
  margin: 0;
  font-size: clamp(2.6rem, 9vw, 6.5rem);
  line-height: 1.02;
  font-weight: 750;
  letter-spacing: -0.045em;
}

.shine {
  background: linear-gradient(100deg, var(--a), var(--b) 45%, var(--c) 90%, var(--a));
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: sweep 8s linear infinite;
}

.lede {
  max-width: 34rem;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  line-height: 1.6;
}

.bar {
  width: min(280px, 60vw);
  height: 3px;
  margin-top: 44px;
  border-radius: 999px;
  background: var(--line);
  overflow: hidden;
}

.bar span {
  display: block;
  width: 40%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, transparent, var(--b), var(--a), transparent);
  animation: slide 2.4s ease-in-out infinite;
}

.bottom {
  color: var(--muted);
  font-size: 0.85rem;
  text-align: center;
}

/* Motion */

@keyframes drift-a {
  to {
    transform: translate(12vmax, 10vmax) scale(1.15);
  }
}

@keyframes drift-b {
  to {
    transform: translate(-14vmax, -8vmax) scale(1.1);
  }
}

@keyframes drift-c {
  to {
    transform: translate(-18vmax, -12vmax) scale(1.25);
  }
}

@keyframes pulse {
  70% {
    box-shadow: 0 0 0 10px rgba(34, 211, 238, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(34, 211, 238, 0);
  }
}

@keyframes sweep {
  to {
    background-position: -220% 0;
  }
}

@keyframes slide {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(250%);
  }
}

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
  }
}
