:root {
  --parallax-max-offset: 10px;
}

.hero-sub {
  max-width: 820px;
  margin: 0.75rem auto 0;
  font-size: 1.125rem;
  line-height: 1.7;
  opacity: 0.95;
  letter-spacing: 0.2px;
}

/* Hero Section */
.hero {
  position: relative;
  min-height: clamp(560px, 82vh, 860px);
  display: flex;
  align-items: center;
  padding: clamp(120px, 14vw, 160px) 0 clamp(56px, 10vw, 110px);
  overflow: hidden;
  color: white;
}

.hero-background {
  position: absolute;
  inset: 0;
  overflow: hidden;
  will-change: transform;
}

.hero-image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 30%;
  transform: scale(1.05);
  animation: heroZoom 20s ease-in-out infinite alternate;
  filter: saturate(0.82) brightness(0.95);
  transition: filter 0.4s ease;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    145deg,
    rgba(10, 94, 122, 0.88),
    rgba(10, 94, 122, 0.82) 40%,
    rgba(200, 16, 46, 0.75)
  );
  backdrop-filter: brightness(0.9) contrast(1.1);
  -webkit-backdrop-filter: brightness(0.9) contrast(1.1);
}

.hero-content,
.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 780px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 40px);
  text-align: center;
  animation: fadeUp 0.6s ease forwards;
}

.hero-title {
  font-size: clamp(40px, 8vw, 72px);
  line-height: 1.1;
  font-weight: 800;
  margin: 0 0 32px;
  letter-spacing: 0.25px;
  text-shadow: 0 6px 24px rgba(0, 0, 0, 0.2);
}

.hero-clarifier {
  max-width: 720px;
  margin: 0 auto 16px;
  font-size: clamp(18px, 2.6vw, 22px);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 500;
}

.hero-pills {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(8px, 2vw, 16px);
  flex-wrap: wrap;
  list-style: none;
  padding: 0 clamp(12px, 5vw, 32px);
  margin: 12px auto 30px;
  max-width: 720px;
}

.hero-pills li {
  padding: 11px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: rgba(5, 18, 32, 0.65);
  color: rgba(255, 255, 255, 0.98);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.2px;
  box-shadow: 0 12px 30px rgba(5, 14, 24, 0.35);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.hero-flags {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin: 32px 0 36px;
  opacity: 0.88;
  filter: saturate(0.82);
}

.flag-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  transform: translateY(6px);
}

.flag-item span {
  font-size: 15px;
  font-weight: 500;
  opacity: 0.9;
}

.flag {
  width: 60px;
  height: 40px;
  border-radius: 6px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.16);
  background-size: cover;
  background-position: center;
  transition: transform 0.3s ease;
}

.flag.jp {
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 900 600"><rect width="900" height="600" fill="%23fff"/><circle cx="450" cy="300" r="180" fill="%23bc002d"/></svg>');
}

.flag.us {
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 900 600"><rect width="900" height="600" fill="%23bf0a30"/><rect y="46.15" width="900" height="46.15" fill="%23fff"/><rect y="138.45" width="900" height="46.15" fill="%23fff"/><rect y="230.75" width="900" height="46.15" fill="%23fff"/><rect y="323.05" width="900" height="46.15" fill="%23fff"/><rect y="415.35" width="900" height="46.15" fill="%23fff"/><rect y="507.65" width="900" height="46.15" fill="%23fff"/><rect width="346.15" height="323.05" fill="%23002868"/></svg>');
}

.flag-item:hover .flag {
  transform: translateY(-2px);
}

.bridge-icon {
  color: rgba(255, 255, 255, 0.7);
}

.hero-sub {
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.18);
  font-size: 1.025rem;
  line-height: 1.65;
  max-width: 820px;
  margin: 0.75rem auto 0;
  opacity: 0.95;
  letter-spacing: 0.2px;
}

.hero-subtitle {
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.18);
  font-size: clamp(18px, 2.5vw, 24px);
  text-align: center;
  line-height: 1.65;
  margin: 0 auto 40px;
  max-width: 640px;
  opacity: 0.9;
  font-weight: 300;
}

.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 40px;
}

.hero-secondary-cta {
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: none;
  backdrop-filter: blur(6px);
}

