:root {
  --purple: rgb(102, 82, 140);
  --text: rgb(242, 242, 247);
  --muted: rgb(174, 174, 178);
  --bg-top: rgb(31, 28, 41);
  --bg-mid: rgb(15, 15, 20);
  --bg-bottom: rgb(10, 10, 13);
  --header-h: 3.4rem;
  --banner-h: 3.35rem;
  --banner-pad: 0.32rem;
  --banner-r: calc(var(--banner-h) / 2);
  --view-pad-y: 0.28rem;
  --view-font: 0.8rem;
  --view-h: calc(var(--view-font) * 1.2 + 2 * var(--view-pad-y));
  --banner-top: 0.4rem;
  --header-top: calc(var(--banner-top) + var(--banner-h) + 0.45rem);
}

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

html {
  height: 100%;
  background-color: var(--bg-bottom);
  overscroll-behavior-y: none;
}

body {
  min-height: 100%;
  margin: 0;
  padding-top: calc(var(--header-top) + var(--header-h) + 0.6rem);
  display: flex;
  flex-direction: column;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.5;
  background-color: var(--bg-bottom);
  background-image:
    radial-gradient(
      ellipse 90% 52% at 50% -8%,
      rgba(102, 82, 140, 0.32),
      rgba(56, 51, 77, 0.12) 42%,
      transparent 72%
    ),
    linear-gradient(180deg, var(--bg-top), var(--bg-mid) 48%, var(--bg-bottom));
  background-attachment: fixed;
}

.site-header {
  position: fixed;
  top: var(--header-top);
  left: 50%;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: calc(100% - 1.8rem);
  max-width: 1080px;
  min-height: var(--header-h);
  padding: 0.45rem 0.6rem 0.45rem 1.2rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  transform: translateX(-50%);
  transition:
    top 0.3s cubic-bezier(0.22, 1, 0.36, 1),
    max-width 0.3s cubic-bezier(0.22, 1, 0.36, 1),
    background-color 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

.site-header.is-stuck {
  top: calc(var(--banner-top) + var(--banner-h) + 0.3rem);
  max-width: 920px;
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(20, 18, 28, 0.72);
  backdrop-filter: blur(22px) saturate(1.6);
  -webkit-backdrop-filter: blur(22px) saturate(1.6);
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.42),
    0 1px 2px rgba(0, 0, 0, 0.3);
}

@media (prefers-reduced-motion: reduce) {
  .site-header {
    transition: none;
  }
}

.store-banner {
  position: fixed;
  top: var(--banner-top);
  left: 50%;
  z-index: 50;
  width: calc(100% - 1.8rem);
  max-width: 1080px;
  height: var(--banner-h);
  transform: translateX(-50%);
}

.store-banner-inner {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  height: 100%;
  padding: var(--banner-pad);
  padding-right: calc((var(--banner-h) - var(--view-h)) / 2);
  border-radius: var(--banner-r);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(28, 28, 30, 0.88);
  backdrop-filter: blur(22px) saturate(1.6);
  -webkit-backdrop-filter: blur(22px) saturate(1.6);
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.04);
  color: var(--text);
  text-decoration: none;
}

.store-banner-inner:hover {
  text-decoration: none;
}

.store-banner-icon {
  width: calc(var(--banner-h) - 2 * var(--banner-pad));
  height: calc(var(--banner-h) - 2 * var(--banner-pad));
  object-fit: contain;
  flex-shrink: 0;
}

.store-banner-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  flex: 1;
  line-height: 1.15;
}

