.site-top {
  background:
    radial-gradient(circle at top left, rgba(171, 206, 255, 0.24), transparent 32%),
    radial-gradient(circle at 85% 10%, rgba(110, 154, 229, 0.14), transparent 24%),
    linear-gradient(180deg, #f5f9ff 0%, #ffffff 40%);
}

.top-hero {
  position: relative;
  padding: 96px 24px 72px;
  overflow: hidden;
}

.top-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 420px);
  gap: 32px;
  align-items: stretch;
}

.top-hero-background {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.top-hero-background-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(241, 247, 255, 0.8) 0%, rgba(241, 247, 255, 0.68) 24%, rgba(241, 247, 255, 0.34) 48%, rgba(241, 247, 255, 0.24) 64%, rgba(241, 247, 255, 0.58) 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.24));
}

.top-hero-background-strips {
  display: flex;
  align-items: stretch;
  width: 100%;
  height: 100%;
  gap: 8px;
  padding: 0 12px;
}

.top-hero-bg-strip {
  position: relative;
  flex: 1 1 82px;
  min-width: 60px;
  overflow: hidden;
  opacity: 0.96;
  animation: topHeroStripAppear 1.2s ease-out both;
}

.top-hero-bg-strip::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.04));
}

.top-hero-bg-image {
  position: absolute;
  inset: 0;
  background-position: center top;
  background-repeat: no-repeat;
  background-size: cover;
  opacity: 0;
  filter: saturate(0.98) contrast(1.05);
  transform: scale(1.02);
  will-change: opacity, transform;
}

.top-hero-bg-strip.has-swap .top-hero-bg-image {
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
  animation-fill-mode: both;
  animation-delay: var(--hero-strip-delay, 0s);
}

.top-hero-bg-strip.has-swap .top-hero-bg-image.is-layer-1 {
  animation-name: topHeroStripCycleThreeLayerOne;
  animation-duration: 36s;
}

.top-hero-bg-strip.has-swap .top-hero-bg-image.is-layer-2 {
  animation-name: topHeroStripCycleThreeLayerTwo;
  animation-duration: 36s;
}

.top-hero-bg-strip.has-swap .top-hero-bg-image.is-layer-3 {
  animation-name: topHeroStripCycleThreeLayerThree;
  animation-duration: 36s;
}

.top-hero-copy {
  position: relative;
  z-index: 1;
  padding: 32px 30px 34px;
  border-radius: 34px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.56), rgba(244, 249, 255, 0.4));
  backdrop-filter: blur(10px);
  box-shadow:
    0 18px 42px rgba(85, 111, 146, 0.08),
    inset 0 0 0 1px rgba(132, 160, 198, 0.14);
}

.top-hero-eyebrow {
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.28em;
  color: #4972a8;
}

.top-hero-title {
  margin: 0;
  font-size: clamp(42px, 7vw, 72px);
  line-height: 1.08;
  letter-spacing: -0.04em;
  color: #18304f;
}

.top-hero-title span {
  display: inline-block;
  margin-top: 0.18em;
}

.top-hero-lead {
  max-width: 640px;
  margin: 22px 0 0;
  font-size: 16px;
  line-height: 2;
  color: #58708d;
}

.top-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.top-hero-primary,
.top-hero-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  position: relative;
  overflow: hidden;
  transition: all .3s;
}

.top-hero-primary {
  background: linear-gradient(135deg, #1c4f92 0%, #3c74c4 52%, #79a9e9 100%);
  color: #f7fbff;
  box-shadow:
    0 14px 30px rgba(39, 88, 158, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.top-hero-secondary {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96) 0%, rgba(232, 242, 255, 0.94) 100%);
  color: #1d4f91;
  box-shadow:
    0 12px 26px rgba(88, 120, 168, 0.12),
    inset 0 0 0 1px rgba(39, 88, 158, 0.12);
}

.top-hero-primary::before,
.top-hero-secondary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.24) 46%, transparent 100%);
  opacity: 0;
  transition: opacity .3s ease;
  pointer-events: none;
}

.top-hero-primary:hover,
.top-hero-secondary:hover {
  color: inherit;
  box-shadow:
    0 18px 34px rgba(58, 95, 148, 0.18),
    inset 0 0 0 1px rgba(112, 146, 194, 0.16);
}

