:root {
  --bg: #0a0a0a;
  --fg: #ededed;
  --muted: #8a8a8a;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow: hidden;
  position: relative;
}


.dots {
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(rgba(237, 237, 237, 0.07) 1.5px, transparent 1.5px),
    radial-gradient(rgba(237, 237, 237, 0.04) 1px, transparent 1px);
  background-size: 64px 64px, 32px 32px;
  background-position: 0 0, 16px 16px;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, #000 30%, transparent 80%);
  z-index: 1;
}

.lanes {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
  opacity: 0.75;
  mask-image: radial-gradient(ellipse 95% 95% at 50% 50%, #000 25%, transparent 90%);
  -webkit-mask-image: radial-gradient(ellipse 95% 95% at 50% 50%, #000 25%, transparent 90%);
}


.lane {
  position: absolute;
  top: var(--y);
  left: 0;
  width: var(--w, 18%);
  height: var(--h, 3px);
  border-radius: 999px;
  opacity: var(--o, 0.5);
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(237, 237, 237, 0.18) 60%,
    rgba(237, 237, 237, 0.6) 95%,
    rgba(237, 237, 237, 0.7) 100%
  );
  box-shadow: 0 0 6px rgba(237, 237, 237, 0.22);
  animation: lane-travel var(--d, 8s) linear var(--t, 0s) infinite;
  will-change: transform;
}

@keyframes lane-travel {
  0%   { transform: translate3d(-30vw, 0, 0); }
  25%  { transform: translate3d(5vw, -8px, 0); }
  50%  { transform: translate3d(40vw, 6px, 0); }
  75%  { transform: translate3d(75vw, -6px, 0); }
  100% { transform: translate3d(110vw, 0, 0); }
}

main {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 18px;
  padding: 32px;
}

.logo {
  width: clamp(220px, 42vw, 460px);
  height: auto;
  display: block;
  transform-origin: 50% 80%;
  animation: pop-in 0.9s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.logo:hover {
  animation: wiggle 0.5s ease-in-out;
}

@keyframes pop-in {
  from { opacity: 0; transform: translate3d(0, 28px, 0) scale(0.9); }
  60%  { opacity: 1; transform: translate3d(0, -6px, 0) scale(1.03); }
  to   { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
}

@keyframes wiggle {
  0%, 100% { transform: rotate(0deg); }
  25%      { transform: rotate(-2deg); }
  75%      { transform: rotate(2deg); }
}

.sub {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  animation: pop-in 0.9s cubic-bezier(0.34, 1.56, 0.64, 1) 0.25s both;
}


.wag span {
  display: inline-block;
  animation: wag 1.2s ease-in-out infinite;
}

.wag span:nth-child(2) { animation-delay: 0.15s; }
.wag span:nth-child(3) { animation-delay: 0.3s; }

@keyframes wag {
  0%, 60%, 100% { transform: translateY(0); }
  30%           { transform: translateY(-4px); }
}

.footer {
  position: fixed;
  bottom: 24px;
  left: 0;
  right: 0;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.6;
}

@media (prefers-reduced-motion: reduce) {
  .logo, .sub, .wag span { animation: none; }
  .lane { animation: none; opacity: 0; }
}
