:root {
  --bg-start: #f5f7fa;
  --bg-end: #e7edf3;
  --blob-a: rgba(14, 165, 233, 0.18);
  --blob-b: rgba(16, 185, 129, 0.16);
  --text-main: #0f172a;
  --text-sub: #334155;
  --text-muted: #64748b;
  --accent: #0ea5e9;
  --accent-hover: #0284c7;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  height: 100%;
  min-height: 100%;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text-main);
  background: linear-gradient(145deg, var(--bg-start), var(--bg-end));
}

body {
  overflow: hidden;
  position: relative;
}

.landscape {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.35;
  pointer-events: none;
}

.viewport {
  position: fixed;
  inset: 0;
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 24px;
  z-index: 1;
  pointer-events: none;
}

.wrap {
  width: min(92vw, 560px);
  text-align: center;
  padding: clamp(8px, 2.4vw, 16px);
  position: relative;
  z-index: 1;
  animation: riseIn 780ms ease-out both;
}

.code {
  margin: 0;
  font-size: clamp(56px, 16vw, 120px);
  line-height: 1;
  letter-spacing: 0.04em;
  font-weight: 800;
  color: var(--text-main);
  animation: pulseSoft 3.2s ease-in-out infinite;
}

.site-name {
  margin: 14px 0 0;
  font-size: clamp(18px, 4.5vw, 26px);
  font-weight: 600;
  color: var(--text-sub);
  text-transform: lowercase;
  opacity: 0;
  animation: fadeUp 700ms ease-out 120ms forwards;
}

.ref {
  margin: 10px 0 0;
  font-size: clamp(15px, 3.8vw, 20px);
  color: var(--text-muted);
  opacity: 0;
  animation: fadeUp 700ms ease-out 220ms forwards;
}

.ref a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 700;
  transition: color 180ms ease, text-shadow 180ms ease;
}

.ref a:hover,
.ref a:focus-visible {
  color: var(--accent-hover);
  text-decoration: underline;
  text-shadow: 0 0 10px rgba(14, 165, 233, 0.35);
  outline: none;
}

.bg-blob {
  position: fixed;
  border-radius: 50%;
  filter: blur(36px);
  pointer-events: none;
  z-index: 0;
  will-change: transform;
}

.blob-a {
  width: min(42vw, 340px);
  aspect-ratio: 1;
  top: -10%;
  left: -8%;
  background: var(--blob-a);
  animation: driftA 13s ease-in-out infinite alternate;
}

.blob-b {
  width: min(38vw, 310px);
  aspect-ratio: 1;
  right: -8%;
  bottom: -10%;
  background: var(--blob-b);
  animation: driftB 14s ease-in-out infinite alternate;
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulseSoft {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.02);
  }
}

@keyframes driftA {
  from {
    transform: translate(0, 0);
  }
  to {
    transform: translate(18px, 26px);
  }
}

@keyframes driftB {
  from {
    transform: translate(0, 0);
  }
  to {
    transform: translate(-22px, -20px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .wrap,
  .code,
  .site-name,
  .ref,
  .blob-a,
  .blob-b {
    animation: none;
  }

  .site-name,
  .ref {
    opacity: 1;
  }
}
