/* ===========================================================================
   Home hero — one editorial composition
   ========================================================================== */

.hero--dark {
  --hero-glass: rgb(255 255 255 / 0.055);
  --hero-line: rgb(255 255 255 / 0.15);
  --hero-soft: rgb(255 255 255 / 0.74);
  --hero-dim: rgb(255 255 255 / 0.52);
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  padding: clamp(9rem, 12vw, 11rem) 0 clamp(2.75rem, 5vw, 4.5rem);
  overflow: hidden;
  background: #03131f;
  color: #fff;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.hero__bg > * {
  position: absolute;
  display: block;
}

.hero__bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 76% 38%, rgb(17 120 183 / 0.19), transparent 34%),
    linear-gradient(122deg, #03131f 0%, #06263b 48%, #073f64 100%);
}

.hero__aurora {
  border-radius: 50%;
  will-change: transform;
}

.hero__aurora--a {
  top: -55%;
  left: 10%;
  width: min(76rem, 115vw);
  aspect-ratio: 1;
  background: radial-gradient(circle, rgb(23 150 222 / 0.27), transparent 67%);
  animation: heroAuroraA 24s ease-in-out infinite alternate;
}

.hero__aurora--b {
  right: -18%;
  bottom: -50%;
  width: min(55rem, 90vw);
  aspect-ratio: 1;
  background: radial-gradient(circle, rgb(0 194 255 / 0.19), transparent 68%);
  animation: heroAuroraB 29s ease-in-out infinite alternate;
}

.hero__aurora--c {
  left: -24%;
  bottom: -60%;
  width: min(50rem, 88vw);
  aspect-ratio: 1;
  background: radial-gradient(circle, rgb(21 107 170 / 0.26), transparent 70%);
  animation: heroAuroraC 33s ease-in-out infinite alternate;
}

@keyframes heroAuroraA {
  from { transform: translate(-3%, -2%) scale(1); }
  to { transform: translate(7%, 5%) scale(1.14); }
}

@keyframes heroAuroraB {
  from { transform: translate(3%, 4%) scale(1.08); }
  to { transform: translate(-7%, -4%) scale(1); }
}

@keyframes heroAuroraC {
  from { transform: translate(-3%, 2%) scale(1); }
  to { transform: translate(8%, -3%) scale(1.12); }
}

