.dx-home-hero {
  --dx-hero-gap: clamp(14px, 1.6vw, 24px);
  display: grid;
  width: 100%;
  gap: var(--dx-hero-gap);
  align-items: start;
  color: #17181d;
}

.dx-home-hero[data-layout="split"] {
  grid-template-columns: minmax(0, 7fr) minmax(0, 9fr);
}

.dx-home-hero[data-layout="single"] {
  grid-template-columns: minmax(0, 1fr);
}

.dx-home-hero,
.dx-home-hero * {
  box-sizing: border-box;
}

.dx-home-hero-module {
  min-width: 0;
}

.dx-home-hero-campaign {
  display: flex;
  align-items: stretch;
  min-width: 0;
}

.dx-home-hero-campaign-inner {
  display: flex;
  width: 100%;
  flex-direction: column;
  justify-content: flex-start;
  gap: 20px;
  padding: clamp(32px, 3.2vw, 48px);
}

.dx-home-hero-headline {
  margin: 0;
  font: 700 clamp(32px, 3.2vw, 48px)/1.15 var(--font-heading, "Stretch Pro", sans-serif);
  letter-spacing: 0;
  text-transform: uppercase;
}

.dx-home-hero-rotating {
  display: inline-block;
  min-height: 1em;
  background: linear-gradient(110deg, #ff1910 0%, #ff6a00 82%);
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  caret-color: #ff6a00;
}

.dx-home-hero-rotating.is-typing::after {
  content: "";
  display: inline-block;
  width: 1px;
  height: 0.92em;
  margin-left: 0.09em;
  vertical-align: -0.08em;
  background: #ff6a00;
  animation: dx-home-hero-caret 720ms step-end infinite;
}

@keyframes dx-home-hero-caret {
  50% { opacity: 0; }
}

.dx-home-hero-body {
  max-width: 46ch;
  margin: 0;
  font: 400 1.25rem/1.45 var(--font-body, "Courier Prime", monospace);
  color: rgba(28, 32, 40, 0.68);
}

.dx-home-hero-ctas {
  display: grid;
  gap: 16px;
  width: 100%;
  margin-top: 24px;
}

.dx-home-hero-cta {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border: 0;
  border-radius: var(--dx-radius-sm, 6px);
  font: 800 clamp(13px, 1.15vw, 17px)/1 var(--font-heading, "Stretch Pro", sans-serif);
  text-align: center;
  text-decoration: none !important;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 160ms cubic-bezier(.22,.8,.24,1), box-shadow 160ms cubic-bezier(.22,.8,.24,1);
}

.dx-home-hero-cta.is-primary {
  color: #fff !important;
  background: linear-gradient(100deg, #ff1910 0%, #ff9500 100%);
  box-shadow: 0 12px 28px rgba(255, 44, 20, 0.18);
}

.dx-home-hero-cta.is-secondary {
  color: #111 !important;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.48);
}

@media (hover: hover) and (pointer: fine) {
  .dx-home-hero-cta:hover {
    transform: translateY(-1px);
  }
}

.dx-home-hero-featured {
  min-width: 0;
  padding: clamp(10px, 1vw, 14px);
  overflow: clip;
}

.dx-home-featured-shell {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  gap: 16px;
  padding: 32px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: var(--dx-radius-md, 10px);
  background: linear-gradient(130deg, rgba(255,255,255,.42), rgba(243,246,251,.72));
  box-shadow: 0 16px 36px rgba(18, 22, 30, 0.15), inset 0 1px 0 rgba(255,255,255,.52);
}

.dx-home-featured-shell > h2 {
  margin: 0;
  padding: 0;
  background: rgba(255,255,255,.62);
  font: 700 32px/1.2 var(--font-heading, "Stretch Pro", sans-serif);
  letter-spacing: 0;
  text-transform: uppercase;
  white-space: nowrap;
}

.dx-home-featured-stage {
  position: relative;
  display: flex;
  flex: 1;
  align-items: center;
}

.dx-home-featured-frame {
  width: 100%;
}

.dx-home-featured-card {
  display: grid;
  gap: 16px;
  width: 100%;
  margin: 0;
  padding: 16px 16px 0;
  border-radius: var(--dx-radius-sm, 6px);
  background: rgba(23, 23, 25, 0.62);
  color: #fff;
  box-shadow: 0 16px 28px rgba(13,15,20,.16);
}

.dx-home-featured-card h3 {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  color: #fff !important;
  font: 700 clamp(16px, 1.3vw, 20.8px)/1 var(--font-heading, "Stretch Pro", sans-serif);
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.dx-home-featured-card h3 a {
  color: #fff !important;
  text-decoration: none !important;
}

.dx-home-featured-badges {
  display: flex;
  min-width: 0;
  gap: 5px;
  overflow: hidden;
}

.dx-home-featured-badges span {
  flex: none;
  padding: 5px 7px;
  border: 1px solid rgba(255,255,255,.4);
  border-radius: 4px;
  background: rgba(255,255,255,.09);
  font: 400 clamp(11px, 1.05vw, 16px)/1.1 var(--font-body, "Courier Prime", monospace);
  white-space: nowrap;
}

.dx-home-featured-media {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 4px;
  background: #09090c;
  aspect-ratio: 16 / 9;
}

.dx-home-featured-media iframe,
.dx-home-featured-poster {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
}

.dx-home-featured-empty {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  color: #fff;
}

.dx-home-featured-loading {
  display: grid;
  min-height: 280px;
  place-items: center;
  color: rgba(24,30,40,.62);
  font-family: var(--font-body, "Courier Prime", monospace);
}

.dx-home-featured-nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: grid;
  width: clamp(46px, 3.4vw, 53px);
  height: clamp(46px, 3.4vw, 53px);
  place-items: center;
  transform: translateY(-50%);
  border: 1px solid rgba(15,20,30,.28);
  border-radius: 4px;
  background: rgba(35,35,35,.25);
  color: #17181d;
  font: 400 28px/1 var(--font-body, monospace);
  cursor: pointer;
}

.dx-home-featured-nav.is-prev { left: calc(clamp(46px, 3.4vw, 53px) * -0.5 - 32px); }
.dx-home-featured-nav.is-next { right: calc(clamp(46px, 3.4vw, 53px) * -0.5 - 32px); }

.dx-home-featured-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.dx-home-featured-dots button {
  display: block !important;
  width: 10px;
  height: 10px;
  min-height: 0 !important;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(24,26,33,.22);
  cursor: pointer;
}

.dx-home-featured-dots button.is-active {
  width: 22px;
  background: #24262d;
}

.dx-home-hero-promo {
  width: 100%;
}

.dx-home-promo-surface {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  grid-template-areas:
    "head values"
    "stats stats"
    "footer footer";
  gap: clamp(12px, 1.5vw, 22px);
  width: 100%;
  padding: clamp(20px, 3vw, 44px);
  border: 1px solid rgba(255,255,255,.52);
  border-radius: var(--dx-radius-md, 10px);
  background: linear-gradient(120deg, rgba(221,230,240,.46), rgba(191,208,224,.3) 55%, rgba(232,210,203,.31));
  box-shadow: 0 16px 36px rgba(18,22,30,.18), inset 0 1px 0 rgba(255,255,255,.42);
}

.dx-home-promo-surface > header { grid-area: head; }
.dx-home-promo-surface > ul { grid-area: values; }
.dx-home-promo-stats { grid-area: stats; }
.dx-home-promo-footer { grid-area: footer; }

.dx-home-promo-eyebrow {
  margin: 0 0 7px;
  font: 700 11px/1.1 var(--font-body, "Courier Prime", monospace);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(24,30,42,.68);
}

.dx-home-promo-surface h1 {
  margin: 0 0 10px;
  font: 800 clamp(26px, 3.25vw, 48px)/1.02 var(--font-heading, "Stretch Pro", sans-serif);
}

.dx-home-promo-surface header > p:last-child {
  max-width: 62ch;
  margin: 0;
  font: 400 clamp(13px, 1.2vw, 16px)/1.4 var(--font-body, "Courier Prime", monospace);
  color: rgba(20,27,38,.82);
}

.dx-home-promo-surface > ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.dx-home-promo-surface > ul li {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 9px;
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,.5);
  border-radius: 7px;
  background: rgba(255,255,255,.25);
  font: 400 13px/1.3 var(--font-body, "Courier Prime", monospace);
}

.dx-home-promo-symbol {
  font-weight: 700;
}

.dx-home-promo-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 8px;
}

