
:root {
  /* Kanon marki: czerń (tło) + złoto (akcent) + srebro (tekst drugoplanowy) */
  --bg: #070709;
  --panel: #0e0e11;
  --panel2: #131318;
  --text: #f4f4f5;
  --muted: #b9bdc7;
  --line: rgba(255,255,255,.1);
  --accent: #d4af37;
  --accent2: #e9ca6a;
  --silver: #c7ccd6;
  --danger: #ff8d8d;
  --max: 1160px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  /* Noir: czerń dominuje; złoto tylko w detalu, nie w "praniu" tła
     (szerokie złote poświaty mieszały się w brunatną oliwkę) */
  background:
    radial-gradient(900px 420px at 50% -12%, rgba(212,175,55,.05), transparent 60%),
    #050506;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  background: rgba(7,7,9,.8);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-weight: 760;
  letter-spacing: -.02em;
}
.mark {
  /* Logomark: rysowany monogram SVG (okrąg + H), nie litera fontu */
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  filter: drop-shadow(0 0 10px rgba(212,175,55,.35));
}
.mark svg { width: 100%; height: 100%; display: block; }
.nav-links {
  display: flex;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
}
.nav-links a:hover { color: var(--text); }
.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 80px 24px 56px;
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 36px;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.04);
  color: var(--accent);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 650;
  margin-bottom: 22px;
}
h1 {
  margin: 0;
  font-size: clamp(34px, 4.6vw, 56px);
  line-height: 1.06;
  letter-spacing: -.04em;
}
h2 {
  font-size: clamp(26px, 3.4vw, 40px);
  line-height: 1.08;
  letter-spacing: -.03em;
  margin: 0 0 18px;
}
h3 {
  font-size: 21px;
  line-height: 1.25;
  letter-spacing: -.02em;
  margin: 0 0 10px;
}
p { color: var(--muted); margin: 0 0 18px; }
.lead {
  font-size: clamp(17px, 1.8vw, 21px);
  color: var(--silver);
  max-width: 760px;
  margin-top: 28px;
}
.cta-row {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.btn {
  /* Kanon przycisków: w spoczynku gra szarości/srebra — kolor (złoto)
     zapala się dopiero po najechaniu. Złoto na stałe ma tylko .primary. */
  border: 1px solid var(--line);
  background: rgba(255,255,255,.05);
  color: var(--silver);
  padding: 13px 18px;
  border-radius: 14px;
  font-weight: 700;
}
.btn.primary {
  background: linear-gradient(135deg, var(--accent2), var(--accent));
  color: #0a0a0c;
  border: 0;
}
.hero-card {
  border: 1px solid var(--line);
  background: #0b0b0e;
  border-radius: 28px;
  padding: 24px;
  box-shadow: 0 24px 80px rgba(0,0,0,.5);
}
.hero-video {
  display: block;
  width: 100%;
  border-radius: 18px;
  border: 1px solid rgba(212,175,55,.25);
  margin-bottom: 18px;
}
.score {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding: 15px 0;
}
.score:first-child { padding-top: 0; }
.score:last-child { border-bottom: 0; padding-bottom: 0; }
.score span { color: var(--muted); }
.score strong { color: var(--accent); }
section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 72px 24px;
}

