/* Zunuxa: wspólny wygląd strony działu i stron aplikacji.
   Kopiowany do każdej strony przez strony/wdroz.sh — edytuj tutaj. */
:root {
  --black: #040506;
  --ink: #0b0d10;
  --white: #f4f5f6;
  --dim: rgba(244, 245, 246, 0.62);
  --faint: rgba(244, 245, 246, 0.38);
  --hair: rgba(244, 245, 246, 0.12);
  --accent: #3fd49a;
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --font: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--black); color: var(--white);
  font: 400 18px/1.6 var(--font); -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
::selection { background: var(--accent); color: var(--black); }

.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 32px; }

/* Nawigacja: przezroczysta nad zdjęciem, matowa po przewinięciu */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 30;
  transition: background 600ms var(--ease), backdrop-filter 600ms var(--ease);
}
.nav.solid { background: rgba(4, 5, 6, 0.72); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.logo { font-weight: 600; font-size: 19px; letter-spacing: 0.42em; text-decoration: none; text-transform: uppercase; }
.logo img { height: 22px; width: auto; display: block; }
.logo small { font-weight: 400; letter-spacing: 0.18em; color: var(--faint); margin-left: 6px; font-size: 13px; }
.nav-links { display: flex; gap: 34px; }
.nav-links a {
  font-size: 13px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; text-decoration: none;
  color: var(--dim); transition: color 400ms var(--ease);
}
.nav-links a:hover { color: var(--white); }
.burger { display: none; width: 44px; height: 44px; border: 0; background: none; position: relative; cursor: pointer; }
.burger span {
  position: absolute; left: 11px; width: 22px; height: 1.5px; background: var(--white);
  transition: transform 500ms var(--ease), top 500ms var(--ease);
}
.burger span:first-child { top: 17px; }
.burger span:last-child { top: 26px; }
.menu-open .burger span:first-child { top: 21px; transform: rotate(45deg); }
.menu-open .burger span:last-child { top: 21px; transform: rotate(-45deg); }

.overlay {
  position: fixed; inset: 0; z-index: 25; background: rgba(4, 5, 6, 0.9);
  backdrop-filter: blur(28px); -webkit-backdrop-filter: blur(28px);
  display: flex; flex-direction: column; justify-content: center; padding: 0 32px; gap: 10px;
  opacity: 0; pointer-events: none; transition: opacity 500ms var(--ease);
}
.overlay a {
  font-size: 34px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none;
  opacity: 0; transform: translateY(40px); transition: opacity 600ms var(--ease), transform 600ms var(--ease);
}
.menu-open .overlay { opacity: 1; pointer-events: auto; }
.menu-open .overlay a { opacity: 1; transform: none; }
.menu-open .overlay a:nth-child(2) { transition-delay: 60ms; }
.menu-open .overlay a:nth-child(3) { transition-delay: 120ms; }
.menu-open .overlay a:nth-child(4) { transition-delay: 180ms; }

/* Typografia */
.eyebrow {
  display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--faint); margin-bottom: 22px;
}
.display {
  font-weight: 600; text-transform: uppercase; letter-spacing: 0.01em;
  font-size: clamp(44px, 8.2vw, 120px); line-height: 0.95; margin: 0;
}
.title {
  font-weight: 600; text-transform: uppercase; letter-spacing: 0.02em;
  font-size: clamp(34px, 5vw, 68px); line-height: 1; margin: 0 0 22px;
}
.lead { font-size: clamp(18px, 1.6vw, 22px); color: var(--dim); max-width: 560px; margin: 26px 0 0; font-weight: 400; }

/* Przyciski: obrys jak w kokpicie, wypełnienie przy najechaniu */
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  min-width: 230px; padding: 17px 28px; border: 1.5px solid var(--white); border-radius: 4px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; text-decoration: none;
  color: var(--white); background: transparent; overflow: hidden; isolation: isolate;
  transition: color 500ms var(--ease), transform 300ms var(--ease);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--white);
  transform: scaleY(0); transform-origin: bottom; transition: transform 500ms var(--ease);
}
.btn:hover { color: var(--black); }
.btn:hover::before { transform: scaleY(1); }
.btn:active { transform: scale(0.98); }
.btn .arrow { transition: transform 500ms var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn.solid { background: var(--white); color: var(--black); }
.btn.solid::before { background: var(--accent); }
.btn.quiet { border-color: var(--hair); color: var(--dim); cursor: default; }
.btn.quiet::before { display: none; }

/* Sekcje pełnoekranowe */
.screen { position: relative; min-height: 100dvh; display: flex; align-items: center; overflow: hidden; }
.screen .wrap { position: relative; z-index: 2; }
.band { padding: 150px 0; position: relative; }
.rule { border-top: 1px solid var(--hair); }

/* Liczby w stylu tablicy startowej */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; }
.stat b { display: block; font-weight: 500; font-size: clamp(48px, 6vw, 84px); line-height: 1; letter-spacing: -0.01em; }
.stat span { display: block; margin-top: 14px; font-size: 13px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--faint); }

