/* ============================================================
   Awesome - Flow — silnik pełnoekranowych slajdów
   ============================================================ */

:root {
  --brand: #ffb300;          /* żółty z designu */
  --halo:  #ffcd94;          /* brzoskwiniowa poświata za zdjęciem */
  --ink:   #000000;          /* nagłówek */
  --muted: #303030;          /* treść */
  --dot:   #cccccc;          /* nieaktywna kropka menu */
  --paper: #ffffff;          /* tło slajdu Start */

  --nav-gap: clamp(1rem, 2.2vw, 1rem);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: #000;
}

body {
  font-family: "Cambo", Georgia, serif;
  color: var(--muted);
  -webkit-font-smoothing: antialiased;
}

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

/* Fallback SEO bez JS: czytelny dokument na jasnym tle */
.noscript-seo {
  position: relative;
  z-index: 100;
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(1.5rem, 5vw, 3rem);
  background: var(--paper);
  color: var(--muted);
  font-family: "Cambo", Georgia, serif;
  line-height: 1.6;
}
.noscript-seo h1, .noscript-seo h2 { font-family: "Lato", system-ui, sans-serif; color: var(--ink); }
.noscript-seo a { color: #b37c00; }

/* ---------- Deck + slajdy ---------- */

.deck {
  height: 100dvh;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;            /* Firefox */
}
.deck::-webkit-scrollbar { width: 0; height: 0; }   /* WebKit */

/* Sekcja = rząd: poziomy scroller paneli (snap w poziomie) */
.slide {
  position: relative;
  height: 100dvh;
  scroll-snap-align: start;
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
}
.slide::-webkit-scrollbar { width: 0; height: 0; }

/* Panel = jeden pełny ekran w obrębie sekcji */
.panel {
  position: relative;
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  scroll-snap-align: start;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1.5rem, 5vw, 4rem);
  overflow: hidden;
}

/* Slajd Start */
.slide--start { background: var(--paper); }

/* Slajdy-zaślepki (różnią się tłem) */
.slide__placeholder {
  text-align: center;
  color: rgba(255, 255, 255, 0.95);
}
.slide__placeholder h2 {
  font-family: "Lato", system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(2rem, 7vw, 4.5rem);
  margin: 0 0 0.6rem;
  letter-spacing: -0.02em;
}
.slide__placeholder p {
  font-size: clamp(0.95rem, 2.4vw, 1.15rem);
  opacity: 0.7;
  margin: 0;
}
.slide__placeholder::after {           /* drobny akcent marki */
  content: "";
  display: block;
  width: 56px;
  height: 4px;
  margin: 1.4rem auto 0;
  border-radius: 4px;
  background: var(--brand);
}

/* ---------- Hero (slajd 1) ---------- */

.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  max-width: 980px;
  width: 100%;
}

.hero__visual {
  position: relative;
  flex: 0 0 auto;
  width: clamp(200px, 32vw, 320px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}
.hero__burst {
  position: absolute;
  width: 178%;                         /* rozbłysk wychodzi poza zdjęcie (proporcja ~jak w projekcie) */
  max-width: none;                     /* zdejmujemy globalny limit img { max-width:100% } */
  left: 50%;
  top: 50%;
  transform: translate(-46%, -54%);    /* przecięcie kresek pada na środek zdjęcia */
  z-index: 1;
  pointer-events: none;
}
.hero__halo {
  position: absolute;
  width: 58%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--halo);
  opacity: 0.6;
  transform: translate(9%, 11%);
  z-index: 1;
}
.hero__photo {
  position: relative;
  width: 66%;
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
  z-index: 2;
}

.hero__text {
  position: relative;
  z-index: 3;                          /* tekst NAD rozbłyskiem w osi Z */
  max-width: 420px;
  margin-left: -35px;   /* „Awesome" nachodzi na poziomy pasek */
}
.hero__title {
  font-family: "Lato", system-ui, sans-serif;
  font-weight: 700;
  color: var(--ink);
  font-size: clamp(1.9rem, 5vw, 2.6rem);
  line-height: 1.05;
  margin: 0;
  margin-top: 180px;
  letter-spacing: -0.01em;
}
.hero__title strong { font-weight: 700; }
.hero__name {
  font-size: clamp(1.05rem, 3vw, 1.35rem);
  color: var(--muted);
  margin: 0.5rem 0 0;
}
.hero__desc {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: clamp(0.9rem, 2.4vw, 1.05rem);
  color: var(--muted);
  line-height: 1.45;
  margin: 1.1rem 0 0;
}
.hero__check {
  flex: 0 0 auto;
  width: 1.05em;
  height: 1.05em;
  margin-top: 0.18em;
  color: var(--ink);
}

