/* ==========================================================================
   BLOCK CODE — style.css
   Bazowe style, animacje i efekty. Układ i kolory głównie przez Tailwind w index.html
   ========================================================================== */

/* Baza */
html {
  background: #050505;
  color: #f4f4f5;
}
body {
  overflow-x: hidden;
  position: relative;
}
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #050505;
}
::-webkit-scrollbar-thumb {
  background: #1d1d24;
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #38bdf8;
}

/* ==========================================================================
   TŁO ANIMOWANE (canvas z siecią + poświaty)
   ========================================================================== */
#bg-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}
.aurora {
  position: fixed;
  z-index: 0;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(110px);
  mix-blend-mode: screen;
  will-change: transform;
}
.aurora.a1 {
  width: 560px;
  height: 460px;
  top: -140px;
  left: -120px;
  background: rgba(14, 165, 233, 0.16);
  animation: drift1 24s ease-in-out infinite alternate;
}
.aurora.a2 {
  width: 500px;
  height: 520px;
  bottom: -160px;
  right: -120px;
  background: rgba(56, 189, 248, 0.11);
  animation: drift2 28s ease-in-out infinite alternate;
}
.aurora.a3 {
  width: 420px;
  height: 360px;
  top: 38%;
  left: 42%;
  background: rgba(2, 132, 199, 0.1);
  animation: drift3 32s ease-in-out infinite alternate;
}
/* Delikatny indygo, żeby poświata nie była jednokolorowa */
.aurora.a4 {
  width: 360px;
  height: 300px;
  top: 12%;
  right: 18%;
  background: rgba(99, 102, 241, 0.08);
  animation: drift4 36s ease-in-out infinite alternate;
}
@keyframes drift1 {
  50% {
    transform: translate(180px, 260px) scale(1.15) rotate(20deg);
  }
  100% {
    transform: translate(320px, 120px) scale(1.25) rotate(-10deg);
  }
}
@keyframes drift2 {
  50% {
    transform: translate(-220px, -120px) scale(1.2) rotate(-18deg);
  }
  100% {
    transform: translate(-340px, -220px) scale(1.1) rotate(12deg);
  }
}
@keyframes drift3 {
  50% {
    transform: translate(-180px, 160px) scale(0.9) rotate(25deg);
  }
  100% {
    transform: translate(140px, -120px) scale(1.15) rotate(-20deg);
  }
}
@keyframes drift4 {
  50% {
    transform: translate(-200px, 180px) scale(1.2) rotate(15deg);
  }
  100% {
    transform: translate(120px, 300px) scale(0.9) rotate(-15deg);
  }
}

/* Delikatne ziarno nad tłem (pod treścią): usuwa "plastikowy" wygląd gradientów */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
main,
footer,
section {
  position: relative;
  z-index: 10;
}

/* ==========================================================================
   PASEK POSTĘPU PRZEWIJANIA
   ========================================================================== */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0;
  z-index: 60;
  background: linear-gradient(90deg, #0284c7, #38bdf8, #e0f7ff);
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.7);
}

/* ==========================================================================
   POJAWIANIE SIĘ ELEMENTÓW PRZY PRZEWIJANIU
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
.reveal-delay-1 {
  transition-delay: 0.1s;
}
.reveal-delay-2 {
  transition-delay: 0.2s;
}
.reveal-delay-3 {
  transition-delay: 0.3s;
}

/* ==========================================================================
   KARTY
   ========================================================================== */
.matte-card {
  position: relative;
  background: #0d0d10;
  border: 1px solid #19191f;
  border-radius: 18px;
  overflow: hidden;
  transition:
    transform 0.85s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.4s ease,
    background-color 0.4s ease;
}
.matte-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s;
  background: radial-gradient(
    280px circle at var(--mx, 50%) var(--my, 50%),
    rgba(56, 189, 248, 0.13),
    transparent 70%
  );
}
.matte-card:hover::before {
  opacity: 1;
}
.matte-card > * {
  position: relative;
}
.matte-card:hover {
  transform: translateY(-6px);
  background: #111116;
  border-color: rgba(56, 189, 248, 0.35);
}
.card-action-line {
  display: inline-block;
  width: 36px;
  height: 1px;
  background: #71717a;
  transition:
    width 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    background-color 0.35s;
}
.matte-card:hover .card-action-line {
  width: 54px;
  background: #38bdf8;
}
.card-icon {
  animation: bob 5s ease-in-out infinite;
}
@keyframes bob {
  50% {
    transform: translateY(-5px);
  }
}

/* ==========================================================================
   LOGO
   ========================================================================== */
