/* Evolution – styl strony. Kolory z gry (src/ui/theme.js). */
:root {
  --bg: #05060a;
  --bg-2: #0a0e17;
  --panel: #111827;
  --panel-2: #1a2030;
  --line: #233047;
  --text: #e8f7ff;
  --muted: #8fa3b8;
  --cyan: #29f0ff;
  --magenta: #ff2bd6;
  --green: #5dff9e;
  --amber: #ffc400;
  --red: #ff4060;
  --radius: 14px;
  --font: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --mono: ui-monospace, 'Cascadia Mono', 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
  --wrap: 1180px;
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.65 var(--font);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* Delikatna siatka laboratorium + linie skanowania */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(255, 43, 214, 0.09), transparent 60%),
    radial-gradient(900px 600px at -10% 10%, rgba(41, 240, 255, 0.08), transparent 60%),
    linear-gradient(rgba(41, 240, 255, 0.035) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(90deg, rgba(41, 240, 255, 0.035) 1px, transparent 1px) 0 0 / 48px 48px,
    var(--bg);
}

main {
  flex: 1;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--cyan);
  text-underline-offset: 3px;
}

a:hover {
  color: #8ff8ff;
}

code {
  font-family: var(--mono);
  font-size: 0.88em;
  background: rgba(41, 240, 255, 0.08);
  border: 1px solid rgba(41, 240, 255, 0.18);
  padding: 0.08em 0.4em;
  border-radius: 6px;
  word-break: break-word;
}

h1,
h2,
h3 {
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 900;
}

h2 {
  font-size: clamp(1.6rem, 3.2vw, 2.4rem);
  font-weight: 850;
}

h3 {
  font-size: 1.2rem;
  font-weight: 750;
}

p {
  margin: 0 0 1em;
}

:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap {
  width: min(var(--wrap), 100% - 40px);
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  z-index: 100;
  background: var(--cyan);
  color: #000;
  padding: 8px 14px;
  border-radius: 8px;
}

.skip:focus {
  left: 12px;
}

.kicker {
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
  margin: 0 0 0.8em;
}

.kicker::before {
  content: '// ';
  color: var(--magenta);
}

.lead {
  font-size: 1.15rem;
  color: #c4d4e3;
  max-width: 62ch;
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 0.92rem;
}

.note {
  display: inline-block;
  font-size: 0.9rem;
  color: var(--amber);
  border: 1px solid rgba(255, 196, 0, 0.35);
  background: rgba(255, 196, 0, 0.07);
  padding: 4px 12px;
  border-radius: 999px;
}

/* ------------------------------------------------------------------ górny pasek */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(5, 6, 10, 0.78);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  border-bottom: 1px solid rgba(41, 240, 255, 0.12);
}

.topbar-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 900;
  letter-spacing: 0.14em;
  font-size: 1.05rem;
}

.brand img {
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.brand:hover img {
  transform: rotate(60deg);
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav a {
  color: #c4d4e3;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.96rem;
  padding: 8px 14px;
  border-radius: 10px;
  transition: background 0.2s, color 0.2s;
}

.nav a:hover {
  color: var(--text);
  background: rgba(41, 240, 255, 0.08);
}

.nav a[aria-current='page'] {
  color: var(--cyan);
  background: rgba(41, 240, 255, 0.1);
}

.nav a.nav-play {
  color: #001014;
  background: var(--cyan);
  margin-left: 8px;
  box-shadow: 0 0 18px rgba(41, 240, 255, 0.35);
}

.nav a.nav-play:hover {
  background: #7ff7ff;
  color: #001014;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  cursor: pointer;
  padding: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}

.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);
}

/* ------------------------------------------------------------------ przyciski */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: 800 1rem/1 var(--font);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 14px 22px;
  border-radius: 12px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.25s, background 0.2s, color 0.2s, border-color 0.2s;
}

.btn svg {
  width: 20px;
  height: 20px;
  flex: none;
}

.btn small {
  font-family: var(--mono);
  font-size: 0.72em;
  font-weight: 600;
  opacity: 0.75;
  text-transform: none;
  margin-left: 4px;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn-lg {
  padding: 18px 28px;
  font-size: 1.08rem;
}

.btn-primary {
  background: var(--cyan);
  color: #001014;
  box-shadow: 0 0 0 0 rgba(41, 240, 255, 0.5), 0 10px 30px -8px rgba(41, 240, 255, 0.6);
}

.btn-primary:hover {
  color: #001014;
  background: #7ff7ff;
  box-shadow: 0 0 0 6px rgba(41, 240, 255, 0.15), 0 14px 36px -8px rgba(41, 240, 255, 0.75);
}

.btn-secondary {
  background: rgba(255, 43, 214, 0.1);
  color: var(--text);
  border-color: var(--magenta);
}

.btn-secondary:hover {
  color: var(--text);
  background: rgba(255, 43, 214, 0.2);
  box-shadow: 0 0 24px rgba(255, 43, 214, 0.35);
}

.btn-ghost {
  background: rgba(17, 24, 39, 0.7);
  color: #c4d4e3;
  border-color: var(--line);
}

.btn-ghost:hover {
  color: var(--text);
  border-color: var(--muted);
}

.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.link-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  text-decoration: none;
  margin-top: 8px;
}

