/* css/index.css — landing page */

html, body { background: var(--bg); }

body.home-body {
  min-height: 100vh;
  margin: 0;
  color: #fff;
  background: var(--bg);
}

/* =====================
   HERO
===================== */
.hero-card {
  margin-top: 18px;
  padding: 22px;
  border-radius: 22px;
  border: 1px solid var(--line2);
  background: var(--card);
  box-shadow: 0 18px 46px rgba(0,0,0,.55);
  display: grid;
  justify-items: center;
  text-align: center;
}

.hero-card h1 {
  margin: 0;
  font-size: 28px;
  font-weight: 1000;
  letter-spacing: .06em;
  color: var(--gold);
}

.hero-lead {
  margin: 10px 0 0;
  opacity: .88;
  line-height: 1.55;
  max-width: 82ch;
  font-size: 14.5px;
}

.hero-cta {
  margin-top: 14px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.hero-note {
  margin-top: 10px;
  opacity: .6;
  font-size: 12.5px;
}

/* =====================
   PIPELINE NAV
   position: fixed — zawsze widoczny nad zawartością
   top jest ustawiany dynamicznie przez JS żeby śledzić dolną krawędź topbara
===================== */
.pipeline-wrap {
  position: fixed;
  top: 0; /* fallback — JS nadpisuje */
  left: 0;
  right: 0;
  z-index: 20;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

/* [przycisk] [linia] [przycisk] [linia] [przycisk] ... */
.pipeline {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  height: 48px;
}

/* linia między przyciskami — wstrzykiwana przez JS */
.pipeline-line {
  flex: 1;
  height: 6px;
  border-radius: 0;
  border-top: 1px solid rgba(255,234,166,.22);
  border-bottom: 1px solid rgba(255,234,166,.22);
  background: transparent;
  position: relative;
  overflow: hidden;
  min-width: 16px;
}

.pipeline-line-fill {
  position: absolute;
  inset: 0;
  width: 0%;
  background: var(--gold);
  transition: width 80ms linear;
}

/* przyciski */
.pipeline-node {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 5px 14px;
  background: var(--bg);
  border: 1px solid rgba(255,234,166,.22);
  border-radius: 20px;
  color: rgba(255,234,166,.4);
  font-size: 10px;
  font-weight: 1000;
  letter-spacing: .1em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: color 150ms ease, border-color 150ms ease, background 150ms ease;
}

.pipeline-node-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,234,166,.3);
  background: transparent;
  flex-shrink: 0;
  transition: border-color 150ms ease, background 150ms ease;
}

/* zalany — sekcja przejdzona */
.pipeline-node.is-filled {
  color: rgba(255,234,166,.7);
  border-color: var(--gold);
  background: rgba(255,234,166,.08);
}
.pipeline-node.is-filled .pipeline-node-dot {
  border-color: var(--gold);
  background: var(--gold);
}

/* aktywny — bieżąca sekcja */
.pipeline-node.is-active {
  color: #1a1608;
  background: var(--gold);
  border-color: var(--gold);
}
.pipeline-node.is-active .pipeline-node-dot {
  border-color: rgba(0,0,0,.25);
  background: rgba(0,0,0,.2);
}

/* MOBILE: Identyczny jak desktop, ale bez kropek i z mniejszym fontem */
@media (max-width: 600px) {
  .hero-card h1 {
    font-size: 22px;
  }

  .pipeline {
    padding: 0 12px;
    height: 42px;
    justify-content: space-between;
  }

  .pipeline-node {
    padding: 4px 8px;
    border-radius: 14px;
    font-size: 8.5px;
    letter-spacing: 0.02em;
    gap: 0;
  }

  .pipeline-node-dot { 
    display: none !important; 
  }

  .pipeline-line {
    display: block !important;
    height: 4px;
    border-top: 1px solid rgba(255,234,166,.12);
    border-bottom: 1px solid rgba(255,234,166,.12);
    min-width: 4px;
  }

  .pipeline-node.is-active {
    font-weight: 1000;
  }
}

/* =====================
   LANDING SECTIONS
===================== */
.landing-section {
  margin-top: 56px;
  scroll-margin-top: 120px; /* topbar (~64px) + pipeline (48px) + bufor */
}

.landing-section-label {
  margin: 0 0 4px;
  font-size: 10px;
  font-weight: 1000;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: .5;
}

.landing-section-heading {
  margin: 0 0 22px;
  font-size: 20px;
  font-weight: 1000;
  letter-spacing: .02em;
}

