:root {
  --bg-base: #040b0f;
  --bg-top: #071216;
  --text-main: #e8f7f8;
  --text-muted: #8faeb3;
  --accent: #26c3c7;
  --accent-soft: rgba(38, 195, 199, 0.28);
  --panel-border: rgba(38, 195, 199, 0.2);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--text-main);
  -webkit-user-select: none;
  user-select: none;
  background: radial-gradient(circle at 12% 18%, var(--bg-top), transparent 55%),
    linear-gradient(160deg, #03080b 0%, var(--bg-base) 60%, #020507 100%);
  display: grid;
  place-items: center;
  overflow: hidden;
  line-height: 1.5;
}

.ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.glow {
  position: absolute;
  width: 30rem;
  aspect-ratio: 1;
  border-radius: 50%;
  filter: blur(70px);
  background: radial-gradient(circle, var(--accent-soft) 0%, transparent 70%);
  opacity: 0.55;
  animation: drift 18s ease-in-out infinite;
}

.glow-one {
  top: -8rem;
  left: -6rem;
}

.glow-two {
  right: -10rem;
  bottom: -10rem;
  animation-delay: -9s;
  opacity: 0.35;
}

.hero {
  position: relative;
  z-index: 1;
  width: min(46rem, calc(100% - 2.5rem));
  padding: clamp(1.6rem, 4.5vw, 2.4rem);
  border: 1px solid var(--panel-border);
  border-radius: 1rem;
  background: rgba(5, 16, 21, 0.48);
  backdrop-filter: blur(4px);
  text-align: center;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 600ms ease, transform 600ms ease;
}

body.ready .hero {
  opacity: 1;
  transform: translateY(0);
}

.brand {
  margin: 0;
  font-family: "Sora", "Segoe UI", sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

h1 {
  margin: 0.8rem auto 0;
  max-width: 26ch;
  font-size: clamp(1.6rem, 4.4vw, 2.5rem);
  line-height: 1.18;
  font-weight: 700;
  text-wrap: balance;
}

.accent-line {
  display: block;
  width: min(7rem, 40%);
  height: 2px;
  margin: 1.05rem auto 0;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent 0%, var(--accent) 50%, transparent 100%);
  box-shadow: 0 0 12px rgba(38, 195, 199, 0.48);
  animation: pulse 2.8s ease-in-out infinite;
}

.subtext {
  margin: 1rem 0 0;
  color: var(--text-muted);
  font-size: clamp(0.95rem, 2.3vw, 1.05rem);
}

@keyframes drift {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(2%, 3%, 0) scale(1.06);
  }
  100% {
    transform: translate3d(-2%, -2%, 0) scale(0.98);
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.55;
  }
  50% {
    opacity: 1;
  }
}

@media (max-width: 36rem) {
  .hero {
    width: min(46rem, calc(100% - 1.4rem));
    padding: 1.35rem 1rem 1.45rem;
  }

  h1 {
    max-width: 22ch;
  }
}

@media (prefers-reduced-motion: reduce) {
  .glow,
  .accent-line {
    animation: none !important;
  }

  .hero {
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}

body.reduced-motion .glow,
body.reduced-motion .accent-line {
  animation: none !important;
}

body.reduced-motion .hero {
  transition: none !important;
  transform: none !important;
  opacity: 1 !important;
}