.link-more svg {
  width: 18px;
  height: 18px;
  transition: transform 0.2s;
}

.link-more:hover svg {
  transform: translateX(4px);
}

/* ------------------------------------------------------------------ hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(48px, 8vw, 110px) 0 clamp(56px, 8vw, 100px);
  border-bottom: 1px solid rgba(41, 240, 255, 0.1);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.22;
  filter: blur(3px) saturate(1.2);
  transform: scale(1.05);
  animation: drift 30s ease-in-out infinite alternate;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, var(--bg) 10%, rgba(5, 6, 10, 0.6) 55%, rgba(5, 6, 10, 0.85)),
    linear-gradient(0deg, var(--bg), transparent 40%),
    repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.25) 0 1px, transparent 1px 3px);
}

@keyframes drift {
  to {
    transform: scale(1.12) translateX(-2%);
  }
}

.hero-in {
  display: grid;
  grid-template-columns: 1fr 1.08fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.logo-type {
  position: relative;
  font-size: clamp(3.2rem, 9vw, 6.4rem);
  font-weight: 900;
  letter-spacing: 0.02em;
  line-height: 0.95;
  margin: 0;
  color: var(--cyan);
  -webkit-text-stroke: 2px var(--magenta);
  paint-order: stroke fill;
  text-shadow: 0 0 40px rgba(41, 240, 255, 0.35);
}

.logo-type::after {
  content: attr(data-text);
  position: absolute;
  left: 0;
  top: 0;
  color: transparent;
  -webkit-text-stroke: 0;
  background: linear-gradient(100deg, transparent 40%, rgba(255, 255, 255, 0.75) 50%, transparent 60%) -200% 0 / 200% 100% no-repeat;
  -webkit-background-clip: text;
  background-clip: text;
  animation: shine 6s ease-in-out 1.2s infinite;
}

@keyframes shine {
  0%,
  60% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

.hero-tag {
  font-family: var(--mono);
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--muted);
  letter-spacing: 0.08em;
  margin: 14px 0 22px;
}

.hero-lead {
  font-size: 1.14rem;
  color: #c4d4e3;
  max-width: 52ch;
  margin-bottom: 30px;
}

.chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 28px 0 0;
}

.chips li {
  font-size: 0.84rem;
  font-weight: 600;
  color: #b8c9da;
  border: 1px solid var(--line);
  background: rgba(17, 24, 39, 0.7);
  padding: 6px 12px;
  border-radius: 999px;
}

.chips li:first-child {
  border-color: rgba(41, 240, 255, 0.4);
  color: var(--cyan);
}

.hero-shot {
  perspective: 1400px;
}

.device {
  position: relative;
  border-radius: 22px;
  padding: 12px;
  background: linear-gradient(145deg, #1a2233, #0b0f18);
  border: 1px solid #2a3850;
  box-shadow:
    0 40px 80px -30px rgba(0, 0, 0, 0.9),
    0 0 0 1px rgba(41, 240, 255, 0.08),
    0 0 70px -20px rgba(41, 240, 255, 0.4),
    0 0 90px -30px rgba(255, 43, 214, 0.35);
  transform: rotateY(-8deg) rotateX(3deg);
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.device:hover {
  transform: rotateY(0) rotateX(0);
}

.device img {
  border-radius: 12px;
  width: 100%;
}

.device::before {
  content: '';
  position: absolute;
  top: 50%;
  width: 4px;
  height: 46px;
  left: 4px;
  transform: translateY(-50%);
  border-radius: 4px;
  background: #2a3850;
}

.hero-shot-cap {
  text-align: center;
  font-family: var(--mono);
  font-size: 0.76rem;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 18px;
}

/* ------------------------------------------------------------------ sekcje */
.section {
  padding: clamp(56px, 8vw, 96px) 0;
}

.section.tight {
  padding-top: clamp(28px, 4vw, 48px);
}