/* Narzędzia jako chip-y pod opisem (jasne tło Start) */
.hero__tools-label {
  font-family: "Inter", system-ui, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.68rem;
  color: #9a9a9a;
  margin: 1.5rem 0 0.6rem;
}
.hero__tools {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.hero__tool {
  font-family: "Inter", system-ui, sans-serif;
  font-size: 0.78rem;
  color: var(--muted);
  background: #f5f5f5;
  border: 1px solid #e6e6e6;
  border-radius: 999px;
  padding: 0.32rem 0.72rem;
  white-space: nowrap;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.hero__tool:hover { border-color: var(--brand); color: var(--ink); }

/* Przycisk „Zapraszam do kontaktu" → sekcja Kontakt */
.hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.6rem;
  padding: 0.7rem 1.25rem;
  border-radius: 999px;
  background: var(--brand);
  color: var(--ink);
  font-family: "Lato", system-ui, sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(255, 179, 0, 0.32);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.hero__cta:hover {
  transform: translateY(-2px);
  background: #ffbe26;
  box-shadow: 0 6px 18px rgba(255, 179, 0, 0.42);
}
.hero__cta-icon { width: 18px; height: 18px; flex: 0 0 auto; }

/* ---------- Treść sekcji (panele tekstowe na ciemnym tle) ---------- */

.content { max-width: 640px; width: 100%; }

.content .eyebrow,
.index .eyebrow {
  font-family: "Inter", system-ui, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.75rem;
  color: var(--brand);
  margin: 0 0 1.2rem;
}
.content .content__lead {
  font-family: "Lato", system-ui, sans-serif;
  font-weight: 700;
  color: #fff;
  font-size: clamp(1.5rem, 4.2vw, 2.4rem);
  line-height: 1.14;
  letter-spacing: -0.01em;
  margin: 0 0 1.4rem;
}
.content p {
  color: rgba(255, 255, 255, 0.72);
  font-size: clamp(1rem, 2.3vw, 1.2rem);
  line-height: 1.65;
  margin: 0 0 1rem;
}
.content strong { color: #fff; font-weight: 400; }   /* Cambo: akcent przez jasność, nie grubość */
.content .content__punch {
  font-family: "Lato", system-ui, sans-serif;
  font-weight: 700;
  color: #fff;
  font-size: clamp(1.35rem, 3.4vw, 2rem);
  line-height: 1.25;
  margin: 1.8rem 0 0;
}
.content .content__punch span { color: var(--brand); }

/* CTA: link do kontaktu osadzony w akapicie (pełne zdanie z content.md) */
.content .content__cta-wrap {
  color: rgba(255, 255, 255, 0.72);
  font-size: clamp(1rem, 2.3vw, 1.2rem);
  line-height: 1.6;
  margin: 1.6rem 0 0;
}
.content__cta {
  color: var(--brand);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 179, 0, 0.45);
  transition: border-color 0.2s ease;
}
.content__cta:hover { border-bottom-color: var(--brand); }

/* ---------- Kontakt: dane + linki (tel / mail / LinkedIn) ---------- */

.contact__name {
  font-family: "Lato", system-ui, sans-serif;
  font-weight: 700;
  color: #fff;
  font-size: clamp(1.05rem, 2.6vw, 1.3rem);
  margin: 0.4rem 0 0;
}
.contact__name strong { color: #fff; font-weight: 700; }
.contact__place {
  color: rgba(255, 255, 255, 0.6);
  font-size: clamp(0.92rem, 2vw, 1.05rem);
  margin: 0.35rem 0 0;
}
.contact__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin: 1.9rem 0 0;
}
.contact__link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 1.1rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #fff;
  text-decoration: none;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 0.95rem;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}
.contact__link:hover {
  border-color: rgba(255, 179, 0, 0.55);
  background: rgba(255, 255, 255, 0.09);
  transform: translateY(-2px);
}
.contact__icon { width: 20px; height: 20px; flex: 0 0 auto; color: var(--brand); }

/* Mobile: kompaktowe chipy kontaktu */
@media (max-width: 720px) {
  .contact__actions { gap: 0.5rem; margin-top: 1.4rem; }
  .contact__link {
    gap: 0.5rem;
    padding: 0.5rem 0.8rem;
    border-radius: 10px;
    font-size: 0.86rem;
  }
  .contact__icon { width: 17px; height: 17px; }
}

/* ---------- Nagłówek panelu grupy (powrót do indeksu + progres) ---------- */

.content__head {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin: 0 0 1.4rem;
}
.backchip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 0.32rem 0.85rem;
  color: rgba(255, 255, 255, 0.82);
  font-family: "Inter", system-ui, sans-serif;
  font-size: 0.74rem;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.backchip:hover {
  color: #fff;
  border-color: rgba(255, 179, 0, 0.55);
  background: rgba(255, 255, 255, 0.1);
}
.backchip__arrow { font-size: 1.05em; line-height: 1; }
.content__group {
  font-family: "Inter", system-ui, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  color: var(--brand);
}

/* ---------- Indeks sekcji (reużywalny: „Dla kogo?", „Use case-y") ---------- */

.index { max-width: 600px; width: 100%; }
.index__question {
  font-family: "Lato", system-ui, sans-serif;
  font-weight: 700;
  color: #fff;
  font-size: clamp(1.55rem, 4.4vw, 2.5rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 1.8rem;
}
.index__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.index__item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 1rem;
  text-align: left;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 0.95rem 1.1rem;
  color: #fff;
  font-family: "Inter", system-ui, sans-serif;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.index__item:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 179, 0, 0.5);
  transform: translateX(4px);
}
.index__num {
  font-family: "Lato", system-ui, sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--brand);
  opacity: 0.9;
  min-width: 1.7em;
}
.index__body { display: flex; flex-direction: column; gap: 0.18rem; flex: 1; min-width: 0; }
.index__label { font-size: 1.05rem; font-weight: 600; line-height: 1.2; }
.index__meta { font-size: 0.8rem; color: rgba(255, 255, 255, 0.5); }
.index__arrow {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  color: rgba(255, 255, 255, 0.4);
  transition: color 0.2s ease, transform 0.2s ease;
}
.index__item:hover .index__arrow { color: var(--brand); transform: translateX(3px); }
.index__item.is-visited { border-color: rgba(255, 179, 0, 0.3); }
.index__item.is-visited .index__num { opacity: 1; }

