:root {
  --bg: #07060a;
  --bg-alt: #0c0a12;
  --card: #110d18;
  --card-border: rgba(168, 106, 255, 0.16);
  --card-border-hover: rgba(168, 106, 255, 0.38);
  --text: #f2eef9;
  --text-muted: #9c93ab;
  --text-dim: #6e6580;

  --purple-900: #1a0b2e;
  --purple-700: #6d28d9;
  --purple-600: #7c3aed;
  --purple-500: #9d4dff;
  --purple-400: #b978ff;
  --purple-300: #d3aaff;

  --glow: 0 0 40px rgba(157, 77, 255, 0.35);
  --glow-strong: 0 0 60px rgba(157, 77, 255, 0.55);

  --radius: 14px;
  --radius-sm: 8px;
  --header-h: 76px;

  --font-display: "Chakra Petch", "Inter", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; }

.wrap {
  width: 100%;
  max-width: 940px;
  margin: 0 auto;
  padding: 0 24px;
}

/* subtle grain texture over everything */
.noise {
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
  opacity: 0.035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(7, 6, 10, 0.7);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid rgba(168, 106, 255, 0.1);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1100px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.5px;
}

.brand-logo {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  filter: drop-shadow(0 0 8px rgba(157, 77, 255, 0.55));
}

.brand-name { font-size: 1.05rem; }
.brand-name em {
  font-style: normal;
  color: var(--purple-400);
}

.main-nav {
  display: flex;
  gap: 32px;
  margin-left: auto;
  margin-right: 32px;
}

.main-nav a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s ease;
  position: relative;
}

.main-nav a:hover { color: var(--text); }

.header-cta { flex-shrink: 0; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  margin-left: 12px;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 0 auto;
  background: var(--text);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 26px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--purple-600), var(--purple-500));
  color: #fff;
  box-shadow: 0 0 0 rgba(157,77,255,0);
}
.btn-primary:hover {
  box-shadow: var(--glow);
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  border-color: var(--card-border-hover);
  color: var(--text);
}
.btn-secondary:hover {
  border-color: var(--purple-400);
  background: rgba(157, 77, 255, 0.08);
}

.btn-small {
  padding: 9px 18px;
  font-size: 0.85rem;
}

.btn-large {
  padding: 17px 36px;
  font-size: 1.05rem;
}

.ico-discord { width: 18px; height: 18px; flex-shrink: 0; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: var(--header-h);
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 45% at 50% 22%, rgba(124, 58, 237, 0.22), transparent 60%),
    linear-gradient(180deg, #07060a 0%, #0a0710 60%, #07060a 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(168,106,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(168,106,255,0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, black, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, black, transparent 75%);
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  top: -10%;
  left: 50%;
  transform: translateX(-50%);
  width: 640px;
  height: 640px;
  background: radial-gradient(circle, rgba(157,77,255,0.35) 0%, rgba(157,77,255,0) 68%);
  filter: blur(10px);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-logo {
  width: 108px;
  height: 108px;
  border-radius: 50%;
  margin-bottom: 28px;
  filter: drop-shadow(0 0 34px rgba(157, 77, 255, 0.55));
  animation: floatLogo 6s ease-in-out infinite;
}

@keyframes floatLogo {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--purple-400);
  margin: 0 0 14px;
}
.eyebrow.center { text-align: center; }

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 8vw, 5.2rem);
  font-weight: 700;
  letter-spacing: 2px;
  margin: 0;
  line-height: 1;
}
.hero-title em {
  font-style: normal;
  background: linear-gradient(135deg, var(--purple-300), var(--purple-500));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  max-width: 520px;
  margin: 20px 0 0;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
  padding: 9px 20px;
  border-radius: 999px;
  background: rgba(157, 77, 255, 0.08);
  border: 1px solid rgba(157, 77, 255, 0.3);
  font-size: 0.85rem;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  text-transform: uppercase;
}
.status-badge strong {
  color: var(--purple-300);
  letter-spacing: 1.5px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--purple-400);
  box-shadow: 0 0 0 0 rgba(157, 77, 255, 0.6);
  animation: pulse 2s ease-out infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(157, 77, 255, 0.55); }
  70% { box-shadow: 0 0 0 8px rgba(157, 77, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(157, 77, 255, 0); }
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-top: 36px;
  flex-wrap: wrap;
  justify-content: center;
}

.hero-meta {
  display: flex;
  gap: 40px;
  margin-top: 64px;
  padding-top: 32px;
  border-top: 1px solid rgba(168, 106, 255, 0.12);
}