.section-alt {
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.55), rgba(17, 24, 39, 0.25));
  border-block: 1px solid rgba(41, 240, 255, 0.07);
}

.section-head {
  margin-bottom: 36px;
}

.page-head {
  padding: clamp(48px, 7vw, 88px) 0 clamp(20px, 3vw, 32px);
  position: relative;
}

.page-head h1 {
  background: linear-gradient(90deg, var(--text), var(--cyan) 70%, var(--magenta));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.features,
.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature,
.card,
.panel {
  position: relative;
  background: linear-gradient(180deg, rgba(26, 32, 48, 0.85), rgba(17, 24, 39, 0.85));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}

.feature {
  overflow: hidden;
  transition: transform 0.25s, border-color 0.25s;
}

.feature:hover,
.card:hover {
  border-color: rgba(41, 240, 255, 0.4);
  transform: translateY(-3px);
}

.card {
  transition: transform 0.25s, border-color 0.25s;
}

.feature::after {
  content: '';
  position: absolute;
  inset: auto -40% -60% auto;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(41, 240, 255, 0.14), transparent 70%);
}

.feature-num {
  display: inline-block;
  font-family: var(--mono);
  font-weight: 800;
  color: var(--magenta);
  font-size: 0.9rem;
  margin-bottom: 14px;
  border: 1px solid rgba(255, 43, 214, 0.4);
  border-radius: 8px;
  padding: 2px 10px;
}

.feature p,
.card p {
  color: #b8c9da;
  margin-bottom: 0.6em;
}

.card ul {
  margin: 0.4em 0 0;
  padding-left: 1.1em;
  color: #b8c9da;
}

.card.enemy .from {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--amber);
  margin-bottom: 0.5em;
}

.card.enemy .reward {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--green);
  margin: 14px 0 0;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 48px);
}

.grid-2.align-center {
  align-items: center;
}

.split {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
}

/* ------------------------------------------------------------------ galeria / zrzuty */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.shot {
  margin: 0;
}

.shot img {
  border-radius: 12px;
  border: 1px solid var(--line);
  box-shadow: 0 20px 40px -24px rgba(0, 0, 0, 0.9);
  transition: transform 0.35s, box-shadow 0.35s, border-color 0.35s;
}

.shot a {
  display: block;
  border-radius: 12px;
}

.shot a:hover img {
  transform: scale(1.02);
  border-color: rgba(41, 240, 255, 0.5);
  box-shadow: 0 0 0 1px rgba(41, 240, 255, 0.2), 0 24px 50px -20px rgba(41, 240, 255, 0.35);
}

.shot figcaption {
  font-size: 0.88rem;
  color: var(--muted);
  margin-top: 10px;
}

.shot.wide {
  margin-top: 28px;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(2, 3, 6, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  cursor: zoom-out;
  animation: fade 0.2s ease;
}

.lightbox img {
  max-height: 100%;
  border-radius: 12px;
  box-shadow: 0 0 80px rgba(41, 240, 255, 0.25);
}

@keyframes fade {
  from {
    opacity: 0;
  }
}

/* ------------------------------------------------------------------ zmiany */
.changes {
  display: grid;
  gap: 16px;
}

.change {
  background: rgba(17, 24, 39, 0.75);
  border: 1px solid var(--line);
  border-left: 3px solid var(--cyan);
  border-radius: var(--radius);
  padding: 22px 24px;
}

.change h3 {
  margin: 8px 0 8px;
}

.change-body {
  color: #b8c9da;
}

.change-body ul {
  margin: 0;
  padding-left: 1.2em;
}

.change-body p:last-child {
  margin-bottom: 0;
}

.change-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--muted);
}

.tag {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid currentColor;
  color: var(--cyan);
}

.tag-nowość {
  color: var(--green);
}

.tag-grafika {
  color: var(--magenta);
}

.tag-balans {
  color: var(--amber);
}

.tag-poprawka {
  color: var(--red);
}

.tag-narzędzia,
.tag-strona {
  color: #9db4ff;
}

.change:has(.tag-nowość) {
  border-left-color: var(--green);
}

.change:has(.tag-grafika) {
  border-left-color: var(--magenta);
}

.change:has(.tag-balans) {
  border-left-color: var(--amber);
}

.change:has(.tag-narzędzia),
.change:has(.tag-strona) {
  border-left-color: #9db4ff;
}

.updates {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 32px;
  align-items: start;
}

.timeline {
  display: grid;
  gap: 16px;
}

.commits-panel {
  position: sticky;
  top: 88px;
  max-height: calc(100vh - 110px);
  overflow: auto;
}

.commits-panel h2 {
  font-size: 1.4rem;
}

