@font-face {
  font-family: 'Orbitron';
  src: url('/fonts/Orbitron.woff2') format('woff2');
  font-weight: 400 900; /* Orbitron variable — one file covers all weights */
  font-display: swap;
}

:root {
  --bg: #0b1120;
  --bg2: #131c33;
  --text: #f1f5f9;
  --muted: #ffffff;
  --accent: #6366f1;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  height: 100%;
  overflow: hidden; /* hard-disable scrolling */
  overscroll-behavior: none;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* old Edge/IE */
}

/* hard-disable scrollbars everywhere, all engines */
*::-webkit-scrollbar {
  width: 0 !important;
  height: 0 !important;
  display: none !important;
}

body {
  min-height: 100vh;
  background:
    radial-gradient(ellipse 90% 70% at 50% 0%, #1b2547, transparent),
    radial-gradient(ellipse 70% 60% at 50% 100%, #12183a, transparent),
    var(--bg);
  color: var(--text);
  font-family: 'Orbitron', system-ui, -apple-system, 'Segoe UI', sans-serif;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

#bg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 0;
}

.stage {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  /* three rows: equal space above and below the logo → logo is the exact
     vertical center of the viewport, with text grouped around it */
  display: grid;
  grid-template-rows: 1fr auto 1fr;
  justify-items: center;
  padding: 24px;
  text-align: center;
  pointer-events: none; /* let the cursor reach the physics canvas */
}

.above {
  align-self: end; /* sits just above the centered logo */
}

.below {
  align-self: start; /* sits just below the centered logo */
}

.mark {
  color: var(--accent);
  filter: drop-shadow(0 0 28px rgba(99, 102, 241, 0.45));
  transform-origin: center;
  /* fixed layout box so mobile can shrink it independently of the SVG's
     width/height attributes */
  width: 300px;
  height: 300px;
  /* size and glow breathe on separate durations so they drift out of
     phase (asynchronous), plus an occasional swirl */
  animation:
    pulse-size 5s ease-in-out infinite,
    pulse-glow 7s ease-in-out infinite,
    swirl 5s ease-in-out infinite;
}

@keyframes pulse-size {
  0%,
  100% {
    scale: 0.97;
  }
  50% {
    scale: 1.13;
  }
}

@keyframes pulse-glow {
  0%,
  100% {
    filter: drop-shadow(0 0 16px rgba(99, 102, 241, 0.28));
  }
  50% {
    filter: drop-shadow(0 0 60px rgba(99, 102, 241, 0.85))
      drop-shadow(0 0 26px rgba(129, 140, 248, 0.55));
  }
}

@keyframes swirl {
  0%,
  68% {
    rotate: 0deg;
  }
  84%,
  100% {
    rotate: 360deg;
  }
}

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

.wordmark {
  margin: 12px 0 0;
  font-size: clamp(2.25rem, 6vw, 3.5rem);
  font-weight: 900;
  letter-spacing: 0.14em;
  padding-left: 0.14em;
  color: #fff;
  text-shadow:
    0 0 18px rgba(129, 140, 248, 0.75),
    0 0 42px rgba(99, 102, 241, 0.55),
    0 0 78px rgba(99, 102, 241, 0.35);
  animation: text-breathe 6s ease-in-out infinite;
}

@keyframes text-breathe {
  0%,
  100% {
    text-shadow:
      0 0 14px rgba(129, 140, 248, 0.6),
      0 0 34px rgba(99, 102, 241, 0.4),
      0 0 64px rgba(99, 102, 241, 0.25);
  }
  50% {
    text-shadow:
      0 0 22px rgba(129, 140, 248, 0.9),
      0 0 52px rgba(99, 102, 241, 0.7),
      0 0 92px rgba(99, 102, 241, 0.45);
  }
}

.tagline {
  max-width: 800px;
  margin: 18px 0 0;
  font-size: clamp(1rem, 2.2vw, 1.1875rem);
  line-height: 1.6;
  color: var(--muted);
}

/* typewriter intro: characters start hidden, JS reveals them left-to-right */
.tw {
  opacity: 0;
  transition: opacity 70ms linear;
}

.rainbow {
  font-weight: 900;
  background: linear-gradient(
    90deg,
    #ff5757,
    #ffb057,
    #ffee57,
    #5cff7a,
    #57d0ff,
    #7a5cff,
    #ff5cf0,
    #ff5757
  );
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: rainbow-shift 6s linear infinite;
  filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.35));
}

@keyframes rainbow-shift {
  to {
    background-position: 200% 0;
  }
}

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

.soon {
  margin: 28px 0 0;
  font-weight: bold;
  font-family: ui-monospace, 'Cascadia Code', 'Source Code Pro', Menlo, monospace;
  font-size: 1rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
}

/* mobile: shrink the logo by 30% (300px -> 210px) */
@media (max-width: 640px) {
  .mark {
    width: 210px;
    height: 210px;
  }
}
