.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 100px 1.5rem 4rem;
  text-align: center;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  width: 700px; height: 700px;
  border-radius: 50%;
  top: 50%; left: 50%;
  transform: translate(-50%, -55%);
  pointer-events: none;
}

/* Glow behind the headline: the old and new colour cross-fade */
.glow-layer {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle, var(--c) 0%, transparent 70%);
  opacity: 0;
  transition: opacity var(--glide, 0.8s) ease-in-out;
}
.glow-layer.on { opacity: 1; }

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black, transparent);
  pointer-events: none;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background-color: var(--tag-bg, var(--blue-dim));
  border: 1px solid var(--tag-border, rgba(0,102,204,0.25));
  color: var(--tag-color, #6aabf0);
  font-family: var(--mono);
  font-size: 12px;
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 2rem;
  animation: fadeUp 0.6s ease both;
  transition: background 0.4s, border-color 0.4s, color 0.4s;
}

.hero-tag-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background-color: var(--accent-color, var(--blue));
  animation: pulse 2s infinite;
  transition: background 0.4s;
}

h1 {
  font-family: var(--display);
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.04em;
  margin-bottom: 1.5rem;
  animation: fadeUp 0.6s 0.1s ease both;
}

h1 .accent { color: var(--accent-color, var(--blue)); transition: color 0.4s; }

.hero-sub {
  font-size: 1.05rem;
  color: var(--text2);
  max-width: 440px;
  line-height: 1.6;
  margin-bottom: 2.5rem;
  font-weight: 300;
  animation: fadeUp 0.6s 0.2s ease both;
  min-height: 48px;
  transition: opacity 0.3s;
}

@media (max-width: 600px) {
  h1 { font-size: 2.6rem; }
}

/* each headline line stays on one line; the page scales the text if it is too wide */
.hero h1 > span { white-space: nowrap; }
