:root {
  --bg: #0b1020;
  --ink: #e7eef7;
  --cyan: #5cc9ff;
  --violet: #7d67ff;
  --magenta: #ff6fb6;
}

* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, "Helvetica Neue", Arial, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.content {
  min-height: 100vh;
  display: grid;
  place-items: center;
  position: relative;
  z-index: 2;
  padding-top: calc(clamp(3rem, 8vh, 6rem) + env(safe-area-inset-top, 0px));
  padding-bottom: calc(clamp(3rem, 8vh, 6rem) + env(safe-area-inset-bottom, 0px));
  padding-left: calc(1.25rem + env(safe-area-inset-left, 0px));
  padding-right: calc(1.25rem + env(safe-area-inset-right, 0px));
}

.brand {
  font-weight: 700;
  font-size: clamp(2.75rem, 6.5vw, 5.25rem);
  letter-spacing: 0.02em;
  line-height: 1.1;
  text-align: center;
  margin: 0 0 0.75rem;
  background: linear-gradient(120deg, #ffffff, #dbe7ff 25%, #a7d4ff 55%, #bfb4ff 80%, #ffffff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 2px 18px rgba(124, 92, 255, 0.12));
}

.tagline {
  font-weight: 300;
  font-size: clamp(1.05rem, 2.1vw, 1.3rem);
  letter-spacing: 0.02em;
  opacity: 0.8;
  text-align: center;
  max-width: 68ch;
  margin: 0.25rem 0 0;
}

.background {
  position: fixed;
  inset: 0;
  overflow: hidden;
}

.content,
.particles,
.background {
  width: 100%;
}

.particles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.particles span {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.9), rgba(255,255,255,0.2) 60%, transparent 70%);
  filter: blur(2px);
  opacity: 0.35;
  animation: float 32s linear infinite;
}

.particles span:nth-child(1) { left: 12%; top: 25%; transform: scale(0.8); animation-duration: 38s; }
.particles span:nth-child(2) { left: 28%; top: 70%; transform: scale(0.6); animation-duration: 34s; }
.particles span:nth-child(3) { left: 45%; top: 40%; transform: scale(0.9); animation-duration: 36s; }
.particles span:nth-child(4) { left: 62%; top: 20%; transform: scale(0.7); animation-duration: 40s; }
.particles span:nth-child(5) { left: 78%; top: 65%; transform: scale(0.85); animation-duration: 33s; }
.particles span:nth-child(6) { left: 88%; top: 35%; transform: scale(0.75); animation-duration: 37s; }
.particles span:nth-child(7) { left: 8%; top: 55%; transform: scale(0.7); animation-duration: 35s; }
.particles span:nth-child(8) { left: 34%; top: 15%; transform: scale(1.0); animation-duration: 41s; }
.particles span:nth-child(9) { left: 51%; top: 75%; transform: scale(0.65); animation-duration: 39s; }
.particles span:nth-child(10){ left: 67%; top: 48%; transform: scale(0.9); animation-duration: 32s; }
.particles span:nth-child(11){ left: 83%; top: 18%; transform: scale(0.6); animation-duration: 44s; }
.particles span:nth-child(12){ left: 23%; top: 85%; transform: scale(0.7); animation-duration: 42s; }

@
keyframes spin {
  to { transform: rotate(360deg); }
}

.background::before,
.background::after {
  content: "";
  position: absolute;
  inset: -20vmax;
  filter: blur(90px) saturate(110%);
  transform-origin: center;
  will-change: transform, opacity;
}

.background::before {
  background: conic-gradient(from 0deg at 50% 50%, rgba(124,92,255,0.35), rgba(70,197,255,0.3), rgba(255,91,178,0.25), rgba(124,92,255,0.35));
  animation: spin 90s linear infinite;
  opacity: 0.55;
}

.background::after {
  background:
    radial-gradient(35vmax 35vmax at 20% 30%, rgba(70,197,255,0.35) 0%, transparent 60%),
    radial-gradient(30vmax 30vmax at 80% 70%, rgba(124,92,255,0.35) 0%, transparent 65%),
    radial-gradient(25vmax 25vmax at 60% 20%, rgba(255,91,178,0.25) 0%, transparent 70%);
  animation: drift 46s ease-in-out infinite alternate;
  opacity: 0.6;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes drift {
  0%   { transform: translate3d(-2%, -2%, 0) scale(1); }
  50%  { transform: translate3d(2%, 1%, 0) scale(1.05); }
  100% { transform: translate3d(-1%, 2%, 0) scale(1.02); }
}

@keyframes float {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  50%  { transform: translate3d(6px, -10px, 0) scale(1.05); }
  100% { transform: translate3d(-8px, 8px, 0) scale(1.02); }
}

@supports (height: 100svh) {
  .content { min-height: 100svh; }
}
@supports (height: 100dvh) {
  .content { min-height: 100dvh; }
}

@media (max-width: 480px) {
  .brand {
    font-size: clamp(2rem, 10vw, 3.25rem);
    letter-spacing: 0.01em;
    margin: 0 0 0.5rem;
  }
  .tagline {
    font-size: clamp(0.95rem, 3.5vw, 1.1rem);
    max-width: 40ch;
    opacity: 0.85;
  }
  .background::before {
    filter: blur(60px) saturate(105%);
    opacity: 0.45;
  }
  .background::after {
    opacity: 0.55;
  }
  .particles span {
    opacity: 0.28;
    filter: blur(1.5px);
  }
  .particles span:nth-child(n+9) {
    display: none;
  }
}

@media (max-height: 640px) {
  .brand { font-size: clamp(2rem, 7.5vh, 3rem); }
  .tagline { font-size: clamp(0.95rem, 2.8vh, 1.1rem); }
}

@media (prefers-reduced-motion: reduce) {
  .background::before,
  .background::after {
    animation: none;
  }
  .particles span {
    animation: none;
  }
}
