#hero {
  height: 100vh;
  position: relative;
  overflow: hidden;
  background: var(--bg-primary);
}

#hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: url('../assets/hero-city.png') center center / cover no-repeat;
  transform-origin: center center;
  animation: heroZoom 20s ease-in-out infinite alternate;
}

@keyframes heroZoom {
  from { transform: scale(1); }
  to   { transform: scale(1.06); }
}

#hero-network {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: block;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(to bottom, rgba(17,17,17,0.25) 0%, rgba(17,17,17,0.7) 100%);
}

.hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  text-align: center;
  width: 100%;
  max-width: 860px;
  padding: 0 24px;
}

.hero-eyebrow {
  font-size: 13px;
  letter-spacing: 4px;
  color: var(--accent-blue);
  text-transform: uppercase;
  margin-bottom: 24px;
  opacity: 0;
  animation: fadeUp 0.7s ease forwards;
  animation-delay: 0s;
}

.hero-h1 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
  font-size: 66px;
  line-height: 1.1;
  margin-bottom: 28px;
  opacity: 0;
  animation: fadeUp 0.7s ease forwards;
  animation-delay: 0.15s;
}

.hero-h1 .blue {
  color: var(--accent-blue);
}

.hero-sub {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 40px;
  opacity: 0;
  animation: fadeUp 0.7s ease forwards;
  animation-delay: 0.3s;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  opacity: 0;
  animation: fadeUp 0.7s ease forwards;
  animation-delay: 0.45s;
}

.hero-social-proof {
  position: absolute;
  bottom: 48px;
  left: 48px;
  z-index: 3;
  opacity: 0;
  animation: fadeUp 0.7s ease forwards;
  animation-delay: 0.6s;
}

.partner-logos {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 32px;
  margin-bottom: 12px;
}

.partner-logo-wrap {
  min-width: 80px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.partner-logo {
  height: 32px;
  width: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.partner-logo:hover {
  opacity: 1;
}

.social-text {
  color: var(--text-muted);
  font-size: 13px;
  max-width: 220px;
  margin-top: 0;
  line-height: 1.5;
}

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

@keyframes drawArc {
  from { stroke-dashoffset: 1000; }
  to   { stroke-dashoffset: 0; }
}

.arc-path {
  stroke-dasharray: 1000;
  animation: drawArc 3s ease forwards;
}

@media (max-width: 768px) {
  /* Switch hero to flex so content + social proof stack naturally — no overlap */
  #hero {
    height: auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 96px 20px 52px;
  }

  /* Pull content out of absolute centering into the flex flow */
  .hero-content {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    width: 100%;
    max-width: 560px;
    padding: 0;
    text-align: center;
  }

  .hero-eyebrow {
    font-size: 11px;
    letter-spacing: 3px;
    margin-bottom: 18px;
    animation: fadeUp 0.7s ease forwards;
    animation-delay: 0s;
  }

  .hero-h1 {
    font-size: 38px;
    line-height: 1.15;
    margin-bottom: 20px;
    animation: fadeUp 0.7s ease forwards;
    animation-delay: 0.15s;
  }

  .hero-sub {
    font-size: 15px;
    margin-bottom: 28px;
    animation: fadeUp 0.7s ease forwards;
    animation-delay: 0.3s;
  }

  /* Buttons stack vertically, full-width up to 280px */
  .hero-buttons {
    flex-direction: column;
    align-items: center;
    gap: 12px;
    animation: fadeUp 0.7s ease forwards;
    animation-delay: 0.45s;
  }

  .hero-buttons a {
    width: 100%;
    max-width: 280px;
    text-align: center;
  }

  /* Social proof sits below buttons in the flex flow — no overlap possible */
  .hero-social-proof {
    position: relative;
    bottom: auto;
    left: auto;
    transform: none;
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    animation: fadeUp 0.7s ease forwards;
    animation-delay: 0.6s;
  }

  /* Smaller partner logos on mobile */
  .partner-logos {
    flex-direction: row;
    gap: 20px;
    justify-content: center;
  }

  .partner-logo {
    height: 24px;
    width: auto;
  }

  .social-text {
    font-size: 13px;
    max-width: 220px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  #hero {
    padding: 88px 20px 44px;
  }

  .hero-h1 {
    font-size: 32px;
  }
}
