.hero {
  position: relative;
  min-height: 78vh;
  overflow: hidden;
  isolation: isolate;
  color: #ffffff;
  background-image: linear-gradient(94deg, rgba(11, 17, 19, 0.93), rgba(8, 88, 82, 0.56) 58%, rgba(52, 95, 116, 0.24)), var(--hero-image);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.hero-overlay {
  min-height: 78vh;
  display: flex;
  align-items: center;
  padding: 96px 0 72px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(260px, 0.35fr);
  gap: 42px;
  align-items: end;
}

.hero-copy {
  max-width: 780px;
}

.hero-kicker {
  margin: 0 0 14px;
  color: #cceee9;
  font-weight: 800;
}

.hero h1 {
  margin: 0;
  font-size: 4.6rem;
  line-height: 0.98;
}

.hero-copy > p:not(.hero-kicker) {
  max-width: 660px;
  margin: 22px 0 28px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.1rem;
}

.hero-panel {
  align-self: end;
  padding: 22px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.92);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-panel span,
.hero-panel a {
  display: block;
}

.hero-panel span {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
  text-transform: uppercase;
}

.hero-panel strong {
  display: block;
  margin: 8px 0 12px;
  font-size: 1.35rem;
}

.hero-panel a {
  color: var(--teal-dark);
  font-weight: 900;
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 3.2rem;
  }

  .hero-panel {
    max-width: 340px;
  }
}

@media (max-width: 520px) {
  .hero {
    min-height: 72vh;
  }

  .hero-overlay {
    min-height: 72vh;
    padding: 74px 0 52px;
  }

  .hero h1 {
    font-size: clamp(1.95rem, 10vw, 2.55rem);
    line-height: 1.03;
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .hero-copy > p:not(.hero-kicker) {
    margin: 16px 0 22px;
    font-size: 0.98rem;
  }

  .hero-panel {
    max-width: 100%;
    width: 100%;
    padding: 16px;
  }

  .hero-panel strong {
    font-size: 1.1rem;
  }
}

.hero::before,
.hero::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  pointer-events: none;
}

.hero::before {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 58px 58px;
  opacity: 0.46;
  animation: heroGrid 20s linear infinite;
}

.hero::after {
  background: linear-gradient(110deg, transparent 18%, rgba(56, 170, 184, 0.14), transparent 54%);
  background-repeat: no-repeat;
  transform: translateX(-72%);
  animation: heroSweep 7s ease-in-out infinite;
}

.hero-overlay {
  position: relative;
  z-index: 1;
}

.hero-copy {
  text-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
}

.hero h1 {
  max-width: 840px;
}

.hero-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.48);
  box-shadow: var(--shadow-strong);
  backdrop-filter: blur(10px);
}

.hero-panel::before {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 4px;
  content: "";
  background: linear-gradient(90deg, var(--teal), var(--cyan), var(--amber));
}

@keyframes heroGrid {
  from { background-position: 0 0, 0 0; }
  to { background-position: 58px 58px, 58px 58px; }
}

@keyframes heroSweep {
  0%, 55% { transform: translateX(-72%); opacity: 0; }
  70% { opacity: 1; }
  100% { transform: translateX(70%); opacity: 0; }
}