.bc-logo-block {
  font-family: "Lilita One", "Rubik", sans-serif;
  letter-spacing: 0.03em;
  line-height: 0.88;
  color: #fff;
  -webkit-text-stroke: 2px #0b132b;
  filter: drop-shadow(0 3px 0 #0b132b);
}
.bc-logo-code {
  font-family: "Lilita One", "Rubik", sans-serif;
  letter-spacing: 0.03em;
  line-height: 0.88;
  background: linear-gradient(180deg, #e0f7ff 0%, #38bdf8 55%, #0284c7 100%);
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke: 2px #08203e;
  filter: drop-shadow(0 3px 0 #071930);
}
.logo-float {
  animation: bob 4s ease-in-out infinite;
}

/* ==========================================================================
   HERO (okręgi, napis, przycisk)
   ========================================================================== */
.ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.06);
  pointer-events: none;
}
.ring.dashed {
  border-style: dashed;
  border-color: rgba(56, 189, 248, 0.14);
}
.spin {
  animation: spin 60s linear infinite;
}
.spin-rev {
  animation: spin 90s linear infinite reverse;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.ring::after {
  content: "";
  position: absolute;
  top: -4px;
  left: 50%;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: #38bdf8;
  box-shadow: 0 0 14px #38bdf8;
}
.title-shimmer {
  background: linear-gradient(100deg, #fff 30%, #7dd3fc 45%, #38bdf8 50%, #7dd3fc 55%, #fff 70%);
  background-size: 250% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 6s ease-in-out infinite;
}
@keyframes shimmer {
  0% {
    background-position: 100% 0;
  }
  60%,
  100% {
    background-position: -100% 0;
  }
}

.btn-glow {
  animation: pulse 3s ease-in-out infinite;
}
@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 0 24px rgba(255, 255, 255, 0.1);
  }
  50% {
    box-shadow: 0 0 42px rgba(56, 189, 248, 0.38);
  }
}

/* ==========================================================================
   CENY
   ========================================================================== */
.price {
  font-family: "Rubik", sans-serif;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
}
.price-badge {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
}
.save-tag {
  font-size: 11px;
  font-weight: 600;
  color: #38bdf8;
  background: rgba(14, 165, 233, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 2px 10px;
  border-radius: 9999px;
  animation: pulse-tag 2.6s ease-in-out infinite;
}
@keyframes pulse-tag {
  50% {
    background: rgba(14, 165, 233, 0.22);
  }
}

.radial-burst {
  background: repeating-conic-gradient(
    from 0deg,
    rgba(255, 255, 255, 0.03) 0deg 6deg,
    transparent 6deg 12deg
  );
  border-radius: 50%;
  mask-image: radial-gradient(circle, #000 35%, transparent 72%);
  -webkit-mask-image: radial-gradient(circle, #000 35%, transparent 72%);
  animation: spin 120s linear infinite;
}

/* ==========================================================================
   ANIMACJE PO NAJECHANIU (hover)
   Po załadowaniu elementu (.settled) hovery reagują szybko
   ========================================================================== */
.reveal.settled {
  transition-delay: 0s !important;
  transition-duration: 0.35s !important;
}

/* Menu, przyciski, karty, FAQ, stopka */
nav a.smooth-link {
  position: relative;
  display: inline-block;
  transition:
    color 0.3s,
    transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
nav a.smooth-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 1px;
  background: #38bdf8;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
nav a.smooth-link:hover {
  transform: translateY(-2px);
}
nav a.smooth-link:hover::after {
  transform: scaleX(1);
}
a.rounded-full,
button.rounded-full {
  transition:
    transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
    background-color 0.3s,
    color 0.3s,
    border-color 0.3s,
    box-shadow 0.3s;
}
a.rounded-full:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 10px 30px rgba(56, 189, 248, 0.25);
}
a.rounded-full:active {
  transform: scale(0.97);
}
span.rounded-full {
  transition:
    transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.3s,
    color 0.3s;
}
span.rounded-full:hover {
  transform: scale(1.07);
  border-color: #38bdf8;
}
.card-icon svg {
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.matte-card:hover .card-icon svg {
  transform: scale(1.18) rotate(-8deg);
}
.num {
  transition:
    transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    background-color 0.3s,
    color 0.3s;
}
.matte-card:hover .num {
  transform: scale(1.15) rotate(8deg);
  background: #38bdf8;
  color: #000;
}
.price {
  display: inline-block;
  transition:
    transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    color 0.3s;
  transform-origin: left bottom;
}
.matte-card:hover .price {
  transform: scale(1.08);
  color: #7dd3fc;
}
.info-box {
  transition:
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.35s;
}
.info-box:hover {
  transform: translateY(-3px);
  border-color: rgba(56, 189, 248, 0.4);
}
.faq-item {
  transition:
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.35s,
    background-color 0.35s;
}
.faq-item:hover {
  transform: translateX(6px);
  border-color: rgba(56, 189, 248, 0.4);
  background: #111116;
}
#copy-discord-btn,
#copy-email-btn,
#copy-phone-btn {
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
#copy-discord-btn:hover,
#copy-email-btn:hover,
#copy-phone-btn:hover {
  transform: translateX(6px);
}
#copy-discord-btn > div:first-child,
#copy-email-btn > div:first-child,
#copy-phone-btn > div:first-child {
  transition:
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.3s,
    color 0.3s;
}
#copy-discord-btn:hover > div:first-child,
#copy-email-btn:hover > div:first-child,
#copy-phone-btn:hover > div:first-child {
  transform: scale(1.12) rotate(-8deg);
}
footer ul a.smooth-link {
  display: inline-block;
  transition:
    transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
    color 0.3s;
}
footer ul a.smooth-link:hover {
  transform: translateX(6px);
}
