/* site.css — design system strony marketingowej ksef-claude.
   Metodyka 7vdesign: materialność, wielowarstwowe cienie, zróżnicowane sekcje,
   zero AI-slopu. Paleta ciemna spójna z onboardingiem. */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=DM+Sans:opsz,wght@9..40,400;9..40,500&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  /* powierzchnie — ciemne, near-black */
  --bg:            #060607;
  --surface-1:     #0d0d10;
  --surface-2:     #141418;
  --surface-3:     #1c1c22;

  --ink:           #f4f4f5;
  --ink-2:         #a1a1aa;
  --ink-3:         #71717a;
  --ink-4:         #52525b;

  --border:        rgba(255,255,255,0.07);
  --border-strong: rgba(255,255,255,0.13);

  /* marka — mint-emerald (nie domyślny Tailwind) */
  --brand:         #25c9a8;
  --brand-dark:    #149b7e;
  --brand-light:   #7fead2;
  --brand-12:      rgba(37,201,168,0.12);
  --brand-20:      rgba(37,201,168,0.20);

  --danger:        #f0616d;

  --font-display:  'Space Grotesk', system-ui, sans-serif;
  --font-body:     'DM Sans', system-ui, -apple-system, sans-serif;
  --font-mono:     'JetBrains Mono', ui-monospace, Menlo, monospace;

  --maxw: 1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
*  { transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); }

html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ── typografia ── */
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.025em; line-height: 1.12; }
h1 { font-size: clamp(2.4rem, 5.2vw, 3.85rem); font-weight: 700; letter-spacing: -0.035em; }
h2 { font-size: clamp(1.85rem, 3.6vw, 2.75rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); }
p  { color: var(--ink-2); }
a  { color: inherit; text-decoration: none; }
.mono { font-family: var(--font-mono); }

/* ── layout ── */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
section { position: relative; }
.eyebrow {
  font-family: var(--font-mono); font-size: 12px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--brand);
}

/* ── tła: szum + poświata ── */
.noise::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.035;
}
.glow {
  position: absolute; width: 620px; height: 620px; border-radius: 50%;
  background: var(--brand); opacity: 0.07; filter: blur(150px);
  pointer-events: none; z-index: 0;
}

/* ── przyciski ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font-body); font-weight: 600; font-size: 15px;
  cursor: pointer; border: none; border-radius: 999px;
  padding: 13px 26px; transition: all 0.2s;
}
.btn svg { width: 17px; height: 17px; }
.btn-primary {
  background: var(--brand); color: #04130f;
  border: 1px solid rgba(255,255,255,0.22);
  box-shadow:
    0 0 0 1px var(--brand-dark),
    0 2px 4px rgba(0,0,0,0.4),
    inset 0 1px 1px rgba(255,255,255,0.55);
}
.btn-primary:hover {
  transform: translateY(-1px); filter: brightness(1.06);
  box-shadow:
    inset 0 1px 1px rgba(255,255,255,0.55),
    0 8px 28px rgba(37,201,168,0.42);
}
.btn-primary:active {
  transform: translateY(1px); filter: brightness(0.97);
  box-shadow: 0 0 0 1px var(--brand-dark), inset 0 2px 5px rgba(0,0,0,0.3);
}
.btn-ghost {
  background: rgba(255,255,255,0.03); color: var(--ink);
  border: 1px solid var(--border-strong);
}
.btn-ghost:hover {
  border-color: var(--brand); background: var(--brand-12);
  transform: translateY(-1px);
}
.btn-lg { padding: 16px 34px; font-size: 16px; }

/* ── badge ── */
.badge {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 13px; border-radius: 999px;
  font-size: 13px; font-weight: 500; color: var(--brand-light);
  background: var(--brand-12); border: 1px solid var(--brand-20);
}
.badge .dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--brand);
  box-shadow: 0 0 8px var(--brand);
}

/* ── karta ── */
.card {
  position: relative; background: var(--surface-1);
  border: 1px solid var(--border); border-radius: 18px; padding: 28px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.4), 0 8px 24px rgba(0,0,0,0.25);
  transition: all 0.25s;
}
.card-hover:hover {
  transform: translateY(-2px); border-color: var(--brand-20);
  box-shadow: 0 22px 44px -16px rgba(37,201,168,0.22);
}

/* ── linki / nawigacja ── */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(6,6,7,0.82); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: flex; align-items: center; gap: 9px; font-family: var(--font-display); font-weight: 700; font-size: 17px; letter-spacing: -0.02em; }
.logo .mark {
  width: 26px; height: 26px; border-radius: 7px;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  display: grid; place-items: center; color: #04130f;
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.5), 0 2px 8px rgba(37,201,168,0.35);
}
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a:not(.btn) { color: var(--ink-2); font-size: 14px; font-weight: 500; }
.nav-links a:not(.btn):hover { color: var(--ink); }

/* ── stopka ── */
.footer { border-top: 1px solid var(--border); padding: 48px 0 40px; }
.footer a { color: var(--ink-3); font-size: 14px; }
.footer a:hover { color: var(--brand-light); }

/* ── pomocnicze ── */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s, transform 0.6s; }
.reveal.in { opacity: 1; transform: none; }

/* ── strony prawne ── */
.legal { max-width: 760px; margin: 0 auto; padding: 56px 24px 96px; }
.legal h1 { font-size: clamp(2rem, 4vw, 2.6rem); margin-bottom: 8px; }
.legal .updated { font-family: var(--font-mono); font-size: 13px; color: var(--ink-3); margin-bottom: 40px; }
.legal h2 { font-size: 1.3rem; margin: 38px 0 12px; }
.legal h2:first-of-type { margin-top: 8px; }
.legal p, .legal li { color: var(--ink-2); font-size: 15.5px; line-height: 1.7; }
.legal p { margin: 10px 0; }
.legal ul { margin: 10px 0 10px 22px; }
.legal li { margin: 5px 0; }
.legal strong { color: var(--ink); font-weight: 600; }
.legal a { color: var(--brand-light); text-decoration: underline; text-underline-offset: 3px; }
.legal .fill { color: var(--danger); font-family: var(--font-mono); font-size: 0.92em; }

@media (max-width: 720px) {
  .nav-links { gap: 14px; }
  .nav-links .hide-sm { display: none; }
}
