/* ============================================================
   Trilogy Hub - strona www: wspolna warstwa
   Swiat wizualny launchera: cieply asfalt nocy, jeden akcent
   (pomarancz zachodu slonca), Barlow + Barlow Condensed, twarde
   krawedzie, glebia z cienia z przesunieciem, bez poswiat.
   ============================================================ */

/* ---------- fonty (lokalne, bez Google Fonts) ---------- */
@font-face { font-family: 'Barlow'; font-weight: 400; font-display: swap; src: url('/assets/fonts/barlow-400-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Barlow'; font-weight: 400; font-display: swap; src: url('/assets/fonts/barlow-400-latin-ext.woff2') format('woff2'); unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Barlow'; font-weight: 500; font-display: swap; src: url('/assets/fonts/barlow-500-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Barlow'; font-weight: 500; font-display: swap; src: url('/assets/fonts/barlow-500-latin-ext.woff2') format('woff2'); unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Barlow'; font-weight: 600; font-display: swap; src: url('/assets/fonts/barlow-600-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Barlow'; font-weight: 600; font-display: swap; src: url('/assets/fonts/barlow-600-latin-ext.woff2') format('woff2'); unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Barlow'; font-weight: 700; font-display: swap; src: url('/assets/fonts/barlow-700-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Barlow'; font-weight: 700; font-display: swap; src: url('/assets/fonts/barlow-700-latin-ext.woff2') format('woff2'); unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Barlow Condensed'; font-weight: 600; font-display: swap; src: url('/assets/fonts/barlow-condensed-600-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Barlow Condensed'; font-weight: 600; font-display: swap; src: url('/assets/fonts/barlow-condensed-600-latin-ext.woff2') format('woff2'); unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Barlow Condensed'; font-weight: 700; font-display: swap; src: url('/assets/fonts/barlow-condensed-700-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Barlow Condensed'; font-weight: 700; font-display: swap; src: url('/assets/fonts/barlow-condensed-700-latin-ext.woff2') format('woff2'); unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Barlow Condensed'; font-weight: 800; font-display: swap; src: url('/assets/fonts/barlow-condensed-800-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Barlow Condensed'; font-weight: 800; font-display: swap; src: url('/assets/fonts/barlow-condensed-800-latin-ext.woff2') format('woff2'); unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Barlow Condensed'; font-weight: 800; font-style: italic; font-display: swap; src: url('/assets/fonts/barlow-condensed-800i-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Barlow Condensed'; font-weight: 800; font-style: italic; font-display: swap; src: url('/assets/fonts/barlow-condensed-800i-latin-ext.woff2') format('woff2'); unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'JetBrains Mono'; font-weight: 400; font-display: swap; src: url('/assets/fonts/jetbrains-mono-400-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+2000-206F, U+2212; }
@font-face { font-family: 'JetBrains Mono'; font-weight: 400; font-display: swap; src: url('/assets/fonts/jetbrains-mono-400-latin-ext.woff2') format('woff2'); unicode-range: U+0100-024F, U+1E00-1EFF; }
@font-face { font-family: 'JetBrains Mono'; font-weight: 700; font-display: swap; src: url('/assets/fonts/jetbrains-mono-700-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+2000-206F, U+2212; }
@font-face { font-family: 'JetBrains Mono'; font-weight: 700; font-display: swap; src: url('/assets/fonts/jetbrains-mono-700-latin-ext.woff2') format('woff2'); unicode-range: U+0100-024F, U+1E00-1EFF; }
@font-face { font-family: 'Caveat'; font-weight: 700; font-display: swap; src: url('/assets/fonts/caveat-700-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+2000-206F; }
@font-face { font-family: 'Caveat'; font-weight: 700; font-display: swap; src: url('/assets/fonts/caveat-700-latin-ext.woff2') format('woff2'); unicode-range: U+0100-024F, U+1E00-1EFF; }

/* ---------- tokeny ---------- */
:root {
  color-scheme: dark;

  /* powierzchnie: cieply asfalt */
  --bg: #0f0d0c;
  --bg-deep: #0a0908;
  --bg-panel: #141110;
  --bg-card: #1a1614;
  --bg-raised: #221d1a;
  --bg-hover: #2b2521;

  --line: rgba(255, 236, 222, 0.08);
  --line-strong: rgba(255, 236, 222, 0.14);
  --line-bright: rgba(255, 236, 222, 0.24);

  --text: #f7f1eb;
  --text-dim: #c4b9ae;
  --text-faint: #9a8f85;
  --text-ghost: #5d544d;

  /* jeden akcent: zachod slonca */
  --accent: #ff7a22;
  --accent-hi: #ff9448;
  --accent-deep: #d95f0e;
  --accent-ink: #1d0d02;
  --accent-soft: rgba(255, 122, 34, 0.12);
  --accent-line: rgba(255, 122, 34, 0.42);
  --accent-text: #ffab72;

  /* stany (semantyka, nie dekoracja) */
  --online: #5fcf73;
  --money: #4ea53c;
  --danger: #f0544f;

  /* promienie: kontrolki 10, panele 14, zdjecia-odbitki 2 (przedmiot fizyczny) */
  --r-ctl: 10px;
  --r-panel: 14px;
  --r-print: 2px;

  --shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 28px 70px rgba(0, 0, 0, 0.6);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
  --t: 180ms var(--ease-out);
  --t-slow: 420ms var(--ease-out);

  --font: 'Barlow', 'Segoe UI', system-ui, sans-serif;
  --font-display: 'Barlow Condensed', 'Barlow', 'Arial Narrow', sans-serif;
  --font-mono: 'JetBrains Mono', 'Cascadia Mono', Consolas, monospace;
  --font-hand: 'Caveat', 'Segoe Print', cursive;

  --gutter: clamp(16px, 4vw, 48px);
  --wrap: 1320px;
  --nav-h: 68px;

  /* warstwy (jedyne z-indexy na stronie) */
  --z-content: 1;
  --z-hud: 40;
  --z-nav: 50;
  --z-console: 80;
  --z-toast: 90;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 16px); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
[hidden] { display: none !important; }

/* ---------- powierzchnie przegladarki (tez niosa design) ---------- */
::selection { background: rgba(255, 122, 34, 0.38); color: #fff; }
input, textarea { caret-color: var(--accent); }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
html { scrollbar-color: #3a322c var(--bg-deep); scrollbar-width: thin; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb { background: #3a322c; border-radius: 10px; border: 2px solid var(--bg-deep); }
::-webkit-scrollbar-thumb:hover { background: var(--accent-deep); }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--accent); color: var(--accent-ink);
  padding: 10px 16px; border-radius: var(--r-ctl); font-weight: 700; text-decoration: none;
  transition: top var(--t);
}
.skip-link:focus { top: 12px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- uklad ---------- */
.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.section { padding-block: clamp(72px, 9vw, 132px); position: relative; }

/* ---------- typografia ---------- */
.display {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 0.9;
  letter-spacing: -0.005em;
}
.h-xl { font-size: clamp(3rem, 9vw, 6rem); }
.h-lg { font-size: clamp(2.5rem, 6.4vw, 5rem); }
.h-md { font-size: clamp(2rem, 4.4vw, 3.4rem); line-height: 0.95; }
.h-sm { font-size: clamp(1.45rem, 2.4vw, 1.9rem); line-height: 1; }
.lede { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--text-dim); max-width: 56ch; line-height: 1.55; }
.muted { color: var(--text-dim); }
.accent { color: var(--accent); }
.num { font-variant-numeric: tabular-nums; }
code, kbd, pre { font-family: var(--font-mono); }
kbd {
  display: inline-grid; place-items: center; min-width: 1.9em; height: 1.9em; padding: 0 0.45em;
  font-size: 0.78em; font-weight: 700; color: var(--text);
  background: var(--bg-raised); border: 1px solid var(--line-bright); border-bottom-width: 3px;
  border-radius: 6px; vertical-align: 0.08em;
}
.link {
  color: var(--accent-text); text-decoration: underline; text-decoration-thickness: 1px;
  text-underline-offset: 0.22em; text-decoration-color: var(--accent-line);
  transition: text-decoration-color var(--t), color var(--t);
}
.link:hover { color: var(--accent-hi); text-decoration-color: currentColor; }

/* ---------- przyciski ---------- */
.btn {
  --bh: 56px;
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--bh); padding: 0 26px;
  font-family: var(--font-display); font-weight: 800; font-size: 1.28rem; letter-spacing: 0.02em;
  text-transform: uppercase; text-decoration: none; white-space: nowrap;
  border-radius: var(--r-ctl);
  transition: translate var(--t), scale var(--t), box-shadow var(--t), background-color var(--t), color var(--t), border-color var(--t);
  -webkit-tap-highlight-color: transparent;
}
.btn svg { width: 20px; height: 20px; flex: none; transition: transform var(--t); }
.btn:active { translate: 0 1px; scale: 0.985; }
.btn--primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 10px 24px -8px rgba(0, 0, 0, 0.6), inset 0 -3px 0 rgba(0, 0, 0, 0.18); }
/* wypelnienie od strony kursora (JS ustawia --mx/--my) */
.btn--primary::before {
  content: ''; position: absolute; z-index: -1; left: var(--mx, 50%); top: var(--my, 50%);
  width: 260%; aspect-ratio: 1; border-radius: 50%; background: var(--accent-hi);
  transform: translate(-50%, -50%) scale(0); transition: transform 560ms var(--ease-out);
}
.btn--primary:hover::before { transform: translate(-50%, -50%) scale(1); }
.btn--primary:hover { box-shadow: 0 16px 32px -10px rgba(0, 0, 0, 0.7), inset 0 -3px 0 rgba(0, 0, 0, 0.18); }
.btn--primary:hover svg { transform: translateX(3px); }
.btn--ghost { color: var(--text); background: rgba(20, 17, 16, 0.55); border: 1px solid var(--line-bright); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.btn--ghost:hover { border-color: var(--text); background: rgba(34, 29, 26, 0.8); }
.btn--sm { --bh: 42px; padding: 0 16px; font-size: 1.05rem; }
.btn--xl { --bh: clamp(72px, 9vw, 104px); padding: 0 clamp(32px, 5vw, 64px); font-size: clamp(2rem, 4vw, 3.2rem); border-radius: 12px; }

/* ---------- nawigacja ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: var(--z-nav);
  height: var(--nav-h);
  display: flex; align-items: center;
  transition: transform 420ms var(--ease-out), background-color var(--t), border-color var(--t);
  border-bottom: 1px solid transparent;
}
.nav.is-solid { background: rgba(15, 13, 12, 0.82); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); border-bottom-color: var(--line); }
.nav.is-hidden { transform: translateY(-100%); }
.nav__inner { display: flex; align-items: center; gap: 28px; width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; flex: none; }
.brand__mark { width: 40px; height: auto; transition: transform 500ms var(--ease-out); }
.brand:hover .brand__mark { transform: rotate(-6deg) scale(1.06); }
.brand__name { font-family: var(--font-display); font-weight: 800; font-size: 1.28rem; letter-spacing: 0.04em; text-transform: uppercase; line-height: 1; }
.nav__links { display: flex; align-items: center; gap: 4px; margin-left: 8px; list-style: none; }
.nav__links a {
  position: relative; display: block; padding: 8px 12px; border-radius: 8px;
  font-weight: 600; font-size: 0.98rem; color: var(--text-dim); text-decoration: none;
  transition: color var(--t), background-color var(--t);
}
.nav__links a::after {
  content: ''; position: absolute; left: 12px; right: 12px; bottom: 3px; height: 2px;
  background: var(--accent); transform: scaleX(0); transform-origin: right; transition: transform 320ms var(--ease-out);
}
.nav__links a:hover { color: var(--text); }
.nav__links a:hover::after, .nav__links a[aria-current='page']::after { transform: scaleX(1); transform-origin: left; }
.nav__links a[aria-current='page'] { color: var(--text); }
.nav__end { margin-left: auto; display: flex; align-items: center; gap: 14px; }

/* status serwerow w nawigacji: tablica odlotow (licznik z makiety) */
.status {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 7px 14px 7px 12px; border-radius: 999px;
  background: rgba(20, 17, 16, 0.6); border: 1px solid var(--line-strong);
  font-size: 0.86rem; font-weight: 600; color: var(--text-dim); white-space: nowrap;
}
.status__live { width: 8px; height: 8px; border-radius: 50%; background: var(--online); box-shadow: 0 0 0 0 rgba(95, 207, 115, 0.6); animation: live 2.4s ease-out infinite; }
@keyframes live { 0% { box-shadow: 0 0 0 0 rgba(95, 207, 115, 0.55); } 70%, 100% { box-shadow: 0 0 0 7px rgba(95, 207, 115, 0); } }
.status__item { display: inline-flex; align-items: center; gap: 5px; line-height: 1.2; }
.status__item b { display: inline-flex; color: var(--text); font-family: var(--font-body); font-size: 1em; font-weight: 700; line-height: 1.2; }

/* cyfry z klapkami (tablica odlotow, jak w launcherze) */
.flip { display: inline-flex; gap: 0.02em; font-variant-numeric: tabular-nums; line-height: 1.2; }
.flip__d { position: relative; display: inline-block; width: 0.62em; height: 1.2em; overflow: hidden; text-align: center; }
.flip__d > span { position: absolute; inset: 0; line-height: 1.2em; transition: transform 520ms var(--ease-out), opacity 520ms var(--ease-out); }
.flip__d > span.out { transform: translateY(-100%); opacity: 0; }
.flip__d > span.in { transform: translateY(100%); opacity: 0; }

.menu-btn { display: none; width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line-strong); place-items: center; }
.menu-btn span { display: block; width: 18px; height: 2px; background: var(--text); position: relative; transition: transform var(--t), background-color var(--t); }
.menu-btn span::before, .menu-btn span::after { content: ''; position: absolute; left: 0; width: 18px; height: 2px; background: var(--text); transition: transform var(--t-slow); }
.menu-btn span::before { top: -6px; }
.menu-btn span::after { top: 6px; }
.menu-open .menu-btn span { background: transparent; }
.menu-open .menu-btn span::before { transform: translateY(6px) rotate(45deg); }
.menu-open .menu-btn span::after { transform: translateY(-6px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: calc(var(--z-nav) - 1);
  background: var(--bg); padding: calc(var(--nav-h) + 24px) var(--gutter) 32px;
  display: flex; flex-direction: column; gap: 6px;
  clip-path: inset(0 0 100% 0); visibility: hidden;
  transition: clip-path 560ms var(--ease-io), visibility 0s linear 560ms;
}
.menu-open .mobile-menu { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path 560ms var(--ease-io), visibility 0s; }
.mobile-menu a.mm-link {
  font-family: var(--font-display); font-weight: 800; font-size: clamp(2.4rem, 11vw, 3.6rem); text-transform: uppercase; line-height: 1.05;
  text-decoration: none; color: var(--text); display: flex; justify-content: space-between; align-items: baseline;
  border-bottom: 1px solid var(--line); padding: 8px 0;
  transform: translateY(24px); opacity: 0; transition: transform 600ms var(--ease-out), opacity 600ms var(--ease-out), color var(--t);
}
.mobile-menu a.mm-link:hover { color: var(--accent); }
.menu-open .mobile-menu a.mm-link { transform: none; opacity: 1; }
.menu-open .mobile-menu a.mm-link:nth-child(2) { transition-delay: 60ms; }
.menu-open .mobile-menu a.mm-link:nth-child(3) { transition-delay: 110ms; }
.menu-open .mobile-menu a.mm-link:nth-child(4) { transition-delay: 160ms; }
.menu-open .mobile-menu a.mm-link:nth-child(5) { transition-delay: 210ms; }
.menu-open .mobile-menu a.mm-link:nth-child(6) { transition-delay: 260ms; }
.mobile-menu .btn { margin-top: auto; }

@media (max-width: 1080px) { .nav__links { display: none; } .menu-btn { display: grid; } }
@media (max-width: 1080px) and (min-width: 561px) { .nav__end .btn { display: inline-flex; } }
@media (max-width: 560px) { .nav__end .btn, .brand__name { display: none; } .status { gap: 10px; padding: 6px 12px; font-size: 0.8rem; } }

/* ---------- porownanie z MTA:SA ---------- */
.vs__head { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: clamp(16px, 4vw, 56px); margin-bottom: clamp(32px, 5vw, 64px); }
.vs__side { display: flex; align-items: center; gap: 18px; }
.vs__side--us { justify-content: flex-end; text-align: right; }
.vs__logo { width: clamp(56px, 7vw, 88px); height: auto; flex: none; }
.vs__logo--mta { border-radius: 50%; filter: grayscale(1) contrast(0.9) brightness(0.8); opacity: 0.85; transition: filter 600ms var(--ease-out), opacity 600ms var(--ease-out); }
.vs__side--mta:hover .vs__logo--mta { filter: none; opacity: 1; }
.vs__name { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.5rem, 3vw, 2.4rem); text-transform: uppercase; line-height: 0.95; }
.vs__sub { display: block; font-family: var(--font); font-weight: 500; font-size: 0.9rem; text-transform: none; color: var(--text-faint); letter-spacing: 0; margin-top: 4px; }
.vs__x { font-family: var(--font-display); font-style: italic; font-weight: 800; font-size: clamp(2.2rem, 5vw, 4rem); color: var(--accent); line-height: 1; }
.vs__rows { list-style: none; border-top: 1px solid var(--line-strong); }
.vs__row {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(12px, 3vw, 40px);
  align-items: start; padding: 22px 0; border-bottom: 1px solid var(--line);
  position: relative;
}
.vs__row::before {
  content: ''; position: absolute; inset: 0 auto 0 0; width: 100%;
  background: linear-gradient(90deg, transparent, var(--accent-soft)); opacity: 0; transition: opacity var(--t-slow);
  pointer-events: none;
}
.vs__row:hover::before { opacity: 1; }
.vs__topic { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; text-transform: uppercase; letter-spacing: 0.02em; line-height: 1.1; }
.vs__cell { display: flex; gap: 10px; align-items: flex-start; font-size: 0.98rem; line-height: 1.45; }
.vs__cell--mta { color: var(--text-faint); }
.vs__cell--us { color: var(--text); justify-content: flex-end; text-align: right; }
.vs__cell svg { width: 20px; height: 20px; flex: none; margin-top: 1px; }
.vs__cell--mta svg { color: var(--text-ghost); }
.vs__cell--us svg { color: var(--accent); }
.vs__row--same .vs__cell--us svg { color: var(--online); }
.vs__note { margin-top: 28px; color: var(--text-faint); font-size: 0.92rem; max-width: 72ch; }
@media (max-width: 760px) {
  .vs__head { grid-template-columns: 1fr auto; }
  .vs__side--us { grid-column: 1; justify-content: flex-start; text-align: left; flex-direction: row-reverse; }
  .vs__x { grid-row: 1 / span 2; grid-column: 2; }
  .vs__row { grid-template-columns: 1fr 1fr; }
  .vs__topic { grid-column: 1 / -1; }
  .vs__cell--us { justify-content: flex-start; text-align: left; flex-direction: row-reverse; }
  .vs__cell--us { flex-direction: row; }
}

/* ---------- FAQ (natywne details, dziala bez JS) ---------- */
.faq { list-style: none; border-top: 1px solid var(--line-strong); }
.faq details { border-bottom: 1px solid var(--line-strong); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 24px 0; font-family: var(--font-display); font-weight: 700; font-size: clamp(1.3rem, 2.2vw, 1.7rem);
  text-transform: uppercase; line-height: 1.1; transition: color var(--t);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--accent-text); }
.faq__icon { position: relative; width: 22px; height: 22px; flex: none; }
.faq__icon::before, .faq__icon::after { content: ''; position: absolute; left: 0; top: 10px; width: 22px; height: 2px; background: currentColor; transition: transform 380ms var(--ease-out); }
.faq__icon::after { transform: rotate(90deg); }
.faq details[open] .faq__icon::after { transform: rotate(0); }
.faq details[open] summary { color: var(--accent); }
.faq__body { overflow: hidden; }
.faq__body > div { padding: 0 0 26px; max-width: 70ch; color: var(--text-dim); display: grid; gap: 12px; }

/* ---------- blok kodu ---------- */
.code {
  background: #0c0a09; border: 1px solid var(--line-strong); border-radius: var(--r-panel);
  box-shadow: var(--shadow-lg); overflow: hidden; min-width: 0;
}
.code__bar { display: flex; align-items: center; gap: 2px; padding: 8px 10px 0; border-bottom: 1px solid var(--line); background: var(--bg-panel); overflow-x: auto; }
.code__tab {
  padding: 9px 14px 11px; font-family: var(--font-mono); font-size: 0.82rem; color: var(--text-faint);
  border-radius: 8px 8px 0 0; position: relative; transition: color var(--t), background-color var(--t); white-space: nowrap;
}
.code__tab:hover { color: var(--text); }
.code__tab[aria-selected='true'] { color: var(--text); background: #0c0a09; }
.code__tab[aria-selected='true']::after { content: ''; position: absolute; left: 10px; right: 10px; top: 0; height: 2px; background: var(--accent); border-radius: 2px; }
.code__copy { margin-left: auto; padding: 6px 10px; font-size: 0.8rem; color: var(--text-faint); border-radius: 6px; font-weight: 600; transition: color var(--t), background-color var(--t); }
.code__copy:hover { color: var(--text); background: var(--bg-hover); }
.code pre { margin: 0; padding: 22px 24px 26px; overflow-x: auto; font-size: clamp(0.8rem, 1.1vw, 0.92rem); line-height: 1.7; tab-size: 4; color: #e8e1da; }
.code pre[hidden] { display: none; }
.tk-k { color: #ff9448; }            /* slowa kluczowe */
.tk-f { color: #f7d38a; }            /* funkcje API */
.tk-s { color: #a7d68b; }            /* napisy */
.tk-c { color: #7d7168; font-style: italic; }  /* komentarze */
.tk-n { color: #f0a0c0; }            /* liczby */
.tk-t { color: #8cc4e8; }            /* znaczniki XML */

/* ---------- stopka ---------- */
.footer { border-top: 1px solid var(--line); padding: clamp(56px, 8vw, 96px) 0 32px; background: var(--bg-deep); position: relative; overflow: hidden; }
.footer__grid { display: grid; grid-template-columns: 1.3fr repeat(3, minmax(0, 1fr)); gap: 40px; }
.footer__about p { color: var(--text-faint); max-width: 38ch; margin-top: 16px; font-size: 0.95rem; }
.footer h2 { font-family: var(--font-display); font-weight: 700; font-size: 1rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 14px; }
.footer ul { list-style: none; display: grid; gap: 8px; }
.footer ul a { color: var(--text-dim); text-decoration: none; transition: color var(--t); font-size: 0.98rem; }
.footer ul a:hover { color: var(--accent-text); }
.footer__word {
  font-family: var(--font-display); font-weight: 800; text-transform: uppercase; line-height: 0.8;
  font-size: clamp(4rem, 19vw, 17rem); letter-spacing: -0.02em; white-space: nowrap;
  margin: clamp(40px, 6vw, 80px) 0 0; padding-bottom: 0.06em; user-select: none; text-align: center;
  /* wypelnienie gradientem zamiast cienkiego obrysu: gladkie krawedzie przy kazdym rozmiarze */
  color: transparent; -webkit-background-clip: text; background-clip: text;
  background-image: linear-gradient(180deg, rgba(255, 236, 222, 0.09), rgba(255, 236, 222, 0.02) 85%), linear-gradient(180deg, rgba(255, 148, 72, 0.5), rgba(217, 95, 14, 0.12) 95%);
  background-size: 100% 100%, 100% 0%; background-position: 0 0, 0 100%; background-repeat: no-repeat;
  transition: background-size 700ms var(--ease-out);
}
.footer__word:hover { background-size: 100% 100%, 100% 100%; }
.footer__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; padding-top: 28px; margin-top: 28px; border-top: 1px solid var(--line); color: var(--text-faint); font-size: 0.84rem; }
.footer__legal p { max-width: 90ch; }
@media (max-width: 860px) { .footer__grid { grid-template-columns: 1fr 1fr; } .footer__about { grid-column: 1 / -1; } }

/* ---------- konsola (~ / F8), jak w grze ---------- */
.console {
  position: fixed; left: 50%; top: 14vh; z-index: var(--z-console);
  width: min(760px, calc(100% - 24px)); max-height: 62vh;
  display: flex; flex-direction: column;
  background: rgba(12, 10, 9, 0.94); border: 1px solid var(--line-bright); border-radius: 12px;
  box-shadow: var(--shadow-lg); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  transform: translate(-50%, -16px) scale(0.98); opacity: 0; visibility: hidden;
  transition: transform 360ms var(--ease-out), opacity 260ms var(--ease-out), visibility 0s linear 360ms;
  font-family: var(--font-mono); font-size: 0.86rem;
}
.console.is-open { transform: translate(-50%, 0) scale(1); opacity: 1; visibility: visible; transition: transform 360ms var(--ease-out), opacity 260ms var(--ease-out), visibility 0s; }
.console__bar { display: flex; justify-content: space-between; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--line); font-family: var(--font); font-size: 0.78rem; color: var(--text-faint); }
.console__bar b { font-family: var(--font-display); font-size: 0.98rem; letter-spacing: 0.08em; color: var(--accent); }
.console__out { flex: 1; overflow-y: auto; padding: 12px 14px; white-space: pre-wrap; line-height: 1.55; color: #d7cfc7; min-height: 180px; }
.console__out .c-ok { color: var(--online); }
.console__out .c-acc { color: var(--accent-text); }
.console__out .c-dim { color: var(--text-faint); }
.console__out .c-err { color: var(--danger); }
.console__in { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-top: 1px solid var(--line); }
.console__in span { color: var(--accent); }
.console__in input { flex: 1; background: none; border: 0; font-family: var(--font-mono); font-size: 0.9rem; color: var(--text); min-width: 0; }

/* ---------- komunikaty w stylu San Andreas ---------- */
.sa-toast {
  position: fixed; left: 50%; top: 22vh; z-index: var(--z-toast); pointer-events: none;
  transform: translateX(-50%); text-align: center;
  font-family: var(--font-display); font-style: italic; font-weight: 800; text-transform: uppercase; line-height: 0.95;
  color: var(--accent); font-size: clamp(2.4rem, 7vw, 5.2rem); letter-spacing: 0.01em;
  -webkit-text-stroke: 2px #120904; paint-order: stroke fill;
  text-shadow: 3px 4px 0 rgba(0, 0, 0, 0.55);
}
.sa-toast small { display: block; color: #fff; font-size: 0.42em; margin-top: 10px; -webkit-text-stroke: 1.5px #000; }
.sa-money {
  position: fixed; right: var(--gutter); top: calc(var(--nav-h) + 16px); z-index: var(--z-toast); pointer-events: none;
  font-family: var(--font-display); font-weight: 800; font-size: clamp(1.8rem, 4vw, 2.8rem); color: var(--money);
  -webkit-text-stroke: 2px #061003; paint-order: stroke fill; text-shadow: 2px 3px 0 rgba(0, 0, 0, 0.6); letter-spacing: 0.02em;
}
.sa-help {
  position: fixed; left: var(--gutter); top: calc(var(--nav-h) + 16px); z-index: var(--z-toast);
  max-width: min(380px, calc(100% - 2 * var(--gutter)));
  padding: 14px 18px; background: rgba(0, 0, 0, 0.78); color: #f2f2f2; border-radius: 4px;
  font-size: 0.95rem; line-height: 1.45; box-shadow: var(--shadow);
}
.sa-help b { color: var(--accent-text); }

/* odznaka trybu cheatu (np. po AEZAKMI) */
.wanted { position: fixed; right: var(--gutter); top: calc(var(--nav-h) + 16px); z-index: var(--z-toast); display: flex; gap: 4px; pointer-events: none; }
.wanted svg { width: 28px; height: 28px; color: #f2c14e; filter: drop-shadow(1px 2px 0 #000); }
.wanted svg.off { color: rgba(255, 255, 255, 0.22); }

/* ---------- przelacznik wariantow (tylko na czas wyboru) ---------- */
.variant-switch {
  position: fixed; left: 50%; bottom: 16px; z-index: calc(var(--z-console) - 1); transform: translateX(-50%);
  display: flex; align-items: center; gap: 4px; padding: 5px;
  background: rgba(12, 10, 9, 0.9); border: 1px solid var(--line-bright); border-radius: 999px;
  box-shadow: var(--shadow-lg); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  font-size: 0.82rem; font-weight: 600;
}
.variant-switch span { padding: 0 10px 0 12px; color: var(--text-faint); white-space: nowrap; }
.variant-switch a { padding: 7px 13px; border-radius: 999px; text-decoration: none; color: var(--text-dim); white-space: nowrap; transition: background-color var(--t), color var(--t); }
.variant-switch a:hover { color: var(--text); background: var(--bg-hover); }
.variant-switch a[aria-current='page'] { background: var(--accent); color: var(--accent-ink); }
@media (max-width: 640px) { .variant-switch span { display: none; } .variant-switch a { padding: 7px 10px; } }

/* ---------- ujawnianie (tresc widoczna domyslnie; JS dopiero ukrywa) ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(28px); }
.js [data-reveal].is-in { opacity: 1; transform: none; transition: opacity 900ms var(--ease-out), transform 900ms var(--ease-out); transition-delay: var(--d, 0ms); }
.line-mask { display: block; overflow: hidden; padding-bottom: 0.06em; margin-bottom: -0.06em; }
.line-mask > span { display: block; }

/* ---------- ograniczony ruch ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}

/* przejscia miedzy podstronami (View Transitions, bez JS) */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: 260ms var(--ease-out) both vt-out; }
::view-transition-new(root) { animation: 420ms var(--ease-out) both vt-in; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-12px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(16px); } }
@media (prefers-reduced-motion: reduce) { ::view-transition-old(root), ::view-transition-new(root) { animation: none; } }

/* wjazd nawigacji przy wczytaniu */
@keyframes nav-in { from { transform: translateY(-100%); } }
.nav { animation: nav-in 900ms var(--ease-out) 300ms backwards; }
@media (max-width: 400px) { .nav__end { gap: 8px; } .status { gap: 8px; padding: 5px 10px; font-size: 0.74rem; } .status__live { width: 7px; height: 7px; } }
@media (max-width: 350px) { .status .status__item:nth-child(2) { display: none; } }

/* ---------- poprawki po recenzji (2026-09-26) ---------- */
/* polskie znaki (Ę, Ś, Ż) w dwuwierszowych naglowkach nie moga zachodzic na linie wyzej */
.h-lg, .h-md { line-height: 1; }
/* blok kodu na telefonie: zakladki przewijaja sie, przycisk Kopiuj zostaje caly */
.code__copy { flex: none; white-space: nowrap; }
.code pre { overflow-x: auto; }
@media (max-width: 560px) {
  .code__bar { flex-wrap: wrap; }
  .code__copy { padding: 10px 12px; }
  .code pre { font-size: 0.78rem; }
}
/* porownanie na telefonie: logotypy jeden pod drugim, "vs" miedzy nimi */
@media (max-width: 760px) {
  .vs__head { grid-template-columns: 1fr; justify-items: start; gap: 14px; }
  .vs__side--us { grid-column: auto; flex-direction: row-reverse; justify-content: flex-end; }
  .vs__x { grid-row: auto; grid-column: auto; font-size: 1.6rem; }
}
/* stopka: podpowiedz o konsoli tylko z klawiatura; wieksze pola dotyku */
@media (hover: none) { .kbd-hint { display: none; } }
@media (max-width: 860px) { .footer ul { gap: 0; } .footer ul a { display: inline-block; padding-block: 11px; } }