/* =====================
   O SYSTEMIE
===================== */
.about-body p {
  margin: 0 0 12px;
  font-size: 14px;
  opacity: .85;
  line-height: 1.7;
}
.about-body p:last-child { margin-bottom: 0; }

/* =====================
   TILES
===================== */
.tiles {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.tile {
  padding: 18px;
  border-radius: 22px;
  border: 1px solid var(--line2);
  background: rgba(255,255,255,.05);
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: 18px;
  align-items: center;
}

.tile.reverse { grid-template-columns: 1.05fr .95fr; }
.tile.reverse .tile-shot { order: 2; }
.tile.reverse .tile-text { order: 1; }

@media (max-width: 900px) {
  .tile, .tile.reverse { grid-template-columns: 1fr; }
  .tile.reverse .tile-shot { order: 1; }
  .tile.reverse .tile-text { order: 2; }
}

.tile h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 1000;
  letter-spacing: .04em;
}

.tile p {
  margin: 10px 0 0;
  opacity: .82;
  line-height: 1.55;
  font-size: 13px;
}

.tile-shot {
  position: relative;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.20);
  overflow: hidden;
  cursor: zoom-in;
  display: inline-block;
  width: 100%;
}

.shot-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 18px;
  opacity: 0;
  transition: opacity 160ms ease;
  background: rgba(0,0,0,.15);
}

.shot-img.is-loaded { opacity: 1; }

@media (hover:hover) {
  .tile-shot:hover {
    border-color: rgba(255,255,255,.18);
    box-shadow: 0 18px 50px rgba(0,0,0,.35);
    transform: translateY(-1px);
    transition: 160ms ease;
  }
}

/* =====================
   DLA KOGO
===================== */
.forwhom-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
}

.forwhom-card {
  padding: 20px;
  border-radius: 18px;
  border: 1px solid var(--line2);
  background: rgba(255,255,255,.04);
}

.forwhom-card h3 {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 1000;
  letter-spacing: .03em;
  color: var(--gold);
}

.forwhom-card p {
  margin: 0;
  font-size: 13px;
  opacity: .78;
  line-height: 1.6;
}

/* =====================
   FAQ
===================== */
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item:first-of-type,
.faq-category-title + .faq-item { border-top: 1px solid var(--line); }

.faq-category-title {
  margin: 28px 0 0 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  opacity: .45;
}
.faq-category-title:first-of-type { margin-top: 0; }

.faq-q {
  padding: 14px 4px;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  user-select: none;
}

.faq-q::-webkit-details-marker { display: none; }

.faq-q::after {
  content: '+';
  font-size: 20px;
  color: var(--gold);
  opacity: .5;
  flex-shrink: 0;
  transition: transform 200ms ease, opacity 200ms ease;
  line-height: 1;
}

details[open] .faq-q::after {
  transform: rotate(45deg);
  opacity: 1;
}

.faq-a {
  margin: 0 0 14px 4px;
  font-size: 13px;
  opacity: .78;
  line-height: 1.7;
}

/* =====================
   IMAGE VIEWER
===================== */
.imgv-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.80);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
}
.imgv-overlay.is-open { display: flex; }

.imgv-panel {
  position: relative;
  width: 100%;
  max-width: min(1200px, 92vw);
  max-height: min(82vh, 900px);
  border-radius: 16px;
  background: rgba(20,20,24,.94);
  border: 1px solid rgba(255,255,255,.12);
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,.55);
}

@media (max-width: 900px) {
  .imgv-overlay { padding: 0; }
  .imgv-panel { max-width: 100vw; max-height: 100vh; height: 100vh; border-radius: 0; }
}

.imgv-top {
  position: absolute;
  inset: 0 0 auto 0;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background: linear-gradient(to bottom, rgba(0,0,0,.55), rgba(0,0,0,0));
  z-index: 2;
  pointer-events: none;
}

.imgv-title {
  pointer-events: none;
  font-size: 13px;
  color: rgba(255,255,255,.78);
  padding-left: 6px;
  max-width: 78%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.imgv-close {
  pointer-events: all;
  width: 40px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(0,0,0,.35);
  color: rgba(255,255,255,.95);
  font-size: 18px;
  line-height: 1;
}

.imgv-stage {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  padding-top: 52px;
}

.imgv-img {
  max-width: 100%;
  max-height: 100%;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}

.imgv-zoom {
  width: 100%;
  height: calc(100% - 52px);
  touch-action: none;
  overflow: hidden;
  position: relative;
}

.imgv-zoom > img {
  transform-origin: 50% 50%;
  will-change: transform;
}
