/* Strona główna */

/* ============================= HERO ============================= */
.hero {
  position: relative; isolation: isolate; display: grid; grid-template-rows: 1fr;
  min-height: max(100svh, 700px); overflow: clip;
  background: radial-gradient(120% 90% at 72% 18%, #202020 0%, #0b0b0b 46%, #050505 100%);
}
.hero::before { /* winieta */
  content: ''; position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background: radial-gradient(130% 95% at 50% 38%, transparent 52%, rgba(0, 0, 0, 0.7) 100%);
}
.hero::after { /* przyciemnia dół (czytelność tekstu) i płynnie łączy hero z następną sekcją */
  content: ''; position: absolute; inset: auto 0 0 0; height: 30%; z-index: 7; pointer-events: none;
  background: linear-gradient(transparent, rgba(5, 5, 5, 0.72) 55%, #050505 97%);
}

.hero__sky { position: absolute; inset: 0; pointer-events: none; }
.hero__stars { position: absolute; inset: 0; width: 100%; height: 100%; animation: twinkle 7s ease-in-out infinite alternate; }
@keyframes twinkle { from { opacity: 0.55; } to { opacity: 1; } }

.hero__moon {
  position: absolute; right: 11%; top: 11%; width: min(46vw, 66vh); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 36% 34%, #fff 0%, #f2f2f2 40%, #d2d2d2 74%, #adadad 100%);
  box-shadow: 0 0 120px 24px rgba(255, 255, 255, 0.13), 0 0 380px 110px rgba(255, 255, 255, 0.05);
}
.hero__moon::after { /* miękkie "morza" i kratery: bez ostrych kółek, które układały się w buźkę */
  content: ''; position: absolute; inset: 0; border-radius: 50%;
  background:
    radial-gradient(ellipse 14% 11% at 61% 26%, rgba(0, 0, 0, 0.1), transparent 100%),
    radial-gradient(ellipse 20% 15% at 30% 62%, rgba(0, 0, 0, 0.085), transparent 100%),
    radial-gradient(ellipse 12% 14% at 74% 68%, rgba(0, 0, 0, 0.075), transparent 100%),
    radial-gradient(ellipse 15% 9% at 20% 28%, rgba(0, 0, 0, 0.06), transparent 100%),
    radial-gradient(ellipse 9% 9% at 47% 50%, rgba(0, 0, 0, 0.055), transparent 100%),
    radial-gradient(ellipse 8% 12% at 82% 42%, rgba(0, 0, 0, 0.05), transparent 100%);
}
.hero__beam { /* reflektor */
  position: absolute; left: 21%; bottom: 24%; width: 36vh; height: 92vh; transform-origin: 50% 100%; opacity: 0.5;
  background: linear-gradient(to top, rgba(255, 255, 255, 0.22), transparent 88%); filter: blur(9px); mix-blend-mode: screen;
  clip-path: polygon(47% 100%, 53% 100%, 100% 0, 0 0);
}

.hero__layer { position: absolute; bottom: 0; left: -7%; max-width: none; pointer-events: none; will-change: transform; }
.hero__layer--far { z-index: 1; }
.hero__layer--mid { z-index: 2; }
.hero__layer--near { z-index: 5; }

/* Tytuł: biały z mix-blend-mode: difference. Na tarczy księżyca litery robią się czarne.
   UWAGA: rodzice elementów z blend-mode nie mogą tworzyć własnego kontekstu nakładania (transform, z-index, opacity). */
.hero__content { align-self: end; padding: 0 var(--gutter) clamp(210px, 29vh, 320px); pointer-events: none; }
.hero__title { display: grid; justify-items: start; position: relative; }
.hero__word, .hero__sub { position: relative; z-index: 4; mix-blend-mode: difference; color: #fff; }
.hero__word { font-size: clamp(58px, 17.4vw, 340px); line-height: 0.8; letter-spacing: -0.02em; margin-left: -0.025em; white-space: nowrap; }
.hero__sub { font-size: clamp(34px, 7.2vw, 140px); line-height: 1; margin-top: -0.1em; padding-left: 0.5vw; }
.hero__word .char { display: inline-block; }

.hero__frame { position: absolute; inset: calc(var(--header-h) + 14px) calc(var(--gutter) - 6px) 22px; z-index: 6; pointer-events: none; }
.hero__frame .crop { opacity: 0.45; }

.hero__ui { position: absolute; inset: 0; z-index: 8; display: flex; flex-direction: column; justify-content: space-between; pointer-events: none; }
.hero__ui > * { pointer-events: none; }
.hero__ui a, .hero__ui .btn { pointer-events: auto; }
.hero__top { display: flex; justify-content: space-between; align-items: center; padding-top: calc(var(--header-h) + 28px); color: var(--fg-2); }
.rec-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #fff; margin-right: 6px; animation: blink 1.4s steps(1) infinite; }
.hero__rec { display: inline-flex; align-items: center; gap: 10px; font-variant-numeric: tabular-nums; }
.rec-dot { margin-right: 0; }
.hero__bottom {
  display: grid; grid-template-columns: minmax(0, 1.2fr) auto minmax(0, 1fr); gap: clamp(20px, 3vw, 48px); align-items: end; padding-bottom: clamp(28px, 4.5vh, 52px);
}
.hero__lead { max-width: 38ch; color: var(--fg-2); font-size: clamp(15px, 1.2vw, 18px); line-height: 1.55; }
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero__status { justify-self: end; display: inline-flex; align-items: center; gap: 12px; color: var(--fg-2); font-variant-numeric: tabular-nums; }
.hero__scroll {
  position: absolute; z-index: 9; right: var(--gutter); top: 50%; display: inline-flex; align-items: center; gap: 10px; color: var(--fg-3);
  writing-mode: vertical-rl; translate: 0 -50%; /* "translate" zamiast transform: GSAP nie nadpisze wyśrodkowania */
}
.hero__scroll .icon { width: 14px; height: 14px; }

/* początkowe stany intro (odsłaniane z JS) */
.js:not(.motion-failed) [data-hero-in], .js:not(.motion-failed) [data-hero-fade] { opacity: 0; }
.js:not(.motion-failed) [data-hero-word], .js:not(.motion-failed) [data-hero-sub] { visibility: hidden; }

@keyframes blink { 50% { opacity: 0; } }

/* ============================= MANIFEST ============================= */
.manifest { padding-block: clamp(120px, 17vw, 280px) clamp(100px, 14vw, 220px); }
.label { color: var(--fg-3); margin-bottom: clamp(28px, 4vw, 56px); }
.manifest__text {
  font: 900 clamp(30px, 5vw, 88px)/1.04 var(--font-display); font-stretch: 66%; text-transform: uppercase; letter-spacing: -0.008em; max-width: 33ch;
}
.manifest__text em {
  font: italic 300 1.04em/1 var(--font-serif); font-stretch: 100%; text-transform: none; letter-spacing: -0.02em; padding-inline: 0.04em;
}

/* ============================= LICZBY ============================= */
.stats { border-block: 1px solid var(--line); }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: clamp(36px, 5vw, 80px) clamp(16px, 2vw, 36px); border-left: 1px solid var(--line); display: grid; gap: 18px; align-content: start; }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat__num { font-size: clamp(64px, 9.5vw, 170px); line-height: 0.82; font-variant-numeric: tabular-nums; }
.stat__label { color: var(--fg-3); display: flex; align-items: center; gap: 10px; }
.stat__label .status-pill__dot { flex: none; }
.stat--ticker { position: relative; }
.stat__cur { font-size: 0.45em; margin-left: 0.12em; vertical-align: 0.75em; opacity: 0.7; }
.stat--ticker .stat__num { font-size: clamp(48px, 7.2vw, 128px); white-space: nowrap; }
.stat__blip { position: absolute; left: clamp(16px, 2vw, 36px); top: clamp(14px, 1.8vw, 28px); opacity: 0; color: var(--fg); }
.stat--ticker.is-tick .stat__num { animation: tick-flash 1.1s var(--ease-out); }
@keyframes tick-flash { 0% { text-shadow: 0 0 0 transparent; } 18% { text-shadow: 0 0 36px rgba(255, 255, 255, 0.55); } 100% { text-shadow: 0 0 0 transparent; } }

/* ============================= ŚWIAT (poziomy scroll) ============================= */
.features { position: relative; }
.features__pin {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr auto;
  min-height: 100svh; padding-block: calc(var(--header-h) + 28px) 0; overflow: clip;
}
.features__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding-bottom: clamp(24px, 3.4vw, 48px); }
.features__head .label { margin-bottom: 18px; }
.features__counter { color: var(--fg-3); font-variant-numeric: tabular-nums; padding-bottom: 8px; }
.features__viewport { align-self: center; overflow: visible; }
.features__track { display: flex; gap: clamp(14px, 1.6vw, 26px); padding-inline: var(--gutter); width: max-content; will-change: transform; }
.features__bar { height: 2px; margin: clamp(24px, 3.4vh, 44px) var(--gutter) clamp(24px, 4vh, 48px); background: var(--line); }
.features__bar i { display: block; height: 100%; background: var(--fg); transform: scaleX(0); transform-origin: left; }

.feature {
  --emblem-bg: var(--bg);
  position: relative; flex: none; display: grid; grid-template-rows: auto 1fr auto; gap: 24px;
  width: clamp(300px, 36vw, 540px); min-height: clamp(340px, calc(100svh - 440px), 640px); padding: clamp(24px, 2.4vw, 40px);
  border: 1px solid var(--line-2); background: var(--bg);
  transition: background-color 0.6s var(--ease-out), color 0.6s var(--ease-out), border-color 0.6s;
}
.feature:hover { background: var(--fg); color: #050505; border-color: var(--fg); --emblem-bg: var(--fg); }
.feature__no { font-size: clamp(54px, 6vw, 96px); line-height: 0.8; color: transparent; -webkit-text-stroke: 1px currentColor; opacity: 0.55; }
.feature__art { display: grid; place-items: center; min-height: 0; }
.feature__art .emblem { width: min(62%, 240px); height: auto; transition: transform 1s var(--ease-out); }
.feature:hover .feature__art .emblem { transform: scale(1.07) rotate(-3deg); }
.feature__body { display: grid; gap: 14px; align-content: end; }
.feature__title { font-size: clamp(30px, 3.2vw, 52px); line-height: 0.9; }
.feature__body p { max-width: 38ch; font-size: 15px; line-height: 1.6; opacity: 0.8; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.feature:hover .tag { color: #050505; border-color: rgba(0, 0, 0, 0.35); }
@media (min-width: 1024px) and (max-height: 800px) {
  /* niskie okna (laptopy): upraszczamy kartę, żeby cała mieściła się na ekranie podczas przypięcia */
  .features__head .display { font-size: clamp(30px, 4vw, 52px); }
  .features__pin { padding-top: calc(var(--header-h) + 14px); }
  .feature { gap: 12px; padding: 20px; min-height: 0; }
  .feature__no { display: none; }
  .feature__art .emblem { width: min(36%, 120px); }
  .feature__body { gap: 10px; }
  .feature__title { font-size: clamp(26px, 2.6vw, 40px); }
  .feature__body p { font-size: 14px; line-height: 1.5; }
  .features__bar { margin-block: 18px 22px; }
}
.feature--end { place-content: center; justify-items: start; background: transparent; border-style: dashed; grid-template-rows: auto auto; gap: 32px; }
.feature--end:hover { background: transparent; color: var(--fg); border-color: var(--line-2); }

/* ============================= OPOWIEŚĆ ============================= */
.lore__grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 7vw, 140px); align-items: start; }
.lore .label { color: var(--fg-3); }
.lore__head .display { font-size: clamp(64px, 12vw, 220px); line-height: 0.82; }
.lore__body { display: grid; gap: 1.3em; font-size: clamp(20px, 1.9vw, 30px); line-height: 1.5; padding-top: clamp(0px, 3vw, 48px); color: #1a1a1a; }
.lore__body p:first-child::first-letter {
  float: left; font: 900 5.2em/0.78 var(--font-display); font-stretch: 62%; padding: 0.06em 0.1em 0 0; text-transform: uppercase;
}
.lore__more { margin-top: 12px; }

/* ============================= SKLEP (zajawka) ============================= */
.teaser-shop__title { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; flex-wrap: wrap; }

/* ============================= KROKI ============================= */
.steps__list { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-2); counter-reset: step; }
.step { padding: clamp(28px, 3vw, 52px) clamp(20px, 2.6vw, 44px) clamp(36px, 4vw, 64px) 0; display: grid; gap: 16px; align-content: start; border-right: 1px solid var(--line); }
.step + .step { padding-left: clamp(20px, 2.6vw, 44px); }
.step:last-child { border-right: 0; }
.step .step__no { font-size: clamp(80px, 10vw, 180px); line-height: 0.8; color: transparent; -webkit-text-stroke: 1px var(--fg-3); }
.step__title { font: 800 clamp(22px, 2.2vw, 34px)/1.05 var(--font-display); font-stretch: 78%; text-transform: uppercase; }
.step p { color: var(--fg-2); max-width: 36ch; line-height: 1.65; }
.step a { text-decoration: underline; text-underline-offset: 3px; color: var(--fg); }
.step .mono { padding: 2px 8px; border: 1px solid var(--line-2); text-transform: none; letter-spacing: 0.04em; font-size: 12px; }
.steps__cta { margin-top: clamp(40px, 5vw, 72px); }

/* ============================= SPOŁECZNOŚĆ ============================= */
.community { padding-bottom: clamp(88px, 12vw, 180px); }
.community__card {
  position: relative; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: clamp(24px, 4vw, 64px);
  padding: clamp(32px, 4.5vw, 72px); border: 1px solid var(--line-2); background: var(--bg-2);
}
.community__card .crop { opacity: 0.9; }
.community__card .crop--tl { top: -1px; left: -1px; } .community__card .crop--tr { top: -1px; right: -1px; }
.community__card .crop--bl { bottom: -1px; left: -1px; } .community__card .crop--br { bottom: -1px; right: -1px; }
.community__logo { width: clamp(56px, 6vw, 96px); height: clamp(56px, 6vw, 96px); fill: currentColor; stroke: none; }
.community__text { display: grid; gap: 14px; }
.community__text .mono { color: var(--fg-3); }
.community__text strong { color: var(--fg); font-weight: 700; }

/* ============================= FAQ ============================= */
.faq__grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 7vw, 140px); align-items: start; }
.faq .label { color: var(--fg-3); }