.store-banner-title {
  font-size: 0.92rem;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.store-banner-sub {
  font-size: 0.7rem;
  color: var(--muted);
}

.store-banner-view {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: var(--view-pad-y) 0.85rem;
  border: none;
  border-radius: 999px;
  background: #0a84ff;
  color: #fff;
  font-size: var(--view-font);
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.2;
}

.store-banner.is-soon .store-banner-view {
  opacity: 0.72;
}

.store-banner.is-soon .store-banner-inner {
  cursor: default;
}

@media (max-width: 860px) {
  .store-banner-title {
    font-size: 0.86rem;
  }

  .store-banner-sub {
    font-size: 0.65rem;
  }

  /* Logo po lewej prowadzi na stronę główną, więc link do niej jest zbędny. */
  .nav > a:first-child,
  .nav .sep {
    display: none;
  }
}

img {
  max-width: 100%;
  height: auto;
}

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

a:hover {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.brand {
  font-weight: 650;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  color: var(--muted);
}

.nav a {
  text-decoration: none;
}

.nav a.is-current {
  color: var(--purple);
  font-weight: 600;
}

.nav .sep {
  opacity: 0.45;
  user-select: none;
}

.lang-menu {
  position: relative;
  margin-left: 0.4rem;
}

.lang-menu > summary {
  display: flex;
  align-items: center;
  gap: 0.32rem;
  padding: 0.24rem 0.6rem;
  border: 1px solid rgba(242, 242, 247, 0.18);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  list-style: none;
  cursor: pointer;
  user-select: none;
}

.lang-menu > summary::-webkit-details-marker {
  display: none;
}

.lang-menu > summary::after {
  content: "";
  width: 0.3rem;
  height: 0.3rem;
  margin-top: -0.16rem;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  opacity: 0.65;
  transition: transform 0.16s ease;
}

.lang-menu > summary:hover {
  border-color: var(--purple);
  color: var(--text);
}

.lang-menu[open] > summary {
  border-color: var(--purple);
  color: var(--text);
}

.lang-menu[open] > summary::after {
  margin-top: 0.08rem;
  transform: rotate(-135deg);
}

.lang-panel {
  position: absolute;
  top: calc(100% + 0.45rem);
  right: 0;
  z-index: 20;
  min-width: 9.5rem;
  padding: 0.3rem;
  border: 1px solid rgba(242, 242, 247, 0.12);
  border-radius: 0.9rem;
  background: rgba(30, 27, 38, 0.92);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  transform-origin: top right;
  animation: lang-pop 0.16s ease;
}

@keyframes lang-pop {
  from {
    opacity: 0;
    transform: scale(0.94) translateY(-0.3rem);
  }
}

.lang-item {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.6rem;
  border-radius: 0.62rem;
  color: var(--text);
  font-size: 0.95rem;
  white-space: nowrap;
}

.lang-item::before {
  content: "✓";
  width: 0.85rem;
  color: var(--purple);
  font-weight: 700;
  visibility: hidden;
}

html[lang="pl"] .lang-item[data-lang="pl"]::before,
html[lang="en"] .lang-item[data-lang="en"]::before {
  visibility: visible;
}

html[lang="en"] [data-i18n="pl"],
html:not([lang="en"]) [data-i18n="en"] {
  display: none !important;
}

.lang-item:hover {
  background: rgba(242, 242, 247, 0.08);
  text-decoration: none;
}

@media (prefers-reduced-motion: reduce) {
  .lang-panel {
    animation: none;
  }
}

main {
  flex: 1;
  width: min(1080px, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 0.5rem 0 3.5rem;
}

.intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0.15rem 0 2.25rem;
}

.hook {
  max-width: 42rem;
  margin: 0 0 0.85rem;
  color: #fff;
  font-size: clamp(1.5rem, 3.6vw, 2.15rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.22;
}

.scene {
  width: min(11.75rem, 52vw);
  margin: 0 auto;
}

.hero-art {
  display: block;
  width: 100%;
}

.copy {
  max-width: 38rem;
  margin-top: 1.1rem;
}

.copy .lead {
  margin: 0 0 0.55rem;
  color: var(--purple);
  font-size: clamp(1.2rem, 2.6vw, 1.55rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.28;
}

.copy p {
  margin: 0;
  color: var(--muted);
}

.page {
  width: min(40rem, 100%);
  margin: 2rem auto 0;
}

.page h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.7rem, 4vw, 2.2rem);
  letter-spacing: -0.03em;
}

.page p,
.page li {
  color: var(--muted);
}

.page p {
  margin: 0 0 1rem;
}

.page a {
  color: var(--purple);
}

.mail {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
}

.page h2 {
  margin: 2rem 0 0.7rem;
  font-size: 1.05rem;
  font-weight: 650;
  color: var(--text);
}

.page ul {
  margin: 0 0 1rem;
  padding-left: 1.15rem;
}

.page li {
  margin-bottom: 0.4rem;
}

.page li b {
  font-weight: 600;
  color: var(--text);
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  justify-content: space-between;
  padding: 1.25rem 1.5rem 1.75rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.demo {
  padding: 1rem 0 3rem;
}

.next {
  width: min(40rem, 100%);
  margin: 0 auto;
  padding: 1.5rem 0 4rem;
  text-align: center;
}

.pill {
  display: inline-block;
  margin-bottom: 0.7rem;
  padding: 0.18rem 0.6rem;
  border: 1px solid rgba(102, 82, 140, 0.6);
  border-radius: 999px;
  color: var(--purple);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.next h2 {
  margin: 0 0 0.6rem;
  font-size: clamp(1.3rem, 3vw, 1.6rem);
  letter-spacing: -0.03em;
}

.next p {
  margin: 0;
  color: var(--muted);
}

.thread {
  --user-inset: 42%;
  --rock-width: 58%;
  display: flex;
  flex-direction: column;
  gap: 2.6rem;
  width: min(46rem, 100%);
  margin: 0 auto;
}

.turn {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.turn-user {
  align-items: flex-end;
  padding-left: var(--user-inset);
}

.turn-rock {
  align-items: flex-start;
}

.turn-rock > .card {
  width: 100%;
  max-width: var(--rock-width);
}

.photo-chip {
  position: relative;
  width: 220px;
  height: 284px;
  border-radius: 42px;
  overflow: hidden;
}

.photo-chip img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
}

html:not(.demo-guy) .photo-girl,
html.demo-guy .photo-guy {
  opacity: 1;
}

.bubble,
.card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(28px) saturate(1.35);
  -webkit-backdrop-filter: blur(28px) saturate(1.35);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.bubble {
  margin: 0;
  max-width: 100%;
  padding: 0.62rem 1.1rem;
  border-radius: 999px;
  font-size: 0.95rem;
}

a.bubble {
  display: inline-block;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

a.bubble:hover {
  text-decoration: none;
  border-color: rgba(102, 82, 140, 0.55);
}

.card {
  width: 100%;
  padding: 1rem;
  border-radius: 24px;
}

.card-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.9rem;
  font-weight: 650;
}

.card-head .badge {
  margin-left: auto;
  flex-shrink: 0;
}

.upcoming {
  border-style: dashed;
  border-color: rgba(102, 82, 140, 0.55);
  background: rgba(255, 255, 255, 0.05);
}

.thread-soon {
  align-self: center;
  margin: 0;
  padding: 0.2rem 0.7rem;
  border: 1px dashed rgba(102, 82, 140, 0.6);
  border-radius: 999px;
  color: var(--purple);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.provider-logo {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.signal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.signal-name {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.95rem;
  font-weight: 500;
}

.info-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1rem;
  height: 1rem;
  padding: 0;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  background: transparent;
  font-size: 0.65rem;
  font-style: italic;
  font-weight: 600;
  font-family: inherit;
  line-height: 1;
  color: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  transition:
    border-color 0.15s ease,
    color 0.15s ease,
    background 0.15s ease;
}

.info-btn:hover {
  border-color: rgba(255, 255, 255, 0.65);
  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.06);
}

.info-btn:focus-visible {
  outline: 2px solid rgba(102, 82, 140, 0.85);
  outline-offset: 2px;
}

.signal-sheet {
  width: min(100%, 34rem);
  max-height: min(88dvh, 720px);
  margin: auto auto 0;
  padding: 0;
  border: none;
  border-radius: 24px 24px 0 0;
  background: rgba(18, 16, 26, 0.96);
  color: var(--text);
  box-shadow: 0 -12px 48px rgba(0, 0, 0, 0.45);
}

.signal-sheet::backdrop {
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

@media (min-width: 640px) {
  .signal-sheet {
    margin: auto;
    border-radius: 24px;
  }
}

.signal-sheet-inner {
  display: flex;
  flex-direction: column;
  max-height: min(88dvh, 720px);
}

.signal-sheet-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem 1.5rem 0;
}

.signal-logo {
  display: block;
  max-width: 9rem;
  max-height: 3rem;
  width: auto;
  height: auto;
  object-fit: contain;
}

.signal-close {
  flex-shrink: 0;
  padding: 0;
  border: none;
  background: none;
  color: var(--text);
  font: inherit;
  font-size: 1rem;
  font-weight: 650;
  cursor: pointer;
}

.signal-sheet-body {
  overflow: auto;
  padding: 1.25rem 1.5rem 1.5rem;
}

.signal-title {
  margin: 0 0 1.25rem;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.signal-block + .signal-block {
  margin-top: 1.25rem;
}

.signal-block h3 {
  margin: 0 0 0.45rem;
  font-size: 0.92rem;
  font-weight: 650;
}

.signal-block p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.95rem;
  line-height: 1.55;
  white-space: pre-line;
}

.signal-more {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 1.35rem;
  color: var(--purple);
  font-size: 0.95rem;
  font-weight: 650;
  text-decoration: none;
}

.signal-more:hover {
  text-decoration: underline;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 28px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.badge-hit {
  background: var(--purple);
  color: #fff;
}

.badge-soft {
  background: rgba(102, 82, 140, 0.12);
  border: 1px solid rgba(102, 82, 140, 0.75);
  color: rgb(196, 184, 220);
  font-weight: 550;
}

.summary {
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--text);
}

.details-lead {
  margin: 0 0 0.9rem;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--muted);
}

.regions {
  position: relative;
  width: 240px;
  aspect-ratio: 533 / 800;
  margin: 0 0 1rem;
  border-radius: 20px;
  overflow: hidden;
}

.regions img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
}

html:not(.demo-guy) .boxes-guy,
html.demo-guy .boxes-girl {
  display: none;
}

.box {
  position: absolute;
  border: 2px solid var(--purple);
  border-radius: 10px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35);
}

.box b {
  position: absolute;
  top: -0.45rem;
  left: -0.45rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 50%;
  background: var(--purple);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
  line-height: 1;
}

.num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.05rem;
  height: 1.05rem;
  margin-right: 0.35rem;
  border-radius: 50%;
  background: var(--purple);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
}

