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

:root {
  color-scheme: light dark;

  --bg: #f5f5f7;
  --text: #1d1d1f;
  --text-muted: #86868b;
  --accent: #0071e3;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "Helvetica Neue", Helvetica, Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --text: #f5f5f7;
    --text-muted: #6e6e73;
    --accent: #2997ff;
  }
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  min-height: 100dvh;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  overflow: hidden;
}

.ambient {
  position: fixed;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  opacity: 0.5;
}

.ambient--one {
  top: -20%;
  left: 50%;
  width: min(600px, 90vw);
  height: min(600px, 90vw);
  background: radial-gradient(circle, rgba(0, 113, 227, 0.14) 0%, transparent 68%);
  transform: translateX(-50%);
  animation: drift 20s ease-in-out infinite;
}

.ambient--two {
  bottom: -25%;
  left: 50%;
  width: min(500px, 80vw);
  height: min(500px, 80vw);
  background: radial-gradient(circle, rgba(175, 82, 222, 0.1) 0%, transparent 68%);
  transform: translateX(-50%);
  animation: drift 24s ease-in-out infinite reverse;
}

@media (prefers-color-scheme: dark) {
  .ambient--one {
    background: radial-gradient(circle, rgba(41, 151, 255, 0.12) 0%, transparent 68%);
  }

  .ambient--two {
    background: radial-gradient(circle, rgba(191, 90, 242, 0.08) 0%, transparent 68%);
  }
}

.page {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  min-height: 100dvh;
  padding: 24px;
}

.title {
  font-size: clamp(40px, 8vw, 72px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.015em;
  text-align: center;
  animation: rise 1.2s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.line {
  display: block;
  width: 48px;
  height: 2px;
  background: var(--text-muted);
  border-radius: 1px;
  opacity: 0.35;
  animation: rise 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both,
    breathe 3s ease-in-out 1.2s infinite;
}

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

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

@keyframes breathe {
  0%,
  100% {
    opacity: 0.35;
    transform: scaleX(1);
  }

  50% {
    opacity: 0.6;
    transform: scaleX(1.4);
  }
}

@keyframes drift {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }

  50% {
    transform: translateX(-50%) translateY(-16px);
  }
}

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