.top-hero-primary:hover {
  background: linear-gradient(135deg, #21559b 0%, #4a82d2 52%, #8ab8f2 100%);
  color: #f7fbff;
}

.top-hero-secondary:hover {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(221, 235, 255, 0.98) 100%);
  color: #173f75;
}

.top-hero-primary:hover::before,
.top-hero-secondary:hover::before {
  opacity: 1;
}

.top-hero-primary:focus-visible,
.top-hero-secondary:focus-visible {
  color: inherit;
}

.top-hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  max-width: 680px;
  margin-top: 34px;
}

.top-hero-stat {
  padding: 18px 18px 16px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.66);
  backdrop-filter: blur(10px);
  box-shadow: inset 0 0 0 1px rgba(73, 114, 168, 0.08);
}

.top-hero-stat-value {
  display: block;
  font-size: 28px;
  font-weight: 800;
  color: #18304f;
}

.top-hero-stat-value small {
  margin-left: 2px;
  font-size: 0.58em;
  font-weight: 700;
}

.top-hero-stat-label {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  color: #6a7f98;
}

.top-hero-panel {
  position: relative;
  z-index: 1;
  padding: 28px;
  border-radius: 34px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.96), rgba(241,247,255,0.95)),
    linear-gradient(135deg, #ffffff, #edf5ff);
  box-shadow:
    0 24px 56px rgba(74, 110, 160, 0.12),
    inset 0 1px 0 rgba(255,255,255,0.75);
  overflow: hidden;
}

.top-hero-panel::before {
  content: "";
  position: absolute;
  inset: auto -40px -60px auto;
  width: 180px;
  height: 180px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(161, 198, 255, 0.34), transparent 70%);
}

.top-hero-panel-header {
  position: relative;
  z-index: 1;
}

.top-hero-panel-label {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: #4972a8;
}

.top-hero-panel-header h2 {
  margin: 0;
  font-size: 28px;
  line-height: 1.2;
  color: #18304f;
}

.top-hero-featured {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

.top-hero-featured-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border-radius: 22px;
  background: rgba(255,255,255,0.84);
  text-decoration: none;
  box-shadow: inset 0 0 0 1px rgba(83, 121, 173, 0.09);
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(16px);
  animation: topHeroFeaturedReveal 0.58s ease forwards;
  transition: all .3s;
}

.top-hero-featured-item:nth-child(1) {
  animation-delay: 0.06s;
}

.top-hero-featured-item:nth-child(2) {
  animation-delay: 0.12s;
}

.top-hero-featured-item:nth-child(3) {
  animation-delay: 0.18s;
}

.top-hero-featured-item:nth-child(4) {
  animation-delay: 0.24s;
}

.top-hero-featured-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.34) 45%, transparent 100%);
  opacity: 0;
  transition: opacity .3s ease;
  pointer-events: none;
}

.top-hero-featured-item::after {
  content: "↗";
  position: absolute;
  top: 50%;
  right: 18px;
  transform: translateY(-50%);
  font-size: 15px;
  font-weight: 700;
  color: #4a6f9d;
  opacity: 0.62;
  transition: all .3s;
}

.top-hero-featured-item:hover {
  background: rgba(255,255,255,0.94);
  box-shadow:
    0 16px 30px rgba(86, 118, 166, 0.14),
    inset 0 0 0 1px rgba(90, 126, 177, 0.16);
}

.top-hero-featured-item:hover::before {
  opacity: 1;
}

.top-hero-featured-item:hover::after {
  right: 14px;
  opacity: 0.92;
  color: #1d4f91;
}

.top-hero-featured-item:hover .top-hero-featured-avatar {
  box-shadow:
    0 10px 18px rgba(81, 111, 152, 0.14),
    inset 0 0 0 1px rgba(107, 137, 179, 0.14);
}

.top-hero-featured-item:hover .top-hero-featured-text strong {
  color: #1d4f91;
}

.top-hero-featured-item:focus-visible {
  box-shadow:
    0 0 0 3px rgba(87, 130, 191, 0.18),
    inset 0 0 0 1px rgba(90, 126, 177, 0.16);
}

