:root {
  --navy: #14213d;
  --slate: #2b3a55;
  --muted: #5b6780;
  --red: #e0202b;
  --blue: #2f6bf2;
  --bg: #ffffff;
}

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

html,
body {
  height: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--navy);
  font-family: "Montserrat", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100svh;
  overflow-x: hidden;
}

#network {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* Soft white glow behind the text so the network never competes with it */
.veil {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(
    ellipse 42% 32% at 50% 50%,
    rgba(255, 255, 255, 0.92) 0%,
    rgba(255, 255, 255, 0.7) 45%,
    rgba(255, 255, 255, 0) 100%
  );
}

.hero {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 1.25rem;
  animation: rise 1.2s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.wordmark {
  margin: 0;
  display: inline-flex;
  flex-direction: column;
  align-items: stretch;
  font-weight: inherit;
}

.name {
  /* Montserrat Bold + 0.08em tracking — matched against the logo wordmark by overlay */
  font-weight: 700;
  font-size: clamp(2.75rem, 10vw, 7rem);
  line-height: 1;
  letter-spacing: 0.08em;
  color: var(--navy);
  /* offset trailing letter-spacing so the word stays optically centered */
  margin-right: -0.08em;
}

.sub {
  display: flex;
  align-items: center;
  gap: 1.1em;
  margin-top: 0.55em;
  font-size: clamp(0.95rem, 2.4vw, 1.6rem);
}

.rule {
  flex: 1;
  height: 1.5px;
  background: var(--slate);
  opacity: 0.85;
}

.health {
  font-weight: 500;
  letter-spacing: 0.55em;
  margin-right: -0.55em;
  color: var(--navy);
}

.tagline {
  margin: 1.1em 0 0;
  font-weight: 500;
  font-size: clamp(1rem, 2.6vw, 1.7rem);
  letter-spacing: 0.01em;
  color: var(--slate);
}

.footer {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.35rem 0.75rem;
  padding: 1.5rem 1rem calc(1.5rem + env(safe-area-inset-bottom, 0px));
  font-size: 0.9rem;
  color: var(--muted);
}

.footer a {
  color: var(--navy);
  font-weight: 600;
  text-decoration: none;
  background-image: linear-gradient(90deg, var(--red), var(--blue));
  background-size: 0% 1.5px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size 0.35s ease;
  padding-bottom: 2px;
}

.footer a:hover,
.footer a:focus-visible {
  background-size: 100% 1.5px;
}

.footer a:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 4px;
  border-radius: 2px;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero {
    animation: none;
  }
}
