/* ── xyfer.lol ───────────────────────────────────────────── */

:root {
  --bg:        #08080a;
  --bg-2:      #0e0e12;
  --line:      #1c1c22;
  --line-hot:  #34161c;
  --fg:        #ededf0;
  --fg-dim:    #8b8b96;
  --fg-faint:  #5a5a65;
  --red:       #ff2b39;
  --red-deep:  #c4101d;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: "Space Grotesk", system-ui, -apple-system, Segoe UI, sans-serif;
}

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

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--red); color: #fff; }

a { color: inherit; text-decoration: none; }

/* ── background layers ───────────────────────────────────── */

.bg { position: fixed; inset: 0; z-index: -1; pointer-events: none; }

.bg-grid {
  position: absolute; inset: -2px;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 42%, #000 20%, transparent 76%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 42%, #000 20%, transparent 76%);
}

.bg-glow {
  position: absolute;
  top: 50%; left: 50%;
  width: 130vw; height: 120vh;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse at center,
    rgba(255, 43, 57, .18) 0%,
    rgba(196, 16, 29, .08) 34%,
    transparent 66%);
  filter: blur(20px);
  animation: pulse 9s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: .8; transform: translate(-50%, -50%) scale(1); }
  50%      { opacity: 1;  transform: translate(-50%, -50%) scale(1.08); }
}

.bg-scan {
  position: absolute; inset: 0;
  background: repeating-linear-gradient(
    to bottom, rgba(0,0,0,0) 0 3px, rgba(0,0,0,.22) 3px 4px);
  opacity: .38;
}

/* ── stage ───────────────────────────────────────────────── */

.stage {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 72px 24px 96px;
  text-align: center;
}

/* ── logo ────────────────────────────────────────────────── */

.logo {
  width: clamp(88px, 17vw, 128px);
  height: auto;
  color: #fff;
  margin-bottom: 34px;
  filter: drop-shadow(0 0 26px rgba(255, 43, 57, .5))
          drop-shadow(0 0 60px rgba(255, 43, 57, .22));
  animation: float 7s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-9px); }
}

/* ── wordmark ────────────────────────────────────────────── */

.title {
  position: relative;
  font-size: clamp(52px, 12vw, 104px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.045em;
  margin-bottom: 14px;
  background: linear-gradient(170deg, #fff 10%, #ffb3b8 46%, var(--red) 80%, var(--red-deep) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.title::before,
.title::after {
  content: attr(data-text);
  position: absolute; inset: 0;
  background: inherit;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0;
  pointer-events: none;
}
.title.glitch::before { opacity: .8; transform: translate(-3px, 1px); filter: hue-rotate(-20deg); }
.title.glitch::after  { opacity: .6; transform: translate(3px, -1px); }

.lede {
  max-width: 42ch;
  font-size: clamp(14.5px, 1.8vw, 17px);
  color: var(--fg-dim);
  margin-bottom: 38px;
}

/* ── join button ─────────────────────────────────────────── */

.join {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: var(--mono);
  font-size: 15px;
  color: #fff;
  padding: 15px 30px;
  border: 1px solid var(--red-deep);
  border-radius: 6px;
  background: linear-gradient(180deg, var(--red) 0%, var(--red-deep) 100%);
  box-shadow: 0 8px 30px rgba(255, 43, 57, .26);
  transition: transform .2s cubic-bezier(.2,.8,.2,1), box-shadow .2s, border-color .2s;
}
.join:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 40px rgba(255, 43, 57, .4);
  border-color: var(--red);
}
.join:active { transform: translateY(-1px); }

.dc { width: 21px; height: auto; }

.handle {
  display: inline-block;
  margin-top: 18px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--fg-faint);
  transition: color .2s;
}
.handle:hover { color: var(--red); }

/* ── footer ──────────────────────────────────────────────── */

.footer {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  padding: 20px;
  text-align: center;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--fg-faint);
  pointer-events: none;
}

/* ── 404 ─────────────────────────────────────────────────── */

.back {
  display: inline-block;
  margin-top: 6px;
  font-family: var(--mono);
  font-size: 13.5px;
  color: var(--fg-dim);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 12px 24px;
  background: var(--bg-2);
  transition: color .2s, border-color .2s, transform .2s;
}
.back:hover { color: var(--fg); border-color: var(--red); transform: translateY(-2px); }

@media (max-width: 480px) {
  .logo { margin-bottom: 26px; }
  .lede { margin-bottom: 30px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
