/* Hero section styles (P2 Piece) */

.hero {
  position: relative;
  background-color: var(--navy-950);
  overflow: hidden;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: calc(var(--header-h) + 24px);
  padding-bottom: 32px;
}

@media (min-width: 1024px) {
  .hero {
    min-height: min(100svh, 860px);
    padding-top: calc(var(--header-h) + 48px);
    padding-bottom: 48px;
  }
}

/* Background grid, glow, and air lines */
.hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}

.hero__grid {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.4;
  z-index: 1;
}

.hero__air-lines {
  position: absolute;
  inset: 0;
  z-index: 2;
}

.hero__air-line {
  position: absolute;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(243, 156, 18, 0.15) 30%, rgba(255, 255, 255, 0.25) 50%, rgba(243, 156, 18, 0.15) 70%, transparent);
  width: 250px;
  animation: hero-drift linear infinite;
  opacity: 0.8;
}

.hero__air-line--1 {
  top: 15%;
  width: 200px;
  animation-duration: 7s;
  animation-delay: 0s;
}

.hero__air-line--2 {
  top: 35%;
  width: 300px;
  animation-duration: 10s;
  animation-delay: -2s;
}

.hero__air-line--3 {
  top: 55%;
  width: 240px;
  animation-duration: 8s;
  animation-delay: -4s;
}

.hero__air-line--4 {
  top: 75%;
  width: 280px;
  animation-duration: 11s;
  animation-delay: -1s;
}

.hero__air-line--5 {
  top: 88%;
  width: 210px;
  animation-duration: 9s;
  animation-delay: -5s;
}

@keyframes hero-drift {
  0% {
    left: 100%;
    transform: translateX(0);
  }
  100% {
    left: 0;
    transform: translateX(-100%);
  }
}

/* Container & Layout */
.hero__container {
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  justify-content: center;
}

.hero__main {
  flex-grow: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
  align-content: center;
}

@media (min-width: 1024px) {
  .hero__main {
    grid-template-columns: 55fr 45fr;
    gap: 64px;
  }
}

/* Left Content Column */
.hero__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.hero__eyebrow {
  margin-bottom: 16px;
}

.hero__title {
  margin-bottom: 16px;
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 0.95;
}

.hero__lead {
  color: var(--muted);
  font-size: clamp(1rem, 3vw, 1.2rem);
  line-height: 1.6;
  max-width: 540px;
  margin-bottom: 32px;
}

.hero__actions {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 12px;
}

@media (min-width: 480px) {
  .hero__actions {
    flex-direction: row;
    width: auto;
    gap: 16px;
  }
}

/* Right Visual Column */
.hero__visual-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.hero__visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 320px;
  height: 340px;
  animation: hero-float 6s ease-in-out infinite;
}

@media (min-width: 1024px) {
  .hero__visual {
    max-width: 440px;
    height: 450px;
  }
}

@keyframes hero-float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

.hero__glow {
  position: absolute;
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(243, 156, 18, 0.22) 0%, rgba(243, 156, 18, 0) 70%);
  filter: blur(40px);
  z-index: 1;
  pointer-events: none;
}

@media (min-width: 1024px) {
  .hero__glow {
    width: 550px;
    height: 550px;
    filter: blur(60px);
  }
}

.hero__card {
  position: relative;
  z-index: 2;
  height: 320px;
  aspect-ratio: 452/704;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.4),
    0 0 30px rgba(243, 156, 18, 0.25);
  display: block;
}

@media (min-width: 1024px) {
  .hero__card {
    height: 420px;
  }
}

.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Floating Spec Chips */
.hero__chip {
  position: absolute;
  z-index: 4;
  background: rgba(15, 30, 51, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 99px;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  white-space: nowrap;
}

.hero__chip-icon {
  width: 16px;
  height: 16px;
  color: var(--orange);
}

.hero__chip--1 {
  top: 15%;
  left: -10px;
}

.hero__chip--2 {
  bottom: 20%;
  right: -10px;
}

@media (min-width: 640px) {
  .hero__chip--1 {
    left: 20px;
  }
  .hero__chip--2 {
    right: 20px;
  }
}

@media (min-width: 1024px) {
  .hero__chip--1 {
    top: 20%;
    left: -20px;
  }
  .hero__chip--2 {
    bottom: 25%;
    right: -20px;
  }
}

/* Bottom Stat Strip */
.hero__stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background-color: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 40px;
}

.hero__stat-item {
  background-color: var(--navy-900);
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  justify-content: center;
}

.hero__stat-num {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 700;
  color: var(--orange);
  line-height: 1;
}

.hero__stat-label {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 4px;
}

@media (min-width: 1024px) {
  .hero__stats {
    grid-template-columns: repeat(4, 1fr);
    margin-top: 64px;
    background-color: transparent;
    border: none;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    border-radius: 0;
  }
  
  .hero__stat-item {
    background-color: transparent;
    padding: 24px 16px;
    border-right: 1px solid var(--line);
  }
  
  .hero__stat-item:last-child {
    border-right: none;
  }
}

/* Respect prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .hero__air-line {
    animation: none !important;
    display: none !important;
  }
  .hero__visual {
    animation: none !important;
  }
}
