.flag-hero {
  position: relative;
  min-height: clamp(32rem, 88vh, 52rem);
  display: grid;
  place-items: center;
  overflow: clip;
  isolation: isolate;

  /* Labradorite base — midnight blue with tanzanite edge */
  background:
    radial-gradient(ellipse 120% 80% at 20% 80%, color-mix(in srgb, var(--gem-nuummite-flat, #18180e) 12%, transparent), transparent),
    radial-gradient(ellipse 100% 60% at 80% 20%, color-mix(in srgb, var(--gem-tanzanite-flat, #4a2db5) 10%, transparent), transparent),
    var(--gem-labradorite, linear-gradient(135deg, #1a1f2e 0%, #2d3f6e 30%, #4a90c4 50%, #2eb5b0 65%, #1a1f2e 100%));
}

.flag-hero__video,
.flag-hero__overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.flag-hero__video {
  object-fit: cover;
  opacity: 0.28;
  transition: opacity 400ms ease;
}

.flag-hero__overlay {
  background:
    linear-gradient(180deg, rgb(7 10 20 / 22%) 0%, rgb(7 10 20 / 36%) 50%, color-mix(in srgb, var(--gem-obsidian-flat, #181818) 92%, transparent) 100%),
    radial-gradient(ellipse 600px 400px at 50% 35%, color-mix(in srgb, var(--gem-tanzanite-flat, #4a2db5) 10%, transparent), transparent),
    radial-gradient(ellipse 300px 300px at 15% 70%, color-mix(in srgb, var(--gem-gold-native-flat, #c88c00) 6%, transparent), transparent),
    radial-gradient(circle at center, transparent 0, rgb(7 10 20 / 18%) 58%, rgb(7 10 20 / 72%) 100%);
}

.flag-hero__content {
  position: relative;
  z-index: 1;
  width: min(100% - 2rem, 52rem);
  padding: 6rem 0 5rem;
  text-align: center;
  color: #fff;
}

.flag-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1.25rem;
  padding: 0.4rem 1.1rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gem-gold-native-flat, #c88c00);
  border: 1px solid color-mix(in srgb, var(--gem-gold-native-flat, #c88c00) 30%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--gem-gold-native-flat, #c88c00) 10%, transparent);
  backdrop-filter: blur(12px);
  box-shadow: 0 0 20px color-mix(in srgb, var(--gem-gold-native-flat, #c88c00) 12%, transparent);
}

.flag-hero__title {
  margin: 0;
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: -0.03em;
  text-wrap: balance;
  text-shadow: 0 4px 16px rgb(0 0 0 / 40%), 0 12px 34px rgb(0 0 0 / 24%);
}

.flag-hero__description {
  margin: 1.25rem auto 0;
  max-width: 38rem;
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  font-weight: 400;
  line-height: 1.65;
  color: rgb(255 255 255 / 78%);
}

.flag-hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
  margin-top: 2rem;
}

.flag-hero__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.95rem 1.75rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
  font-size: 0.95rem;
  transition: transform 200ms ease, box-shadow 200ms ease;
}

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

.flag-hero__cta--primary {
  color: var(--gem-gold-text, #1c1000);
  background: var(--gem-gold, linear-gradient(135deg, #7a5800, #c89010 30%, #f0c030 55%, #ffd840 70%, #c89010 100%));
  box-shadow:
    0 18px 34px color-mix(in srgb, var(--gem-gold-native-flat, #c88c00) 28%, transparent),
    0 0 24px color-mix(in srgb, var(--gem-gold-native-flat, #c88c00) 16%, transparent);
}

.flag-hero__cta--primary:hover {
  box-shadow:
    0 22px 44px color-mix(in srgb, var(--gem-gold-native-flat, #c88c00) 42%, transparent),
    0 0 36px color-mix(in srgb, var(--gem-gold-native-flat, #c88c00) 24%, transparent);
}

.flag-hero__cta--secondary {
  color: #fff;
  background: rgb(255 255 255 / 8%);
  border: 1px solid rgb(255 255 255 / 22%);
  backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 10%);
}

.flag-hero__cta--secondary:hover {
  background: rgb(255 255 255 / 14%);
  border-color: color-mix(in srgb, var(--gem-sapphire-text, #d0dcff) 40%, transparent);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 14%),
    0 0 20px color-mix(in srgb, var(--gem-sapphire-flat, #1f3a99) 16%, transparent);
}

.flag-hero__trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.5rem;
  margin-top: 2.75rem;
  padding-top: 2rem;
  border-top: 1px solid color-mix(in srgb, var(--gem-moonstone-flat, #c0c8e0) 12%, transparent);
}

.flag-hero__trust-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: color-mix(in srgb, var(--gem-moonstone-flat, #c0c8e0) 68%, transparent);
  letter-spacing: 0.02em;
}

.flag-hero__trust-item svg {
  color: color-mix(in srgb, var(--gem-gold-native-flat, #c88c00) 50%, transparent);
}

.flag-hero__trust-item svg {
  flex-shrink: 0;
}

@media (width < 640px) {
  .flag-hero__content {
    padding-top: 5rem;
    padding-bottom: 6rem;
  }

  .flag-hero__actions {
    flex-direction: column;
  }

  .flag-hero__cta {
    width: 100%;
  }

  .flag-hero__trust {
    flex-direction: column;
    align-items: center;
    gap: 0.65rem;
  }
}