/* ============================================================
   Print.Organic — style główne
   ============================================================ */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  overflow-x: clip; /* bloby sekcji mogą nachodzić na sąsiadów (jak w makiecie) */
  background: var(--c-cream);
  color: var(--c-black);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

::selection {
  background: var(--c-black);
  color: var(--c-cream);
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  font-weight: var(--fw-heading);
}

h1 { font-size: var(--fs-h1); line-height: var(--lh-h1); }
h2 { font-size: var(--fs-h2); line-height: var(--lh-h2); }
h3 { font-size: var(--fs-h3); line-height: var(--lh-h3); }
h4 { font-size: var(--fs-h4); line-height: var(--lh-h4); }

.mono {
  font-family: var(--font-mono);
  font-weight: var(--fw-mono);
  font-size: var(--fs-mono);
  line-height: 1.3;
  text-transform: uppercase;
}

/* Ukryte defs z filtrem goo */
.svg-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

/* ============================================================
   Przyciski (pigułki)
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--btn-pad-y) var(--btn-pad-x);
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-weight: var(--fw-mono);
  font-size: var(--fs-btn);
  letter-spacing: var(--ls-btn);
  text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  border: var(--border);
}

.btn--outline {
  background: var(--c-cream);
  color: var(--c-black);
  transition: padding 0.25s ease;
}

/* hover wg wariantu "stan=rozwin/Hover, typ=Rozwin" (910:2035 -> 1000:3032):
   pigułka rozszerza się (padding 24px -> 28px), kolory bez zmian */
.btn--outline:hover {
  padding-left: 28px;
  padding-right: 28px;
}

.btn-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--btn-circle);
  height: var(--btn-circle);
  border-radius: var(--radius-pill);
  border: var(--border);
  background: var(--c-cream);
  flex: none;
  transition: background 0.25s ease;
}

.btn-circle img {
  width: 9px;
  height: 11px;
}

/* hover wg wariantu "typ=strzalka" (3011:6546 -> 3011:6551): kolory bez zmian,
   strzałka wylatuje i wraca z przeciwnej strony (property Default -> h) */
.btn-circle {
  overflow: hidden;
}

.btn-circle:hover img {
  animation: btn-arrow-slide 0.4s ease;
}

