/* Pan Peryskop — sekcje LP */

/* ---------- NAV ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(5, 5, 5, 0.4);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  color: #fff;
}
.nav.is-scrolled { background: rgba(5, 5, 5, 0.82); border-bottom-color: rgba(255, 255, 255, 0.1); }
.nav-inner { display: flex; align-items: center; gap: 24px; height: 64px; }
.nav .brand { display: inline-flex; align-items: center; gap: 11px; font-size: 15px; font-weight: 600; font-family: var(--font-display); }
.nav .brand img { width: 30px; height: 30px; border-radius: 8px; }
.nav .brand .grad-text { font-weight: 700; }
.nav-links { display: flex; gap: 26px; margin-left: 8px; }
.nav-links a { font-size: 13px; font-weight: 500; color: rgba(255, 255, 255, 0.6); transition: color 0.2s ease; }
.nav-links a:hover, .nav-links a.is-active { color: #fff; }
.nav-actions { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.lang { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; }
.lang a { color: rgba(255, 255, 255, 0.5); padding: 4px 7px; border-radius: 8px; transition: color 0.2s ease, background-color 0.2s ease; }
.lang a.is-active { color: #fff; background: rgba(255, 255, 255, 0.12); }
.lang span { color: rgba(255, 255, 255, 0.35); }
.nav-burger { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.nav-burger span { width: 20px; height: 2px; background: #fff; border-radius: 2px; transition: transform 0.25s var(--ease), opacity 0.2s; }
.nav-burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.is-open span:nth-child(2) { opacity: 0; }
.nav-burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- MARQUEE ---------- */
.marquee { padding: 30px 0; }
.marquee-label { display: flex; justify-content: center; margin-bottom: 24px; }
.marquee-label .pill { white-space: normal; text-align: center; max-width: 100%; }
.marquee-track span {
  font-family: var(--font-display);
  font-size: 1.4rem; font-weight: 600; letter-spacing: -0.02em;
  color: rgba(29, 29, 22, 0.6);
  padding: 0 26px; white-space: nowrap;
  transition: color 0.2s ease;
}
.marquee-track span:hover { color: var(--accent-deep); }
.marquee-track .sep { color: rgba(29, 29, 22, 0.22); padding: 0; }
.marquee-track .hl { color: var(--ink); }

/* ---------- FEATURES (EVpin minimal grid) ---------- */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 44px 40px; }
.feature-item { display: flex; flex-direction: column; gap: 14px; }
.feature-item h4 { font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
.feature-item p { font-size: 14px; line-height: 1.65; color: var(--muted); max-width: 38ch; }
.feature-item .icon-circle { color: var(--accent-deep); }
.feature-item:hover .icon-circle svg { animation: pp-wiggle 0.5s var(--ease); }

/* ---------- STORY (oś czasu 24h, tło brand-grad) ---------- */
.story { padding-top: 120px; }
.story-panel {
  position: relative;
  border-radius: 28px;
  background: var(--brand-grad-soft);
  padding: 56px 48px 64px;
  overflow: hidden;
  overflow: clip;
  contain: paint;
  color: #fff;
}
.story-panel::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 0%, #000, transparent 78%);
  mask-image: radial-gradient(ellipse 90% 80% at 50% 0%, #000, transparent 78%);
}
.story-head { position: relative; text-align: center; margin-bottom: 48px; }
.story-head .pill { background: rgba(255, 255, 255, 0.16); color: #fff; }
.story-head .display { margin: 18px auto 0; max-width: 18ch; }
.story-head p.sub { margin: 14px auto 0; max-width: 480px; color: rgba(255, 255, 255, 0.75); font-size: 14px; }
.timeline {
  position: relative;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
}
.timeline::before {
  content: ""; position: absolute; left: 12.5%; right: 12.5%; top: 34px; height: 2px;
  background: linear-gradient(to right, rgba(255,255,255,0.15), rgba(255,255,255,0.55), rgba(255,255,255,0.15));
}
.tl-step { position: relative; display: flex; flex-direction: column; gap: 12px; }
.tl-dot {
  width: 12px; height: 12px; border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.18);
  position: relative; z-index: 2;
}
.tl-step:first-child .tl-dot { background: var(--orange); box-shadow: 0 0 0 6px rgba(249, 115, 22, 0.3), 0 0 24px rgba(249, 115, 22, 0.8); animation: pp-tlpulse 2s var(--ease) infinite; }
@keyframes pp-tlpulse {
  0%, 100% { box-shadow: 0 0 0 6px rgba(249, 115, 22, 0.3), 0 0 20px rgba(249, 115, 22, 0.7); }
  50% { box-shadow: 0 0 0 9px rgba(249, 115, 22, 0.14), 0 0 34px rgba(249, 115, 22, 0.95); }
}
.tl-time { font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; letter-spacing: -0.02em; }
.tl-note { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: rgba(255, 255, 255, 0.65); }
.tl-text { font-size: 13.5px; line-height: 1.6; color: rgba(255, 255, 255, 0.9); max-width: 30ch; }

/* ---------- STEPS ---------- */
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; }
.step-item { border-top: 2px solid var(--ink); padding-top: 20px; }
.step-item .num { font-family: var(--font-display); font-size: 2rem; font-weight: 600; letter-spacing: -0.03em; color: var(--accent-deep); }
.step-item h4 { margin: 14px 0 8px; font-size: 16px; }
.step-item p { font-size: 14px; color: var(--muted); line-height: 1.65; max-width: 36ch; }

