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

:root {
  --bg: #141414;
  --text: #f2f2f2;
  --muted: #a5a5a5;
  --magenta: #CB21ED;
  --yellow: #FBDF27;
  --purple: #601D84;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
}

.wrap { max-width: 860px; margin: 0 auto; padding: 0 24px; }

header.site {
  padding: 20px 0;
}
header.site .wrap { display: flex; align-items: center; justify-content: space-between; }
header.site svg { height: 44px; width: auto; display: block; }
header.site a.home { display: inline-block; line-height: 0; }
header.site nav a {
  color: var(--muted); text-decoration: none; font-size: 14px; margin-left: 20px;
}
header.site nav a:hover { color: var(--text); }

/* ---------- landing ---------- */

.hero { text-align: center; padding: 72px 0 56px; }
.hero h1 {
  font-size: clamp(32px, 6vw, 56px);
  line-height: 1.15;
  font-weight: 800;
}
.hero h1 .accent { color: var(--yellow); }
.hero p.lead { margin: 20px auto 0; max-width: 560px; color: var(--muted); font-size: 18px; }

.cta {
  display: inline-block;
  margin-top: 36px;
  background: var(--magenta);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 1px;
  padding: 16px 48px;
  border-radius: 999px;
  transition: transform .15s ease, box-shadow .15s ease;
}
.cta:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(203, 33, 237, .45); }
.stores { margin-top: 16px; color: var(--muted); font-size: 14px; }