.commits {
  list-style: none;
  margin: 0;
  padding: 0;
}

.commits li {
  display: grid;
  grid-template-columns: auto auto;
  justify-content: start;
  column-gap: 10px;
  row-gap: 2px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 0.92rem;
}

.commits li:last-child {
  border-bottom: 0;
}

.commits time {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--muted);
}

.commits code {
  font-size: 0.75rem;
  color: var(--magenta);
  background: rgba(255, 43, 214, 0.08);
  border-color: rgba(255, 43, 214, 0.25);
}

.commits span {
  grid-column: 1 / -1;
  color: #c4d4e3;
}

/* ------------------------------------------------------------------ panel boczny / listy */
.mini-list {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
}

.mini-list li {
  position: relative;
  padding: 7px 0 7px 22px;
  color: #b8c9da;
  border-bottom: 1px solid rgba(35, 48, 71, 0.6);
}

.mini-list li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 15px;
  width: 9px;
  height: 9px;
  border-radius: 2px;
  background: var(--amber);
  box-shadow: 0 0 10px var(--amber);
}

.panel h3 + .mini-list li::before {
  background: var(--amber);
}

.panel .mini-list:last-of-type li::before {
  background: var(--muted);
  box-shadow: none;
}

.panel ul:not(.mini-list) {
  padding-left: 1.2em;
  color: #b8c9da;
}

/* ------------------------------------------------------------------ pasek CTA */
.cta-band {
  padding: clamp(40px, 6vw, 64px) 0;
}

.cta-band-in {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  padding: clamp(28px, 4vw, 44px);
  border-radius: 20px;
  border: 1px solid rgba(41, 240, 255, 0.25);
  background:
    radial-gradient(600px 200px at 0% 0%, rgba(41, 240, 255, 0.14), transparent 70%),
    radial-gradient(600px 200px at 100% 100%, rgba(255, 43, 214, 0.14), transparent 70%),
    var(--panel);
}

.cta-band h2 {
  margin-bottom: 6px;
}

.cta-band p {
  color: #b8c9da;
  margin: 0;
}

/* ------------------------------------------------------------------ pobieranie */
.download-card {
  border-radius: 20px;
  padding: clamp(24px, 4vw, 40px);
  border: 1px solid var(--line);
  background: var(--panel);
  display: grid;
  gap: 24px;
}

.download-card.ok {
  border-color: rgba(93, 255, 158, 0.35);
  box-shadow: 0 0 60px -30px rgba(93, 255, 158, 0.6);
}

.download-card.off {
  border-color: rgba(255, 196, 0, 0.35);
  background:
    repeating-linear-gradient(-45deg, rgba(255, 196, 0, 0.04) 0 14px, transparent 14px 28px),
    var(--panel);
}

.download-main {
  display: flex;
  gap: 22px;
  align-items: flex-start;
}

.download-main h2 {
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
}

.download-main p:last-child {
  margin-bottom: 0;
}

.lock-badge {
  flex: none;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 16px;
  color: var(--amber);
  border: 1px solid rgba(255, 196, 0, 0.4);
  background: rgba(255, 196, 0, 0.08);
}

.lock-badge svg {
  width: 30px;
  height: 30px;
}

.facts {
  display: grid;
  gap: 12px;
  margin: 0;
}

.facts dt {
  font-size: 0.82rem;
  color: var(--muted);
}

.facts dd {
  margin: 2px 0 0;
}

.hash {
  font-size: 0.78rem;
  word-break: break-all;
}

.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 0;
}

.steps li {
  counter-increment: step;
  position: relative;
  padding: 0 0 18px 50px;
  color: #b8c9da;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -2px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  font-family: var(--mono);
  font-weight: 800;
  color: #001014;
  background: var(--cyan);
}

.steps strong {
  color: var(--text);
}

/* ------------------------------------------------------------------ o grze */
.toc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.toc a {
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  color: #c4d4e3;
  border: 1px solid var(--line);
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.7);
  transition: border-color 0.2s, color 0.2s;
}

.toc a:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

section[id] {
  scroll-margin-top: 72px;
}

.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(17, 24, 39, 0.8);
  margin-bottom: 18px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.96rem;
}

caption {
  text-align: left;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
  padding: 16px 18px 6px;
}

th,
td {
  text-align: left;
  padding: 12px 18px;
  border-bottom: 1px solid rgba(35, 48, 71, 0.7);
  vertical-align: top;
}