/* ---------- FAQ ---------- */
.faq-wrap { max-width: 720px; margin: 0 auto; }

/* ---------- CTA ---------- */
.cta { padding: 120px 0 110px; overflow: hidden; overflow: clip; contain: paint; }
.cta-inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 22px; }
.cta .display { max-width: 18ch; }
.cta p.sub { max-width: 540px; color: rgba(255, 255, 255, 0.6); font-size: 15px; line-height: 1.7; }
.cta .cta-app { display: inline-flex; align-items: center; gap: 12px; }

/* ---------- FOOTER (typographic statement) ---------- */
.footer { position: relative; overflow: hidden; overflow: clip; contain: paint; padding: 110px 0 40px; }
.footer-statement { text-align: center; margin-bottom: 90px; }
.footer-statement .display-xl { display: block; }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px; border-top: 1px solid rgba(255, 255, 255, 0.12); padding-top: 26px; }
.footer-row .brand { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; font-family: var(--font-display); }
.footer-row .brand img { width: 26px; height: 26px; border-radius: 7px; }
.footer-row .brand .grad-text { font-weight: 700; }
.footer-legal { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-legal a { font-size: 12px; color: rgba(255, 255, 255, 0.5); transition: color 0.2s; }
.footer-legal a:hover { color: #fff; }
.footer-meta { display: flex; align-items: center; gap: 18px; font-size: 12px; color: rgba(255, 255, 255, 0.5); }
.footer-meta .lang a { color: rgba(255, 255, 255, 0.5); }
.footer-meta .lang a.is-active { color: #fff; background: rgba(255, 255, 255, 0.12); }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: 1fr; gap: 32px; }
  .timeline { grid-template-columns: repeat(2, 1fr); gap: 28px 18px; }
  .timeline::before { display: none; }
  .nav-links { display: none; }
  .nav-burger { display: flex; }
  .nav-links.is-open {
    display: flex; flex-direction: column; gap: 4px;
    position: absolute; top: 64px; left: 0; right: 0;
    background: rgba(5, 5, 5, 0.96); padding: 14px 20px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  .nav-links.is-open a { padding: 10px 0; font-size: 15px; color: rgba(255, 255, 255, 0.8); }
}
@media (max-width: 620px) {
  .features-grid { grid-template-columns: 1fr; }
  .nav-actions .btn { display: none; }
  .footer-row { flex-direction: column; align-items: flex-start; }
  .story { padding-top: 84px; }
  .story-panel { padding: 40px 24px 48px; }
  .timeline { grid-template-columns: 1fr; gap: 24px; }
}
