.hd {
  width: 100%;
  margin: 1.75rem 0 1.35rem;
  padding: 0.25rem 0;
}

.hd:not(.is-placed) {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.hd.is-placed {
  position: relative;
}

.hd-panel {
  width: min(100% - 2rem, 1340px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(240px, 0.78fr) minmax(0, 1.22fr);
  gap: 1.5rem 2rem;
  align-items: center;
  padding: 1.45rem 1.5rem;
  border-radius: 16px;
  border: 1px solid rgb(255 255 255 / 0.16);
  background: #1a1a1f;
  box-shadow: none;
}

.hd-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.65rem;
  min-width: 0;
  margin: 0 auto;
}

.hd-logo {
  width: 3.25rem;
  height: 3.25rem;
}

.hd-logo__mark {
  display: block;
  width: 100%;
  height: 100%;
}

.hd-logo__card--1 { fill: #1d4ed8; }
.hd-logo__card--2 { fill: #2563eb; animation-delay: 0.12s; }
.hd-logo__card--3 { fill: #3b82f6; animation-delay: 0.24s; }
.hd-logo__card {
  stroke: rgb(255 255 255 / 0.85);
  stroke-width: 1.2;
  transform-box: fill-box;
  transform-origin: center;
  animation: hd-stack 3.8s cubic-bezier(0.22, 1, 0.36, 1) infinite;
}
.hd-logo__plus-bg {
  fill: #3b82f6;
  transform-box: fill-box;
  transform-origin: center;
  animation: hd-pop 3.8s cubic-bezier(0.22, 1, 0.36, 1) infinite;
}
.hd-logo__plus {
  stroke: #fff;
  stroke-width: 2.4;
  stroke-linecap: round;
}

.hd-kicker {
  margin: 0;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: rgb(59 130 246 / 0.14);
  border: 1px solid rgb(96 165 250 / 0.35);
  color: #93c5fd;
  font-family: 'Sora', 'Geist', sans-serif;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hd-title {
  margin: 0;
  font-family: 'Sora', 'Geist', sans-serif;
  font-size: clamp(1.45rem, 2vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: #fff;
}

.hd-subtitle {
  margin: 0 auto;
  max-width: 24rem;
  font-size: 0.92rem;
  line-height: 1.45;
  color: rgb(255 255 255 / 0.58);
}

.hd-offers {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem;
}

.hd-offer {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.28rem 0.6rem 0.28rem 0.28rem;
  border-radius: 999px;
  border: 1px solid rgb(255 255 255 / 0.1);
  background: transparent;
  color: rgb(255 255 255 / 0.82);
  font-size: 0.75rem;
  font-weight: 700;
}

.hd-offer b {
  display: inline-grid;
  place-items: center;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background: #3b82f6;
  color: #fff;
  font-size: 0.68rem;
}

.hd-offer--gold b {
  background: #f5c451;
  color: #1a1404;
}

.hd-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.85rem;
  margin-top: 0.15rem;
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  border: 3px solid #0b0b0e;
  background: #3b82f6;
  color: #fff;
  font-family: 'Sora', 'Geist', sans-serif;
  font-size: 0.95rem;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 4px 4px 0 #0b0b0e;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.hd-btn:hover {
  background: #60a5fa;
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 #0b0b0e;
}

.hd-btn:active {
  transform: translate(4px, 4px);
  box-shadow: 0 0 0 #0b0b0e;
}

.hd-visual {
  min-width: 0;
}

.hd-build {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
}

.hd-slot {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  max-width: 220px;
  aspect-ratio: 616 / 353;
  border-radius: 12px;
  overflow: hidden;
  background: #121212;
  animation: hd-float 4.6s ease-in-out infinite;
}

.hd-slot:nth-child(3) { animation-delay: 0.35s; }
.hd-slot:nth-child(5) { animation-delay: 0.7s; }

.hd-slot img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transition: opacity 0.35s ease;
}

.hd-slot img.is-swap,
.hd-slot img:not([src]) {
  opacity: 0;
}

.hd-plus {
  flex: 0 0 auto;
  color: #fff;
  font-family: 'Sora', sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1;
}

.hd-seal {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 3.1rem;
  height: 3.1rem;
  margin-left: 0.15rem;
  border-radius: 50%;
  background: #3b82f6;
  color: #fff;
  font-family: 'Sora', sans-serif;
  font-size: 0.82rem;
  font-weight: 800;
  animation: hd-seal 3.8s ease-in-out infinite;
}

@keyframes hd-stack {
  0%, 100% { transform: translate(-5px, 3px); opacity: 0.55; }
  30%, 76% { transform: none; opacity: 1; }
}

@keyframes hd-pop {
  0%, 20% { transform: scale(0.6); opacity: 0; }
  38%, 76% { transform: scale(1); opacity: 1; }
  100% { transform: scale(0.6); opacity: 0; }
}

@keyframes hd-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@keyframes hd-seal {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}

@media (max-width: 900px) {
  .hd {
    margin: 1.15rem 0 1rem;
  }

  .hd-panel {
    grid-template-columns: 1fr;
    gap: 1rem;
    justify-items: center;
    width: min(100% - 1.25rem, 1340px);
    padding: 1.15rem 0.9rem 1rem;
  }

  .hd-title {
    font-size: 1.4rem;
  }

  .hd-subtitle {
    font-size: 0.86rem;
  }

  .hd-btn {
    width: min(100%, 18rem);
  }

  .hd-build {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 0.45rem 0.3rem;
    width: 100%;
    align-items: center;
  }

  .hd-slot {
    width: 100%;
    max-width: none;
    min-width: 0;
    height: auto;
    aspect-ratio: 616 / 353;
    animation: none;
  }

  .hd-plus {
    font-size: 1rem;
  }

  .hd-seal {
    grid-column: 1 / -1;
    justify-self: center;
    width: 2.75rem;
    height: 2.75rem;
    margin: 0.1rem 0 0;
    font-size: 0.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hd-slot,
  .hd-slot img,
  .hd-seal,
  .hd-logo__card,
  .hd-logo__plus-bg,
  .hd-btn {
    animation: none;
    transition: none;
  }
}