/* Home hero: self-contained overrides for the 3D X scene. */
.hero.hero-x {
  align-items: center !important;
  background: #050505 !important;
  display: flex !important;
  flex-direction: column !important;
  isolation: isolate;
  justify-content: center;
  height: calc(100vh - 56px);
  min-height: 620px;
  overflow: hidden;
  padding: clamp(76px, 12vh, 132px) 24px clamp(72px, 10vh, 112px) !important;
  position: relative;
}

.hero-x::after {
  background: radial-gradient(ellipse 52% 50% at 50% 44%, transparent 15%, rgba(0, 0, 0, .3) 70%, rgba(0, 0, 0, .82) 100%);
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
  z-index: 1;
}

.hero-x-canvas {
  height: 100%;
  inset: 0;
  pointer-events: none;
  position: absolute;
  width: 100%;
  z-index: 0;
}

.hero-x-content {
  align-items: center;
  display: flex;
  flex-direction: column;
  flex: 0 0 100%;
  max-width: 980px;
  min-width: 0;
  position: relative;
  text-align: center;
  width: 100%;
  z-index: 2;
}

.hero-x h1 {
  color: #f7f7f8 !important;
  font-family: Inter, sans-serif !important;
  font-size: clamp(44px, 7.35vw, 112px) !important;
  font-weight: 800 !important;
  letter-spacing: -.075em !important;
  line-height: .95 !important;
  margin: 0 !important;
  max-width: none !important;
  white-space: nowrap;
}

.hero-x h1 em {
  color: #f21a2f !important;
  font-style: normal !important;
}

.hero-x p {
  color: rgba(245, 245, 247, .78) !important;
  font-family: Inter, sans-serif !important;
  font-size: clamp(16px, 1.5vw, 21px) !important;
  line-height: 1.45 !important;
  margin: 26px auto 30px !important;
  max-width: 610px !important;
}

.hero-x .hero-cta {
  display: flex !important;
  gap: 14px;
  justify-content: center;
  margin: 0 0 20px !important;
  position: relative;
  z-index: 1;
}

.hero-x .btn-hero {
  align-items: center;
  border-radius: 12px !important;
  display: inline-flex;
  font-family: Inter, sans-serif !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  justify-content: center;
  min-height: 54px;
  padding: 0 25px !important;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease !important;
}

.hero-x .btn-hero:hover { transform: translateY(-2px); }
.hero-x .btn-hero-primary {
  background: #ee172a !important;
  box-shadow: 0 12px 28px rgba(238, 23, 42, .24) !important;
  color: #fff !important;
}
.hero-x .btn-hero-primary:hover { box-shadow: 0 16px 34px rgba(238, 23, 42, .38) !important; }
.hero-x .btn-hero-secondary {
  background: rgba(0, 0, 0, .36) !important;
  border: 1px solid rgba(255, 255, 255, .48) !important;
  color: #f7f7f8 !important;
}
.hero-x .btn-hero-secondary:hover { border-color: #ee172a !important; }

.hero-x-store {
  align-items: center;
  color: rgba(255, 255, 255, .72) !important;
  display: inline-flex;
  font-family: Inter, sans-serif;
  font-size: 12.5px;
  gap: 8px;
  padding: 8px 12px;
  position: relative;
  text-decoration: none;
  transition: color .2s ease;
  z-index: 1;
}
.hero-x-store:hover { color: #f21a2f !important; }

.hero-x-scroll {
  background: transparent;
  border: 0;
  bottom: 22px;
  color: rgba(255, 255, 255, .76);
  cursor: pointer;
  height: 32px;
  padding: 5px;
  position: absolute;
  width: 32px;
  z-index: 2;
}
.hero-x-scroll svg { height: 22px; width: 22px; }

@media (max-width: 640px) {
  .hero.hero-x {
    height: calc(100vh - 52px);
    min-height: 520px;
    padding: 86px 18px 70px !important;
  }
  .hero-x h1 { font-size: clamp(26px, 8.2vw, 42px) !important; letter-spacing: -.07em !important; }
  .hero-x p { font-size: 16px !important; margin: 21px auto 26px !important; max-width: 340px !important; }
  .hero-x .hero-cta { flex-direction: column; gap: 10px; width: min(100%, 310px); }
  .hero-x .btn-hero { min-height: 50px; width: 100%; }
  .hero-x-scroll { bottom: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-x .btn-hero, .hero-x-store { transition: none !important; }
  .hero-x .btn-hero:hover { transform: none; }
}