/* Mobile: indeks kompaktowy — bez podpisu, mniejszy nagłówek, ciaśniejsze kafelki */
@media (max-width: 720px) {
  .index__question {
    font-size: clamp(1.25rem, 6vw, 1.6rem);
    margin: 0 0 1.1rem;
  }
  .index__list { gap: 0.5rem; }
  .index__item { padding: 0.72rem 0.9rem; gap: 0.7rem; }
  .index__num { min-width: 1.5em; font-size: 0.85rem; }
  .index__label { font-size: 0.98rem; }
  .index__meta { display: none; }
}

/* ---------- Use case: pojedynczy panel wdrożenia ---------- */

.content.uc { max-width: 760px; }
.uc__stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0 0 0.9rem;
}
.uc__tag {
  font-family: "Inter", system-ui, sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  padding: 0.22rem 0.62rem;
  border-radius: 999px;
  background: rgba(255, 179, 0, 0.12);
  color: var(--brand);
  border: 1px solid rgba(255, 179, 0, 0.28);
}
.uc__title {
  font-family: "Lato", system-ui, sans-serif;
  font-weight: 700;
  color: #fff;
  font-size: clamp(1.3rem, 3.4vw, 2rem);
  line-height: 1.18;
  letter-spacing: -0.01em;
  margin: 0 0 1.4rem;
}
.uc__cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.2rem, 3vw, 2.6rem);
}
.uc__label {
  font-family: "Inter", system-ui, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  color: var(--brand);
  margin: 0 0 0.6rem;
}
.uc__text {
  color: rgba(255, 255, 255, 0.72);
  font-size: clamp(0.92rem, 2vw, 1.05rem);
  line-height: 1.55;
  margin: 0;
}
.uc__list {
  margin: 0;
  padding-left: 1.1rem;
  color: rgba(255, 255, 255, 0.72);
  font-size: clamp(0.92rem, 2vw, 1.05rem);
  line-height: 1.5;
}
.uc__list li { margin: 0 0 0.45rem; }
.uc__list li::marker { color: var(--brand); }
.uc__list ul { margin: 0.45rem 0 0; padding-left: 1.1rem; }
.uc__list ul li { margin: 0 0 0.3rem; }

@media (max-width: 720px) {
  .uc__cols { grid-template-columns: 1fr; gap: 0.85rem; }
}

