:root {
  --blue: #00a6fb;
  --gray: #434a57;
  --bg: #f3f6f9;
}

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

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

body {
  display: grid;
  place-items: center;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 1.5rem;
  overflow: hidden;
  background: var(--bg);
  color: var(--gray);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* ---------- Backdrop ---------- */

.backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .55;
  will-change: transform;
}

.blob--blue {
  width: 55vmax; height: 55vmax;
  top: -20vmax; left: -15vmax;
  background: radial-gradient(circle, var(--blue) 0%, transparent 65%);
  animation: drift-a 22s ease-in-out infinite alternate;
}

.blob--gray {
  width: 50vmax; height: 50vmax;
  bottom: -22vmax; right: -15vmax;
  background: radial-gradient(circle, var(--gray) 0%, transparent 65%);
  opacity: .35;
  animation: drift-b 26s ease-in-out infinite alternate;
}

.blob--sky {
  width: 30vmax; height: 30vmax;
  bottom: 5vmax; left: 10vmax;
  background: radial-gradient(circle, #7fd3ff 0%, transparent 65%);
  opacity: .45;
  animation: drift-c 18s ease-in-out infinite alternate;
}

.grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(67, 74, 87, .22) 1px, transparent 1px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 0%, transparent 70%);
          mask-image: radial-gradient(ellipse at center, #000 0%, transparent 70%);
}

@keyframes drift-a { to { transform: translate(12vw, 10vh) scale(1.1); } }
@keyframes drift-b { to { transform: translate(-10vw, -12vh) scale(1.15); } }
@keyframes drift-c { to { transform: translate(25vw, -15vh) scale(.85); } }

/* ---------- Stage ---------- */

.stage {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 2.5rem);
  padding: clamp(2.5rem, 7vw, 4.5rem) clamp(2rem, 8vw, 5.5rem);
  border-radius: 28px;
  background: rgba(255, 255, 255, .55);
  border: 1px solid rgba(255, 255, 255, .8);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, .9) inset,
    0 30px 60px -20px rgba(67, 74, 87, .25),
    0 12px 24px -12px rgba(0, 166, 251, .25);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
          backdrop-filter: blur(18px) saturate(140%);
  animation: rise 1s cubic-bezier(.2, .8, .2, 1) both;
}

.halo {
  position: absolute;
  inset: 20% 15%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0, 166, 251, .35), transparent);
  filter: blur(30px);
  animation: pulse 6s ease-in-out infinite;
}

.logo {
  display: block;
  width: min(60vw, 340px);
  height: auto;
  filter: drop-shadow(0 14px 18px rgba(0, 166, 251, .25));
}

.rule {
  width: min(50vw, 220px);
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, transparent, var(--blue), var(--gray), transparent);
  background-size: 200% 100%;
  animation: shimmer 4s linear infinite;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  margin: 0;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gray);
  opacity: .8;
}

.dot {
  position: relative;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--blue);
}

.dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--blue);
  animation: ping 2s cubic-bezier(0, 0, .2, 1) infinite;
}

.site-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  margin-top: -.75rem;
  padding: .7rem 1.4rem;
  border-radius: 999px;
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--gray);
  text-decoration: none;
  background: rgba(255, 255, 255, .7);
  border: 1px solid rgba(0, 166, 251, .35);
  box-shadow: 0 6px 16px -8px rgba(0, 166, 251, .45);
  transition: color .25s, background .25s, border-color .25s, box-shadow .25s, transform .25s;
}

.site-link svg { transition: transform .25s; }

.site-link:hover,
.site-link:focus-visible {
  color: #fff;
  background: linear-gradient(135deg, var(--blue), #0086cc);
  border-color: transparent;
  box-shadow: 0 12px 24px -10px rgba(0, 166, 251, .7);
  transform: translateY(-2px);
}

.site-link:hover svg,
.site-link:focus-visible svg { transform: translateX(4px); }

.site-link:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

@keyframes rise   { from { opacity: 0; transform: translateY(24px) scale(.97); } }
@keyframes pulse  { 50% { opacity: .55; transform: scale(1.08); } }
@keyframes shimmer{ from { background-position: 200% 0; } to { background-position: 0 0; } }
@keyframes ping   { 75%, 100% { transform: scale(2.6); opacity: 0; } }

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