html {
  scroll-behavior: smooth;
}

.mk-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 100%;
  z-index: 10000;
  transform: scaleX(0);
  transform-origin: left center;
  background: linear-gradient(90deg, #2d1b69, #e8a200);
  pointer-events: none;
  transition: transform 0.12s linear;
}

.mk-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 22% 18%, rgba(232, 162, 0, 0.22), transparent 42%),
    radial-gradient(circle at 80% 78%, rgba(45, 27, 105, 0.45), transparent 46%),
    #1a1025;
  color: #fff;
  transition: opacity 0.55s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.55s;
}

.mk-loader.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

body.mk-loading {
  overflow: hidden;
}

.mk-loader-inner {
  width: min(88vw, 360px);
  text-align: center;
}

.mk-loader-brand {
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  font-weight: 800;
  letter-spacing: -0.04em;
  font-size: 1.7rem;
}

.mk-loader-brand span {
  color: #e8a200;
}

.mk-loader-bar {
  margin: 1.25rem auto 0;
  height: 3px;
  width: 100%;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.14);
}

.mk-loader-bar i {
  display: block;
  height: 100%;
  width: 38%;
  border-radius: inherit;
  background: linear-gradient(90deg, #e8a200, #fff);
  animation: mk-slide 1.05s ease-in-out infinite;
}

.mk-loader-label {
  margin-top: 0.85rem;
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

@keyframes mk-slide {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(320%); }
}

app-store-shell .header {
  transition: background 0.35s ease, box-shadow 0.35s ease, backdrop-filter 0.35s ease;
}

app-store-shell .header.is-scrolled {
  background: rgba(250, 250, 250, 0.86) !important;
  backdrop-filter: blur(16px);
  box-shadow: 0 10px 30px rgba(26, 16, 37, 0.08);
}

.hero {
  animation: mk-rise 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-copy h1,
.hero-copy p,
.hero-actions,
.hero-badge,
.hero-stats {
  animation: mk-rise 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-copy h1 { animation-delay: 0.08s; }
.hero-copy p { animation-delay: 0.16s; }
.hero-actions { animation-delay: 0.24s; }
.hero-stats { animation-delay: 0.32s; }

.hero-images img,
.hero-images picture,
.hero-images > * {
  animation: mk-ken 18s ease-in-out infinite alternate;
}

.product-card,
.payment-card,
.delivery-card,
.country,
.section-head,
.center-head {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-card.is-in,
.payment-card.is-in,
.delivery-card.is-in,
.country.is-in,
.section-head.is-in,
.center-head.is-in {
  opacity: 1;
  transform: none;
}

.product-card {
  transition-property: opacity, transform, box-shadow;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(45, 27, 105, 0.12);
}

@keyframes mk-rise {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: none; }
}

@keyframes mk-ken {
  from { transform: scale(1); }
  to { transform: scale(1.06); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .mk-loader-bar i,
  .hero,
  .hero-copy h1,
  .hero-copy p,
  .hero-actions,
  .hero-badge,
  .hero-stats,
  .hero-images img,
  .hero-images picture,
  .hero-images > * {
    animation: none !important;
  }
  .product-card,
  .payment-card,
  .delivery-card,
  .country,
  .section-head,
  .center-head {
    opacity: 1;
    transform: none;
  }
}