section.block { padding: 48px 0; border-top: 1px solid #2a2a2a; }
section.block h2 { font-size: 26px; margin-bottom: 24px; }
section.block h2 .accent { color: var(--magenta); }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step { background: #1d1d1d; border-radius: 16px; padding: 24px; }
.step .num { color: var(--yellow); font-size: 28px; font-weight: 800; }
.step h3 { margin: 8px 0 6px; font-size: 17px; }
.step p { color: var(--muted); font-size: 15px; }

.team { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.person { background: #1d1d1d; border-radius: 16px; padding: 24px; }
.person h3 { font-size: 18px; }
.person .role { color: var(--magenta); font-weight: 600; font-size: 14px; margin-top: 2px; }
.person p { color: var(--muted); font-size: 15px; margin-top: 10px; }
.company-note { margin-top: 20px; color: var(--muted); font-size: 14px; }

@media (max-width: 640px) {
  .steps, .team { grid-template-columns: 1fr; }
}

/* ---------- legal pages ---------- */

main.legal {
  background: #fff;
  color: #1a1a1a;
}
main.legal .wrap { max-width: 760px; padding-top: 48px; padding-bottom: 64px; }
main.legal h1 { font-size: 30px; margin-bottom: 8px; }
main.legal .meta { color: #666; font-size: 14px; margin-bottom: 28px; }
main.legal h2 { font-size: 21px; margin: 32px 0 12px; }
main.legal h3 { font-size: 17px; margin: 20px 0 8px; }
main.legal p, main.legal li { font-size: 16px; margin-bottom: 10px; }
main.legal ul, main.legal ol { padding-left: 24px; margin-bottom: 12px; }
main.legal a { color: var(--purple); }
main.legal blockquote {
  border-left: 4px solid var(--yellow);
  background: #faf7e8;
  padding: 12px 16px;
  margin: 16px 0;
  font-size: 15px;
}
main.legal .tablewrap { overflow-x: auto; margin: 16px 0; }
main.legal table { border-collapse: collapse; width: 100%; font-size: 14px; }
main.legal th, main.legal td { border: 1px solid #ddd; padding: 8px 10px; text-align: left; vertical-align: top; }
main.legal th { background: #f5f5f5; }
main.legal .disclaimer { color: #666; font-size: 13px; font-style: italic; margin-top: 32px; }

/* ---------- footer ---------- */

footer.site {
  border-top: 1px solid #2a2a2a;
  padding: 32px 0 40px;
  font-size: 14px;
  color: var(--muted);
}
footer.site .legal-links { margin-bottom: 14px; }
footer.site .legal-links a { color: var(--text); text-decoration: none; margin-right: 18px; }
footer.site .legal-links a:hover { color: var(--magenta); }
footer.site .company { line-height: 1.7; }

/* ---------- hero v2 (photo) ---------- */

.hero-photo {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background:
    linear-gradient(to bottom, rgba(20,20,20,.35) 0%, rgba(20,20,20,.08) 55%, var(--bg) 100%),
    url('/img/hero.jpg') center / cover no-repeat;
}
@media (max-width: 700px) {
  .hero-photo {
    background:
      linear-gradient(to bottom, rgba(20,20,20,.4) 0%, rgba(20,20,20,.12) 55%, var(--bg) 100%),
      url('/img/hero-sm.jpg') center / cover no-repeat;
  }
}
.hero-photo .inner {
  margin: 96px 24px;
  padding: 48px 40px;
  max-width: 720px;
  border-radius: 28px;
  background: rgba(10, 10, 10, .42);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, .08);
}
.hero-photo h1 {
  font-size: clamp(34px, 6.5vw, 62px);
  line-height: 1.12;
  font-weight: 800;
  text-shadow: 0 2px 24px rgba(0,0,0,.55);
}
.hero-photo h1 .accent { color: var(--yellow); }
.hero-photo p.lead {
  margin: 20px auto 0; max-width: 620px; font-size: 19px;
  color: #eaeaea; text-shadow: 0 1px 12px rgba(0,0,0,.6);
}
header.overlay {
  position: absolute; top: 0; left: 0; right: 0; z-index: 2; padding: 20px 0;
}
header.overlay nav {
  background: rgba(10, 10, 10, .45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 999px;
  padding: 10px 22px;
}
header.overlay nav a {
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  margin-left: 18px;
}
header.overlay nav a:first-child { margin-left: 0; }
header.overlay nav a:hover { color: var(--yellow); }

/* ---------- decks ---------- */

.decks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.deck {
  position: relative;
  display: block;
  text-decoration: none;
  color: var(--text);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 0 36px var(--glow, rgba(203, 33, 237, .30)), 0 6px 20px rgba(0, 0, 0, .30);
  transition: transform .15s ease, box-shadow .15s ease;
}
.deck:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 56px var(--glow-hover, var(--glow, rgba(203, 33, 237, .55))), 0 10px 26px rgba(0, 0, 0, .35);
}
.deck img {
  width: 100%; display: block;
  aspect-ratio: .86;
  object-fit: cover;
}
/* maska-szyba jak GlassScrim w aplikacji: środek nad grupą przezroczysty, rogi fiolet #380A54 */
.deck .scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(to bottom, rgba(20, 6, 30, 0) 25%, rgba(20, 6, 30, .38) 55%, rgba(20, 6, 30, .82) 100%),
    radial-gradient(ellipse 150% 90% at 62% 35%,
      rgba(56, 10, 84, 0) 0%, rgba(56, 10, 84, .06) 50%, rgba(56, 10, 84, .78) 100%);
}
.deck .badges { position: absolute; top: 10px; left: 10px; display: flex; gap: 6px; }
.badge {
  font-size: 12px; font-weight: 700; line-height: 1;
  padding: 5px 10px; border-radius: 999px;
}
.b18 { background: rgba(0, 0, 0, .4); color: #fff; }
.btag { background: rgba(255, 255, 255, .92); color: #141414; }
.deck .dtext {
  position: absolute; left: 12px; right: 12px; bottom: 12px;
  display: flex; flex-direction: column; gap: 8px;
}
.deck .dtitle {
  color: #fff; font-weight: 800; font-size: 17px; line-height: 1.15;
  text-transform: uppercase;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .85);
}
.deck .dtitle span {
  display: block; font-size: 12px; font-weight: 600; opacity: .92;
  letter-spacing: .5px; margin-top: 2px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, .8);
}
.deck .price {
  align-self: flex-end;
  background: rgba(96, 29, 132, .85); color: var(--yellow);
  font-weight: 700; font-size: 12px; line-height: 1;
  padding: 5px 10px; border-radius: 999px;
}
.decks-more { margin-top: 24px; text-align: center; }
.decks-more a { color: var(--magenta); text-decoration: none; font-weight: 600; }

/* ---------- app screens ---------- */

.screens { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.screens img {
  width: 100%; height: auto; display: block;
  border-radius: 22px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, .55), 0 0 18px rgba(96, 29, 132, .35);
}

@media (max-width: 700px) {
  .decks { grid-template-columns: repeat(2, 1fr); }
  .screens { grid-template-columns: repeat(2, 1fr); }
}

footer.site .foot-cols { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; flex-wrap: wrap; }
footer.site .foot-cols .company { flex: 1 1 0; min-width: 260px; }
footer.site .socials { flex-shrink: 0; }
footer.site .socials { display: flex; gap: 14px; }
footer.site .socials a { color: var(--text); }
footer.site .socials a:hover { color: var(--magenta); }

/* ---------- phone mockup (ultraminimal) ---------- */

.phone {
  background: #000;
  border: 1px solid #2e2e2e;
  border-radius: 18px;
  padding: 5px;
  box-shadow: none;
}
.phone img { border-radius: 13px; box-shadow: none; }
.screens .phone img { width: 100%; height: auto; display: block; }

/* ---------- play modal ---------- */

dialog#play {
  margin: auto;
  border: 1px solid #2e2e2e;
  border-radius: 22px;
  background: #000;
  padding: 40px 6px 6px;
  overflow: hidden;
  width: min(430px, calc(100vw - 24px));
  height: min(88vh, 900px);
}
dialog#play::backdrop { background: rgba(10, 10, 10, .8); backdrop-filter: blur(6px); }
dialog#play .frame {
  width: 100%; height: 100%;
  overflow: hidden; border-radius: 14px; background: #141414;
}
dialog#play iframe {
  width: calc(100% + 16px); height: 100%;
  border: 0; background: #141414;
}
dialog#play .close {
  position: absolute; top: 8px; right: 16px;
  background: none; border: 0; cursor: pointer;
  color: #888; font-size: 22px; line-height: 1;
}
dialog#play .close:hover { color: #fff; }

/* ---------- stores modal ---------- */

dialog#stores {
  margin: auto;
  border: 1px solid #2e2e2e;
  border-radius: 22px;
  background: #1a1a1a;
  color: var(--text);
  padding: 40px 32px 32px;
  width: min(440px, calc(100vw - 24px));
  text-align: center;
  position: relative;
}
dialog#stores::backdrop { background: rgba(10, 10, 10, .8); backdrop-filter: blur(6px); }
dialog#stores h3 { font-size: 20px; margin-bottom: 10px; }
dialog#stores p { color: var(--muted); font-size: 15px; }
dialog#stores .cta { margin-top: 24px; font-size: 15px; padding: 12px 36px; }
dialog#stores .close {
  position: absolute; top: 10px; right: 16px;
  background: none; border: 0; cursor: pointer;
  color: #888; font-size: 22px; line-height: 1;
}
dialog#stores .close:hover { color: #fff; }
