:root {
  color-scheme: dark;
  --bg: #020617;
  --card: rgba(15, 23, 42, 0.82);
  --card-border: rgba(148, 163, 184, 0.45);
  --text: #e2e8f0;
  --muted: #94a3b8;
  --accent: #22d3ee;
  --accent2: #a78bfa;
}

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

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}

.page {
  position: relative;
  min-height: calc(100vh - 36px);
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 2.5rem 1.5rem;
}

.card {
  position: relative;
  width: min(100%, 760px);
  border: 1px solid var(--card-border);
  background: var(--card);
  backdrop-filter: blur(12px);
  border-radius: 1.5rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  padding: clamp(1.6rem, 2.5vw, 2.5rem);
  text-align: center;
  z-index: 1;
}

.brand-row {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.brand-logo {
  width: clamp(3.8rem, 8vw, 4.8rem);
  height: auto;
  filter: drop-shadow(0 0 22px rgba(34, 211, 238, 0.26));
  user-select: none;
}

.brand-name {
  margin: 0;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 0.74rem;
  font-weight: 700;
}

.brand-subtitle {
  margin: 0.35rem 0 0;
  color: var(--muted);
}

h1,
.description,
.contact {
  opacity: 0;
  transform: translateY(10px);
  animation: reveal 680ms ease forwards;
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.1;
  letter-spacing: -0.025em;
}

.description {
  margin: 1.1rem auto 0;
  color: var(--text);
  opacity: 0.94;
  max-width: 56ch;
  font-size: clamp(1rem, 2vw, 1.14rem);
  line-height: 1.65;
  animation-delay: 120ms;
}

.contact {
  margin: 1.4rem 0 0;
  color: var(--muted);
  animation-delay: 220ms;
}

.contact a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.contact a:hover {
  color: #67e8f9;
}

.aurora {
  position: absolute;
  width: min(70vw, 700px);
  aspect-ratio: 1 / 1;
  border-radius: 9999px;
  filter: blur(90px);
  opacity: 0.45;
  pointer-events: none;
  animation: drift 16s ease-in-out infinite;
}

.aurora-one {
  background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
  top: -18%;
  left: -8%;
}

.aurora-two {
  background: radial-gradient(circle, var(--accent2) 0%, transparent 70%);
  right: -14%;
  bottom: -26%;
  animation-delay: -8s;
}

.footer {
  display: grid;
  place-items: center;
  color: var(--muted);
  padding: 0.35rem 0 0.8rem;
  font-size: 0.82rem;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(0.97);
  }
}

@keyframes reveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes drift {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(24px, -18px, 0);
  }
}

@media (max-width: 700px) {
  .brand-row {
    flex-direction: column;
  }

  .brand-subtitle {
    margin-top: 0.15rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

body.reduced-motion *,
body.reduced-motion *::before,
body.reduced-motion *::after {
  animation: none !important;
  transition: none !important;
}
