@font-face {
  font-family: "Nunito Sans";
  font-style: normal;
  font-weight: 200 1000;
  font-display: swap;
  src: url("/fonts/nunito-sans-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #f8f8f6;
  --fg: #0b0b0d;
  --fg-muted: #5a5a62;
  --fg-subtle: #8b8b94;
  --line: rgba(11, 11, 13, 0.1);
  --badge-bg: rgba(248, 248, 246, 0.72);
  --badge-border: rgba(11, 11, 13, 0.11);
  --accent: #0b0b0d;
  --glow-color: rgba(11, 11, 13, 0.055);
  --pulse: #10b981;
  --font-sans: "Avenir Next", "Avenir", "Nunito Sans", "Century Gothic",
    -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #09090b;
    --fg: #f5f5f4;
    --fg-muted: #a1a1aa;
    --fg-subtle: #696973;
    --line: rgba(245, 245, 244, 0.12);
    --badge-bg: rgba(9, 9, 11, 0.65);
    --badge-border: rgba(245, 245, 244, 0.14);
    --accent: #f5f5f4;
    --glow-color: rgba(245, 245, 244, 0.065);
    --pulse: #34d399;
  }
}

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

html,
body {
  height: 100%;
  background-color: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow: hidden;
  overscroll-behavior: none;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
}

#field {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 0;
  touch-action: none;
}

.ambient-glow {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.6s ease;
  background: radial-gradient(
    420px circle at var(--px, 50%) var(--py, 50%),
    var(--glow-color),
    transparent 65%
  );
}

.ambient-glow.is-active {
  opacity: 1;
}

.stage {
  position: relative;
  z-index: 2;
  min-height: 100dvh;
  display: grid;
  grid-template-rows: 1fr auto;
  align-items: center;
  justify-items: center;
  padding: max(2rem, env(safe-area-inset-top))
    max(1.5rem, env(safe-area-inset-right))
    max(1.5rem, env(safe-area-inset-bottom))
    max(1.5rem, env(safe-area-inset-left));
  pointer-events: none;
}

.content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 44rem;
  gap: clamp(0.9rem, 2.2vw, 1.35rem);
  animation: enter 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.42rem 0.95rem;
  border-radius: 999px;
  border: 1px solid var(--badge-border);
  background: var(--badge-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

.pulse-dot {
  position: relative;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--pulse);
}

.pulse-dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background-color: var(--pulse);
  opacity: 0.35;
  animation: pulse 2.4s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.wordmark {
  font-size: clamp(2.6rem, 8.5vw, 5.75rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.02;
  color: var(--fg);
  user-select: text;
  -webkit-user-select: text;
  pointer-events: auto;
}

.wordmark .dash {
  display: inline-block;
  font-weight: 300;
  color: var(--fg-subtle);
  margin: 0 0.04em;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), color 0.3s ease;
}

.wordmark:hover .dash {
  transform: scaleX(1.28);
  color: var(--fg);
}

.slogan {
  font-size: clamp(1.08rem, 2.6vw, 1.5rem);
  font-weight: 400;
  letter-spacing: -0.015em;
  color: var(--fg-muted);
  user-select: text;
  -webkit-user-select: text;
  pointer-events: auto;
}

.divider {
  width: clamp(2.25rem, 6vw, 3.5rem);
  height: 1px;
  background-color: var(--line);
  margin: 0.25rem 0;
}

.teaser {
  font-size: clamp(0.95rem, 1.9vw, 1.08rem);
  font-weight: 400;
  letter-spacing: 0.01em;
  color: var(--fg);
  opacity: 0.84;
  user-select: text;
  -webkit-user-select: text;
  pointer-events: auto;
}

.footer {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  padding-top: 1.5rem;
  text-align: center;
  animation: enter 1.15s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@media (hover: none) and (pointer: coarse) {
  .wordmark,
  .slogan,
  .teaser {
    user-select: none;
    -webkit-user-select: none;
    pointer-events: none;
  }
}

.meta {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--fg-subtle);
  opacity: 0.75;
}

@keyframes enter {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0% {
    transform: scale(0.8);
    opacity: 0.45;
  }
  70% {
    transform: scale(2.1);
    opacity: 0;
  }
  100% {
    transform: scale(2.1);
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .content,
  .footer,
  .pulse-dot::after {
    animation: none;
  }

  .ambient-glow {
    display: none;
  }
}
