:root {
  color-scheme: dark;
  --navy: #041632;
  --blue: #0b5fe0;
  --aqua: #47e2f2;
  --green: #20d77a;
  --gold: #f2cf72;
  --white: #f7fbff;
}

* {
  box-sizing: border-box;
}

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

body {
  background: var(--navy);
  color: var(--white);
  font-family: Inter, ui-rounded, "SF Pro Display", "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

.hero {
  position: relative;
  display: grid;
  min-height: 100svh;
  grid-template-rows: auto 1fr auto;
  overflow: hidden;
  isolation: isolate;
  padding: clamp(1.4rem, 4vw, 3.25rem) clamp(1.4rem, 6vw, 6rem);
}

.hero__art,
.hero__veil {
  position: absolute;
  inset: 0;
  z-index: -3;
}

.hero__art {
  background-image: url("/assets/wordbloom-hero.jpg");
  background-position: 61% center;
  background-size: cover;
  transform: scale(1.025);
  animation: awaken 18s ease-in-out infinite alternate;
}

.hero__veil {
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(2, 13, 34, 0.96) 0%, rgba(2, 15, 38, 0.78) 34%, rgba(2, 15, 38, 0.1) 69%, rgba(2, 15, 38, 0.28) 100%),
    linear-gradient(0deg, rgba(2, 13, 34, 0.7) 0%, transparent 35%, rgba(2, 13, 34, 0.24) 100%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: radial-gradient(circle at center, rgba(255, 255, 255, 0.72) 0 0.7px, transparent 0.9px);
  background-size: 54px 54px;
  opacity: 0.17;
  mask-image: linear-gradient(to bottom, black, transparent 75%);
}

.brand {
  display: flex;
  align-items: center;
  width: fit-content;
  min-height: 4rem;
  padding: 0.45rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 1.15rem;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(12px);
}

.brand__logo {
  display: block;
  width: clamp(11.5rem, 17vw, 16.5rem);
  height: auto;
  object-fit: contain;
}

.hero__copy {
  align-self: center;
  max-width: 47rem;
  padding: 5vh 0 10vh;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 1.5rem;
  color: #c3ebff;
  font-size: clamp(0.72rem, 1.3vw, 0.92rem);
  font-weight: 760;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.eyebrow span {
  width: 2.7rem;
  height: 2px;
  background: linear-gradient(90deg, var(--green), var(--aqua));
  box-shadow: 0 0 18px rgba(71, 226, 242, 0.75);
}

h1 {
  margin: 0;
  max-width: 8ch;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(4.6rem, 10.5vw, 9.5rem);
  font-weight: 600;
  letter-spacing: -0.065em;
  line-height: 0.85;
  text-wrap: balance;
  text-shadow: 0 10px 60px rgba(0, 0, 0, 0.45);
}

.lede {
  margin: clamp(1.5rem, 3vw, 2.5rem) 0 0;
  color: rgba(233, 247, 255, 0.88);
  font-size: clamp(1.05rem, 2vw, 1.45rem);
  font-weight: 430;
  letter-spacing: -0.015em;
  line-height: 1.55;
  text-shadow: 0 5px 24px rgba(0, 0, 0, 0.7);
}

.signal {
  display: flex;
  gap: 0.45rem;
  margin-top: 2.3rem;
}

.signal span {
  width: 0.48rem;
  height: 0.48rem;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 15px rgba(32, 215, 122, 0.9);
  animation: pulse 1.8s ease-in-out infinite;
}

.signal span:nth-child(2) {
  animation-delay: 0.22s;
}

.signal span:nth-child(3) {
  animation-delay: 0.44s;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  color: rgba(224, 242, 255, 0.67);
  font-size: 0.78rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.footer p {
  margin: 0;
}

.footer a {
  color: inherit;
  text-decoration: none;
  transition: color 180ms ease;
}

.footer a:hover,
.footer a:focus-visible {
  color: var(--aqua);
}

.glow {
  position: absolute;
  z-index: -1;
  width: 22rem;
  height: 22rem;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.16;
  pointer-events: none;
}

.glow--one {
  top: -9rem;
  left: 22%;
  background: var(--blue);
}

.glow--two {
  right: -8rem;
  bottom: -9rem;
  background: var(--green);
}

@keyframes awaken {
  from { transform: scale(1.025) translate3d(0, 0, 0); }
  to { transform: scale(1.065) translate3d(-0.35%, -0.4%, 0); }
}

@keyframes pulse {
  0%, 100% { opacity: 0.28; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(-3px); }
}

@media (max-width: 720px) {
  .hero {
    padding: 1.2rem 1.35rem 1.5rem;
  }

  .hero__art {
    background-position: 68% center;
  }

  .hero__veil {
    background:
      linear-gradient(180deg, rgba(2, 13, 34, 0.5) 0%, rgba(2, 13, 34, 0.15) 36%, rgba(2, 13, 34, 0.87) 72%, rgba(2, 13, 34, 0.98) 100%),
      linear-gradient(90deg, rgba(2, 13, 34, 0.65), rgba(2, 13, 34, 0.03));
  }

  .brand__logo {
    width: 11.5rem;
  }

  .hero__copy {
    align-self: end;
    padding: 39vh 0 1.5vh;
  }

  h1 {
    font-size: clamp(4.1rem, 20vw, 6.5rem);
  }

  .eyebrow {
    margin-bottom: 1rem;
  }

  .lede {
    margin-top: 1.05rem;
  }

  .signal {
    margin-top: 1.35rem;
  }

  .footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.35rem;
    font-size: 0.62rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
