/* devnads.xyz — DEV is shipping on Monad
   Dark background with a kinetic-energy network animation behind the headline.
   Tuned for: high-contrast text, GPU-friendly canvas, mobile fallbacks. */

:root {
  --bg: #0b0716;
  --bg-2: #150a26;
  --ink: #f7f3ff;
  --ink-dim: #b6a8d6;
  --accent: #a78bfa; /* Monad lavender */
  --accent-2: #7c3aed; /* Monad violet */
  --line: rgba(167, 139, 250, 0.22);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
  overflow: hidden;
}

body {
  min-height: 100dvh;
  background:
    radial-gradient(60% 80% at 50% 0%, rgba(124, 58, 237, 0.18), transparent 60%),
    radial-gradient(40% 60% at 50% 100%, rgba(167, 139, 250, 0.12), transparent 60%),
    var(--bg);
}

/* The kinetic-energy network canvas sits below everything. */
#bg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 0;
}

/* Soft vignette so the text always reads, regardless of where particles bunch. */
.vignette {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background:
    radial-gradient(
      ellipse at center,
      transparent 0%,
      transparent 38%,
      rgba(11, 7, 22, 0.55) 80%,
      rgba(11, 7, 22, 0.9) 100%
    );
}

/* X icon + DEV label in top-right. */
.x-badge {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px 7px 9px;
  border-radius: 999px;
  background: rgba(20, 12, 34, 0.6);
  border: 1px solid rgba(167, 139, 250, 0.28);
  color: var(--ink);
  text-decoration: none;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: 0.08em;
  font-weight: 700;
  backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.x-badge:hover {
  transform: translateY(-1px);
  background: rgba(28, 17, 48, 0.85);
  border-color: rgba(167, 139, 250, 0.55);
}

.x-badge__icon {
  width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(167, 139, 250, 0.15);
  color: var(--ink);
}

.x-badge__label {
  text-transform: uppercase;
}

/* Center stage. */
.stage {
  position: relative;
  z-index: 2;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  align-content: center;
  padding: 0 24px;
  text-align: center;
  gap: 22px;
}

.logo-wrap {
  position: relative;
  width: 96px;
  height: 96px;
  display: grid;
  place-items: center;
  margin-bottom: 2px;
}

.monad {
  width: 100%;
  height: 100%;
  display: block;
  animation: spin 18s linear infinite;
  filter: drop-shadow(0 0 24px rgba(167, 139, 250, 0.45));
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.logo-pulse {
  position: absolute;
  inset: -14px;
  border-radius: 50%;
  border: 1px solid rgba(167, 139, 250, 0.4);
  animation: pulse 2.6s ease-out infinite;
  pointer-events: none;
}

@keyframes pulse {
  0% {
    transform: scale(0.85);
    opacity: 0.85;
  }
  80% {
    opacity: 0;
  }
  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}

.headline {
  margin: 0;
  font-family: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(34px, 7vw, 84px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  display: grid;
  gap: 2px;
  text-transform: uppercase;
}

.headline__line {
  display: block;
  color: var(--ink);
}

.headline__line--accent {
  color: transparent;
  background: linear-gradient(180deg, #ffffff 0%, #c4b5fd 55%, #7c3aed 100%);
  -webkit-background-clip: text;
  background-clip: text;
  text-shadow: 0 0 38px rgba(167, 139, 250, 0.35);
  font-size: 1.18em;
  letter-spacing: -0.03em;
}

.sub {
  margin: 6px 0 0;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: clamp(11px, 1.4vw, 13px);
  letter-spacing: 0.32em;
  color: var(--ink-dim);
  text-transform: uppercase;
}

.ticker {
  margin-top: 28px;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: rgba(182, 168, 214, 0.7);
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.ticker .dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: blink 1.4s steps(1) infinite;
}

@keyframes blink {
  0%,
  50% {
    opacity: 1;
  }
  51%,
  100% {
    opacity: 0.18;
  }
}

@media (max-width: 480px) {
  .x-badge {
    top: 12px;
    right: 12px;
  }
  .logo-wrap {
    width: 72px;
    height: 72px;
  }
  .ticker {
    font-size: 10px;
    letter-spacing: 0.12em;
  }
}

@media (prefers-reduced-motion: reduce) {
  .monad,
  .logo-pulse,
  .ticker .dot {
    animation: none !important;
  }
}