.top-hero-featured-avatar {
  width: 72px;
  height: 72px;
  flex: 0 0 72px;
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(180deg, #e3efff 0%, #f5f9ff 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .3s;
}

.top-hero-featured-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.top-hero-featured-avatar span {
  font-size: 26px;
  font-weight: 800;
  color: #4972a8;
}

.top-hero-featured-text {
  min-width: 0;
}

.top-hero-featured-text strong,
.top-hero-featured-text small {
  display: block;
}

.top-hero-featured-text strong {
  font-size: 16px;
  line-height: 1.5;
  color: #18304f;
  transition: color .3s ease;
}

.top-hero-featured-text small {
  margin-top: 5px;
  font-size: 12px;
  color: #7186a1;
}

@keyframes topHeroStripAppear {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }

  100% {
    opacity: 0.96;
    transform: translateY(0);
  }
}

@keyframes topHeroStripCycleThreeLayerOne {
  0% {
    opacity: 0.86;
    transform: scale(1.02);
  }

  22% {
    opacity: 0.86;
    transform: scale(1.03);
  }

  30% {
    opacity: 0.16;
    transform: scale(1.04);
  }

  36% {
    opacity: 0;
    transform: scale(1.05);
  }

  92% {
    opacity: 0;
    transform: scale(1.045);
  }

  100% {
    opacity: 0.86;
    transform: scale(1.02);
  }
}

@keyframes topHeroStripCycleThreeLayerTwo {
  0% {
    opacity: 0;
    transform: scale(1.06);
  }

  24% {
    opacity: 0;
    transform: scale(1.05);
  }

  34% {
    opacity: 0.86;
    transform: scale(1.03);
  }

  56% {
    opacity: 0.86;
    transform: scale(1.025);
  }

  64% {
    opacity: 0.14;
    transform: scale(1.04);
  }

  70% {
    opacity: 0;
    transform: scale(1.05);
  }

  100% {
    opacity: 0;
    transform: scale(1.045);
  }
}

@keyframes topHeroStripCycleThreeLayerThree {
  0% {
    opacity: 0;
    transform: scale(1.06);
  }

  58% {
    opacity: 0;
    transform: scale(1.05);
  }

  68% {
    opacity: 0.86;
    transform: scale(1.03);
  }

  88% {
    opacity: 0.86;
    transform: scale(1.02);
  }

  96% {
    opacity: 0.16;
    transform: scale(1.04);
  }

  100% {
    opacity: 0;
    transform: scale(1.05);
  }
}

@keyframes topHeroFeaturedReveal {
  0% {
    opacity: 0;
    transform: translateY(16px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 960px) {
  .top-hero-background-strips > :nth-child(n + 7) {
    display: none;
  }

  .top-hero-inner {
    grid-template-columns: 1fr;
  }

  .top-hero-panel {
    padding: 22px;
  }

  .top-hero-background-overlay {
    background:
      linear-gradient(180deg, rgba(243, 248, 255, 0.82) 0%, rgba(243, 248, 255, 0.58) 40%, rgba(243, 248, 255, 0.72) 100%),
      linear-gradient(90deg, rgba(243, 248, 255, 0.5) 0%, rgba(243, 248, 255, 0.22) 100%);
  }
}

@media (max-width: 767px) {
  .top-hero {
    padding: 68px 18px 40px;
  }

  .top-hero-title {
    font-size: 38px;
  }

  .top-hero-lead {
    font-size: 14px;
    line-height: 1.9;
  }

  .top-hero-copy {
    padding: 24px 20px 26px;
    border-radius: 28px;
  }

  .top-hero-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .top-hero-primary,
  .top-hero-secondary {
    width: 100%;
    padding: 0 14px;
  }

  .top-hero-panel {
    display: none;
  }

  .top-hero-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .top-hero-featured-avatar {
    width: 60px;
    height: 60px;
    flex-basis: 60px;
    border-radius: 18px;
  }

  .top-hero-background-strips {
    gap: 8px;
    padding: 0 10px;
  }

  .top-hero-background-strips > :nth-child(n + 6) {
    display: none;
  }

  .top-hero-bg-strip {
    min-width: 52px;
  }

  .top-hero-bg-image {
    transform: scale(1.01);
  }

  .top-hero-bg-strip.has-swap .top-hero-bg-image {
    animation-duration: 30s;
  }
}

.top-explore,
.top-pickup,
.top-news,
.top-about {
  content-visibility: auto;
  contain-intrinsic-size: 900px;
}
