/* ===== SupermediaTV — landing ===== */
:root {
  --blue: #0f62fe;
  --blue-dark: #0043ce;
  --ink: #0b1526;
  --ink-soft: #3d4a61;
  --bg: #f4f8ff;
  --surface: #ffffff;
  --radius: 14px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  width: min(1160px, 100% - 2.5rem);
  margin-inline: auto;
}

/* ===== Animacje wejścia ===== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s cubic-bezier(.22,.61,.36,1) var(--d, 0s),
              transform .7s cubic-bezier(.22,.61,.36,1) var(--d, 0s);
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ===== Nagłówek ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(11, 21, 38, .06);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  color: var(--ink);
  text-decoration: none;
}

.brand-word {
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -.02em;
}

.brand-logo { height: 26px; width: auto; display: block; }

.site-nav {
  display: flex;
  gap: 1.75rem;
  margin-inline: auto;
}

.site-nav a {
  position: relative;
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 500;
  font-size: .95rem;
  padding: .35rem 0;
  transition: color .2s;
}

.site-nav a:hover { color: var(--ink); }

.site-nav a.is-active { color: var(--ink); font-weight: 600; }

.site-nav a.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 3px;
  border-radius: 3px;
  background: var(--blue);
}

/* ===== Przyciski ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .8rem 1.5rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: .95rem;
  text-decoration: none;
  transition: transform .2s, box-shadow .2s, background .2s;
}

.btn svg { width: 15px; height: 15px; }

.btn-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 6px 18px rgba(15, 98, 254, .28);
}

.btn-primary:hover {
  background: var(--blue-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(15, 98, 254, .35);
}

.btn-ghost {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid rgba(11, 21, 38, .15);
}

.btn-ghost:hover { transform: translateY(-2px); border-color: var(--blue); color: var(--blue); }

.btn-header { padding: .55rem 1.1rem; font-size: .88rem; }

/* ===== HERO ===== */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(115deg, #f6faff 0%, #e3efff 55%, #cfe4ff 100%);
}

.hero-bg {
  position: absolute;
  inset: 0;
}

.hero-bg img {
  position: absolute;
  right: 0;
  bottom: 0;
  width: min(52%, 900px);
  height: 100%;
  object-fit: cover;
  object-position: right center;
  /* Płynne zanikanie w gradient tła hero (bez ostrej białej ściany) */
  -webkit-mask-image: linear-gradient(to right, transparent 0, rgba(0,0,0,.45) 22%, #000 48%);
  mask-image: linear-gradient(to right, transparent 0, rgba(0,0,0,.45) 22%, #000 48%);
  animation: hero-img 1.2s .2s cubic-bezier(.22,.61,.36,1) both;
}

/* Treść hero trzymana w strefie zanikania obrazu */
.hero h1,
.hero .lede { max-width: min(620px, calc(52vw - 3rem)); }

/* Poniżej 1024px: bez zdjęcia — hero to czysty biało-błękitny gradient,
   tekst na pełnej szerokości, zero problemów z czytelnością */
@media (max-width: 1023px) {
  .hero-bg { display: none; }

  .hero h1,
  .hero .lede { max-width: 620px; }
}

@keyframes hero-img {
  from { opacity: 0; transform: translateX(48px) scale(1.03); }
  to   { opacity: 1; transform: none; }
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: clamp(4rem, 9vw, 8rem) 0 clamp(4.5rem, 9vw, 8rem);
  max-width: min(1160px, 100% - 2.5rem);
}

.hero-content > * { max-width: 620px; }

.hero h1 {
  font-size: clamp(2.1rem, 5.2vw, 3.6rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -.03em;
}

.hero h1 .accent { color: var(--blue); }

.lede {
  margin-top: 1.4rem;
  font-size: clamp(1.02rem, 1.6vw, 1.2rem);
  color: var(--ink-soft);
  max-width: 34rem;
}

.lede strong { color: var(--ink); }

/* ===== Odznaki sklepów (oficjalne badge'e) ===== */
.store-badges {
  display: flex;
  flex-wrap: wrap;
  gap: .9rem;
  margin-top: 2.2rem;
}

.store-badge {
  display: inline-block;
  line-height: 0;
  border-radius: 8px;
  overflow: hidden;
  transition: transform .2s, box-shadow .2s;
  box-shadow: 0 6px 16px rgba(11, 21, 38, .22);
}

.store-badge:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(11, 21, 38, .3);
}

.store-badge img {
  height: 56px;
  width: auto;
  display: block;
}

/* ===== Korzyści ===== */
.features {
  background: var(--surface);
  border-bottom: 1px solid rgba(11, 21, 38, .06);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  padding: 3.5rem 0;
}

.feature {
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
}

.feature + .feature {
  border-left: 1px solid rgba(11, 21, 38, .08);
  padding-left: 2.5rem;
}

.feature-icon {
  flex: none;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(15, 98, 254, .09);
  color: var(--blue);
}

.feature-icon svg { width: 26px; height: 26px; }

.feature h2 {
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: -.01em;
  margin-bottom: .3rem;
}

.feature p { color: var(--ink-soft); font-size: .95rem; }

/* ===== Kroki ===== */
.steps { padding: clamp(4rem, 8vw, 6.5rem) 0; }

.section-title {
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -.025em;
}

.section-sub {
  margin-top: .7rem;
  color: var(--ink-soft);
  max-width: 38rem;
}

.steps-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
  counter-reset: step;
}

.steps-list li {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 2rem 1.8rem;
  border: 1px solid rgba(11, 21, 38, .07);
  box-shadow: 0 2px 10px rgba(11, 21, 38, .04);
  transition: transform .25s, box-shadow .25s;
}

.steps-list li:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(15, 98, 254, .12);
}