.readout {
  display: grid;
  gap: 0.45rem;
  margin: 0;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.readout > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.readout dt {
  display: flex;
  align-items: flex-start;
  gap: 0.35rem;
  font-size: 0.82rem;
  color: var(--muted);
}

.readout dd {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 500;
  text-align: right;
}

@media (max-width: 800px) {
  body {
    background-attachment: scroll;
  }

  .thread {
    --user-inset: 16%;
    --rock-width: 78%;
    gap: 1.35rem;
  }

  .photo-chip {
    width: 168px;
    height: 217px;
    border-radius: 32px;
  }

  .regions {
    width: min(220px, 100%);
  }

  .scene {
    width: min(10.5rem, 48vw);
  }

  .readout {
    gap: 0.75rem;
  }

  .readout > div {
    display: grid;
    grid-template-columns: 1.05rem 1fr;
    column-gap: 0.35rem;
    row-gap: 0.2rem;
    align-items: start;
  }

  .readout dt {
    display: contents;
  }

  .readout dt .num {
    grid-column: 1;
    grid-row: 1;
    margin-right: 0;
  }

  .readout-label {
    grid-column: 2;
    grid-row: 1;
  }

  .readout dd {
    grid-column: 2;
    grid-row: 2;
    text-align: left;
    line-height: 1.45;
  }
}

#demo-regions {
  scroll-margin-top: 6rem;
}
