/* ════════════════════════════════════════════════════════════════
   Closr landing — styl (ciemny + żółty)
   ════════════════════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --yellow: #ffcc00;
  --bg: #0a0a0c;
  --card: rgba(255, 255, 255, 0.04);
  --border: rgba(255, 255, 255, 0.10);
  --text: #f5f5f7;
  --muted: #9aa0aa;
  --maxw: 1080px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Barlow', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* ── MAPA W TLE (1:1 jak pairr: rozmyta, przyciemniona, lekko odbarwiona) ── */
#bg-map {
  position: fixed;      /* stałe tło CAŁEJ strony — pod nav i treścią, NIE scrolluje się */
  inset: 0;
  z-index: -1;
}
.leaflet-container { background: #0c0d10; }  /* tło Leaflet zanim wczytają się kafelki */

/* przyciemnienie/ślad rozmycia TYLKO na kafelkach — awatary i piny zostają ostre i jasne */
#bg-map .leaflet-tile-pane {
  filter: brightness(0.92) saturate(1.12);
}

/* winieta + żółta poświata: NAD kafelkami (z-index 450), POD markerami (600 w Leaflet),
   więc przyciemnia mapę, ale NIE awatary */
#bg-map::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 450;
  pointer-events: none;
  background:
    radial-gradient(125% 95% at 50% 24%, rgba(255,204,0,0.10), transparent 46%),
    radial-gradient(120% 120% at 50% 36%, transparent 0%, rgba(10,10,12,0.12) 62%, rgba(10,10,12,0.5) 100%);
}

/* pin Leaflet — żółta poświata jak na pairr */
.pin-glow {
  width: 18px; height: 18px;
  background: var(--yellow);
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 0 10px rgba(255,204,0,0.65), 0 0 22px rgba(255,204,0,0.4);
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(255,204,0,0.45); }
  70%  { box-shadow: 0 0 0 22px rgba(255,204,0,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,204,0,0); }
}

/* awatary „ludzi w pobliżu" na mapie (jak pairr) */
.pin { display: flex; flex-direction: column; align-items: center; animation: float 6s ease-in-out infinite; }
.pin-avatar {
  width: 54px; height: 54px; border-radius: 50%;
  border: 3px solid var(--yellow); overflow: hidden; background: #2a2a2b;
  box-shadow: 0 0 0 2px rgba(255,204,0,0.25), 0 6px 20px rgba(0,0,0,0.6);
}
.pin-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; filter: grayscale(12%); }
.pin-arrow {
  width: 0; height: 0; margin-top: -1px;
  border-left: 8px solid transparent; border-right: 8px solid transparent;
  border-top: 13px solid var(--yellow);
  filter: drop-shadow(0 3px 6px rgba(255,204,0,0.45));
}
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }

/* ── NAV ── */
.nav {
  display: flex; align-items: center; justify-content: space-between;
  max-width: var(--maxw); margin: 0 auto; padding: 22px 24px;
}
.logo { font-weight: 800; font-size: 1.5rem; color: var(--text); text-decoration: none; letter-spacing: -0.5px; text-shadow: 0 1px 12px rgba(0,0,0,0.7); }
.logo span { color: var(--yellow); }
.nav-right { display: flex; align-items: center; gap: 16px; }

/* ── BUTTONS ── */
.btn {
  display: inline-block; background: var(--yellow); color: #1a1500;
  font-weight: 800; text-decoration: none; padding: 11px 22px;
  border-radius: 999px; transition: transform 0.12s, box-shadow 0.2s;
  box-shadow: 0 4px 18px rgba(255,204,0,0.25);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 26px rgba(255,204,0,0.4); }
.btn-lg { font-size: 1.1rem; padding: 15px 38px; }
.btn-sm { font-size: 0.85rem; padding: 8px 16px; }

/* ── HERO ── */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 70px 24px;
}
.hero-content {
  position: relative;
  z-index: 2;                  /* nad mapą (0) i scrimem (1) */
  max-width: 820px;
  width: 100%;
}
/* scrim pod tekstem hero — przyciemnia awatary dokładnie za napisem, brzegowe zostają jasne */
.hero::before {
  content: '';
  position: absolute;
  z-index: 1;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 880px; max-width: 96vw; height: 75%;
  pointer-events: none;
  background: radial-gradient(ellipse at center,
    rgba(8,8,10,0.55) 0%, rgba(8,8,10,0.3) 45%, transparent 70%);
}
.eyebrow { color: var(--yellow); font-weight: 700; letter-spacing: 0.5px; margin-bottom: 18px; }
.hero h1 {
  font-size: clamp(2.2rem, 6vw, 4rem); font-weight: 800; line-height: 1.05;
  letter-spacing: -1.5px; margin-bottom: 22px;
  text-shadow: 0 2px 28px rgba(0,0,0,0.85);
}
.hero .sub {
  font-size: clamp(1.05rem, 2.2vw, 1.3rem); color: #d6dae2; max-width: 620px; margin: 0 auto 38px;
  text-shadow: 0 2px 18px rgba(0,0,0,0.8);
}

.stats { display: flex; justify-content: center; gap: 56px; margin-bottom: 40px; }
.stat { display: flex; flex-direction: column; }
.stat .num { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; color: var(--yellow); }
.stat .label { font-size: 0.9rem; color: var(--muted); }

/* ── FEATURES ── */
.features {
  max-width: var(--maxw); margin: 0 auto; padding: 40px 24px 70px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px;
}
.card {
  background: rgba(16,16,20,0.55); border: 1px solid var(--border); border-radius: 18px;
  padding: 28px 24px;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);  /* „szkło" — rozmywa mapę za kartą */
  transition: transform 0.15s, border-color 0.2s;
}
.card:hover { transform: translateY(-4px); border-color: rgba(255,204,0,0.35); }
.card .ico {
  width: 42px; height: 42px; display: block; margin: 0 0 16px;
  color: var(--yellow);
  filter: drop-shadow(0 0 8px rgba(255,204,0,0.5));
}
.card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 0.95rem; }

/* ── CTA BAND ── */
.cta-band { text-align: center; padding: 30px 24px 90px; }
.cta-band h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 800; margin-bottom: 28px; letter-spacing: -0.5px; text-shadow: 0 2px 20px rgba(0,0,0,0.9); }

/* ── FOOTER ── */
.footer { border-top: 1px solid var(--border); padding: 34px 24px; text-align: center; background: rgba(10,10,12,0.72); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.foot-links { display: flex; justify-content: center; gap: 26px; flex-wrap: wrap; margin-bottom: 14px; }
.foot-links a { color: var(--muted); text-decoration: none; font-size: 0.9rem; }
.foot-links a:hover { color: var(--text); }
.copy { color: var(--muted); font-size: 0.85rem; }

@media (max-width: 560px) {
  .stats { gap: 32px; }
}
