/* For Play: strona serwera. Kolory jak w grze (fioletowy akcent, ciemne tło). Bez ciężkich efektów. */
:root {
    --bg: #0b0b12;
    --bg-2: #11111b;
    --card: #161624;
    --line: rgba(255, 255, 255, .08);
    --line-2: rgba(255, 255, 255, .14);
    --text: #eceaf6;
    --muted: #9a97b3;
    --accent: #8b5cf6;
    --accent-2: #22d3ee;
    --discord: #5865f2;
    --ok: #34d399;
    --display: 'Chakra Petch', 'Inter', sans-serif;
    --font: 'Inter', 'Segoe UI', system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--accent-2); }
h1, h2, h3 { font-family: var(--display); line-height: 1.15; margin: 0 0 12px; }
h2 { font-size: clamp(28px, 4vw, 40px); }
.wrap { width: min(1160px, 100% - 32px); margin: 0 auto; }
.narrow { width: min(780px, 100% - 32px); }
.kicker { margin: 0 0 6px; font: 700 13px var(--display); letter-spacing: 2.5px; text-transform: uppercase; color: var(--accent); }

/* Przyciski */
.btn { display: inline-flex; align-items: center; gap: 9px; padding: 13px 22px; border-radius: 12px; border: 1px solid transparent;
    font: 700 15px var(--display); letter-spacing: .5px; color: #fff; text-decoration: none; cursor: pointer; transition: transform .15s, filter .15s; }
.btn:hover { transform: translateY(-2px); filter: brightness(1.1); }
.btn svg { width: 18px; height: 18px; fill: currentColor; }
.btn.small { padding: 9px 15px; font-size: 14px; }
.btn-primary { background: var(--accent); box-shadow: 0 8px 24px rgba(139, 92, 246, .35); }
.btn-discord { background: var(--discord); }

/* Nawigacja */
.nav { position: fixed; inset: 0 0 auto; z-index: 20; background: rgba(11, 11, 18, .85); border-bottom: 1px solid var(--line); }
.nav-in { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font: 700 18px var(--display); letter-spacing: 2px; }
.links { display: flex; gap: 22px; margin-left: auto; }
.links a { color: var(--muted); text-decoration: none; font-weight: 500; font-size: 15px; }
.links a:hover { color: var(--text); }
.burger { display: none; margin-left: auto; background: none; border: 0; padding: 8px; cursor: pointer; }
.burger span { display: block; width: 22px; height: 2px; margin: 5px 0; background: var(--text); border-radius: 2px; }

/* Start */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: 110px 0 70px; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background: url(img/hero.jpg) center / cover no-repeat; }
.hero-bg::after { content: ''; position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(11,11,18,.95) 0%, rgba(11,11,18,.75) 45%, rgba(11,11,18,.25) 100%), linear-gradient(0deg, var(--bg) 0%, transparent 35%); }
.hero-in { position: relative; }
.hero-logo { width: min(460px, 90%); height: auto; margin: 0 0 18px -10px; }
.hero h1 { font-size: clamp(34px, 5.4vw, 60px); max-width: 700px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.lead { max-width: 580px; font-size: 18px; color: #cfcbe6; margin: 0 0 28px; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; }
.status { display: inline-flex; align-items: center; margin-top: 26px; padding: 8px 16px; border-radius: 99px; background: rgba(22,22,36,.8); border: 1px solid var(--line-2); font-size: 14px; color: var(--muted); }
.status b { color: var(--text); }
.status[hidden] { display: none; }
.status .dot { width: 9px; height: 9px; margin-right: 10px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(52,211,153,.18); }
.status.off .dot { background: #f87171; box-shadow: 0 0 0 4px rgba(248,113,113,.18); }

/* Sekcje */
.sec { padding: 90px 0; }
.sec.alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.about { display: grid; grid-template-columns: 1.2fr 1fr; gap: 50px; align-items: center; }
.about p { color: #cfcbe6; }
.stats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.stats li { padding: 22px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); }
.stats b { display: block; font: 700 34px var(--display); color: var(--accent); }
.stats span { font-size: 14px; color: var(--muted); }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 30px; }
.card { padding: 24px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); transition: border-color .2s; }
.card:hover { border-color: rgba(139, 92, 246, .5); }
.card .ic { width: 46px; height: 46px; display: grid; place-items: center; margin-bottom: 14px; border-radius: 12px; background: rgba(139,92,246,.15); font-size: 22px; }
.card h3 { font-size: 20px; }
.card p { margin: 0; font-size: 15px; color: var(--muted); }
.card p b { color: var(--text); font-weight: 600; }


.steps { list-style: none; counter-reset: s; margin: 30px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.steps li { counter-increment: s; position: relative; padding: 26px 24px 24px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 38px; height: 38px; margin-bottom: 14px; border-radius: 50%;
    background: var(--accent); font: 700 18px var(--display); }
.steps b { font: 700 19px var(--display); }
.steps p { color: var(--muted); font-size: 15px; margin: 6px 0 14px; }
.steps .hint { font-size: 13px; margin: 10px 0 0; }
.steps .hint code { color: var(--text); }

details { border-bottom: 1px solid var(--line); }
details:first-of-type { margin-top: 24px; border-top: 1px solid var(--line); }
summary { list-style: none; cursor: pointer; padding: 18px 36px 18px 0; position: relative; font-weight: 600; font-size: 17px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font: 700 24px var(--display); color: var(--accent); transition: transform .2s; }
details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
details p { margin: 0 0 18px; color: var(--muted); }
details p b, details code { color: var(--text); }

.join { padding: 70px 0; background: linear-gradient(120deg, #2a1f5c, #1a1640 55%, #11111b); border-top: 1px solid var(--line); }
.join-in { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.join h2 { margin-bottom: 6px; }
.join p { margin: 0; color: #cfcbe6; }

.foot { padding: 40px 0; background: #08080d; border-top: 1px solid var(--line); }
.foot-in { display: grid; grid-template-columns: auto 1fr; gap: 16px 30px; align-items: center; }
.foot nav { display: flex; gap: 20px; justify-self: end; }
.foot nav a { color: var(--muted); text-decoration: none; font-size: 14px; }
.foot nav a:hover { color: var(--text); }
.legal { grid-column: 1 / -1; margin: 0; font-size: 12.5px; color: #6e6b86; }


@media (max-width: 960px) {
    .grid,     .steps { grid-template-columns: 1fr; }
    .about { grid-template-columns: 1fr; gap: 30px; }
}
@media (max-width: 760px) {
    .links { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; gap: 0; padding: 8px 16px 16px; background: var(--bg-2); border-bottom: 1px solid var(--line); }
    .links.open { display: flex; }
    .links a { padding: 12px 0; border-bottom: 1px solid var(--line); }
    .nav .btn-discord { display: none; }
    .burger { display: block; }
    .grid,     .sec { padding: 64px 0; }
    .hero-bg::after { background: linear-gradient(0deg, var(--bg) 5%, rgba(11,11,18,.7) 60%, rgba(11,11,18,.45) 100%); }
    .foot-in { grid-template-columns: 1fr; }
    .foot nav { justify-self: start; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { transition: none !important; }
}
