/* ===== Reset & Base ===== */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Segoe UI', Tahoma, system-ui, -apple-system, sans-serif;
  background: #07071a;
  color: #e6e6ff;
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: #22d3ee; text-decoration: none; transition: color .2s; }
a:hover { color: #a855f7; }

/* ===== Animated Background ===== */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse at 20% 10%, rgba(168, 85, 247, 0.15), transparent 50%),
    radial-gradient(ellipse at 80% 90%, rgba(34, 211, 238, 0.12), transparent 50%),
    radial-gradient(ellipse at 50% 50%, rgba(244, 63, 94, 0.05), transparent 60%),
    linear-gradient(180deg, #07071a 0%, #0a0524 100%);
}
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(168, 85, 247, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 211, 238, 0.04) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
}

/* ===== Header & Nav ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 7, 26, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(168, 85, 247, 0.2);
  padding: 1rem 0;
}
.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.logo {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: .5px;
  background: linear-gradient(90deg, #a855f7, #22d3ee);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.logo svg { width: 32px; height: 32px; }
.main-nav ul {
  display: flex;
  list-style: none;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.main-nav a {
  color: #cbd5ff;
  font-weight: 500;
  padding: .4rem .2rem;
  border-bottom: 2px solid transparent;
  transition: all .2s;
}
.main-nav a:hover {
  color: #22d3ee;
  border-bottom-color: #a855f7;
}

/* ===== Layout ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
main {
  padding: 3rem 0 5rem;
}
article {
  max-width: 880px;
  margin: 0 auto;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  padding: 5rem 0 4rem;
  text-align: center;
  border-bottom: 1px solid rgba(168, 85, 247, 0.15);
  overflow: hidden;
}
.hero-illustration {
  max-width: 480px;
  margin: 0 auto 2rem;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 1.2rem;
  background: linear-gradient(135deg, #ffffff 0%, #a855f7 50%, #22d3ee 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p.lead {
  font-size: 1.2rem;
  color: #b8c0e0;
  max-width: 720px;
  margin: 0 auto;
}

/* ===== Typography ===== */
h1, h2, h3, h4 {
  color: #ffffff;
  font-weight: 800;
  margin: 2rem 0 1rem;
  line-height: 1.25;
}
article h1 {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  margin-top: 0;
  margin-bottom: 1.2rem;
  background: linear-gradient(135deg, #ffffff, #22d3ee);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  position: relative;
  padding-left: 1rem;
  margin-top: 3rem;
}
h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: .3em;
  bottom: .3em;
  width: 4px;
  background: linear-gradient(180deg, #a855f7, #22d3ee);
  border-radius: 4px;
}
h3 {
  font-size: 1.3rem;
  color: #cbd5ff;
  margin-top: 2rem;
}
h4 { font-size: 1.1rem; color: #22d3ee; }

p { margin: 1rem 0; color: #d1d5e8; }
strong { color: #f5d7ff; font-weight: 700; }
em { color: #b8e6ff; }

ul, ol { margin: 1rem 0 1rem 1.5rem; color: #d1d5e8; }
li { margin: .4rem 0; }
ul li::marker { color: #a855f7; }
ol li::marker { color: #22d3ee; font-weight: 700; }

/* ===== BLUF box ===== */
.bluf {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.12), rgba(34, 211, 238, 0.08));
  border-left: 4px solid #a855f7;
  border-radius: 10px;
  padding: 1.2rem 1.5rem;
  margin: 1.5rem 0 2rem;
  font-size: 1.08rem;
  color: #e9ecff;
}
.bluf::before {
  content: 'W skrócie';
  display: block;
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: 2px;
  color: #a855f7;
  text-transform: uppercase;
  margin-bottom: .5rem;
}

/* ===== TOC ===== */
.toc {
  background: rgba(22, 22, 48, 0.6);
  border: 1px solid rgba(168, 85, 247, 0.2);
  border-radius: 12px;
  padding: 1.5rem 1.8rem;
  margin: 2rem 0;
}
.toc h3 {
  margin-top: 0;
  color: #22d3ee;
  font-size: 1rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.toc ol {
  margin-left: 1.3rem;
  margin-bottom: 0;
}
.toc a { color: #cbd5ff; }
.toc a:hover { color: #22d3ee; }

/* ===== Cards Grid ===== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}
.card {
  background: linear-gradient(135deg, rgba(22, 22, 48, 0.7), rgba(15, 10, 35, 0.7));
  border: 1px solid rgba(168, 85, 247, 0.18);
  border-radius: 14px;
  padding: 1.5rem;
  transition: transform .25s, border-color .25s, box-shadow .25s;
  position: relative;
  overflow: hidden;
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(34, 211, 238, 0.5);
  box-shadow: 0 12px 32px rgba(168, 85, 247, 0.15);
}
.card-icon {
  width: 56px;
  height: 56px;
  margin-bottom: 1rem;
}
.card h3 {
  margin-top: 0;
  color: #ffffff;
  font-size: 1.15rem;
}
.card p {
  font-size: .95rem;
  color: #b8c0e0;
  margin-bottom: 1rem;
}
.card a.card-link {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  color: #22d3ee;
  font-weight: 600;
  font-size: .95rem;
}
.card a.card-link::after {
  content: '→';
  transition: transform .2s;
}
.card a.card-link:hover::after {
  transform: translateX(4px);
}

/* ===== Highlight / Callout ===== */
.callout {
  background: rgba(34, 211, 238, 0.08);
  border: 1px solid rgba(34, 211, 238, 0.3);
  border-radius: 10px;
  padding: 1.2rem 1.4rem;
  margin: 1.5rem 0;
}
.callout strong { color: #22d3ee; }

.contra {
  background: rgba(244, 63, 94, 0.08);
  border: 1px solid rgba(244, 63, 94, 0.3);
  border-radius: 10px;
  padding: 1.2rem 1.4rem;
  margin: 1.5rem 0;
}
.contra strong { color: #fb7185; }

/* ===== Tables ===== */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  background: rgba(22, 22, 48, 0.5);
  border-radius: 10px;
  overflow: hidden;
}
th, td {
  padding: .9rem 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(168, 85, 247, 0.15);
}
th {
  background: rgba(168, 85, 247, 0.15);
  color: #ffffff;
  font-weight: 700;
}
tr:last-child td { border-bottom: none; }
tr:hover { background: rgba(34, 211, 238, 0.05); }

/* ===== FAQ ===== */
.faq-item {
  background: rgba(22, 22, 48, 0.5);
  border: 1px solid rgba(168, 85, 247, 0.15);
  border-radius: 10px;
  padding: 1.2rem 1.5rem;
  margin: 1rem 0;
}
.faq-item h3 {
  margin-top: 0;
  color: #22d3ee;
  font-size: 1.1rem;
}
.faq-item p:last-child { margin-bottom: 0; }

/* ===== Related links ===== */
.related-links {
  margin: 3rem 0 1rem;
  padding: 2rem;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.08), rgba(34, 211, 238, 0.05));
  border-radius: 14px;
  border: 1px solid rgba(168, 85, 247, 0.2);
}
.related-links h3 {
  margin-top: 0;
  color: #22d3ee;
}
.related-links ul {
  list-style: none;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: .6rem;
}
.related-links li::before {
  content: '→ ';
  color: #a855f7;
  font-weight: 700;
}

/* ===== Footer ===== */
.site-footer {
  background: rgba(5, 5, 18, 0.9);
  border-top: 1px solid rgba(168, 85, 247, 0.2);
  padding: 3rem 0 2rem;
  margin-top: 4rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer-col h4 {
  color: #a855f7;
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-top: 0;
  margin-bottom: 1rem;
}
.footer-col ul {
  list-style: none;
  margin: 0;
}
.footer-col li {
  margin: .4rem 0;
}
.footer-col a {
  color: #b8c0e0;
  font-size: .95rem;
}
.footer-col a:hover { color: #22d3ee; }
.footer-bottom {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(168, 85, 247, 0.15);
  color: #8090b8;
  font-size: .9rem;
}

/* ===== Game cards inline ===== */
.game-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
  list-style: none;
}
.game-list li {
  background: rgba(22, 22, 48, 0.5);
  border: 1px solid rgba(168, 85, 247, 0.2);
  border-radius: 8px;
  padding: .8rem 1rem;
  margin: 0;
  color: #d1d5e8;
}
.game-list li::marker { content: none; }
.game-list li strong { display: block; color: #22d3ee; margin-bottom: .2rem; }

/* ===== Stat boxes ===== */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}
.stat {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.1), rgba(34, 211, 238, 0.05));
  border: 1px solid rgba(168, 85, 247, 0.25);
  border-radius: 12px;
  padding: 1.4rem;
  text-align: center;
}
.stat .num {
  display: block;
  font-size: 2.2rem;
  font-weight: 900;
  background: linear-gradient(135deg, #a855f7, #22d3ee);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: .3rem;
}
.stat .label { color: #b8c0e0; font-size: .9rem; }

/* ===== Hero CTA buttons ===== */
.cta-row {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .9rem 1.6rem;
  border-radius: 10px;
  font-weight: 700;
  font-size: 1rem;
  transition: all .2s;
}
.btn-primary {
  background: linear-gradient(135deg, #a855f7, #6366f1);
  color: #ffffff;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(168, 85, 247, 0.4);
  color: #ffffff;
}
.btn-secondary {
  background: transparent;
  color: #22d3ee;
  border: 2px solid #22d3ee;
}
.btn-secondary:hover {
  background: rgba(34, 211, 238, 0.1);
  color: #22d3ee;
}

/* ===== Mobile ===== */
@media (max-width: 720px) {
  .nav-container { gap: 1rem; }
  .main-nav ul { gap: .8rem; font-size: .9rem; }
  .hero { padding: 3rem 0 2.5rem; }
  h2 { margin-top: 2rem; }
  article { padding: 0; }
}

/* === CTA BOX (link do sklepu) === */
.cta-box {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.75rem 2rem;
  margin: 1.5rem 0 2.5rem;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.18) 0%, rgba(34, 211, 238, 0.12) 100%);
  border: 1px solid rgba(168, 85, 247, 0.35);
  border-radius: 18px;
  color: inherit;
  text-decoration: none !important;
  overflow: hidden;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
  box-shadow: 0 8px 28px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.04);
}
.cta-box::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(168, 85, 247, 0.25), transparent 60%),
              radial-gradient(circle at 10% 90%, rgba(34, 211, 238, 0.2), transparent 55%);
  pointer-events: none;
  opacity: 0.9;
  transition: opacity .3s ease;
}
.cta-box:hover {
  transform: translateY(-3px);
  border-color: rgba(34, 211, 238, 0.6);
  box-shadow: 0 14px 38px rgba(168, 85, 247, 0.28), inset 0 1px 0 rgba(255,255,255,0.06);
}
.cta-box:hover::before { opacity: 1; }
.cta-glow {
  position: absolute;
  top: -40%;
  left: -10%;
  width: 60%;
  height: 180%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.06), transparent);
  transform: skewX(-20deg);
  animation: ctaShine 6s ease-in-out infinite;
  pointer-events: none;
}
@keyframes ctaShine {
  0%, 100% { transform: skewX(-20deg) translateX(-30%); opacity: 0; }
  40% { opacity: 0.9; }
  60% { transform: skewX(-20deg) translateX(220%); opacity: 0; }
}
.cta-content { flex: 1; position: relative; z-index: 2; }
.cta-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.28rem 0.65rem;
  margin-bottom: 0.7rem;
  background: linear-gradient(90deg, #a855f7, #22d3ee);
  color: #07071a;
  border-radius: 999px;
}
.cta-title {
  margin: 0 0 0.45rem 0;
  font-size: 1.45rem;
  line-height: 1.25;
  color: #ffffff;
  background: linear-gradient(90deg, #ffffff 0%, #c8b9ff 60%, #a3eefb 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.cta-desc {
  margin: 0 0 1rem 0;
  font-size: 0.97rem;
  line-height: 1.55;
  color: rgba(230, 232, 255, 0.85);
}
.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.7rem 1.4rem;
  font-weight: 700;
  font-size: 0.98rem;
  background: linear-gradient(90deg, #a855f7, #7c3aed);
  color: #ffffff !important;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(168, 85, 247, 0.4);
  transition: transform .2s ease, box-shadow .2s ease;
}
.cta-box:hover .cta-button {
  transform: translateX(4px);
  box-shadow: 0 10px 24px rgba(34, 211, 238, 0.45);
  background: linear-gradient(90deg, #7c3aed, #22d3ee);
}
.cta-arrow {
  display: inline-block;
  transition: transform .25s ease;
  font-size: 1.1em;
}
.cta-box:hover .cta-arrow { transform: translateX(4px); }
.cta-icon {
  flex-shrink: 0;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 4px 14px rgba(168, 85, 247, 0.4));
}
@media (max-width: 640px) {
  .cta-box { flex-direction: column-reverse; text-align: left; padding: 1.5rem 1.3rem; gap: 1rem; }
  .cta-icon svg { width: 64px; height: 64px; }
  .cta-title { font-size: 1.2rem; }
}