/* Sekcja z filmem w tle: pełna szerokość ekranu, treść trzyma siatkę 1160 */
section.has-film {
  position: relative;
  overflow: hidden;
  max-width: none;
  padding: 110px max(24px, calc((100vw - 1160px) / 2));
}
.has-film > * { position: relative; z-index: 2; }
.has-film > .origin-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.has-film > .origin-veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(5,5,6,.9) 0%, rgba(5,5,6,.5) 52%, rgba(5,5,6,.72) 100%),
    linear-gradient(180deg, rgba(5,5,6,.95) 0%, rgba(5,5,6,0) 20%, rgba(5,5,6,0) 80%, rgba(5,5,6,.95) 100%);
}
@media (prefers-reduced-motion: reduce) {
  .has-film > .origin-bg { display: none; }
  section.has-film { background: #0b0b0e; }
}
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.card {
  border: 1px solid var(--line);
  background: rgba(255,255,255,.045);
  border-radius: 22px;
  padding: 22px;
}
.card p { margin-bottom: 0; }
.split {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 42px;
  align-items: start;
}
.kicker {
  color: var(--accent2);
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 12px;
  margin-bottom: 12px;
}
.story-block {
  border-left: 2px solid var(--accent);
  padding-left: 22px;
  margin: 24px 0;
}
.quote {
  font-size: clamp(22px, 3vw, 36px);
  line-height: 1.15;
  letter-spacing: -.03em;
  color: #fff;
}
.check-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 22px;
}
.check {
  padding: 14px 15px;
  border-radius: 16px;
  background: rgba(199,204,214,.06);
  border: 1px solid rgba(199,204,214,.18);
  color: var(--silver);
}
.timeline {
  position: relative;
  display: grid;
  gap: 16px;
}
.timeline-item {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 20px;
  background: rgba(255,255,255,.04);
}
.timeline-item strong {
  color: var(--accent2);
}
.footer {
  border-top: 1px solid var(--line);
  margin-top: 60px;
  padding: 36px 24px;
  color: var(--muted);
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.version-switch {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.badge {
  display: inline-block;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 10px;
  color: var(--muted);
  font-size: 13px;
}
@media (max-width: 900px) {
  .hero, .split { grid-template-columns: 1fr; }
  .grid { grid-template-columns: 1fr; }
  .check-list { grid-template-columns: 1fr; }
  .nav-links { display: none; }
}


/* Legal pages */
.legal-hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 74px 24px 30px;
}
.legal-layout {
  max-width: var(--max);
  margin: 0 auto;
  padding: 32px 24px 84px;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
}
.legal-nav {
  position: sticky;
  top: 92px;
  align-self: start;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.045);
  border-radius: 22px;
  padding: 16px;
}
.legal-nav a {
  display: block;
  padding: 10px 12px;
  color: var(--muted);
  border-radius: 12px;
  font-size: 14px;
}
.legal-nav a:hover {
  background: rgba(255,255,255,.06);
  color: var(--text);
}
.legal-doc {
  border: 1px solid var(--line);
  background: rgba(255,255,255,.045);
  border-radius: 26px;
  padding: 34px;
}
.legal-doc h2 {
  font-size: 30px;
  margin-top: 34px;
}
.legal-doc h2:first-child {
  margin-top: 0;
}
.legal-doc ul {
  color: var(--muted);
  margin: 0 0 20px;
}
.legal-doc li {
  margin: 7px 0;
}
.legal-note {
  border: 1px solid rgba(212,175,55,.3);
  background: rgba(212,175,55,.08);
  border-radius: 18px;
  padding: 16px;
  color: #ecd9a0;
  margin: 20px 0;
}
.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0 26px;
  color: var(--muted);
  font-size: 15px;
}
.legal-table th, .legal-table td {
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  padding: 12px 10px;
}
.legal-table th {
  color: var(--text);
}
.cookie-banner {
  position: fixed;
  left: 18px;
  right: 18px;
  bottom: 18px;
  max-width: 980px;
  margin: 0 auto;
  z-index: 100;
  border: 1px solid var(--line);
  background: rgba(7,7,9,.96);
  backdrop-filter: blur(18px);
  border-radius: 22px;
  padding: 18px;
  display: none;
  box-shadow: 0 18px 70px rgba(0,0,0,.42);
}
.cookie-banner.show { display: block; }
.cookie-banner p { margin-bottom: 12px; }
.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.footer a { color: var(--muted); }
.footer a:hover { color: var(--text); }
@media (max-width: 900px) {
  .legal-layout { grid-template-columns: 1fr; }
  .legal-nav { position: static; }
}