/* ============================= FINAŁ ============================= */
.finale { padding-block: clamp(80px, 12vw, 200px) clamp(100px, 14vw, 240px); border-top: 1px solid var(--line); text-align: center; overflow: clip; }
.finale__inner { display: grid; gap: clamp(28px, 4vw, 56px); justify-items: center; }
.finale__inner .mono { color: var(--fg-3); }
.finale__cta { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }

/* ============================= GALERIA (opcjonalna) ============================= */
.gallery { padding-bottom: 0; }
.gallery__track { display: flex; gap: clamp(10px, 1.4vw, 22px); padding-inline: var(--gutter); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; cursor: grab; }
.gallery__track::-webkit-scrollbar { display: none; }
.shot { flex: none; width: clamp(280px, 46vw, 760px); aspect-ratio: 16 / 9; overflow: hidden; scroll-snap-align: start; border: 1px solid var(--line); background: var(--bg-2); }
.shot img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.08); transition: filter 0.8s var(--ease-out), transform 1.2s var(--ease-out); }
.shot:hover img { filter: grayscale(0); transform: scale(1.04); }

/* ============================= RESPONSYWNOŚĆ ============================= */
@media (max-width: 1023px) {
  .hero__bottom { grid-template-columns: 1fr; gap: 22px; align-items: start; }
  .hero__status { justify-self: start; }
  .hero__scroll { display: none; }
  .hero__content { padding-bottom: clamp(280px, 40vh, 380px); }
  .hero__moon { right: 6%; top: 21%; width: min(60vw, 44vh); } /* niżej, żeby nie zasłaniać etykiety nad tytułem */
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(odd) { border-left: 0; padding-left: 0; }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .features__pin { min-height: 0; padding-bottom: clamp(48px, 8vw, 96px); }
  .features__track { flex-direction: column; width: auto; padding-inline: var(--gutter); }
  .feature { width: 100%; min-height: 0; grid-template-columns: auto 1fr; grid-template-rows: auto auto; gap: 20px 24px; }
  .feature__no { grid-column: 1; }
  .feature__art { grid-column: 2; justify-self: end; }
  .feature__art .emblem { width: 96px; }
  .feature__body { grid-column: 1 / -1; }
  .feature--end { grid-template-columns: 1fr; }
  .features__bar, .features__counter { display: none; }
  .lore__grid, .faq__grid { grid-template-columns: 1fr; }
  .steps__list { grid-template-columns: 1fr; }
  .step, .step + .step { padding: 28px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .community__card { grid-template-columns: 1fr; justify-items: start; }
}
@media (max-width: 639px) {
  .hero { min-height: max(100svh, 680px); }
  .hero__lead { font-size: 15px; }
  .hero__cta .btn { padding: 1.1em 1.5em; }
  .hero__frame { display: none; }
  .hero__rec { display: none; }
  .hero__top { justify-content: flex-start; }
  .stat__num { font-size: clamp(56px, 20vw, 96px); }
}