.hero__grid {
  inset: -10%;
  background-image:
    linear-gradient(to right, rgb(255 255 255 / 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgb(255 255 255 / 0.045) 1px, transparent 1px);
  background-size: 74px 74px;
  -webkit-mask-image: radial-gradient(ellipse 82% 76% at 52% 40%, #000 8%, transparent 76%);
          mask-image: radial-gradient(ellipse 82% 76% at 52% 40%, #000 8%, transparent 76%);
}

.hero__beam {
  top: -45%;
  left: 42%;
  width: 12rem;
  height: 180%;
  background: linear-gradient(90deg, transparent, rgb(129 222 255 / 0.08), transparent);
  transform: rotate(23deg);
  animation: heroBeam 12s ease-in-out infinite alternate;
}

@keyframes heroBeam {
  from { opacity: 0.35; transform: translateX(-16vw) rotate(23deg); }
  to { opacity: 0.9; transform: translateX(22vw) rotate(23deg); }
}

/* Fine orbital geometry lives in the background rather than becoming a card. */
.hero__orbit {
  right: clamp(-15rem, -8vw, -5rem);
  top: clamp(7rem, 16vh, 12rem);
  border: 1px solid rgb(139 226 255 / 0.14);
  border-radius: 50%;
}

.hero__orbit--outer {
  width: clamp(31rem, 48vw, 47rem);
  aspect-ratio: 1;
  border-style: dashed;
  animation: heroOrbit 38s linear infinite;
}

.hero__orbit--inner {
  right: clamp(-8rem, -3vw, -1rem);
  top: clamp(13rem, 23vh, 18rem);
  width: clamp(20rem, 32vw, 32rem);
  aspect-ratio: 1;
  animation: heroOrbit 27s linear infinite reverse;
}

.hero__orbit--outer::before,
.hero__orbit--inner::before {
  content: "";
  position: absolute;
  top: 50%;
  left: -4px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #8fe6ff;
  box-shadow: 0 0 18px 4px rgb(62 200 255 / 0.6);
}

.hero__orbit-dot {
  top: 30%;
  right: 17%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 7px rgb(255 255 255 / 0.06), 0 0 24px #55ceff;
  animation: heroPulse 2.8s ease-out infinite;
}

@keyframes heroOrbit { to { transform: rotate(360deg); } }

@keyframes heroPulse {
  0%, 100% { box-shadow: 0 0 0 4px rgb(255 255 255 / 0.05), 0 0 18px #55ceff; }
  50% { box-shadow: 0 0 0 12px rgb(255 255 255 / 0), 0 0 30px #55ceff; }
}

.hero__vignette {
  inset: 0;
  background: linear-gradient(90deg, rgb(2 10 17 / 0.32), transparent 45%, rgb(2 10 17 / 0.2)),
              radial-gradient(ellipse 90% 80% at 50% 42%, transparent 45%, rgb(2 10 17 / 0.58));
}

.hero--dark::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgb(95 210 255 / 0.65), transparent);
}

/* --- composition -------------------------------------------------------- */

.hero__shell {
  position: relative;
  z-index: 1;
}

.hero--dark .hero__eyebrow {
  margin-bottom: clamp(3.75rem, 7vw, 6.5rem);
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  color: var(--hero-dim);
  animation: heroRise 0.65s cubic-bezier(0.2, 0.72, 0.24, 1) 0.04s both;
}

.hero--dark .hero__eyebrow::before {
  content: "";
  width: 2.75rem;
  height: 1px;
  margin-right: 0.15rem;
  background: linear-gradient(90deg, var(--ox-cyan), transparent);
}

.hero--dark .hero__eyebrow span {
  padding: 0;
  background: none;
  box-shadow: none;
  color: #fff;
  font-size: inherit;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.hero__editorial {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(18rem, 0.65fr);
  align-items: center;
  gap: clamp(2.5rem, 6vw, 7rem);
}

.hero--dark .hero__title {
  margin: 0;
  color: #fff;
  font-size: clamp(4rem, 7.15vw, 7rem);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.035em;
  text-shadow: 0 5px 45px rgb(1 11 19 / 0.38);
  animation: none;
  opacity: 1;
  transform: none;
}

.hero__line {
  display: block;
  padding-right: 0.08em;
  white-space: nowrap;
}

.hero__word {
  display: inline-block;
  animation: heroWord 0.82s cubic-bezier(0.2, 0.72, 0.24, 1) both;
  animation-delay: calc(0.11s + var(--w) * 0.065s);
}

@keyframes heroWord {
  from { opacity: 0; transform: translateY(0.48em); filter: blur(8px); }
  to { opacity: 1; transform: none; filter: blur(0); }
}

.hero--dark .hero__accent {
  padding-bottom: 0.12em;
  margin-bottom: -0.12em;
  background: linear-gradient(100deg, #94eaff 0%, #20baf3 28%, #78aaff 58%, #b6edff 82%, #20baf3 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: heroAccentIn 0.9s cubic-bezier(0.2, 0.72, 0.24, 1) 0.42s both,
             heroSheen 10s ease-in-out 1.4s infinite;
}

@keyframes heroAccentIn {
  from { opacity: 0; transform: translateY(0.38em); }
  to { opacity: 1; transform: none; }
}

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

.hero__support {
  position: relative;
  padding: 0.2rem 0 0.3rem clamp(1.5rem, 3vw, 2.5rem);
  border-left: 1px solid var(--hero-line);
  animation: heroRise 0.72s cubic-bezier(0.2, 0.72, 0.24, 1) 0.52s both;
}

.hero__support::before {
  content: "";
  position: absolute;
  top: 0;
  left: -1px;
  width: 1px;
  height: 32%;
  background: linear-gradient(to bottom, var(--ox-cyan), transparent);
  box-shadow: 0 0 12px rgb(55 199 255 / 0.55);
}

.hero--dark .hero__lede {
  max-width: 28rem;
  margin: 0 0 2rem;
  color: var(--hero-soft);
  font-size: clamp(1rem, 1.25vw, 1.16rem);
  line-height: 1.72;
  animation: none;
}

.hero--dark .hero__actions {
  align-items: center;
  justify-content: flex-start;
  gap: 1.35rem;
  margin: 0 0 1.65rem;
  animation: none;
}

.hero--dark .btn-ox--primary {
  position: relative;
  overflow: hidden;
  gap: 1.1rem;
  padding: 1rem 1.45rem;
  border: 1px solid rgb(255 255 255 / 0.15);
  background: linear-gradient(105deg, #179ce7, #075487);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.18), 0 15px 38px rgb(1 12 20 / 0.38), 0 0 34px rgb(33 185 244 / 0.13);
}

.hero--dark .btn-ox--primary::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 38%;
  background: linear-gradient(100deg, transparent, rgb(255 255 255 / 0.32), transparent);
  transform: skewX(-18deg) translateX(-280%);
  animation: heroShine 6s ease-in-out 1.8s infinite;
}

@keyframes heroShine {
  0% { transform: skewX(-18deg) translateX(-280%); }
  24%, 100% { transform: skewX(-18deg) translateX(470%); }
}

.hero--dark .btn-ox--primary:hover,
.hero--dark .btn-ox--primary:focus-visible {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.22), 0 19px 44px rgb(1 12 20 / 0.5), 0 0 42px rgb(33 185 244 / 0.24);
}

.hero__text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid rgb(255 255 255 / 0.35);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 220ms ease, color 220ms ease;
}

.hero__text-link svg { transition: transform 220ms ease; }

.hero__text-link:hover,
.hero__text-link:focus-visible {
  border-color: var(--ox-cyan);
  color: var(--ox-cyan);
}

.hero__text-link:hover svg { transform: translateX(4px); }

.hero__availability {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0;
  color: var(--hero-dim);
  font-size: 0.72rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.hero__availability i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #60dcff;
  box-shadow: 0 0 12px rgb(76 214 255 / 0.75);
  animation: heroPulse 2.8s ease-out infinite;
}

/* --- proof and hand-off ------------------------------------------------- */

.hero--dark .hero__proof {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  width: 100%;
  max-width: none;
  margin: clamp(4rem, 8vw, 7rem) 0 0;
  padding: 1.2rem 0;
  border: 0;
  border-top: 1px solid var(--hero-line);
  border-bottom: 1px solid var(--hero-line);
  border-radius: 0;
  background: none;
  box-shadow: none;
  color: var(--hero-dim);
  -webkit-backdrop-filter: none;
          backdrop-filter: none;
  animation: heroRise 0.7s cubic-bezier(0.2, 0.72, 0.24, 1) 0.72s both;
}

.hero--dark .hero__proof::before { display: none; }

.hero--dark .hero__proof li {
  min-height: 3.5rem;
  padding: 0.15rem clamp(1rem, 2vw, 1.75rem);
  border-left: 1px solid rgb(255 255 255 / 0.11);
  line-height: 1.45;
}

.hero--dark .hero__proof li:first-child {
  padding-left: 0;
  border-left: 0;
}

.hero--dark .hero__proof strong {
  display: block;
  margin-bottom: 0.32rem;
  background: none;
  color: #fff;
  -webkit-text-fill-color: currentColor;
  font-size: clamp(1.45rem, 2.3vw, 2rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.04em;
}

.hero__cue {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.8rem;
  width: fit-content;
  margin: 1.35rem 0 0 auto;
  color: var(--hero-dim);
  font-size: 0.66rem;
  letter-spacing: 0.13em;
  text-decoration: none;
  text-transform: uppercase;
  animation: heroRise 0.65s cubic-bezier(0.2, 0.72, 0.24, 1) 0.86s both;
}

.hero__cue-track {
  position: relative;
  order: 2;
  width: 3.25rem;
  height: 1px;
  overflow: hidden;
  background: rgb(255 255 255 / 0.18);
}

.hero__cue-track i {
  position: absolute;
  top: -1px;
  width: 1.2rem;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--ox-cyan), #fff, transparent);
  box-shadow: 0 0 9px var(--ox-cyan);
  animation: heroCue 2.7s ease-in-out infinite;
}

@keyframes heroCue {
  from { left: -1.2rem; opacity: 0; }
  25% { opacity: 1; }
  75% { opacity: 1; }
  to { left: 100%; opacity: 0; }
}

.hero__cue:hover,
.hero__cue:focus-visible { color: #fff; }

.hero--dark a:focus-visible {
  outline: 3px solid var(--ox-cyan);
  outline-offset: 4px;
}

/* Header treatment over the dark opening. */
body:has(.hero--dark) .menu ul li a { color: rgb(255 255 255 / 0.84); }
body:has(.hero--dark) .menu ul li a:hover,
body:has(.hero--dark) .menu ul li a[aria-current="page"] { color: #fff; }
body:has(.hero--dark) .logo__img--dark { display: none; }
body:has(.hero--dark) .logo__img--light { display: inline-block; }
body:has(.hero--dark) header.main_header .global_btn span:nth-child(2) button,
body:has(.hero--dark) .mobile_menu .menu_wrapper button#menuBtn {
  color: #fff;
  border-color: rgb(255 255 255 / 0.5);
}
body:has(.hero--dark) header.main_header .global_btn span:nth-child(2) button:hover,
body:has(.hero--dark) header.main_header .global_btn span:nth-child(2) button:focus-visible {
  color: #fff;
  border-color: #fff;
  background: rgb(255 255 255 / 0.12);
}

/* --- responsive --------------------------------------------------------- */

@media (max-width: 1100px) {
  .hero__editorial {
    grid-template-columns: minmax(0, 1.45fr) minmax(17rem, 0.7fr);
    gap: 2.75rem;
  }
  .hero--dark .hero__title { font-size: clamp(3.55rem, 6.15vw, 4.4rem); }
}

@media (max-width: 767.98px) {
  .hero--dark { padding-top: 8.5rem; }
  .hero--dark .hero__eyebrow { margin-bottom: 3.5rem; }
  .hero__editorial {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: 2.75rem;
  }
  .hero--dark .hero__title { font-size: clamp(3.2rem, 11.3vw, 5.15rem); }
  .hero__support { max-width: 34rem; }
  .hero--dark .hero__proof {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 3.75rem;
  }
  .hero--dark .hero__proof li { padding: 0.85rem 1rem; }
  .hero--dark .hero__proof li:nth-child(odd) {
    padding-left: 0;
    border-left: 0;
  }
  .hero--dark .hero__proof li:nth-child(n + 3) { border-top: 1px solid rgb(255 255 255 / 0.11); }
  .hero__orbit { opacity: 0.55; }
}

@media (max-width: 575.98px) {
  .hero--dark { padding-top: 7.75rem; }
  .hero--dark .hero__eyebrow {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.55rem;
    margin-bottom: 2.75rem;
    font-size: 0.7rem;
  }
  .hero--dark .hero__eyebrow::before { width: 1.7rem; }
  .hero--dark .hero__title {
    font-size: clamp(2.75rem, 12.2vw, 3.55rem);
    line-height: 1.03;
    letter-spacing: -0.028em;
  }
  .hero__support { padding-left: 1.25rem; }
  .hero--dark .hero__actions { align-items: flex-start; flex-direction: column; gap: 0.8rem; }
  .hero--dark .btn-ox--primary { justify-content: space-between; width: 100%; }
  .hero__text-link { margin-left: 0.2rem; }
  .hero--dark .hero__proof { font-size: 0.72rem; }
  .hero--dark .hero__proof strong { font-size: 1.4rem; }
  .hero__grid { background-size: 52px 52px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero--dark .hero__aurora,
  .hero--dark .hero__beam,
  .hero--dark .hero__orbit,
  .hero--dark .hero__orbit-dot,
  .hero--dark .hero__word,
  .hero--dark .hero__accent,
  .hero--dark .hero__eyebrow,
  .hero--dark .hero__support,
  .hero--dark .hero__proof,
  .hero--dark .hero__cue,
  .hero__availability i {
    animation: none;
  }
  .hero--dark .hero__word,
  .hero--dark .hero__accent,
  .hero--dark .hero__eyebrow,
  .hero--dark .hero__support,
  .hero--dark .hero__proof,
  .hero--dark .hero__cue {
    opacity: 1;
    transform: none;
    filter: none;
  }
  .hero--dark .btn-ox--primary::after,
  .hero__cue-track i { display: none; }
}
