/* SELFIOR store home — warstwa wizualna (backup: /store/backup/) */

html:has(body.store-home),
body.store-home {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

html:has(body.store-home)::-webkit-scrollbar,
body.store-home::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.store-home .hero {
  position: relative;
  isolation: isolate;
}

.store-home .hero-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(520px, 90vw);
  height: min(320px, 50vh);
  transform: translate(-50%, -58%);
  border-radius: 50%;
  background: radial-gradient(
    ellipse at center,
    rgba(168, 85, 247, 0.28) 0%,
    rgba(124, 58, 237, 0.1) 42%,
    transparent 72%
  );
  pointer-events: none;
  z-index: -1;
  animation: store-hero-pulse 6s ease-in-out infinite;
}

@keyframes store-hero-pulse {
  0%,
  100% {
    opacity: 0.75;
    transform: translate(-50%, -58%) scale(1);
  }
  50% {
    opacity: 1;
    transform: translate(-50%, -58%) scale(1.06);
  }
}

.store-home .hero h1 {
  background-size: 200% 200%;
  animation: store-title-shimmer 8s ease-in-out infinite;
  filter: drop-shadow(0 0 40px rgba(168, 85, 247, 0.25));
}

@keyframes store-title-shimmer {
  0%,
  100% {
    background-position: 50% 0%;
  }
  50% {
    background-position: 50% 100%;
  }
}

.store-home .hero-cta {
  position: relative;
  overflow: visible;
}

.store-home .hero-cta::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.55), rgba(124, 58, 237, 0.15));
  z-index: -1;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.store-home .hero-cta:hover::after {
  opacity: 1;
}

.store-home .store-header {
  border: 1px solid rgba(180, 122, 255, 0.18);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition:
    box-shadow 0.3s ease,
    border-color 0.3s ease,
    transform 0.3s ease;
}

.store-home .store-header.is-scrolled {
  border-color: rgba(180, 122, 255, 0.32);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.38),
    0 0 0 1px rgba(168, 85, 247, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.store-home .store-header strong {
  font-family: "Syne", sans-serif;
  letter-spacing: -0.02em;
}

.store-home .section-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  font-size: 12px;
  letter-spacing: 0.16em;
}

.store-home .section-title::before,
.store-home .section-title::after {
  content: "";
  flex: 1;
  max-width: 72px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(180, 122, 255, 0.45), transparent);
}

.store-home .store-section {
  position: relative;
}

.store-home .store-section--frame {
  padding: 28px 22px 32px;
  border-radius: 22px;
  border: 1px solid rgba(180, 122, 255, 0.14);
  background: linear-gradient(165deg, rgba(16, 8, 32, 0.55) 0%, rgba(8, 4, 18, 0.35) 100%);
  box-shadow:
    0 24px 64px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.store-home .store-section--frame .section-title {
  margin-bottom: 24px;
}

.store-home .reveal-item,
.store-home .store-section.reveal-section {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: calc(var(--reveal-i, 0) * 70ms);
}

.store-home .reveal-item.is-revealed,
.store-home .store-section.reveal-section.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

.store-home .about-card,
.store-home .guarantee-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(180, 122, 255, 0.16);
  box-shadow:
    0 10px 28px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition:
    transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.28s ease,
    box-shadow 0.28s ease;
}

.store-home .about-card::before,
.store-home .guarantee-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(168, 85, 247, 0.75), transparent);
  opacity: 0.65;
}

.store-home .about-card:hover,
.store-home .guarantee-card:hover {
  transform: translateY(-4px);
  border-color: rgba(180, 122, 255, 0.34);
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.28),
    0 0 32px rgba(124, 58, 237, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.store-home .stats-grid {
  gap: 12px;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  overflow: visible;
}

.store-home .stat-card {
  position: relative;
  border-radius: 16px;
  border: 1px solid rgba(180, 122, 255, 0.16);
  background: linear-gradient(160deg, rgba(18, 10, 36, 0.95), rgba(10, 6, 22, 0.92));
  box-shadow:
    0 12px 32px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.store-home .stat-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at 50% 0%, rgba(168, 85, 247, 0.12), transparent 58%);
  pointer-events: none;
}

.store-home .stat-card:hover {
  transform: translateY(-3px);
  border-color: rgba(180, 122, 255, 0.32);
  box-shadow:
    0 16px 36px rgba(0, 0, 0, 0.28),
    0 0 24px rgba(124, 58, 237, 0.1);
}

.store-home .stat-val {
  background: linear-gradient(180deg, #fff 0%, #c4b5fd 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.store-home .plan-card {
  border: 1px solid rgba(180, 122, 255, 0.16);
  box-shadow:
    0 10px 28px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
  transition:
    transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.28s ease,
    box-shadow 0.28s ease,
    background 0.28s ease;
}

.store-home .plan-card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.28),
    0 0 28px rgba(124, 58, 237, 0.1);
}

.store-home .plan-card.featured {
  box-shadow:
    0 0 0 1px rgba(168, 85, 247, 0.35),
    0 0 64px rgba(124, 58, 237, 0.32),
    0 24px 48px rgba(0, 0, 0, 0.35);
}

.store-home .plan-card.featured:hover {
  transform: scale(1.04) translateY(-4px);
}

.store-home .brud-guide {
  border: 1px solid rgba(180, 122, 255, 0.18);
  box-shadow:
    0 20px 56px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.store-home .brud-guide-block {
  padding: 18px 18px 22px;
  margin-bottom: 20px;
  border-radius: 14px;
  border: 1px solid rgba(180, 122, 255, 0.1);
  background: rgba(0, 0, 0, 0.18);
  border-bottom: 1px solid rgba(180, 122, 255, 0.1);
}

.store-home .brud-guide-block--last {
  margin-bottom: 0;
}

.store-home .brud-detect-card,
.store-home .brud-mode-card {
  border: 1px solid rgba(180, 122, 255, 0.14);
  background: rgba(12, 6, 24, 0.65);
  transition:
    border-color 0.22s ease,
    transform 0.22s ease;
}

.store-home .brud-detect-card:hover,
.store-home .brud-mode-card:hover {
  border-color: rgba(180, 122, 255, 0.28);
  transform: translateY(-2px);
}

.store-home .brud-formula-row {
  border: 1px solid rgba(180, 122, 255, 0.12);
  background: rgba(0, 0, 0, 0.2);
}

.store-home .legal-prose {
  border: 1px solid rgba(180, 122, 255, 0.16);
  box-shadow:
    0 16px 48px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.store-home .store-footer {
  margin-top: 24px;
  padding-top: 36px;
  border-top: 1px solid rgba(180, 122, 255, 0.12);
}

.store-home .store-footer::before {
  content: "";
  display: block;
  width: min(240px, 60%);
  height: 1px;
  margin: 0 auto 20px;
  background: linear-gradient(90deg, transparent, rgba(168, 85, 247, 0.45), transparent);
}

@media (prefers-reduced-motion: reduce) {
  .store-home .hero-glow,
  .store-home .hero h1 {
    animation: none;
  }

  .store-home .reveal-item,
  .store-home .store-section.reveal-section {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .store-home .about-card:hover,
  .store-home .guarantee-card:hover,
  .store-home .plan-card:hover,
  .store-home .stat-card:hover {
    transform: none;
  }
}

@media (max-width: 640px) {
  .store-home .store-section--frame {
    padding: 22px 16px 26px;
    border-radius: 18px;
  }

  .store-home .section-title::before,
  .store-home .section-title::after {
    max-width: 40px;
  }
}