/* =====================================================================
   Scroll reveal — elementy wchodzą płynnie gdy przekroczy viewport
   ===================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }
.reveal-delay-5 { transition-delay: 0.40s; }
.reveal-delay-6 { transition-delay: 0.48s; }

/* =====================================================================
   Logo: złote oddychanie (spójne z filozofią sygnet w okręgu)
   ===================================================================== */
@keyframes logo-breathe {
  0%, 100% { filter: drop-shadow(0 0 8px rgba(212,175,55,.30)); }
  50%       { filter: drop-shadow(0 0 22px rgba(212,175,55,.70)); }
}
.mark {
  animation: logo-breathe 4s ease-in-out infinite;
  cursor: default;
}
.brand:hover .mark {
  animation-duration: 1.4s;
}

/* =====================================================================
   Kicker: krótka złota linia przed tekstem
   ===================================================================== */
.kicker {
  display: flex;
  align-items: center;
  gap: 10px;
}
.kicker::before {
  content: '';
  display: inline-block;
  width: 18px;
  height: 1px;
  background: var(--accent2);
  flex-shrink: 0;
}

/* =====================================================================
   Karty: hover ze złotym poświatą
   ===================================================================== */
.card {
  transition: border-color 0.22s ease, box-shadow 0.22s ease,
              transform 0.22s ease, background 0.22s ease;
  cursor: default;
}
.card:hover {
  border-color: rgba(212,175,55,.3);
  box-shadow: 0 12px 40px rgba(0,0,0,.45), 0 0 28px rgba(212,175,55,.08);
  transform: translateY(-4px);
  background: rgba(255,255,255,.07);
}

/* =====================================================================
   Timeline items: hover
   ===================================================================== */
.timeline-item {
  transition: border-color 0.2s ease, background 0.2s ease;
  cursor: default;
}
.timeline-item:hover {
  border-color: rgba(212,175,55,.25);
  background: rgba(255,255,255,.07);
}

/* =====================================================================
   Przyciski: micro-interakcje
   ===================================================================== */
.btn {
  transition: border-color 0.18s ease, background 0.18s ease,
              color 0.18s ease, transform 0.12s ease, box-shadow 0.18s ease;
}
.btn:hover {
  /* Hover: złoto się zapala — jak btn-ghost w aplikacji */
  border-color: rgba(212,175,55,.45);
  background: rgba(212,175,55,.07);
  color: var(--accent2);
  box-shadow: 0 0 18px rgba(212,175,55,.12);
}
.btn:active { transform: scale(0.97); }
.btn.primary:hover {
  box-shadow: 0 0 28px rgba(212,175,55,.4);
  filter: brightness(1.08);
}
.btn.primary:active { transform: scale(0.97); filter: brightness(0.95); }

/* =====================================================================
   Check-list: hover + złoty ptaszek
   ===================================================================== */
.check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
  cursor: default;
}
.check::before {
  content: '✓';
  color: var(--accent2);
  font-weight: 700;
  font-size: 13px;
  flex-shrink: 0;
  margin-top: 1px;
}
.check:hover {
  border-color: rgba(212,175,55,.3);
  background: rgba(212,175,55,.06);
  color: var(--text);
}

/* =====================================================================
   Cytat: lewy złoty border
   ===================================================================== */
.quote {
  border-left: 2px solid var(--accent);
  padding-left: 24px;
}

/* =====================================================================
   Nav: aktywna pozycja przy scrollu + hamburger mobilny
   ===================================================================== */
.nav-links a {
  transition: color 0.18s ease;
  position: relative;
}
.nav-links a.nav-active {
  color: var(--accent2);
}
.nav-links a.nav-active::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--accent2);
  border-radius: 1px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin-right: -8px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: flex !important;
    position: fixed;
    top: 71px;
    left: 0;
    right: 0;
    background: rgba(7,7,9,.97);
    backdrop-filter: blur(18px);
    flex-direction: column;
    padding: 20px 24px;
    border-bottom: 1px solid var(--line);
    gap: 4px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 0.25s ease, transform 0.25s ease;
    z-index: 49;
  }
  .nav-links.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }
  .nav-links a {
    padding: 12px 0;
    font-size: 16px;
    color: var(--text);
    border-bottom: 1px solid var(--line);
  }
  .nav-links a:last-child { border-bottom: 0; }
}