@keyframes btn-arrow-slide {
  45% { transform: translateY(180%); opacity: 0; }
  50% { transform: translateY(-180%); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

/* Grupa: pigułka + kółko obok siebie */
.btn-group {
  display: inline-flex;
  align-items: center;
}

/* ============================================================
   Navbar
   ============================================================ */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 21px var(--page-margin) 0;
  pointer-events: none; /* klikalne tylko elementy w środku */
}

.navbar > * {
  pointer-events: auto;
}

.navbar__brand {
  display: flex;
  align-items: center;
  gap: 32px;
  width: 346px;
}

.navbar__brand img {
  width: 127px;
  height: 44px;
}

.navbar__powered {
  font-family: var(--font-mono);
  font-weight: 300; /* Figma 873:5491: Saans Mono Light */
  font-size: 12px;
  letter-spacing: 0.36px;
  text-transform: uppercase;
  line-height: 1;
}

.navbar__menu {
  display: flex;
  align-items: center;
}

.navbar__menu a {
  display: inline-flex;
  align-items: center;
  padding: var(--btn-pad-y) var(--btn-pad-x);
  background: var(--c-cream);
  border: 1px solid transparent;
  border-top-color: var(--c-black);
  border-bottom-color: var(--c-black);
  font-family: var(--font-mono);
  font-weight: var(--fw-mono);
  font-size: var(--fs-btn);
  letter-spacing: var(--ls-btn);
  text-transform: uppercase;
  line-height: 1;
  transition: border-radius 0.25s ease, border-color 0.25s ease;
}

.navbar__menu a:first-child {
  border-left-color: var(--c-black);
  border-radius: var(--radius-pill) 0 0 var(--radius-pill);
}

.navbar__menu a:last-child {
  border-right-color: var(--c-black);
  border-radius: 0 var(--radius-pill) var(--radius-pill) 0;
}

/* hover wg wariantów nav (1000:2829 -> 2840/2867/2876/2885):
   najechany link odrywa się jako własna pigułka, sąsiedzi domykają krawędzie */
.navbar__menu a:hover {
  border-color: var(--c-black);
  border-radius: var(--radius-pill);
}

.navbar__menu a:hover + a {
  border-left-color: var(--c-black);
  border-radius: var(--radius-pill) 0 0 var(--radius-pill);
}

.navbar__menu a:has(+ a:hover) {
  border-right-color: var(--c-black);
  border-radius: 0 var(--radius-pill) var(--radius-pill) 0;
}

.navbar__menu a:hover + a:last-child,
.navbar__menu a:first-child:has(+ a:hover) {
  border-radius: var(--radius-pill);
}

.navbar__cta-wrap {
  display: flex;
  justify-content: flex-end;
  width: 346px;
}

/* --- CTA z efektem gooey: czarna pigułka + kula z, strzałką --- */

.btn-goo {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.btn-goo__shapes {
  position: absolute;
  inset: 0;
  filter: url("#goo");
  pointer-events: none;
}

.btn-goo__pill {
  position: absolute;
  inset: 0;
  background: var(--c-black);
  border-radius: var(--radius-pill);
}

.btn-goo__ball {
  position: absolute;
  top: 0;
  right: 0;
  width: var(--btn-circle);
  height: var(--btn-circle);
  background: var(--c-black);
  border-radius: 50%;
}

.btn-goo__label {
  position: relative;
  z-index: 2;
  padding: var(--btn-pad-y) var(--btn-pad-x);
  color: var(--c-cream);
  font-family: var(--font-mono);
  font-weight: var(--fw-mono);
  font-size: var(--fs-btn);
  letter-spacing: var(--ls-btn);
  text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;
}

.btn-goo__arrow {
  position: absolute;
  z-index: 2;
  top: 0;
  right: 0;
  width: var(--btn-circle);
  height: var(--btn-circle);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
}

.btn-goo__arrow img {
  width: 9px;
  height: 11px;
  transform: rotate(-90deg); /* glyph strzałki w dół → w prawo */
}

/* ============================================================
   Hero
   ============================================================ */

.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
}

/* tryb QA (?static=1): stała wysokość sekcji pełnoekranowych, żeby
   pełnostronicowe zrzuty w headless (okno = cała strona) nie rozciągały svh */
html[data-static] .hero,
html[data-static] .s-cta {
  min-height: 800px;
  height: 800px;
}

.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero__blob {
  position: absolute;
  pointer-events: none;
}

/* gdy działa żywe tło (canvas), statyczne bloby SVG chowamy */
.hero.is-live .hero__blob {
  display: none;
}

/* pozycje środków blobów wg projektu (ramka 1440×800) */
.hero__blob--left {
  left: calc(50% - 720px);
  top: calc(50% - 447px);
  width: 739px;
  height: 951px;
  transform: translate(-50%, -50%) rotate(90deg);
}

.hero__blob--right {
  left: calc(50% + 471px);
  top: calc(50% - 11px);
  width: 950px;
  height: 1182px;
  transform: translate(-50%, -50%) rotate(-90deg);
}

.hero__blob--small {
  left: calc(50% - 133px);
  top: calc(50% - 190px);
  width: 98px;
  height: 98px;
  transform: translate(-50%, -50%) rotate(132.76deg) scaleY(-1);
}

.hero__content {
  position: absolute;
  left: var(--content-left);
  top: calc(50% + 22px);
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  width: min(779px, calc(100% - 2 * var(--content-left)));
}

.hero__content h1 {
  width: 100%;
}

/* ============================================================
   Stuby sekcji (dev)
   ============================================================ */

.section-stub {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  padding: 80px var(--page-margin);
}

.section-stub p {
  color: var(--c-grey);
}

/* ============================================================
   Mobile
   ============================================================ */

@media (max-width: 900px) {
  .navbar__menu,
  .navbar__powered {
    display: none;
  }
}

/* CTA navbara chowamy wszędzie tam, gdzie widoczne są kropki menu mobile —
   inaczej burger z 10-ui nakłada się na pigułkę */
@media (max-width: 900px) {
  .navbar__cta-wrap {
    display: none;
  }
}

@media (max-width: 900px) {

  .navbar__brand,
  .navbar__cta-wrap {
    width: auto;
  }

  .navbar__brand img {
    width: 131px; /* Figma 3011:5502 (navbar mobile): 130.981×45.443 */
    height: 45px;
  }

  .hero__blob--left {
    display: none;
  }

  .hero__blob--right {
    left: calc(50% + 300px);
    width: 620px;
    height: 772px;
  }

  .hero__blob--small {
    left: calc(50% + 60px);
    top: calc(50% - 240px);
  }
}

/* ============================================================
   Reduced motion
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