/* ---------- Nawigacja (kropki + nazwy) ---------- */

.nav {
  position: fixed;
  left: clamp(0.75rem, 2.5vw, 2rem);
  top: 50%;
  transform: translateY(-50%);
  z-index: 50;
  display: flex;
  flex-direction: column;
  gap: var(--nav-gap);
}

.nav__item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  background: none;
  border: 0;
  padding: 0.25rem 0;
  cursor: pointer;
  color: var(--dot);
  font-family: "Inter", system-ui, sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.01em;
  transition: color 0.25s ease;
}
.nav__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--dot);
  flex: 0 0 auto;
  transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}
.nav__label { white-space: nowrap; transition: color 0.25s ease, opacity 0.25s ease; }

.nav__item:hover { color: var(--muted); }
.nav__item:hover .nav__dot { transform: scale(1.25); }

.nav__item.is-active { color: var(--muted); }
.nav__item.is-active .nav__dot {
  background: var(--brand);
  transform: scale(1.45);
  box-shadow: 0 0 0 2px rgba(255, 179, 0, 0.18);
}
/* Na ciemnych slajdach menu rozjaśniamy */
.nav.on-dark .nav__item { color: rgba(255, 255, 255, 0.55); }
.nav.on-dark .nav__item.is-active { color: #fff; }
.nav.on-dark .nav__dot { background: rgba(255, 255, 255, 0.5); }
.nav.on-dark .nav__item.is-active .nav__dot { background: var(--brand); }

/* ---------- Przycisk „w dół" ---------- */

.jump {
  position: fixed;
  bottom: clamp(1.1rem, 4vh, 2.2rem);
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem 0.5rem 0.75rem;
  border: 0;
  border-radius: 999px;
  background: #e0e0e0;
  color: #000;
  font-family: "Lato", system-ui, sans-serif;
  font-size: 0.85rem;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
  transition: transform 0.2s ease, background 0.2s ease;
}
.jump:hover { transform: translateX(-50%) translateY(-2px); background: #d4d4d4; }
.jump__icon { width: 16px; height: 16px; transition: transform 0.3s ease; }
.jump.is-up .jump__icon { transform: rotate(180deg); }
.jump.is-right .jump__icon { transform: rotate(-90deg); }   /* „dalej" w prawo (kolejny panel) */

/* ---------- Pager: poziome kropki paneli sekcji ---------- */

.pager {
  position: fixed;
  left: 50%;
  bottom: clamp(3.6rem, 11vh, 5.5rem);
  transform: translateX(-50%);
  z-index: 50;
  display: none;
  gap: 0.5rem;
  align-items: center;
}
.pager.is-visible { display: flex; }
.pager__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 0;
  padding: 0;
  background: rgba(0, 0, 0, 0.22);
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}
.pager__dot.is-active { background: var(--brand); transform: scale(1.35); }
.pager.on-dark .pager__dot { background: rgba(255, 255, 255, 0.3); }
.pager.on-dark .pager__dot.is-active { background: var(--brand); }

/* ---------- Responsywność: mobile ---------- */

@media (max-width: 720px) {
  /* treść nie może wchodzić pod lewy rail kropek menu */
  .panel { padding-left: 3.6rem; padding-right: 1.4rem; }

  .hero {
    flex-direction: column;
    text-align: center;
    gap: clamp(1.2rem, 5vw, 2rem);
  }
  .hero__visual { width: clamp(180px, 56vw, 260px); }
  .hero__text { max-width: 30rem; margin-left: 0; }   /* pionowy układ: bez nachodzenia */
  .hero__desc {
    justify-content: start;
    text-align: left;
    margin-left: 20px;
  }
  /* Na mobile chowamy narzędzia — za dużo treści na jednym ekranie */
  .hero__tools-label,
  .hero__tools { display: none; }

  .hero__title {
    margin-top: 0px;
  }

  /* Menu: same kropki, etykiety chowamy by nie zasłaniały treści */
  .nav { gap: 1rem; left: 1.2rem; }
  .nav__label {
    position: absolute;
    width: 1px; height: 1px;
    overflow: hidden; clip: rect(0 0 0 0);   /* dostępne dla czytników, niewidoczne */
  }
  .nav__dot { width: 11px; height: 11px; }   /* większy obszar dotyku */
  .nav__item { padding: 0 0; }
}

/* Użytkownicy preferujący ograniczony ruch */
@media (prefers-reduced-motion: reduce) {
  .deck, .slide { scroll-behavior: auto; }
  * { transition: none !important; }
}