.meta-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.meta-label {
  font-size: 0.72rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-dim);
}

.meta-value {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text);
}

.scroll-cue {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 38px;
  border: 1px solid rgba(168, 106, 255, 0.35);
  border-radius: 20px;
  z-index: 2;
}
.scroll-cue span {
  position: absolute;
  top: 7px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  border-radius: 2px;
  background: var(--purple-400);
  animation: scrollCue 1.8s ease infinite;
}
@keyframes scrollCue {
  0% { opacity: 1; top: 7px; }
  100% { opacity: 0; top: 18px; }
}

/* ---------- Section shared ---------- */
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  margin: 0 0 14px;
}
.section-title.center { text-align: center; }

.section-lead {
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
  font-size: 1rem;
}
.section-lead.center { text-align: center; }

/* ---------- Regulamin ---------- */
.regulamin {
  padding: 120px 0 100px;
  background: var(--bg-alt);
  border-top: 1px solid rgba(168, 106, 255, 0.08);
  border-bottom: 1px solid rgba(168, 106, 255, 0.08);
}

.accordion-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin: 32px 0 40px;
}

.link-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  padding: 4px;
}
.link-btn:hover { color: var(--purple-300); }
.dot-sep { color: var(--text-dim); }

.accordion {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.acc-item {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s ease;
}
.acc-item:hover { border-color: var(--card-border-hover); }
.acc-item[open] { border-color: var(--card-border-hover); }

.acc-item summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 24px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  user-select: none;
}
.acc-item summary::-webkit-details-marker { display: none; }

.acc-icon { font-size: 1.15rem; line-height: 1; flex-shrink: 0; }

.acc-num {
  color: var(--purple-400);
  margin-right: 4px;
}

.acc-title { flex: 1; }

.acc-chevron {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  position: relative;
}
.acc-chevron::before, .acc-chevron::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 10px;
  height: 2px;
  background: var(--text-muted);
  transform-origin: center;
}
.acc-chevron::before { transform: translate(-50%, -50%) rotate(90deg); transition: transform 0.25s ease; }
.acc-chevron::after { transform: translate(-50%, -50%); }
.acc-item[open] .acc-chevron::before { transform: translate(-50%, -50%) rotate(0deg); }

.acc-body {
  padding: 0 24px 24px 58px;
}

.rules {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rules > li {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
}
.rules > li strong { color: var(--text); }

.sub-list {
  list-style: none;
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-left: 4px;
  border-left: 2px solid rgba(168, 106, 255, 0.2);
}
.sub-list li {
  padding-left: 14px;
  color: var(--text-muted);
  font-size: 0.92rem;
}
.sub-list li strong { color: var(--purple-300); }

/* ---------- Join CTA ---------- */
.join-cta {
  padding: 110px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.join-cta::before {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(157,77,255,0.16), transparent 70%);
  pointer-events: none;
}

.join-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.join-logo {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  margin-bottom: 24px;
  filter: drop-shadow(0 0 20px rgba(157,77,255,0.45));
}

.join-cta h2 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 4vw, 2.3rem);
  margin: 0 0 12px;
}

.join-cta p {
  color: var(--text-muted);
  max-width: 440px;
  margin: 0 0 32px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: #050408;
  padding: 48px 0 28px;
  border-top: 1px solid rgba(168, 106, 255, 0.1);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  max-width: 1100px;
  padding-bottom: 32px;
  margin-bottom: 24px;
  border-bottom: 1px solid rgba(168, 106, 255, 0.08);
}

.footer-nav {
  display: flex;
  gap: 28px;
}
.footer-nav a {
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: color 0.2s ease;
}
.footer-nav a:hover { color: var(--text); }

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: 1100px;
}
.footer-bottom p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-dim);
}

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Responsive ---------- */
@media (max-width: 780px) {
  .main-nav {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(7, 6, 10, 0.97);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(168,106,255,0.12);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .main-nav.is-open { max-height: 260px; }
  .main-nav a {
    padding: 18px 24px;
    border-bottom: 1px solid rgba(168,106,255,0.06);
    font-size: 1rem;
  }
  .header-cta { display: none; }
  .nav-toggle { display: flex; }

  .hero-meta { gap: 24px; }
  .hero-actions { flex-direction: column; width: 100%; }
  .hero-actions .btn { width: 100%; }

  .acc-body { padding-left: 24px; }
}

@media (max-width: 480px) {
  .hero-meta { flex-wrap: wrap; row-gap: 20px; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}
