/* Micro Arena — landing (zapis na listę). Kolory z logo pack. */
:root {
  --green:  #39A935;
  --red:    #DE0C2A;
  --yellow: #F8C200;
  --blue:   #1181C5;
  --orange: #EE8B0F;

  --ink:      #111111;
  --gray-700: #4A4A4A;
  --gray-500: #6B6B6B;
  --gray-200: #E8E8E8;
  --gray-100: #F5F5F5;
  --white:    #FFFFFF;
  --night:    #0B0D10;

  --font: 'Poppins', -apple-system, 'Segoe UI', Roboto, sans-serif;
  --r: 12px;
  --r-lg: 20px;
  --gutter: clamp(16px, 4vw, 48px);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--night);
  -webkit-font-smoothing: antialiased;
}

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

.c-green  { color: var(--green); }
.c-red    { color: var(--red); }
.c-yellow { color: var(--yellow); }
.c-blue   { color: var(--blue); }

.eyebrow {
  margin: 0 0 16px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--yellow);
}
.eyebrow--blue {
  color: var(--blue);
  display: inline-block;
  padding-bottom: 6px;
  background: linear-gradient(90deg, var(--green) 0 25%, var(--red) 25% 50%, var(--yellow) 50% 75%, var(--blue) 75%) bottom / 100% 3px no-repeat;
}

/* ========== HERO ========== */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  color: var(--white);
  overflow: hidden;
  background: var(--night) url("assets/img/poster.jpg") center / cover no-repeat;
  contain: paint;
}

.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  transform: translateZ(0); /* własna warstwa GPU: wideo nie przemalowuje reszty strony */
  pointer-events: none;
  opacity: 0; /* pokazujemy dopiero, gdy faktycznie gra; wcześniej widać poster z tła */
  transition: opacity .4s ease;
}
.hero__video.is-playing { opacity: 1; }
/* Bez systemowych przycisków play/pauza (iOS pokazuje je, gdy zablokuje autoplay) */
.hero__video::-webkit-media-controls,
.hero__video::-webkit-media-controls-panel,
.hero__video::-webkit-media-controls-overlay-play-button,
.hero__video::-webkit-media-controls-start-playback-button {
  display: none !important;
  -webkit-appearance: none;
}

.hero__shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(11,13,16,.75) 0%, rgba(11,13,16,.25) 30%, rgba(11,13,16,.35) 60%, rgba(11,13,16,.85) 100%);
}

.hero__top {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px var(--gutter);
}
.logo img { height: clamp(40px, 6vw, 56px); width: auto; }
.hero__link {
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  opacity: .85;
}
.hero__link:hover { opacity: 1; }

.hero__content {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 24px var(--gutter) 120px;
}

.hero__title {
  margin: 0 0 40px;
  font-size: clamp(34px, 6vw, 72px);
  font-weight: 800;
  line-height: 1.08;
  text-transform: uppercase;
  text-shadow: 0 2px 24px rgba(0,0,0,.35);
}

/* ---- formularz ---- */
.signup {
  width: 100%;
  max-width: 560px;
  padding: 24px;
  border-radius: var(--r-lg);
  /* bez rozmycia tła: nad grającym wideo przelicza się co klatkę i tnie scroll */
  background: rgba(11,13,16,.78);
  border: 1px solid rgba(255,255,255,.14);
  text-align: left;
}
.signup__label {
  display: block;
  margin-bottom: 14px;
  font-size: clamp(16px, 2vw, 19px);
  font-weight: 600;
  line-height: 1.35;
}
.signup__row {
  display: flex;
  gap: 8px;
}
.signup__input {
  flex: 1;
  min-width: 0;
  height: 52px;
  padding: 0 18px;
  font: 500 16px var(--font);
  color: var(--ink);
  background: var(--white);
  border: 2px solid transparent;
  border-radius: var(--r);
  outline: none;
}
.signup__input:focus { border-color: var(--yellow); }
.signup__input[aria-invalid="true"] { border-color: var(--red); }
.signup__btn {
  height: 52px;
  padding: 0 24px;
  font: 700 15px var(--font);
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--white);
  background: var(--green);
  border: 0;
  border-radius: var(--r);
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s, transform .15s;
}
.signup__btn:hover { background: #2f9029; }
.signup__btn:active { transform: translateY(1px); }
.signup__btn:disabled { opacity: .6; cursor: wait; }

.signup__consent {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  font-size: 12px;
  line-height: 1.5;
  color: rgba(255,255,255,.75);
  cursor: pointer;
}
.signup__consent input { margin: 2px 0 0; accent-color: var(--green); flex-shrink: 0; }

.signup__msg { margin: 12px 0 0; min-height: 1em; font-size: 14px; font-weight: 600; }
.signup__msg:empty { display: none; }
.signup__msg.is-error { color: #ff6b7d; }
.signup__msg.is-ok { color: #7ee07a; }

.signup.is-done .signup__row,
.signup.is-done .signup__consent { display: none; }

/* ---- wskaźnik przewijania ---- */
.scroll-cue {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--white);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  text-decoration: none;
  opacity: .8;
}
.scroll-cue svg { animation: bob 1.8s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(6px); } }

/* ========== PASEK ZDJĘĆ ========== */
.strip { background: var(--night); }
.strip__track {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.strip__item {
  margin: 0;
  height: clamp(220px, 34vw, 440px);
  overflow: hidden;
}
.strip__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}
.strip__item:hover img { transform: scale(1.04); }
.strip__dots { display: none; }

/* ========== O MICRO ARENA ========== */
.about {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--white);
  overflow: hidden;
}
/* diagonalne kliny w narożnikach */
.about::before,
.about::after {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  pointer-events: none;
}
.about::before { top: 6px; right: 0; background: var(--yellow); clip-path: polygon(100% 0, 100% 100%, 0 0); opacity: .9; }
.about::after  { bottom: 0; left: 0; background: var(--blue); clip-path: polygon(0 0, 100% 100%, 0 100%); opacity: .9; }