thead th {
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

tbody th {
  color: var(--text);
  font-weight: 700;
  white-space: nowrap;
}

tbody td {
  color: #b8c9da;
}

tbody tr:last-child > * {
  border-bottom: 0;
}

tbody tr:hover {
  background: rgba(41, 240, 255, 0.04);
}

.people p {
  color: #b8c9da;
  font-size: 0.95rem;
  margin-bottom: 0.5em;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 20px;
}

.stat-col {
  display: grid;
  gap: 14px;
  align-content: center;
}

.stat {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(17, 24, 39, 0.8);
  padding: 16px 18px;
}

.stat span {
  display: block;
  font-family: var(--mono);
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--green);
  line-height: 1.1;
}

.stat small {
  color: var(--muted);
  font-size: 0.84rem;
}

/* ------------------------------------------------------------------ plan */
.progress {
  margin-bottom: 28px;
}

.progress-bar {
  height: 12px;
  border-radius: 999px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  overflow: hidden;
}

.progress-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--green));
  box-shadow: 0 0 16px rgba(41, 240, 255, 0.6);
  border-radius: 999px;
}

.progress p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.plan {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: start;
}

.plan-col {
  background: rgba(17, 24, 39, 0.75);
  border: 1px solid var(--line);
  border-top: 3px solid var(--c);
  border-radius: var(--radius);
  padding: 22px;
}

.plan-done {
  --c: var(--green);
}

.plan-doing {
  --c: var(--amber);
}

.plan-next {
  --c: var(--magenta);
}

.plan-col h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.2rem;
  margin-bottom: 16px;
}

.plan-col .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--c);
  box-shadow: 0 0 12px var(--c);
}

.plan-doing .dot {
  animation: pulse 1.6s ease-in-out infinite;
}

@keyframes pulse {
  50% {
    opacity: 0.3;
  }
}

.plan-col .count {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--muted);
}

.plan-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.plan-col li {
  background: rgba(26, 32, 48, 0.8);
  border: 1px solid rgba(35, 48, 71, 0.9);
  border-radius: 10px;
  padding: 14px 16px;
}

.plan-col h3 {
  font-size: 1rem;
  margin: 0 0 4px;
}

.plan-done h3::before {
  content: '✓ ';
  color: var(--green);
}

.plan-col li p {
  margin: 0;
  font-size: 0.92rem;
  color: #b8c9da;
}

/* ------------------------------------------------------------------ stopka */
.footer {
  border-top: 1px solid rgba(41, 240, 255, 0.1);
  background: rgba(5, 6, 10, 0.9);
  padding: 36px 0 calc(28px + env(safe-area-inset-bottom, 0px));
  margin-top: 40px;
}

.footer-in {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px 32px;
  align-items: center;
}

.footer-brand {
  display: flex;
  gap: 14px;
  align-items: center;
}

.footer-brand strong {
  display: block;
  letter-spacing: 0.14em;
}

.footer-brand span {
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
}

.footer-nav a {
  color: #b8c9da;
  text-decoration: none;
  font-size: 0.92rem;
}

.footer-nav a:hover {
  color: var(--cyan);
}

.footer-meta {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

/* ------------------------------------------------------------------ animacje wejścia */
.reveal.pre {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal.pre.in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .reveal.pre {
    opacity: 1;
    transform: none;
  }
}

/* ------------------------------------------------------------------ responsywność */
@media (max-width: 980px) {
  .hero-in,
  .split,
  .updates,
  .grid-2 {
    grid-template-columns: 1fr;
  }
  .hero-shot {
    max-width: 640px;
  }
  .device {
    transform: none;
  }
  .features,
  .cards-3,
  .plan {
    grid-template-columns: 1fr;
  }
  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }
  .commits-panel {
    position: static;
    max-height: none;
  }
}

@media (max-width: 860px) {
  .nav-toggle {
    display: flex;
  }
  .nav {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 12px 20px 20px;
    background: rgba(5, 6, 10, 0.97);
    border-bottom: 1px solid rgba(41, 240, 255, 0.15);
    display: none;
  }
  .nav.open {
    display: flex;
    animation: fade 0.2s ease;
  }
  .nav a {
    padding: 13px 14px;
    font-size: 1.05rem;
  }
  .nav a.nav-play {
    margin: 8px 0 0;
    text-align: center;
  }
  .footer-in {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 16px;
  }
  .gallery {
    grid-template-columns: 1fr;
  }
  .stat-row {
    grid-template-columns: 1fr;
  }
  .cta .btn {
    width: 100%;
    justify-content: center;
  }
  .download-main {
    flex-direction: column;
  }
  .feature,
  .card,
  .panel {
    padding: 22px;
  }
  th,
  td {
    padding: 10px 12px;
  }
  tbody th {
    white-space: normal;
  }
}
