@font-face { font-family: "General Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/general-sans-400.woff2") format("woff2"); }
@font-face { font-family: "General Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/general-sans-500.woff2") format("woff2"); }
@font-face { font-family: "General Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/general-sans-600.woff2") format("woff2"); }
@font-face { font-family: "General Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/general-sans-700.woff2") format("woff2"); }

:root {
  --bg: hsl(205 40% 4%);
  --glass: hsl(198 28% 9% / 0.72);
  --line: hsl(198 40% 80% / 0.09);
  --line-strong: hsl(198 40% 80% / 0.18);
  --text: #eef1ff;
  --muted: hsl(198 15% 66%);
  --accent: hsl(198 100% 62%);
  --accent-2: hsl(215 100% 62%);
  --font: "General Sans", "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --r: 18px;
}
* { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  min-height: 100vh; display: flex; flex-direction: column;
  background:
    var(--bg);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--font);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); }
.wrap { width: min(1080px, 100% - 48px); margin-inline: auto; }
.narrow { width: min(720px, 100% - 48px); }
.muted { color: var(--muted); }

.glass {
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: var(--r);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

/* nav: pływająca szklana pigułka */
.nav { position: sticky; top: 0; z-index: 10; padding-top: 14px; pointer-events: none; }
.nav-in {
  pointer-events: auto;
  width: min(1120px, 100% - 32px); margin-inline: auto; height: 58px; padding: 0 9px 0 20px;
  display: flex; align-items: center; justify-content: space-between;
  border-radius: 999px;
  background: hsl(205 40% 7% / .62);
  backdrop-filter: blur(18px) saturate(1.2); -webkit-backdrop-filter: blur(18px) saturate(1.2);
  border: 1px solid hsl(198 50% 85% / .12);
  box-shadow: 0 12px 40px rgba(0,0,0,.35), inset 0 1px 0 hsl(0 0% 100% / .06);
}
.brand { justify-self: start; display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 600; letter-spacing: .01em; }
.brand em { font-style: normal; color: var(--accent); }
.nav-actions { justify-self: end; display: flex; align-items: center; gap: 6px; }
.nav-dc { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; color: hsl(198 15% 72%); transition: color .2s, background .2s; }
.nav-dc:hover { color: #fff; background: #5865F2; }
.nav .btn { border-radius: 99px; padding: 9px 20px; }

/* buttons */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #04121a;
  font-weight: 600;
  text-decoration: none;
  transition: transform .2s, filter .2s;
}
.btn:hover { transform: translateY(-1px); filter: brightness(1.08); }
.btn-sm { padding: 7px 16px; font-size: 0.9rem; }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--line-strong); }
.btn-lg { padding: 16px 28px; font-size: 1.02rem; border-radius: 14px; }
.btn-win { display: inline-flex; align-items: center; gap: 12px; box-shadow: 0 10px 30px hsl(205 100% 55% / .3), inset 0 1px 0 hsl(0 0% 100% / .4); }
.btn-win svg { flex: none; }
.btn-discord { display: inline-flex; align-items: center; gap: 12px; background: #5865F2; color: #fff; box-shadow: 0 10px 30px rgba(88, 101, 242, .35), inset 0 1px 0 hsl(0 0% 100% / .22); }
.btn-discord:hover { background: #4752C4; filter: none; }
.btn-discord svg { flex: none; }

/* hero: wycentrowane, z logo w szklanej kuli */
main { flex: 1; display: flex; flex-direction: column; }
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  flex: 1; min-height: 460px;
  display: grid; place-items: center;
  padding: 28px 24px 44px;
  text-align: center;
}
.hero::before { /* winieta */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(85% 75% at 50% 42%, transparent 35%, hsl(205 55% 3% / .75) 100%);
}
.hero::after { /* wygaszenie dołu, żeby sekcja płynnie przechodziła w kolejną */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 160px; z-index: -1;
  background: linear-gradient(to bottom, transparent, var(--bg));
}
.hero-in { display: flex; flex-direction: column; align-items: center; max-width: 760px; }

/* tło: ciemna scena, jedna szeroka i bardzo stonowana poświata u góry oraz delikatna faktura */
.bg-glow {
  position: absolute; inset: 0; z-index: -3; pointer-events: none;
  background:
    radial-gradient(55% 40% at 50% 8%, hsl(203 100% 68% / .12), transparent 72%),
    radial-gradient(80% 50% at 50% 118%, hsl(205 70% 38% / .12), transparent 70%);
}
.bg-grain {
  position: absolute; inset: 0; z-index: -2; pointer-events: none; opacity: .06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* logo: bez ramki i koła; animowana jest tylko warstwa (transform/opacity), więc ruch jest płynny */
.logo { position: relative; margin-bottom: clamp(16px, 3vh, 30px); animation: rise .9s var(--ease) both; }
.logo::before {
  content: ""; position: absolute; left: 50%; top: 50%; width: 300px; height: 300px; z-index: 0;
  margin: -150px 0 0 -150px;
  background: radial-gradient(closest-side, hsl(198 100% 62% / .12), hsl(198 100% 62% / .03) 55%, transparent 76%);
  animation: glow 6s ease-in-out infinite; will-change: opacity;
}
.logo-float { position: relative; z-index: 1; animation: bob 7s ease-in-out infinite; will-change: transform; }
.logo-float img { display: block; height: clamp(104px, 15vh, 150px); width: auto; filter: drop-shadow(0 12px 26px hsl(205 100% 55% / .45)); }
@keyframes bob { 0%, 100% { transform: translate3d(0, 0, 0); } 50% { transform: translate3d(0, -10px, 0); } }
@keyframes glow { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }

h1 { margin: 0 0 18px; font-size: clamp(2.6rem, 6.2vw, 5rem); line-height: 1.04; letter-spacing: -0.022em; font-weight: 700; text-wrap: balance; }
.hero h1 {
  background: linear-gradient(180deg, #fff 50%, hsl(198 40% 88%));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: rise .9s .1s var(--ease) both;
}
.hero h1 .grad {
  background: linear-gradient(180deg, hsl(198 100% 82%), hsl(205 100% 62%));
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.lead { margin: 0 0 34px; max-width: 520px; color: var(--muted); font-size: clamp(1.02rem, 1.6vw, 1.2rem); animation: rise .9s .2s var(--ease) both; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; animation: rise .9s .3s var(--ease) both; }
.hero-meta { margin: 28px 0 0; animation: rise .9s .45s var(--ease) both; }
.pill { display: inline-flex; align-items: center; gap: 9px; padding: 7px 16px; border-radius: 99px; border: 1px solid hsl(198 50% 85% / .14); background: hsl(198 40% 100% / .04); color: hsl(198 20% 80%); font-size: .86rem; letter-spacing: .02em; }
.pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px hsl(198 100% 62% / .8); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

h2 { margin: 0 0 8px; font-size: clamp(1.6rem, 4vw, 2.2rem); letter-spacing: -0.012em; }

/* okno pobierania */
.dl {
  border: 0; padding: 0; background: transparent; color: var(--text); overflow: visible;
  width: min(580px, calc(100% - 28px)); max-height: calc(100vh - 28px);
}
.dl::backdrop { background: hsl(205 50% 3% / .74); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.dl[open] { animation: dl-in .45s var(--ease) both; }
.dl[open]::backdrop { animation: dl-fade .35s ease both; }
@keyframes dl-in { from { opacity: 0; transform: translateY(14px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes dl-fade { from { opacity: 0; } to { opacity: 1; } }
.dl-body {
  position: relative; padding: 34px 32px 26px; border-radius: 26px;
  max-height: calc(100vh - 28px); overflow: auto;
  background: linear-gradient(180deg, hsl(205 38% 11%), hsl(207 42% 7%));
  border: 1px solid hsl(198 50% 85% / .14);
  box-shadow: 0 40px 100px rgba(0,0,0,.6), inset 0 1px 0 hsl(0 0% 100% / .08);
}
.dl-body form { margin: 0; }
/* domyślnie (i przy każdym błędzie) okno mówi, że pobierania jeszcze nie ma */
.dl:not([data-state="on"]) .dl-on { display: none; }
.dl[data-state="on"] .dl-off { display: none; }
.dl-off .dl-lead { margin-bottom: 26px; }
.dl-go-off { display: flex; justify-content: center; width: 100%; }
.dl-x {
  position: absolute; top: 16px; right: 16px; width: 36px; height: 36px; display: grid; place-items: center;
  border-radius: 50%; border: 0; cursor: pointer; color: var(--muted); background: hsl(198 40% 100% / .05);
  transition: color .2s, background .2s;
}
.dl-x:hover { color: var(--text); background: hsl(198 40% 100% / .1); }
.dl-tag { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px; font-size: .78rem; letter-spacing: .04em; text-transform: uppercase; color: hsl(198 20% 74%); }
.dl-tag i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px hsl(198 100% 62% / .8); }
.dl h2 { margin: 0 0 10px; font-size: 1.7rem; text-align: left; }
.dl-lead { margin: 0; color: var(--muted); font-size: .98rem; line-height: 1.55; }
.steps { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 24px 0 8px; }
.step { margin: 0; display: flex; flex-direction: column; }
.ss {
  flex: 1; min-height: 158px; padding: 14px 14px 12px; border-radius: 14px;
  display: flex; flex-direction: column; gap: 7px;
  background: linear-gradient(160deg, hsl(215 52% 24%), hsl(219 55% 14%));
  border: 1px solid hsl(215 60% 75% / .2);
  font-size: .7rem; line-height: 1.4; color: hsl(215 40% 92%);
  box-shadow: inset 0 1px 0 hsl(0 0% 100% / .1);
}
.ss b { font-size: .8rem; font-weight: 600; color: #fff; }
.ss p { margin: 0; opacity: .85; }
.ss-link { align-self: flex-start; color: hsl(205 100% 80%); text-decoration: underline; }
.ss-btns { margin-top: auto; display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.ss-btn { padding: 5px 9px; border-radius: 6px; background: hsl(215 30% 100% / .13); font-weight: 600; white-space: nowrap; }
.hl { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; animation: ring 2.2s ease-in-out infinite; }
@keyframes ring { 0%, 100% { box-shadow: 0 0 0 0 hsl(198 100% 62% / .0); } 50% { box-shadow: 0 0 0 7px hsl(198 100% 62% / .16); } }
.step figcaption { display: flex; align-items: center; gap: 9px; margin-top: 11px; font-size: .86rem; color: hsl(198 18% 80%); }
.step figcaption i {
  flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center;
  font-style: normal; font-weight: 700; font-size: .76rem; color: #04121a;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}
.dl-ill { margin: 6px 0 20px; font-size: .74rem; color: hsl(198 12% 55%); }
.dl-go { display: flex; justify-content: center; width: 100%; }
.dl-fine { margin: 16px 0 0; text-align: center; font-size: .8rem; color: hsl(198 12% 58%); }
.dl-fine a { color: hsl(198 40% 78%); }

/* stopka: subtelny dodatek */
.foot { border-top: 1px solid hsl(198 40% 80% / .06); padding: 16px 0 18px; font-size: .76rem; }
.foot-in { display: flex; flex-wrap: wrap; gap: 6px 22px; justify-content: space-between; align-items: center; color: hsl(198 12% 52%); }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.foot-links a { color: hsl(198 12% 52%); text-decoration: none; transition: color .2s; }
.foot-links a:hover { color: var(--text); }
.legal { margin: 10px 0 0; color: hsl(198 10% 40%); font-size: .68rem; line-height: 1.55; max-width: 860px; }

/* strony prawne */
.doc code { font-family: "Cascadia Mono", Consolas, monospace; font-size: .9em; padding: 1px 6px; border-radius: 6px; background: hsl(198 40% 100% / .07); }
.doc { padding: 56px 0 80px; }
.doc h1 { font-size: clamp(2rem, 5vw, 2.8rem); margin-bottom: 8px; }
.doc .meta { color: var(--muted); margin: 0 0 36px; font-size: .92rem; }
.doc h2 { text-align: left; font-size: 1.25rem; margin: 36px 0 10px; letter-spacing: -.01em; }
.doc p, .doc li { color: hsl(198 15% 78%); }
.doc ul, .doc ol { padding-left: 1.3em; }
.doc li { margin: 4px 0; }
.doc table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: .92rem; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.doc th { color: var(--text); font-weight: 600; background: hsl(198 28% 9% / .6); }
.todo { background: hsl(45 100% 55% / .18); color: hsl(45 100% 75%); padding: 0 .3em; border-radius: 4px; }
.back { display: inline-block; margin-bottom: 20px; color: var(--muted); text-decoration: none; font-size: .92rem; }
.back:hover { color: var(--text); }

@media (max-width: 560px) {
  .nav-in { padding-left: 16px; }
  .hero { padding: 40px 20px 64px; }
  .logo { margin-bottom: 24px; }
  .logo-float img { height: 120px; }
  .logo::before { width: 240px; height: 240px; margin: -120px 0 0 -120px; }
  .cta .btn { flex: 1 1 100%; justify-content: center; }
  .dl-body { padding: 26px 20px 22px; }
  .steps { grid-template-columns: 1fr; }
  .doc table, .doc thead, .doc tbody, .doc tr, .doc th, .doc td { display: block; }
  .doc thead { display: none; }
  .doc td { padding: 4px 0; border: 0; }
  .doc tr { border-bottom: 1px solid var(--line); padding: 8px 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