.stripe { display: flex; height: 6px; }
.stripe i { flex: 1; }
.stripe i:nth-child(1) { background: var(--green); }
.stripe i:nth-child(2) { background: var(--red); }
.stripe i:nth-child(3) { background: var(--yellow); }
.stripe i:nth-child(4) { background: var(--blue); }

.about__inner {
  position: relative;
  z-index: 1;
  flex: 1;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(56px, 9vh, 96px) var(--gutter) 48px;
}
.about__title {
  max-width: 820px;
  margin: 0 0 20px;
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 800;
  line-height: 1.1;
  text-transform: uppercase;
}
.about__lead {
  max-width: 680px;
  margin: 0 0 40px;
  font-size: clamp(16px, 1.6vw, 18px);
  line-height: 1.65;
  color: var(--gray-700);
}

.facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 40px;
}
.fact {
  padding: 22px 24px;
  border-radius: var(--r-lg);
  background: var(--gray-100);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.fact__num { font-size: clamp(32px, 4vw, 44px); font-weight: 800; line-height: 1; }
.fact__txt { font-size: 14px; color: var(--gray-700); line-height: 1.45; }

.pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  margin-bottom: 40px;
}
.pillar h3 { margin: 14px 0 6px; font-size: 17px; font-weight: 700; }
.pillar p  { margin: 0; font-size: 14px; line-height: 1.6; color: var(--gray-700); }

.badge {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
}
.badge svg { width: 26px; height: 26px; fill: none; stroke: var(--white); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.badge--green  { background: var(--green); }
.badge--red    { background: var(--red); }
.badge--blue   { background: var(--blue); }
.badge--yellow { background: var(--yellow); }

.about__cta {
  display: inline-flex;
  align-items: center;
  height: 52px;
  padding: 0 28px;
  border-radius: var(--r);
  background: var(--ink);
  color: var(--white);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.about__cta:hover { background: #2a2a2a; }

.footer {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 20px var(--gutter) 28px;
  font-size: 13px;
  color: var(--gray-500);
}
.footer__sygnet { width: 28px; height: 28px; }

/* ========== RESPONSYWNOŚĆ ========== */
@media (max-width: 900px) {
  .pillars { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .strip__track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .strip__track::-webkit-scrollbar { display: none; }
  .strip__item { flex: 0 0 100%; height: 72vw; scroll-snap-align: start; }
  .strip__item:hover img { transform: none; }
  .strip__dots { display: flex; justify-content: center; gap: 8px; padding: 12px 0 14px; }
  .strip__dots i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.35); transition: background .2s, width .2s; }
  .strip__dots i.on { width: 22px; border-radius: 4px; background: var(--yellow); }
  .signup { padding: 18px; }
  .signup__row { flex-direction: column; }
  .signup__btn { width: 100%; }
  .facts { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: 1fr; gap: 24px; }
  .about::before, .about::after { width: 110px; height: 110px; }
  .hero__link { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .scroll-cue svg { animation: none; }
}
