/* ── Hero wrapper ─────────────────────────────────── */

.hero-wrapper {
  position: relative;
  background: var(--noir-bg);
  overflow: hidden;
}

/* Grid background */
.hero-wrapper::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(107, 125, 142, 0.15) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(107, 125, 142, 0.15) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: linear-gradient(to bottom, black 0%, transparent 50%);
  -webkit-mask-image: linear-gradient(to bottom, black 0%, transparent 50%);
  z-index: 1;
  pointer-events: none;
  animation: hero-grid-fade 1.2s ease-out;
}

@keyframes hero-grid-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Hero content stagger entrance */
.hero__badge {
  animation: hero-entrance 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
}

.hero__title {
  animation:
    hero-entrance 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.4s both,
    hero-shimmer 6s ease-in-out 1.5s infinite;
}

.hero__subtitle {
  animation: hero-entrance 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.6s both;
}

.hero__ctas {
  animation: hero-entrance 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.8s both;
}

@keyframes hero-entrance {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Planet / globe image */
.hero-wrapper .hero__bg {
  position: absolute;
  left: -10%;
  right: -10%;
  bottom: -20%;
  height: 70%;
  min-height: 500px;
  background-size: cover;
  background-position: center top;
  mix-blend-mode: screen;
  z-index: 0;
}

@media (min-width: 768px) {
  .hero-wrapper .hero__bg {
    height: 60%;
    min-height: 470px;
    bottom: -18%;
  }
}

@media (min-width: 1024px) {
  .hero-wrapper .hero__bg {
    height: 80%;
    min-height: 650px;
    bottom: -22%;
  }
}


/* ── Hero section ────────────────────────────────── */

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 118px 20px 80px;
  z-index: 3;
  gap: 40px;
}

/* ── Badge ────────────────────────────────────────── */

.hero__badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  border-radius: 20px;
  background: var(--blanc);
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--gris-500);
  border: 1px solid var(--gris-200);
  z-index: 0;
}

.hero__badge::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 21px;
  padding: 1px;
  background: conic-gradient(
    from var(--badge-angle, 0deg),
    transparent 0%,
    var(--brume-soft) 12%,
    transparent 24%,
    var(--gris-200) 50%,
    transparent 76%,
    var(--brume-soft) 88%,
    transparent 100%
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: badge-rotate 4s linear infinite;
  z-index: -1;
}

@property --badge-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

@keyframes badge-rotate {
  to { --badge-angle: 360deg; }
}

.hero__badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: hero-dot-pulse 2s ease-in-out infinite;
}

@keyframes hero-dot-pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(184, 150, 90, 0.4); }
  50% { opacity: 0.7; box-shadow: 0 0 0 6px rgba(184, 150, 90, 0); }
}

/* ── Title ────────────────────────────────────────── */

.hero__title {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: var(--font-display);
  font-size: clamp(28px, 7vw, 44px);
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.15;
  text-align: center;
  max-width: 1100px;
  background: linear-gradient(
    105deg,
    var(--noir) 0%,
    var(--noir) 40%,
    var(--brume-soft) 50%,
    var(--noir) 60%,
    var(--noir) 100%
  );
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

@keyframes hero-shimmer {
  0%, 100% { background-position: 100% 0; }
  50% { background-position: 0% 0; }
}

.hero__title-line {
  white-space: nowrap;
}

.hero__title-l2 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  color: var(--accent-text);
}

.hero__title-l3 em,
.hero__title-line em {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
  color: var(--accent-text);
  -webkit-text-fill-color: var(--accent-text);
  position: relative;
  display: inline-block;
  margin-right: 0.15em;
}

.hero__title-l3 em::after,
.hero__title-line em::after {
  content: "";
  position: absolute;
  left: -4px;
  right: -4px;
  bottom: 0;
  height: 10px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 10' preserveAspectRatio='none'%3E%3Cpath d='M0 5 Q100 3 200 5' fill='none' stroke='%23B8965A' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat;
  background-size: 100% 10px;
  opacity: 0.7;
}

/* ── Subtitle ─────────────────────────────────────── */

.hero__subtitle {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 300;
  color: var(--gris-400);
  line-height: 1.6;
  text-align: center;
  max-width: 680px;
  margin: 0;
}

.hero__br-desktop {
  display: none;
}

/* ── CTAs ─────────────────────────────────────────── */

.hero__ctas {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}


/* ── Responsive ──────────────────────────────────── */

@media (min-width: 768px) {
  .hero {
    min-height: 100svh;
    padding: 168px 48px 80px;
  }

  .hero__title {
    font-size: 62px;
  }

  .hero__subtitle {
    font-size: 18px;
  }

  .hero__br-desktop {
    display: inline;
  }

  .hero__ctas {
    flex-direction: row;
    gap: 16px;
  }

}

@media (min-width: 1024px) {
  .hero {
    padding: 128px 120px 80px;
  }

  .hero__title {
    font-size: 64px;
    letter-spacing: -2.5px;
  }

}
