/* ============================================================
   Anonywise - style wspolne (wszystkie podstrony)
   Tokeny, reset, typografia, nawigacja, przyciski, karty, stopka.
   Zero zasobow zewnetrznych: font Inter hostowany lokalnie.
   ============================================================ */

@font-face {
  font-family: "InterVariable";
  src: url("../assets/fonts/InterVariable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #ffffff;
  --bg-soft: #f5f5f7;
  --ink: #1d1d1f;
  --ink-2: #6e6e73;
  --ink-3: #86868b;
  --black: #0b0f17;
  --navy: #0a1628;
  --accent: #4f46e5;
  --accent-ink: #4338ca;
  --accent-soft: #eef2ff;
  --accent-light: #a5b4fc;
  --green: #16a34a;
  --amber: rgba(245, 158, 11, .32);
  --line: #ececf1;
  --radius: 20px;
  --shadow-1: 0 1px 2px rgba(10, 22, 40, .05), 0 8px 24px rgba(10, 22, 40, .06);
  --shadow-2: 0 2px 8px rgba(10, 22, 40, .08), 0 28px 64px rgba(10, 22, 40, .14);
  --ease: cubic-bezier(.22, .61, .36, 1);
  --font: "InterVariable", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ---------- baza ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  color-scheme: light;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: -.008em;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img, video { max-width: 100%; height: auto; }

::selection { background: rgba(79, 70, 229, .18); }

a, button, summary { -webkit-tap-highlight-color: transparent; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}
.container--narrow { max-width: 780px; }

section[id], .scrolly { scroll-margin-top: 72px; }

.nw { white-space: nowrap; }

/* ---------- przyciski ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: 999px;
  padding: 14px 27px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -.01em;
  text-decoration: none;
  cursor: pointer;
  transition: transform .28s var(--ease), box-shadow .28s var(--ease), background .28s, border-color .28s;
}
.btn--primary {
  background: var(--black);
  color: #fff;
  box-shadow: 0 1px 2px rgba(11, 15, 23, .16), 0 10px 24px rgba(11, 15, 23, .18);
}
.btn--primary:hover {
  background: #1c2434;
  transform: translateY(-2px);
  box-shadow: 0 2px 4px rgba(11, 15, 23, .16), 0 16px 36px rgba(11, 15, 23, .24);
}
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid #d2d2d7;
}
.btn--ghost:hover { border-color: var(--ink-3); background: #fff; }
.btn--light {
  background: #fff;
  color: var(--black);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
}
.btn--light:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(0, 0, 0, .3); }
.btn--sm { padding: 9px 18px; font-size: 13.5px; }
.btn--block { width: 100%; }
.btn .arrow { transition: transform .25s var(--ease); }
.btn--ghost:hover .arrow { transform: translateY(3px); }

/* ---------- nawigacja ---------- */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  transition: background .35s, box-shadow .35s;
}
.site-nav.scrolled {
  background: rgba(255, 255, 255, .72);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  backdrop-filter: saturate(180%) blur(18px);
  box-shadow: 0 1px 0 rgba(10, 22, 40, .07);
}
.nav-progress {
  position: absolute;
  top: 0; left: 0;
  height: 2px;
  width: 0;
  background: var(--accent);
  z-index: 51;
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 34px;
  height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}
.brand-mark { width: 30px; height: 30px; border-radius: 8px; display: block; }
.brand-name { font-weight: 700; font-size: 17px; letter-spacing: -.02em; }
.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a {
  font-size: 13.5px;
  font-weight: 500;
  color: #3a3a3c;
  text-decoration: none;
  transition: color .2s;
}
.nav-links a:hover { color: #000; }
.nav-links a.active { color: var(--accent); font-weight: 650; }

/* ---------- menu mobilne ---------- */
.nav-burger {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.nav-burger span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform .3s var(--ease);
}
.nav-burger.open span:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }
.mobile-menu { display: none; }
.site-nav.menu-open {
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  backdrop-filter: saturate(180%) blur(18px);
  box-shadow: 0 1px 0 rgba(10, 22, 40, .07);
}

@media (max-width: 960px) {
  .nav-burger { display: flex; }
  .nav-inner > .btn { margin-left: auto; }
  .mobile-menu {
    display: block;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    z-index: 49;
    background: rgba(255, 255, 255, .94);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 48px rgba(10, 22, 40, .12);
    padding: 6px 24px 20px;
    opacity: 0;
    transform: translateY(-12px);
    pointer-events: none;
    transition: opacity .3s var(--ease), transform .3s var(--ease);
  }
  .mobile-menu.open {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }
  .mobile-menu a:not(.btn) {
    display: block;
    padding: 15px 2px;
    font-size: 16.5px;
    font-weight: 600;
    color: var(--ink);
    text-decoration: none;
    border-bottom: 1px solid var(--line);
  }
  .mobile-menu a.active { color: var(--accent); }
  .mobile-menu .btn { margin-top: 18px; width: 100%; }
}
@media (max-width: 480px) {
  .nav-inner > .btn { display: none; }
  .nav-burger { margin-left: auto; }
}

/* ---------- sekcje / typografia ---------- */
.section { padding: clamp(88px, 11vw, 140px) 0; position: relative; }
.section--soft { background: var(--bg-soft); }
.section--dark {
  background:
    radial-gradient(1000px 560px at 82% -10%, #16294a 0%, transparent 55%),
    radial-gradient(820px 500px at -5% 110%, #122140 0%, transparent 52%),
    var(--navy);
  color: #fff;
}
.eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--accent);
  text-align: center;
  margin: 0 0 14px;
}
.eyebrow--light { color: var(--accent-light); }
.section-title {
  font-size: clamp(1.9rem, 4.2vw, 3rem);
  font-weight: 720;
  letter-spacing: -.03em;
  line-height: 1.12;
  text-align: center;
  margin: 0 0 18px;
}
.section-lede {
  font-size: clamp(1.02rem, 1.6vw, 1.18rem);
  color: var(--ink-2);
  line-height: 1.6;
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}
.section--dark .section-lede { color: #9fb0cc; }

/* ---------- karty (wspolne dla strony glownej i produktu) ---------- */
.p-card, .f-card {
  position: relative;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(10, 22, 40, .05);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow-1);
  text-align: left;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.p-card:hover, .f-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-2);
}
.p-card::after, .f-card::after, .price-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  transition: opacity .4s;
  background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 50%), rgba(79, 70, 229, .07), transparent 65%);
  pointer-events: none;
}
.p-card:hover::after, .f-card:hover::after, .price-card:hover::after { opacity: 1; }
.f-icon {
  width: 46px; height: 46px;
  border-radius: 13px;
  background: linear-gradient(135deg, #eef2ff, #e4e9ff);
  color: var(--accent);
  display: grid;
  place-items: center;
  margin-bottom: 18px;
}
.f-icon svg { width: 22px; height: 22px; }
.p-card h3, .f-card h3 {
  font-size: 19px;
  font-weight: 650;
  letter-spacing: -.015em;
  margin: 0 0 10px;
}
.p-card p, .f-card p {
  font-size: 14.5px;
  line-height: 1.62;
  color: var(--ink-2);
  margin: 0;
}

/* ---------- stopka ---------- */
.site-footer {
  background: #fff;
  border-top: 1px solid var(--line);
  padding: 56px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1.3fr;
  gap: 40px;
  padding-bottom: 44px;
}
.footer-brand p { color: var(--ink-2); font-size: 14px; line-height: 1.6; margin: 14px 0 0; }
.site-footer h4 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 4px 0 14px;
}
.footer-nav a, .footer-contact a {
  display: block;
  width: fit-content;
  color: #3a3a3c;
  text-decoration: none;
  font-size: 14px;
  margin-bottom: 9px;
  transition: color .2s;
}
.footer-nav a:hover, .footer-contact a:hover { color: #000; }
.footer-contact a { color: var(--accent); font-weight: 600; }
.footer-contact p { font-size: 13px; color: var(--ink-3); margin: 6px 0 0; }
.footer-legal {
  border-top: 1px solid var(--line);
  padding-top: 22px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 28px;
  font-size: 12.5px;
  color: var(--ink-3);
}
.footer-legal a { color: #3a3a3c; }
.footer-clean { margin-left: auto; }

/* ---------- odslanianie sekcji ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .8s var(--ease) var(--d, 0s), transform .8s var(--ease) var(--d, 0s);
}
.reveal.in { opacity: 1; transform: none; }

/* ---------- responsywnosc wspolna ---------- */
@media (max-width: 960px) {
  .nav-links { display: none; }
}
@media (max-width: 640px) {
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-clean { margin-left: 0; }
  .nav-inner { gap: 16px; }
}

/* ---------- ograniczony ruch ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    transition-delay: 0ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