/* =====================================================================
   Wskaźnik scrollowania w hero
   ===================================================================== */
@keyframes scroll-bounce {
  0%, 100% { transform: translateY(0); opacity: 0.5; }
  50%       { transform: translateY(7px); opacity: 1; }
}
.scroll-indicator {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  margin-top: 44px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.scroll-indicator svg {
  animation: scroll-bounce 2s ease-in-out infinite;
  color: var(--accent2);
}
@media (max-width: 900px) {
  .scroll-indicator { display: none; }
}

/* =====================================================================
   Fale harmoniczne w tle hero (żywa symbolika marki)
   ===================================================================== */
@keyframes wave-flow {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.hero-wave {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.hero-wave svg {
  width: 200%;
  height: 100%;
  animation: wave-flow 18s linear infinite;
}
/* Nadpisanie hero aby fale były widoczne za treścią */
.hero {
  position: relative;
  overflow: hidden;
}
.hero > * { position: relative; z-index: 1; }

/* =====================================================================
   Eyebrow: delikatny shimmer
   ===================================================================== */
@keyframes eyebrow-shimmer {
  0%, 100% { background-position: -100% 0; }
  50%       { background-position: 200% 0; }
}
.eyebrow {
  background-image: linear-gradient(
    90deg,
    transparent 0%,
    rgba(212,175,55,.15) 40%,
    rgba(233,202,106,.28) 50%,
    rgba(212,175,55,.15) 60%,
    transparent 100%
  );
  background-size: 300% 100%;
  animation: eyebrow-shimmer 7s ease-in-out infinite;
}

/* =====================================================================
   Score rows: subtelny hover
   ===================================================================== */
.score {
  transition: background 0.18s ease;
  border-radius: 8px;
  padding-left: 6px;
  padding-right: 6px;
  margin: 0 -6px;
}
.score:hover {
  background: rgba(212,175,55,.05);
}

/* =====================================================================
   Badge (footer): hover
   ===================================================================== */
.badge {
  transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease;
}
.badge:hover {
  border-color: rgba(212,175,55,.4);
  color: var(--accent2);
  background: rgba(212,175,55,.06);
}

/* =====================================================================
   Redukcja ruchu
   ===================================================================== */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .mark { animation: none; }
  .eyebrow { animation: none; }
  .scroll-indicator svg { animation: none; }
  .hero-wave svg { animation: none; }
  .card, .timeline-item, .btn, .check, .badge, .score { transition: none; }
  .card:hover, .timeline-item:hover { transform: none; }
}

/* =====================================================================
   Galaktyka: światło w czerni — spójne z aplikacją (GalaxyLayer).
   Wypełnia ciemne przestrzenie gwiazdami (biel/srebro) + złoty pył.
   ===================================================================== */
.galaxy { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.galaxy canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.galaxy-band {
  position: absolute; inset: 0;
  background:
    radial-gradient(62rem 26rem at 72% 10%, rgba(212,175,55,.055), transparent 60%),
    radial-gradient(52rem 30rem at 16% 78%, rgba(199,204,214,.045), transparent 60%);
  animation: band-breathe 14s ease-in-out infinite;
}
@keyframes band-breathe { 0%,100% { opacity: .7; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .galaxy-band { animation: none; } }

/* Tekst nad filmem (sekcja Origin): mocniejsza zasłona + jaśniejszy tekst */
.has-film > .origin-veil {
  background:
    linear-gradient(90deg, rgba(5,5,6,.92) 0%, rgba(5,5,6,.62) 52%, rgba(5,5,6,.84) 100%),
    linear-gradient(180deg, rgba(5,5,6,.95) 0%, rgba(5,5,6,0) 20%, rgba(5,5,6,0) 80%, rgba(5,5,6,.95) 100%);
}
.has-film p { color: #e8eaef; text-shadow: 0 1px 14px rgba(0,0,0,.85); }