.dx-home-promo-stats > div {
  display: flex;
  flex-direction: column;
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,.5);
  border-radius: 7px;
  background: rgba(255,255,255,.25);
}

.dx-home-promo-stats strong {
  font-family: var(--font-heading, "Stretch Pro", sans-serif);
}

.dx-home-promo-stats small {
  font-family: var(--font-body, "Courier Prime", monospace);
  text-transform: uppercase;
}

.dx-home-promo-footer,
.dx-home-promo-sponsor,
.dx-home-promo-ctas {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.dx-home-promo-footer {
  justify-content: space-between;
}

.dx-home-promo-sponsor {
  padding: 8px 10px;
  border: 1px solid rgba(255,255,255,.5);
  border-radius: 7px;
  background: rgba(255,255,255,.25);
}

.dx-home-promo-sponsor span {
  font: 700 10px/1 var(--font-body, monospace);
  letter-spacing: .1em;
}

.dx-home-promo-sponsor img {
  width: 30px;
  height: 30px;
  border-radius: 4px;
  object-fit: contain;
  background: #fff;
}

.dx-home-promo-sponsor strong {
  font-family: var(--font-heading, sans-serif);
}

@media (max-width: 900px) {
  .dx-home-hero[data-layout="split"] {
    grid-template-columns: minmax(0, 1fr);
  }

  .dx-home-hero-campaign,
  .dx-home-hero-featured {
    min-height: 0;
  }

  .dx-home-hero-campaign-inner {
    padding: clamp(26px, 7vw, 48px) clamp(18px, 5vw, 32px);
  }

  .dx-home-featured-nav {
    width: 34px;
    height: 46px;
  }

  .dx-home-featured-nav.is-prev { left: -12px; }
  .dx-home-featured-nav.is-next { right: -12px; }

  .dx-home-promo-surface {
    grid-template-columns: 1fr;
    grid-template-areas: "head" "values" "stats" "footer";
  }
}

@media (prefers-reduced-motion: reduce) {
  .dx-home-hero-rotating.is-typing::after {
    animation: none;
  }

  .dx-home-hero-cta {
    transition: none;
  }
}

/* Composition-only layout additions. The split campaign/featured pair keeps
 * the production selectors and geometry from dx-home-hero.css + assets/css/dex.css. */
#dexCombined[data-layout="single"] {
  display: block !important;
  height: auto !important;
}

#dexCombined[data-layout="single"] > #dexHeroSide,
#dexCombined[data-layout="single"] > #dexFeaturedSide {
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
}

#dexCombined[data-layout="single"] > .dx-home-hero-promo {
  width: 100%;
}