/* Telefon z zrzutem ekranu */
.phone {
  position: relative; width: 300px; aspect-ratio: 575 / 1250; border-radius: 46px; padding: 9px;
  background: linear-gradient(160deg, #2a2e33, #0d0f12 40%, #1b1e22);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.08), 0 60px 120px -30px rgba(0,0,0,0.9), inset 0 1px 1px rgba(255,255,255,0.18);
}
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 38px; }

/* Pojawianie się przy przewijaniu */
.reveal { opacity: 0; transform: translateY(56px); filter: blur(8px); transition: opacity 1100ms var(--ease), transform 1100ms var(--ease), filter 1100ms var(--ease); }
.reveal.in { opacity: 1; transform: none; filter: none; }
.reveal.d1 { transition-delay: 120ms; }
.reveal.d2 { transition-delay: 240ms; }
.reveal.d3 { transition-delay: 360ms; }

/* Gwiazdy i horyzont */
.sky { position: absolute; inset: 0; z-index: 0; }
.sky canvas { width: 100%; height: 100%; display: block; }
.horizon {
  position: absolute; left: 50%; bottom: -127vw; width: 170vw; height: 140vw; transform: translateX(-50%);
  border-radius: 50%; z-index: 1; pointer-events: none;
  background: radial-gradient(closest-side, #05080b 96.5%, rgba(80, 170, 255, 0.55) 98.6%, rgba(63, 212, 154, 0.18) 99.4%, transparent 100%);
  box-shadow: 0 -40px 160px -20px rgba(70, 150, 255, 0.35);
}
.vignette { position: absolute; inset: 0; z-index: 1; pointer-events: none; background: radial-gradient(ellipse at 50% 30%, transparent 40%, rgba(4,5,6,0.85) 100%); }

/* Dokumenty: prywatność, pomoc */
.doc { padding: 150px 0 110px; }
.doc .wrap { max-width: 780px; }
.doc h1 { font-weight: 600; text-transform: uppercase; letter-spacing: 0.02em; font-size: clamp(32px, 5vw, 52px); line-height: 1.05; margin: 0 0 14px; }
.doc h2 { font-size: 15px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; margin: 54px 0 14px; color: var(--white); }
.doc p, .doc li { color: var(--dim); }
.doc a { color: var(--white); text-underline-offset: 3px; }
.doc .meta { color: var(--faint); font-size: 15px; }
.doc table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 16px; }
.doc th { text-align: left; font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--faint); font-weight: 600; padding: 12px 10px 12px 0; border-bottom: 1px solid var(--hair); }
.doc td { padding: 14px 10px 14px 0; border-bottom: 1px solid var(--hair); color: var(--dim); vertical-align: top; }
.doc .box { border: 1px solid var(--hair); border-left: 2px solid var(--accent); padding: 20px 24px; margin: 28px 0; color: var(--white); }
.doc details { border-bottom: 1px solid var(--hair); padding: 22px 0; }
.doc summary { font-weight: 500; font-size: 20px; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 20px; }
.doc summary::after { content: "+"; color: var(--faint); transition: transform 400ms var(--ease); }
.doc details[open] summary::after { transform: rotate(45deg); }
.doc summary::-webkit-details-marker { display: none; }
.crumb { font-size: 12px; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase; color: var(--faint); margin-bottom: 26px; }
.crumb a { color: var(--faint); text-decoration: none; }

/* Stopka */
.foot { border-top: 1px solid var(--hair); padding: 46px 0 56px; font-size: 13px; color: var(--faint); }
.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px 40px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 10px 28px; }
.foot a { color: var(--dim); text-decoration: none; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600; font-size: 12px; }
.foot a:hover { color: var(--white); }

@media (max-width: 860px) {
  .wrap { padding: 0 20px; }
  .nav-links { display: none; }
  .burger { display: block; }
  .band { padding: 96px 0; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 44px 20px; }
  .btn { min-width: 0; flex: 1 1 100%; }
  .phone { width: 240px; border-radius: 38px; }
  .phone img { border-radius: 31px; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; filter: none; transition: none; }
  html { scroll-behavior: auto; }
}
