:root {
  --bg: #050505;
  --bg-soft: #111;
  --text: #fff;
  --text-soft: #c5c5c5;
  --accent: #fff;
}

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

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: radial-gradient(circle at 15% 20%, #111 0%, #090909 40%, var(--bg) 100%);
}

body {
  display: grid;
  place-items: center;
  padding: 24px;
  overflow: hidden;
}

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

.pixel-bg span {
  position: absolute;
  width: clamp(48px, 7vw, 110px);
  aspect-ratio: 1 / 1;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015));
  border: 1px solid rgba(255, 255, 255, 0.07);
  filter: blur(0.3px);
  animation: float-pixel linear infinite;
}

.pixel-bg span:nth-child(1) {
  left: 8%;
  top: 16%;
  animation-duration: 20s;
}
.pixel-bg span:nth-child(2) {
  left: 23%;
  top: 72%;
  animation-duration: 17s;
}
.pixel-bg span:nth-child(3) {
  left: 38%;
  top: 24%;
  animation-duration: 22s;
}
.pixel-bg span:nth-child(4) {
  left: 56%;
  top: 78%;
  animation-duration: 19s;
}
.pixel-bg span:nth-child(5) {
  left: 71%;
  top: 12%;
  animation-duration: 24s;
}
.pixel-bg span:nth-child(6) {
  left: 84%;
  top: 62%;
  animation-duration: 21s;
}
.pixel-bg span:nth-child(7) {
  left: 12%;
  top: 45%;
  animation-duration: 16s;
}
.pixel-bg span:nth-child(8) {
  left: 46%;
  top: 56%;
  animation-duration: 18s;
}
.pixel-bg span:nth-child(9) {
  left: 64%;
  top: 41%;
  animation-duration: 23s;
}
.pixel-bg span:nth-child(10) {
  left: 91%;
  top: 28%;
  animation-duration: 20s;
}
.pixel-bg span:nth-child(11) {
  left: 30%;
  top: 88%;
  animation-duration: 25s;
}
.pixel-bg span:nth-child(12) {
  left: 77%;
  top: 86%;
  animation-duration: 18s;
}

.intro {
  width: min(720px, 100%);
  text-align: center;
  padding: clamp(32px, 5vw, 64px);
  position: relative;
  z-index: 1;
}

.tagline {
  margin: 8px 0 0;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-soft);
}

h1 {
  margin: 0;
  font-size: clamp(2.2rem, 8vw, 6rem);
  letter-spacing: 0.12em;
  font-weight: 700;
  line-height: 1.1;
}

.subtitle {
  margin: 18px 0 0;
  font-size: clamp(1rem, 2.2vw, 1.3rem);
  color: var(--text-soft);
}

.contact {
  display: inline-block;
  margin-top: 28px;
  padding: 11px 18px;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 999px;
  text-decoration: none;
  color: var(--accent);
  font-weight: 500;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.contact:hover,
.contact:focus-visible {
  background-color: var(--accent);
  color: var(--bg-soft);
}

@keyframes float-pixel {
  0% {
    transform: translate3d(0, 0, 0);
    opacity: 0.15;
  }
  50% {
    transform: translate3d(0, -18px, 0);
    opacity: 0.4;
  }
  100% {
    transform: translate3d(0, 0, 0);
    opacity: 0.15;
  }
}
