:root {
  --bg-base: #031321;
  --bg-mid: #0b2a3f;
  --bg-accent: #1b5a73;
  --light: #f4f7fa;
  --light-soft: rgba(244, 247, 250, 0.72);
  --halo-one: rgba(36, 163, 187, 0.5);
  --halo-two: rgba(232, 166, 90, 0.33);
}

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

html,
body {
  height: 100%;
}

body {
  margin: 0;
  overflow: hidden;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 18% 12%, #1f6c83 0%, transparent 36%),
    radial-gradient(circle at 85% 82%, #2b5367 0%, transparent 42%),
    linear-gradient(140deg, var(--bg-base), var(--bg-mid) 55%, var(--bg-accent));
  color: var(--light);
  font-family: "Sora", "Segoe UI", sans-serif;
}

.background-layer {
  position: fixed;
  inset: -10vmax;
  pointer-events: none;
  filter: blur(60px);
  transform: translate3d(0, 0, 0);
}

.background-layer--one {
  background:
    radial-gradient(circle at 15% 30%, var(--halo-one) 0%, transparent 35%),
    radial-gradient(circle at 78% 60%, rgba(34, 113, 159, 0.4) 0%, transparent 37%);
  animation: driftA 12s ease-in-out infinite alternate;
}

.background-layer--two {
  background:
    radial-gradient(circle at 80% 20%, var(--halo-two) 0%, transparent 28%),
    radial-gradient(circle at 42% 82%, rgba(62, 183, 167, 0.24) 0%, transparent 32%);
  animation: driftB 15s ease-in-out infinite alternate;
}

.background-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.2;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(circle at center, black 38%, transparent 92%);
}

.hero {
  text-align: center;
  padding: 2.6rem 3.1rem;
  border-radius: 26px;
  background: linear-gradient(
    135deg,
    rgba(5, 27, 43, 0.7),
    rgba(9, 43, 61, 0.35) 48%,
    rgba(74, 124, 141, 0.25)
  );
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow:
    0 18px 50px rgba(0, 0, 0, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  width: min(94vw, 980px);
  animation: reveal 0.9s ease-out both;
}

.hero h1 {
  margin: 0;
  font-family: "Urbanist", "Trebuchet MS", sans-serif;
  font-size: clamp(2.3rem, 8.2vw, 5.8rem);
  letter-spacing: clamp(0.06em, 0.45vw, 0.13em);
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
  text-shadow: 0 10px 22px rgba(0, 0, 0, 0.36);
}

.hero p {
  margin: 1rem 0 0;
  font-size: clamp(0.8rem, 2.2vw, 1.2rem);
  letter-spacing: 0.42em;
  font-weight: 500;
  color: var(--light-soft);
  text-transform: uppercase;
}

@media (max-width: 640px) {
  .hero {
    padding: 2rem 1.2rem;
    border-radius: 18px;
  }

  .hero h1 {
    font-size: clamp(2rem, 12vw, 3.4rem);
    letter-spacing: 0.08em;
  }

  .hero p {
    letter-spacing: 0.28em;
  }
}

@keyframes driftA {
  from {
    transform: translate(-2%, -1%) scale(1.02);
  }
  to {
    transform: translate(2%, 1%) scale(0.97);
  }
}

@keyframes driftB {
  from {
    transform: translate(2%, -2%) scale(0.98);
  }
  to {
    transform: translate(-1%, 2%) scale(1.03);
  }
}

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