:root {
  --bg: #07070c;
  --surface: #0f0f17;
  --border: rgba(255, 255, 255, 0.07);
  --text: #ececf3;
  --muted: #9a9ab0;
  --violet: #8b5cf6;
  --violet-2: #a78bfa;
  --cyan: #22d3ee;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: var(--violet-2); text-decoration: none; }
a:hover { color: #fff; }
code { font-family: ui-monospace, Consolas, monospace; font-size: 0.85em; background: rgba(139, 92, 246, 0.12); color: #c4b5fd; padding: 0.1em 0.4em; border-radius: 6px; }

.glow { position: fixed; border-radius: 50%; filter: blur(120px); pointer-events: none; z-index: -1; }
.glow-a { width: 520px; height: 520px; background: rgba(124, 58, 237, 0.28); top: -160px; left: -120px; }
.glow-b { width: 460px; height: 460px; background: rgba(6, 182, 212, 0.16); top: 120px; right: -160px; }

.nav { display: flex; align-items: center; justify-content: space-between; max-width: 1120px; margin: 0 auto; padding: 22px 20px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 800; letter-spacing: 0.25em; }
.nav nav { display: flex; align-items: center; gap: 22px; font-size: 14px; }
.nav nav a { color: var(--muted); }
.nav nav a:hover { color: #fff; }

main { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

.hero { text-align: center; padding: 70px 0 60px; }
.hero h1 { font-size: clamp(36px, 6vw, 64px); line-height: 1.08; margin: 18px 0; font-weight: 800; letter-spacing: -0.02em; }
.grad { background: linear-gradient(100deg, #fff 5%, #c4b5fd 45%, var(--cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { max-width: 680px; margin: 0 auto; color: var(--muted); font-size: 18px; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border: 1px solid var(--border); border-radius: 999px; background: rgba(255, 255, 255, 0.04); font-size: 13px; color: #d4d4e0; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #55556a; }
.dot.on { background: #4ade80; box-shadow: 0 0 10px #4ade80; }

.cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin: 34px 0 14px; }
.btn { display: inline-flex; align-items: center; padding: 14px 26px; border-radius: 14px; font-weight: 700; color: #fff;
  background: linear-gradient(110deg, #7c3aed, var(--violet) 40%, #06b6d4); box-shadow: 0 10px 40px -10px rgba(139, 92, 246, 0.7); }
.btn:hover { filter: brightness(1.1); color: #fff; }
.btn-ghost { background: rgba(255, 255, 255, 0.05); border: 1px solid var(--border); box-shadow: none; }
.btn-small { padding: 8px 16px; border-radius: 10px; font-size: 14px; color: #fff !important; }
.muted { color: var(--muted); }
.small { font-size: 13px; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; padding: 30px 0 60px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 22px; }
.card h3 { margin: 0 0 8px; font-size: 17px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }

.server { background: var(--surface); border: 1px solid var(--border); border-radius: 22px; padding: 30px; margin-bottom: 60px; }
.server h2 { margin-top: 0; }
table { width: 100%; border-collapse: collapse; margin: 18px 0 10px; font-size: 14px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { color: var(--muted); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; }

.doc { max-width: 760px; padding-bottom: 60px; }
.doc h2 { margin-top: 32px; font-size: 20px; }
.doc p { color: #cfcfdb; }

footer { max-width: 1120px; margin: 0 auto; padding: 26px 20px 40px; border-top: 1px solid var(--border); display: flex; flex-wrap: wrap;
  gap: 10px; justify-content: space-between; color: var(--muted); font-size: 13px; }

/* ---------- Rozbudowana strona ---------- */
html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 20px; }
.hero-shot { margin: 48px auto 0; max-width: 980px; border-radius: 20px; padding: 6px; background: linear-gradient(135deg, rgba(139, 92, 246, 0.5), rgba(34, 211, 238, 0.35));
  box-shadow: 0 40px 120px -30px rgba(139, 92, 246, 0.55); }
.hero-shot img { display: block; width: 100%; height: auto; border-radius: 15px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; max-width: 980px; margin: 28px auto 0; }
.stats div { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 16px 10px; }
.stats b { display: block; font-size: 26px; font-weight: 800; background: linear-gradient(100deg, #fff, #c4b5fd); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stats span { color: var(--muted); font-size: 13px; }

.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding: 30px 0 70px; }
.pillar .icon { font-size: 26px; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; background: rgba(139, 92, 246, 0.14); margin-bottom: 14px; }

.section-title { text-align: center; font-size: clamp(28px, 4vw, 40px); font-weight: 800; letter-spacing: -0.02em; margin: 0 0 8px; }
.section-lead { text-align: center; max-width: 640px; margin: 0 auto 40px; }

.feature { display: grid; grid-template-columns: 1fr 1.25fr; gap: 44px; align-items: center; margin: 0 0 80px; }
.feature.reverse .feature-text { order: 2; }
.feature h3 { font-size: 26px; margin: 10px 0 10px; letter-spacing: -0.01em; }
.feature p { color: var(--muted); margin: 0 0 14px; }
.tag { display: inline-block; font-size: 12px; font-weight: 600; color: var(--violet-2); background: rgba(139, 92, 246, 0.12); border: 1px solid rgba(139, 92, 246, 0.25);
  padding: 4px 10px; border-radius: 999px; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.checks li { position: relative; padding-left: 26px; color: #cfcfdb; font-size: 15px; }
.checks li::before { content: "\2713"; position: absolute; left: 0; top: 1px; width: 18px; height: 18px; border-radius: 6px; background: rgba(74, 222, 128, 0.14);
  color: #4ade80; font-size: 12px; display: grid; place-items: center; font-weight: 700; }
.shot { display: block; border-radius: 16px; overflow: hidden; border: 1px solid var(--border); box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.9);
  transition: transform 0.25s, box-shadow 0.25s; cursor: zoom-in; }
.shot:hover { transform: translateY(-4px) scale(1.01); box-shadow: 0 40px 90px -30px rgba(139, 92, 246, 0.5); }
.shot img { display: block; width: 100%; height: auto; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 80px; }
.two-col h3 { margin-top: 0; }
.modules { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 14px; }
.modules span { padding: 7px 12px; border-radius: 10px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--border); font-size: 14px; }
.keys { margin: 0 0 10px; }
.keys td { padding: 7px 0; border-bottom: 1px solid var(--border); }
.keys td:first-child { width: 120px; }
kbd { font-family: Inter, sans-serif; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 7px; background: #1b1b28; border: 1px solid #2c2c3d;
  border-bottom-width: 3px; color: #e4e4f0; white-space: nowrap; }

#launcher { margin-bottom: 80px; }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 18px; }
.tabs button { font: inherit; font-size: 14px; font-weight: 600; color: var(--muted); background: rgba(255, 255, 255, 0.04); border: 1px solid var(--border);
  padding: 8px 16px; border-radius: 999px; cursor: pointer; }
.tabs button:hover { color: #fff; }
.tabs button.on { color: #fff; background: linear-gradient(110deg, #7c3aed, var(--violet)); border-color: transparent; }
.launcher-view { max-width: 920px; margin: 0 auto 30px; border-radius: 16px; overflow: hidden; border: 1px solid var(--border); box-shadow: 0 40px 100px -40px rgba(139, 92, 246, 0.5); }
.launcher-view img { display: block; width: 100%; height: auto; }
.grid.compact { padding: 10px 0 0; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 22px 0; }
.steps div { display: flex; gap: 12px; align-items: flex-start; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--border); border-radius: 14px; padding: 14px; }
.steps span { flex: none; width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; font-weight: 800; background: linear-gradient(110deg, #7c3aed, #06b6d4); }
.steps p { margin: 0; font-size: 14px; color: #cfcfdb; }
.code { background: #07070d; border: 1px solid var(--border); border-radius: 14px; padding: 18px 20px; overflow-x: auto; font-family: ui-monospace, Consolas, monospace;
  font-size: 13px; line-height: 1.7; color: #d8d8ea; }
.code .c { color: #6b6b85; }
.server h3 { margin-top: 30px; }
.table-wrap { overflow-x: auto; }
tr.group td { color: var(--violet-2); font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; padding-top: 18px; }
.server td:nth-child(2) { white-space: nowrap; color: var(--muted); }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; margin-bottom: 80px; }
.gallery a { position: relative; display: block; border-radius: 12px; overflow: hidden; border: 1px solid var(--border); cursor: zoom-in; }
.gallery img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform 0.3s; }
.gallery a:hover img { transform: scale(1.05); }
.gallery span { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 12px 9px; font-size: 13px; font-weight: 600; color: #fff;
  background: linear-gradient(transparent, rgba(5, 5, 9, 0.9)); }
.lightbox { position: fixed; inset: 0; z-index: 50; background: rgba(3, 3, 6, 0.92); display: grid; place-items: center; padding: 20px; cursor: zoom-out; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 12px; box-shadow: 0 30px 100px rgba(0, 0, 0, 0.8); }

.list { margin: 0 0 12px; padding-left: 20px; color: #cfcfdb; }
.list li { margin-bottom: 8px; }
#faq { margin-bottom: 80px; }
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 4px 18px; }
.faq summary { cursor: pointer; font-weight: 600; padding: 12px 24px 12px 0; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 10px; font-size: 20px; color: var(--violet-2); }
.faq details[open] summary::after { content: "\2212"; }
.faq p { color: var(--muted); margin: 0 0 14px; }
.roadmap { margin-bottom: 60px; }
.card.done { border-color: rgba(74, 222, 128, 0.25); }
.card.done h3 { color: #4ade80; }
.final-cta { text-align: center; padding: 50px 20px 70px; margin-bottom: 40px; border-radius: 24px; border: 1px solid var(--border);
  background: radial-gradient(circle at 30% 0%, rgba(124, 58, 237, 0.3), transparent 60%), radial-gradient(circle at 80% 100%, rgba(6, 182, 212, 0.18), transparent 60%), var(--surface); }
.final-cta h2 { font-size: clamp(24px, 3.5vw, 34px); margin: 0 0 6px; }

@media (max-width: 900px) {
  .feature, .two-col, .pillars, .steps { grid-template-columns: 1fr; }
  .feature { gap: 20px; margin-bottom: 60px; }
  .feature.reverse .feature-text { order: 0; }
  .stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .nav nav a:not(.btn) { display: none; }
  .server { padding: 20px; }
  td code { word-break: break-all; }
}
