/* =========================================================================
   Strona reprezentacyjna — motyw operacyjny / defense, wydanie "premium".
   Korzysta ze zmiennych :root i tokenow z style.css.
   ========================================================================= */

html { scroll-behavior: smooth; }
/* Uwaga: NIE ustawiamy overflow na body — psuje position:sticky nawigacji. */
body.landing { background: var(--bg); }
.landing .accent {
  background: linear-gradient(120deg, #ffd27a 0%, var(--sev2) 55%, #d98a24 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* Sekcje z kotwica nie chowaja sie pod przyklejona nawigacja */
[id] { scroll-margin-top: 92px; }

/* Animacja pojawiania sie przy scrollowaniu */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.visible { opacity: 1; transform: none; }
.cat-grid .reveal:nth-child(2), .src-grid .reveal:nth-child(2), .sec-grid .reveal:nth-child(2), .steps .reveal:nth-child(2), .metrics .reveal:nth-child(2) { transition-delay: .08s; }
.cat-grid .reveal:nth-child(3), .src-grid .reveal:nth-child(3), .sec-grid .reveal:nth-child(3), .steps .reveal:nth-child(3), .metrics .reveal:nth-child(3) { transition-delay: .16s; }
.cat-grid .reveal:nth-child(4), .src-grid .reveal:nth-child(4), .sec-grid .reveal:nth-child(4), .metrics .reveal:nth-child(4) { transition-delay: .24s; }
.cat-grid .reveal:nth-child(5), .src-grid .reveal:nth-child(5), .sec-grid .reveal:nth-child(5) { transition-delay: .12s; }
.cat-grid .reveal:nth-child(6), .src-grid .reveal:nth-child(6), .sec-grid .reveal:nth-child(6) { transition-delay: .18s; }
.cat-grid .reveal:nth-child(7), .src-grid .reveal:nth-child(7) { transition-delay: .24s; }
.cat-grid .reveal:nth-child(8), .src-grid .reveal:nth-child(8) { transition-delay: .3s; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Warstwowe tlo: siatka + poswiaty ---------- */
.grid-bg {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(79,140,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(79,140,255,.05) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(ellipse 80% 55% at 50% 0%, #000 30%, transparent 75%);
}
.grid-bg::before, .grid-bg::after {
  content: ""; position: absolute; border-radius: 50%; filter: blur(90px); opacity: .55;
}
.grid-bg::before { top: -160px; left: 50%; transform: translateX(-50%);
  width: 760px; height: 520px; background: radial-gradient(circle, rgba(79,140,255,.45), transparent 65%); }
.grid-bg::after { top: 480px; right: -120px;
  width: 520px; height: 520px; background: radial-gradient(circle, rgba(230,161,58,.18), transparent 65%); }

/* ---------- NAV — przyklejona, pigulka z rozmyciem ---------- */
.lp-nav {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px max(40px, calc((100% - 1180px) / 2 + 40px));
  position: sticky; top: 0; z-index: 50;
}
.lp-nav::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(11,15,23,.55); backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid transparent; transition: border-color .3s var(--ease), background .3s var(--ease);
}
.lp-nav.scrolled::before { border-bottom-color: var(--border); background: rgba(11,15,23,.82); }
.lp-brand { display: flex; align-items: center; gap: 10px; font-size: 15px;
  letter-spacing: 2px; font-weight: 300; }
.lp-brand b { font-weight: 800; color: var(--sev2); margin: 0 1px; }
.lp-nav-links { display: flex; align-items: center; gap: 8px; }
.lp-nav-links a:not(.btn) {
  color: var(--muted); font-size: 13px; letter-spacing: .3px; font-weight: 500;
  padding: 9px 14px; border-radius: var(--radius-pill); transition: background .18s var(--ease), color .18s var(--ease);
}
.lp-nav-links a:not(.btn):hover { color: var(--text); background: rgba(255,255,255,.05); text-decoration: none; }
.lp-nav .btn { height: 40px; padding: 0 20px; font-size: 14px; border-radius: var(--radius-pill); white-space: nowrap; }
.lp-nav-links { margin-left: 0; }
.lp-nav .btn-ghost { margin-left: 6px; }
.btn-lg { height: 50px; padding: 0 28px; font-size: 15px; border-radius: var(--radius-pill); }

/* ---------- HERO ---------- */
.hero { padding: 96px 24px 60px; text-align: center; }
.hero-inner { max-width: 860px; margin: 0 auto; }
.hero .live-badge {
  justify-content: center; margin-bottom: 30px; font-size: 11.5px; font-weight: 700;
  border: 1px solid var(--border); border-radius: var(--radius-pill); padding: 8px 18px;
  display: inline-flex; color: #b9e6cf; letter-spacing: 1.5px;
  background: rgba(52,199,123,.06); box-shadow: inset 0 0 18px rgba(52,199,123,.08);
}
.hero h1 { font-size: clamp(38px, 6vw, 62px); line-height: 1.06; margin: 0 0 24px;
  font-weight: 800; letter-spacing: -2px; }
.hero-sub { font-size: 18px; color: var(--muted); line-height: 1.65; max-width: 680px;
  margin: 0 auto 38px; }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-note { margin-top: 30px; font-size: 13px; color: var(--muted); letter-spacing: .2px; }

/* ---------- METRICS ---------- */
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
  max-width: 940px; margin: 40px auto 10px; padding: 0 24px; }
.metric { position: relative; background: linear-gradient(180deg, var(--bg-2), rgba(18,24,38,.6));
  border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 16px;
  text-align: center; overflow: hidden; transition: transform .25s var(--ease), border-color .25s var(--ease); }
.metric::before { content: ""; position: absolute; top: 0; left: 20%; right: 20%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent); opacity: .7; }
.metric:hover { transform: translateY(-3px); border-color: #2e3c5a; }
.m-num { font-size: 40px; font-weight: 800; color: var(--text); letter-spacing: -1.5px;
  background: linear-gradient(180deg, #fff, #b9c6e0); -webkit-background-clip: text; background-clip: text; color: transparent; }
.m-num span { color: var(--sev2); -webkit-text-fill-color: var(--sev2); font-size: 24px; }
.m-lbl { font-size: 11.5px; color: var(--muted); text-transform: uppercase; letter-spacing: 1.2px; margin-top: 6px; }

/* ---------- SECTIONS ---------- */
.section { max-width: 1180px; margin: 0 auto; padding: 96px 40px; }
.section-alt { position: relative; max-width: none;
  background: linear-gradient(180deg, transparent, rgba(18,24,38,.45) 50%, transparent); }
.section-alt > * { max-width: 1180px; margin-left: auto; margin-right: auto; }
.section-head { text-align: center; margin-bottom: 56px; }
.kicker { display: inline-block; font-size: 11.5px; letter-spacing: 3px; color: var(--sev2);
  font-weight: 700; padding: 5px 14px; border: 1px solid rgba(230,161,58,.3);
  border-radius: var(--radius-pill); background: rgba(230,161,58,.06); }
.section-head h2 { font-size: clamp(28px, 4vw, 38px); margin: 18px 0 12px; font-weight: 800; letter-spacing: -1px; }
.section-head p { color: var(--muted); font-size: 15.5px; max-width: 620px; margin: 0 auto; line-height: 1.65; }

/* ---------- CATEGORY GRID ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.cat-card { position: relative; background: linear-gradient(180deg, var(--bg-2), rgba(18,24,38,.55));
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 28px 24px; transition: transform .28s var(--ease), border-color .28s var(--ease), box-shadow .28s var(--ease); }
.cat-card::after { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: linear-gradient(140deg, rgba(79,140,255,.5), transparent 40%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity .28s var(--ease); }
.cat-card:hover { transform: translateY(-6px); border-color: transparent; box-shadow: var(--shadow-2); }
.cat-card:hover::after { opacity: 1; }
.cat-icon {
  width: 50px; height: 50px; border-radius: 13px; display: flex; align-items: center; justify-content: center;
  font-size: 24px; color: var(--sev2); margin-bottom: 18px;
  background: linear-gradient(140deg, rgba(230,161,58,.16), rgba(79,140,255,.10));
  border: 1px solid rgba(230,161,58,.22); box-shadow: inset 0 0 16px rgba(230,161,58,.08);
}
.cat-card h3 { font-size: 16.5px; margin: 0 0 9px; font-weight: 700; letter-spacing: -.2px; }
.cat-card p { font-size: 13.5px; color: var(--muted); line-height: 1.6; margin: 0; }

/* ---------- STEPS ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step { position: relative; background: linear-gradient(180deg, var(--bg-2), rgba(18,24,38,.55));
  border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 34px 30px;
  transition: transform .25s var(--ease), border-color .25s var(--ease); }
.step:hover { transform: translateY(-4px); border-color: #2e3c5a; }
.step-n { font-size: 46px; font-weight: 800; -webkit-text-stroke: 1.5px var(--sev2);
  color: transparent; margin-bottom: 16px; letter-spacing: -2px; opacity: .9; }
.step h3 { font-size: 20px; margin: 0 0 10px; font-weight: 700; }
.step p { color: var(--muted); font-size: 14px; line-height: 1.65; margin: 0; }

/* ---------- SOURCES ---------- */
.src-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.src { background: linear-gradient(180deg, var(--bg-2), rgba(18,24,38,.55)); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px 18px; text-align: center; font-weight: 600; font-size: 15px;
  transition: transform .25s var(--ease), border-color .25s var(--ease), background .25s var(--ease); }
.src small { display: block; margin-top: 7px; color: var(--muted); font-weight: 400; font-size: 12px; }
.src:hover { transform: translateY(-3px); border-color: var(--accent); background: linear-gradient(180deg, var(--bg-3), var(--bg-2)); }

/* ---------- SECURITY ---------- */
.sec-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.sec { position: relative; background: linear-gradient(180deg, var(--bg-2), rgba(18,24,38,.55));
  border: 1px solid var(--border); border-radius: var(--radius); padding: 24px 24px 24px 26px;
  transition: transform .25s var(--ease), border-color .25s var(--ease); }
.sec::before { content: ""; position: absolute; left: 0; top: 16px; bottom: 16px; width: 3px;
  border-radius: 3px; background: linear-gradient(180deg, var(--green), rgba(52,199,123,.3)); }
.sec:hover { transform: translateY(-3px); border-color: #2e3c5a; }
.sec b { display: block; font-size: 15px; margin-bottom: 7px; font-weight: 700; }
.sec span { color: var(--muted); font-size: 13.5px; line-height: 1.55; }

/* ---------- CTA BAND ---------- */
.cta-band { position: relative; text-align: center; padding: 70px 40px; max-width: 900px;
  margin: 40px auto 0; border-radius: var(--radius-lg); overflow: hidden;
  background: linear-gradient(140deg, rgba(79,140,255,.10), rgba(230,161,58,.06));
  border: 1px solid var(--border); }
.cta-band::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 60% 80% at 50% -10%, rgba(79,140,255,.22), transparent 70%); }
.cta-band > * { position: relative; }
.cta-band h2 { font-size: clamp(26px, 3.5vw, 34px); font-weight: 800; margin: 0 0 14px; letter-spacing: -.8px; }
.cta-band p { color: var(--muted); font-size: 16px; margin: 0 0 30px; }

/* ---------- FOOTER ---------- */
.lp-footer { border-top: 1px solid var(--border); padding: 50px 40px; text-align: center; margin-top: 60px; }
.lp-footer .lp-brand { justify-content: center; margin-bottom: 16px; }
.lp-footer p { margin: 6px auto; max-width: 580px; line-height: 1.6; }

/* Strzalka "do gory" — styl globalny przeniesiony do style.css */

/* ---------- RESPONSYWNOSC ---------- */
@media (max-width: 900px) {
  .lp-nav-links a:not(.btn) { display: none; }
  .lp-nav { padding: 12px 18px; }
  .lp-nav-links { gap: 8px; }
  .hero { padding: 60px 22px 40px; }
  .metrics, .cat-grid, .steps, .src-grid, .sec-grid { grid-template-columns: 1fr 1fr; }
  .section { padding: 60px 22px; }
  .section-head { margin-bottom: 40px; }
  .cta-band { padding: 56px 24px; }
}
@media (max-width: 560px) {
  .metrics, .cat-grid, .steps, .src-grid, .sec-grid { grid-template-columns: 1fr; }
  /* Nawigacja: mniejsza marka i przyciski, by zmiescic sie na waskim ekranie */
  .lp-nav { padding: 10px 14px; }
  .lp-brand { font-size: 13px; letter-spacing: 1px; gap: 8px; }
  .lp-nav .btn { height: 38px; padding: 0 14px; font-size: 13px; }
  /* Hero: pelnowymiarowe CTA, latwiejsze do kliniecia kciukiem */
  .hero { padding: 44px 18px 32px; }
  .hero .live-badge { font-size: 10px; letter-spacing: 1px; padding: 7px 12px; }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; }
  .btn-lg { height: 50px; }
  .section { padding: 48px 18px; }
  .cta-band { margin: 24px 14px 0; }
  .cta-band .hero-cta .btn { width: 100%; }
  .lp-footer { padding: 36px 20px; }
}
@media (max-width: 400px) {
  /* Bardzo waskie ekrany: marka u gory, przyciski wysrodkowane pod nia */
  .lp-nav { flex-wrap: wrap; justify-content: center; gap: 10px 8px; }
  .lp-brand { width: 100%; justify-content: center; }
  .lp-nav-links { width: 100%; justify-content: center; }
}
