:root {
  --bg: #000000;
  --fg: #ffffff;
  --muted: #666666;
  --faint: #333333;
  --font-display: 'Instrument Serif', 'Georgia', 'Times New Roman', serif;
  --font-mono: 'JetBrains Mono', 'Cascadia Code', 'Fira Code', 'Consolas', monospace;
}

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

html,
body {
  height: 100%;
}

body {
  overflow: hidden;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-display);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

#wave {
  position: fixed;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* Soft pool of light behind the wordmark, like the QRgen preview stage. */
.glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background:
    radial-gradient(circle at 50% 44%, rgba(255, 255, 255, 0.05), transparent 58%),
    radial-gradient(ellipse at 50% 50%, transparent 45%, rgba(0, 0, 0, 0.45) 100%);
}

.page {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-rows: auto 1fr auto;
  height: 100%;
  padding: clamp(20px, 4vw, 40px) clamp(20px, 5vw, 56px);
}

/* ---- Top bar ---- */

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--fg);
  text-decoration: none;
  user-select: none;
  transition: opacity 0.15s ease;
}

.wordmark:hover {
  opacity: 0.7;
}

.wordmark-glyph {
  font-family: var(--font-mono);
  font-size: 20px;
  line-height: 1;
  color: var(--muted);
  transition: color 0.15s ease;
}

.wordmark:hover .wordmark-glyph {
  color: var(--fg);
}

.wordmark-text {
  font-size: 21px;
  font-weight: 400;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.topbar-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.15s ease;
}

.topbar-link:hover {
  color: var(--fg);
}

/* ---- Hero ---- */

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-bottom: 4vh;
}

.soon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(5rem, 18vw, 13rem);
  line-height: 0.85;
  letter-spacing: -0.02em;
  animation: rise 1.1s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.soon-word {
  background: linear-gradient(180deg, #ffffff 0%, #d8d8d8 60%, #8a8a8a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.soon-tm {
  position: absolute;
  top: 0.28em;
  left: 100%;
  margin-left: 0.18em;
  font-family: var(--font-mono);
  font-size: 0.105em;
  font-weight: 500;
  letter-spacing: 0.18em;
  line-height: 1;
  color: var(--muted);
  user-select: none;
  white-space: nowrap;
}

.tagline {
  margin-top: clamp(24px, 4vw, 40px);
  font-family: var(--font-mono);
  font-size: clamp(9px, 1.1vw, 11px);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--muted);
  animation: fade 1.4s ease 0.35s both;
}

/* ---- Footer ---- */

.footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--faint);
}

.footer-dot {
  color: var(--faint);
}

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

@keyframes fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .soon,
  .tagline {
    animation: none;
  }
}

@media (max-width: 560px) {
  .wordmark-text {
    font-size: 18px;
    letter-spacing: 1.5px;
  }

  .soon {
    font-size: clamp(4.5rem, 26vw, 8rem);
  }

  .soon-tm {
    margin-top: 0.3em;
    font-size: 0.12em;
  }

  .tagline {
    letter-spacing: 0.24em;
  }
}