.hero-secondary-cta:hover,
.hero-secondary-cta:focus-visible {
  border-color: rgba(255, 255, 255, 0.65);
  background: rgba(255, 255, 255, 0.12);
  color: white;
}

.hero-proof {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 24px;
  margin: 28px auto 12px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.95rem;
  flex-wrap: wrap;
}

.hero-metrics-note {
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.76);
  max-width: 520px;
  margin: 0 auto 8px;
  letter-spacing: 0.01em;
}

.hero-proof > span {
  display: flex;
  flex-direction: column;
  text-align: left;
  min-width: 160px;
  gap: 2px;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(4, 21, 32, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.18);
}

.hero-proof strong {
  font-size: 1.05rem;
  letter-spacing: 0.2px;
  color: white;
}

@media (max-width: 1024px) {
  .hero {
    min-height: clamp(520px, 78vh, 760px);
    padding: clamp(110px, 12vw, 140px) 0 clamp(60px, 12vw, 96px);
  }

  .hero-proof {
    gap: clamp(16px, 4vw, 24px);
  }
}

@media (min-width: 768px) {
  .hero-proof {
    flex-wrap: nowrap;
  }
}

.scroll-cue {
  margin: 20px auto 0;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  font-weight: 600;
  transition: color 0.2s ease;
}

.scroll-cue:hover {
  color: rgba(255, 255, 255, 1);
}

.btn-primary {
  background: var(--accent-red);
  color: white;
  border: none;
  padding: 14px 32px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.btn-primary:hover {
  background: #d91332;
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.22);
}

.btn-outline {
  border: 2px solid rgba(255, 255, 255, 0.3);
  background: transparent;
  color: white;
  padding: 14px 32px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.3s ease;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.16);
}

.btn-outline:hover {
  border-color: white;
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
}

/* Animations defined in styles.css to avoid conflicts */

/* Responsive Design */
@media (max-width: 768px) {
  .hero {
    min-height: auto;
    padding: clamp(96px, 20vw, 120px) 0 clamp(48px, 16vw, 84px);
  }

  .hero-flags {
    gap: 16px;
  }

  .hero-clarifier {
    padding: 0 20px;
    font-size: 1.05rem;
  }

  .hero-pills {
    margin-bottom: 24px;
  }

  .hero-pills li {
    font-size: 0.95rem;
    padding: 10px 16px;
    flex: 1 1 45%;
    text-align: center;
  }

  .flag {
    width: 50px;
    height: 33px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.14);
  }

  .bridge-icon {
    transform: scale(0.8);
  }

  .hero-cta {
    flex-direction: column;
    gap: 12px;
    padding: 0 clamp(16px, 5vw, 32px);
    width: min(420px, 100%);
    margin: 32px auto 0;
  }

  .hero-proof {
    margin: 20px auto 0;
    gap: 16px;
    padding: 0 16px;
  }

  .hero-proof > span {
    min-width: unset;
    width: 100%;
  }

  .scroll-cue {
    margin-top: 16px;
  }

  .hero-cta .btn {
    width: 100%;
    justify-content: center;
    padding: 16px;
  }
}

@media (max-width: 620px) {
  .hero {
    padding-top: clamp(96px, 20vw, 110px);
    padding-bottom: clamp(90px, 22vh, 130px);
  }

  .hero-copy {
    padding: 0 clamp(12px, 5vw, 28px);
  }

  .hero-pills {
    padding: 0 clamp(12px, 5vw, 24px);
  }

  .hero-cta {
    padding: 0 clamp(12px, 6vw, 28px);
  }

  .hero-pills {
    flex-direction: column;
    width: 100%;
    align-items: stretch;
    gap: 8px;
  }

  .hero-pills li {
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 90px 0 48px;
  }

  .hero-proof {
    font-size: 0.9rem;
    gap: 12px;
  }

  .hero-title {
    font-size: 36px;
  }

  .hero-subtitle {
    font-size: 18px;
  }

  .flag {
    width: 45px;
    height: 30px;
  }
}

@media (max-width: 360px) {
  .hero {
    padding: 80px 0 44px;
  }

  .hero-pills li {
    font-size: 0.85rem;
  }
}

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

  .hero-background {
    will-change: auto;
  }
}
