/* Candor: biel jako dominujący kolor marki.
   Tło i powierzchnie są białe; tusz (prawie czerń) służy do tekstu i głównych
   przycisków; kolory semantyczne (zielony/bursztyn/czerwony) tylko dla statusów. */
:root {
  color-scheme: light;
  --white: #ffffff;
  --bg: #ffffff;
  --bg-soft: #fafafa;
  --surface: #ffffff;
  --text: #0e1116;
  --muted: #5a626d;
  --faint: #8a919b;
  --line: #e8eaed;
  --line-strong: #d5d9de;
  --ink: #0e1116;
  --ink-hover: #262b33;
  --chip: #f3f4f6;
  --ok: #15803d;
  --warn: #b45309;
  --bad: #b91c1c;
  --shadow: 0 1px 2px rgba(14,17,22,.05), 0 16px 40px rgba(14,17,22,.07);
  --radius: 14px;
  --maxw: 1120px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
section { padding: 96px 0; }
.soft { background: var(--bg-soft); border-block: 1px solid var(--line); }
h1, h2, h3 { line-height: 1.12; letter-spacing: -0.025em; margin: 0; }
h1 { font-size: clamp(2.3rem, 5.2vw, 3.8rem); font-weight: 720; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.08rem; font-weight: 650; letter-spacing: -0.01em; }
p { margin: 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .78rem; font-weight: 650; letter-spacing: .09em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 16px;
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: var(--ink); }
.center .eyebrow { justify-content: center; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 62ch; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }
.section-head { margin-bottom: 52px; }
.section-head .lead { margin-top: 14px; }

/* nav */
header.nav {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255,255,255,.9);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-in { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.brand-mark { width: 30px; height: 30px; border-radius: 8px; background: var(--ink); display: grid; place-items: center; }
.brand-mark svg { width: 18px; height: 18px; stroke: #fff; fill: none; stroke-width: 2; stroke-linejoin: round; }
.wordmark { font-weight: 760; letter-spacing: -0.03em; font-size: 1.15rem; }
.wm-sub { font-weight: 500; color: var(--faint); letter-spacing: -0.03em; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { text-decoration: none; color: var(--muted); font-size: .95rem; font-weight: 500; }
.nav-links a:hover { color: var(--text); }
.nav-links a.btn { color: var(--text); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 10px; font-weight: 620; font-size: .98rem; text-decoration: none;
  border: 1px solid transparent; transition: transform .12s ease, background .12s ease, border-color .12s ease;
  cursor: pointer;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--ink-hover); }
.btn-ghost { border-color: var(--line-strong); background: var(--white); color: var(--text); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-sm { padding: 8px 16px; font-size: .9rem; }

/* hero */
.hero { padding: 88px 0 80px; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(circle at 1px 1px, #e3e6ea 1px, transparent 0);
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 70% 20%, #000, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 70% 20%, #000, transparent 75%);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; position: relative; }
.hero h1 span { color: var(--faint); }
.hero .lead { margin-top: 22px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

/* product mock */
.mock {
  background: var(--white); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow);
  overflow: hidden; font-size: .88rem;
}
.mock-bar { display: flex; align-items: center; gap: 6px; padding: 12px 14px; border-bottom: 1px solid var(--line); background: var(--bg-soft); }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }
.mock-title { margin-left: 10px; color: var(--muted); font-size: .8rem; }
.mock-body { padding: 18px; display: grid; gap: 14px; }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.kpi { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.kpi small { color: var(--muted); display: block; font-size: .72rem; }
.kpi strong { font-size: 1.35rem; letter-spacing: -0.02em; }
.kpi strong.bad { color: var(--bad); }
table.mt { width: 100%; border-collapse: collapse; }
.mt th { text-align: left; font-size: .72rem; font-weight: 600; color: var(--muted); padding: 6px 8px; border-bottom: 1px solid var(--line); }
.mt td { padding: 9px 8px; border-bottom: 1px solid var(--line); }
.mt tr:last-child td { border-bottom: 0; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .82rem; }
.pill { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: .72rem; font-weight: 620; }
.pill.ok { background: #e7f5ec; color: var(--ok); }
.pill.warn { background: #fdf1e1; color: var(--warn); }
.pill.bad { background: #fce8e8; color: var(--bad); }
.spark { height: 56px; width: 100%; display: block; }
.chart-head { display: flex; justify-content: space-between; color: var(--muted); font-size: .78rem; margin-bottom: 4px; }
.mock-note { padding: 0 18px 14px; color: var(--faint); font-size: .74rem; }

/* trust strip */
.strip { padding: 26px 0; border-block: 1px solid var(--line); background: var(--white); }
.strip-in { display: flex; flex-wrap: wrap; gap: 14px 44px; justify-content: center; color: var(--muted); font-size: .95rem; }
.strip-in span::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--ink); margin-right: 10px; vertical-align: middle; }

/* cards */
.grid { display: grid; gap: 20px; }
.g3 { grid-template-columns: repeat(3, 1fr); }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.card:hover { border-color: var(--line-strong); box-shadow: var(--shadow); transform: translateY(-2px); }
.icon {
  width: 42px; height: 42px; border-radius: 11px; background: var(--chip); color: var(--ink);
  display: grid; place-items: center; margin-bottom: 18px;
}
.icon svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.card p { color: var(--muted); margin-top: 8px; font-size: .96rem; }

/* flow */
.flow { display: grid; grid-template-columns: repeat(4, 1fr); counter-reset: s; }
.step { padding: 0 18px 0 0; position: relative; }
.step::before {
  counter-increment: s; content: counter(s);
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  background: var(--ink); color: #fff; font-weight: 700; margin-bottom: 16px; position: relative; z-index: 1;
}
.step::after { content: ""; position: absolute; top: 19px; left: 38px; right: 0; height: 1px; background: var(--line-strong); }
.step:last-child::after { display: none; }
.step p { color: var(--muted); font-size: .94rem; margin-top: 6px; }

/* quality */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.checks { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 16px; }
.checks li { display: grid; grid-template-columns: 24px 1fr; gap: 12px; }
.checks svg { width: 22px; height: 22px; stroke: var(--ink); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; margin-top: 2px; }
.checks b { font-weight: 640; }
.checks span { color: var(--muted); display: block; font-size: .95rem; }
.callout {
  border: 1px solid var(--line); background: var(--bg-soft); border-radius: var(--radius); padding: 26px;
  border-left: 3px solid var(--ink);
}
.callout p { color: var(--muted); font-size: .96rem; margin-top: 10px; }

/* project status */
.status {
  display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: start;
  border: 1px solid var(--line); border-radius: 18px; padding: 32px; background: var(--white);
  box-shadow: var(--shadow);
}
.status .icon { margin: 0; width: 52px; height: 52px; border-radius: 14px; }
.status .icon svg { width: 26px; height: 26px; }
.status p { color: var(--muted); margin-top: 10px; max-width: 70ch; }
.h-sm { font-size: 1.5rem; }

/* faq */
details { border-bottom: 1px solid var(--line); padding: 20px 0; }
details:first-of-type { border-top: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 620; font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--ink); transition: transform .15s ease; }
details[open] summary::after { transform: rotate(45deg); }
details p { color: var(--muted); margin-top: 12px; max-width: 70ch; }

/* language switch */
.lang { display: inline-flex; border: 1px solid var(--line-strong); border-radius: 999px; padding: 2px; background: var(--white); }
.lang a, .lang span {
  padding: 4px 12px; border-radius: 999px; font-size: .82rem; font-weight: 640; text-decoration: none; color: var(--muted);
}
.lang span[aria-current] { background: var(--ink); color: #fff; }
.lang a:hover { color: var(--text); }

footer { padding: 44px 0 60px; color: var(--muted); font-size: .9rem; border-top: 1px solid var(--line); }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
.foot nav { display: flex; gap: 22px; flex-wrap: wrap; align-items: center; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--text); }
.foot span[aria-current] { color: var(--text); font-weight: 600; }

.lead.mt { margin-top: 14px; }
.wrap.narrow { max-width: 820px; }

/* responsive */
@media (max-width: 960px) {
  .hero-grid, .split { grid-template-columns: 1fr; gap: 40px; }
  .g3 { grid-template-columns: repeat(2, 1fr); }
  .flow { grid-template-columns: 1fr 1fr; row-gap: 32px; }
  .step::after { display: none; }
  .nav-links a.hide-sm { display: none; }
}
@media (max-width: 620px) {
  section { padding: 64px 0; }
  .hero { padding: 48px 0 56px; }
  .g3, .flow { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .kpis .kpi:last-child { display: none; }
  .mt th:nth-child(3), .mt td:nth-child(3) { display: none; }
  .nav-links { gap: 12px; }
  .status { grid-template-columns: 1fr; padding: 24px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