.step-num {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-weight: 700;
  margin-bottom: 1.1rem;
}

.steps-list h3 { font-size: 1.1rem; margin-bottom: .35rem; letter-spacing: -.01em; }

.steps-list p { color: var(--ink-soft); font-size: .95rem; }

.steps-list p a {
  color: var(--blue);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.steps-list p a:hover { color: var(--blue-dark); }

/* ===== CTA ===== */
.cta {
  background: linear-gradient(120deg, #0043ce, #0f62fe 55%, #3b8dff);
  color: #fff;
  padding: clamp(3.5rem, 7vw, 5.5rem) 0;
}

.cta-inner { text-align: center; }

.cta h2 {
  font-size: clamp(1.6rem, 3.4vw, 2.3rem);
  font-weight: 800;
  letter-spacing: -.025em;
}

.cta p {
  margin-top: .8rem;
  opacity: .9;
  max-width: 32rem;
  margin-inline: auto;
}

.cta-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.cta .btn-primary {
  background: #fff;
  color: var(--blue-dark);
  box-shadow: 0 8px 22px rgba(0, 0, 0, .2);
}

.cta .btn-primary:hover { background: #eaf1ff; }

.cta .btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, .5);
}

.cta .btn-ghost:hover { border-color: #fff; color: #fff; }

/* ===== Regulamin ===== */
.regulamin { padding: clamp(4rem, 8vw, 6.5rem) 0; }

.regulamin-inner { max-width: 860px; }

.legal-text {
  margin-top: 2.5rem;
  background: var(--surface);
  border: 1px solid rgba(11, 21, 38, .07);
  border-radius: var(--radius);
  padding: clamp(1.8rem, 4vw, 3rem);
  box-shadow: 0 2px 10px rgba(11, 21, 38, .04);
}

.legal-text h3 {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -.01em;
  margin: 2rem 0 .8rem;
}

.legal-text h3:first-child { margin-top: 0; }

.legal-text p,
.legal-text li { color: var(--ink-soft); font-size: .95rem; }

.legal-text p + p,
.legal-text ol,
.legal-text ul { margin-top: .6rem; }

.legal-text ul,
.legal-text ol { padding-left: 1.4rem; }

.legal-text li + li { margin-top: .5rem; }

.legal-text ol ol,
.legal-text ul ul { margin-top: .5rem; }

.legal-text a {
  color: var(--blue);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-text a:hover { color: var(--blue-dark); }

/* ===== Stopka ===== */
.site-footer {
  background: var(--surface);
  border-top: 1px solid rgba(11, 21, 38, .06);
  padding: 2.2rem 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-inner .brand-word { font-size: 1rem; }

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

.site-footer a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: .9rem;
  transition: color .2s;
}

.site-footer a:hover { color: var(--blue); }

.site-footer small { color: var(--ink-soft); font-size: .82rem; }

/* ===== Responsywność ===== */
@media (max-width: 900px) {
  .features-grid { grid-template-columns: 1fr; gap: 1.8rem; padding: 2.8rem 0; }

  .feature + .feature { border-left: none; padding-left: 0; border-top: 1px solid rgba(11, 21, 38, .08); padding-top: 1.8rem; }

  .steps-list { grid-template-columns: 1fr; }

  .site-nav { display: none; }

  .hero-content { padding-top: 3rem; padding-bottom: 3.5rem; }

  .hero h1 { font-size: clamp(1.9rem, 7vw, 2.6rem); }
}

@media (max-width: 520px) {
  .header-inner { justify-content: space-between; height: 64px; }

  /* Na małym ekranie odznaki stoją jedna pod drugą — wyrównujemy im
     szerokość, żeby nie wyglądały na różne rozmiary */
  .store-badges { flex-direction: column; align-items: flex-start; }

  .store-badge { width: 176px; }

  .store-badge img { width: 100%; height: auto; }

  .footer-inner { flex-direction: column; text-align: center; }
}
