:root {
  --navy: #0F172A;
  --navy-soft: #1E293B;
  --slate-900: #0F172A;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748B;
  --slate-400: #94A3B8;
  --slate-300: #CBD5E1;
  --slate-200: #E2E8F0;
  --slate-100: #F1F5F9;
  --slate-50:  #F8FAFC;
  --white: #FFFFFF;
  --blue-600: #2563EB;
  --blue-500: #3B82F6;
  --blue-100: #DBEAFE;
  --blue-50:  #EFF6FF;
  --green-600: #059669;
  --green-100: #D1FAE5;
  --amber-500: #F59E0B;
  --red-500: #EF4444;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 2px rgba(15,23,42,0.04), 0 1px 3px rgba(15,23,42,0.06);
  --shadow-md: 0 4px 6px -1px rgba(15,23,42,0.06), 0 2px 4px -2px rgba(15,23,42,0.04);
  --shadow-lg: 0 12px 24px -8px rgba(15,23,42,0.10), 0 4px 8px -2px rgba(15,23,42,0.06);
  --sans: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

/* Fundusze Europejskie — zestawienie znaków w stopce */
.fe-footer {
  background: #FFFFFF;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  padding: 24px; margin: 32px 0 24px;
  display: flex; align-items: center; justify-content: center;
}
.fe-footer a { display: inline-flex; max-width: 100%; }
.fe-footer img { height: 64px; width: auto; max-width: 100%; display: block; }
@media (max-width: 600px) {
  .fe-footer { padding: 16px; }
  .fe-footer img { height: 44px; }
}

/* (dawny pasek u góry — utrzymany na wypadek gdyby gdzieś był używany) */
.fe-bar {
  background: #FFFFFF;
  border-bottom: 1px solid var(--slate-200);
  padding: 10px 24px;
  display: flex; align-items: center; justify-content: center;
  min-height: 72px;
}
.fe-bar a {
  display: inline-flex; align-items: center;
  max-width: 100%;
}
.fe-bar img, .fe-bar svg {
  height: 56px; width: auto; max-width: 100%;
  display: block;
}
@media (max-width: 600px) {
  .fe-bar { padding: 8px 12px; min-height: 56px; }
  .fe-bar img, .fe-bar svg { height: 40px; }
}

/* A11Y — skip link, focus, screen readers, reduced motion */
.skip-to-content {
  position: absolute; top: -40px; left: 8px; z-index: 1000;
  background: var(--navy); color: #fff;
  padding: 10px 16px; border-radius: 8px;
  font-family: var(--sans); font-weight: 600; font-size: 14px;
  text-decoration: none;
  transition: top 0.15s;
}
.skip-to-content:focus { top: 8px; outline: 3px solid var(--blue-500); outline-offset: 2px; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

:focus { outline: none; }
:focus-visible {
  outline: 3px solid var(--blue-500);
  outline-offset: 2px;
  border-radius: 4px;
}
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--blue-500);
  outline-offset: 2px;
}
input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--blue-500);
  outline-offset: 1px;
}

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

body {
  font-family: var(--sans);
  background: var(--white);
  color: var(--slate-900);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "cv11", "ss01";
}
img, svg { display: block; }
a { color: inherit; text-decoration: none; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 32px; }

/* NAV */
nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.85);
  backdrop-filter: saturate(1.5) blur(12px);
  -webkit-backdrop-filter: saturate(1.5) blur(12px);
  border-bottom: 1px solid var(--slate-200);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto;
  padding: 18px 32px;
  display: flex; align-items: center; justify-content: space-between;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 17px; letter-spacing: -0.02em;
  color: var(--navy);
}
.brand-mark {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--blue-600), var(--navy));
  display: grid; place-items: center;
  color: white; font-weight: 800; font-size: 15px;
}
.nav-links { display: flex; gap: 36px; }
.nav-links a {
  font-size: 14px; font-weight: 500;
  color: var(--slate-600);
  transition: color 0.15s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--navy); }
.nav-links a.active { font-weight: 600; }
.nav-actions { display: flex; gap: 12px; align-items: center; }

.btn-text {
  font-size: 14px; font-weight: 500;
  color: var(--slate-700);
  background: transparent; border: none; cursor: pointer;
  padding: 10px 16px;
}
.btn-primary {
  font-family: var(--sans);
  font-size: 14px; font-weight: 600;
  color: white; background: var(--navy);
  border: none; cursor: pointer;
  padding: 10px 18px; border-radius: 8px;
  display: inline-flex; align-items: center; gap: 8px;
  transition: background 0.15s;
  box-shadow: var(--shadow-sm);
  text-decoration: none;
}
.btn-primary:hover { background: var(--blue-600); }
.btn-primary.lg { padding: 14px 24px; font-size: 15px; border-radius: 10px; }
.btn-outline {
  font-family: var(--sans);
  font-size: 14px; font-weight: 600;
  color: var(--navy); background: white;
  border: 1px solid var(--slate-300);
  cursor: pointer;
  padding: 10px 18px; border-radius: 8px;
  display: inline-flex; align-items: center; gap: 8px;
  transition: border-color 0.15s, background 0.15s;
  text-decoration: none;
}
.btn-outline:hover { border-color: var(--navy); background: var(--slate-50); }
.btn-outline.lg { padding: 14px 24px; font-size: 15px; border-radius: 10px; }

/* HERO */
.hero {
  padding: 96px 0 80px;
  text-align: center;
  position: relative;
  background:
    radial-gradient(ellipse 800px 400px at 50% 0%, var(--blue-50), transparent 70%),
    white;
}
.hero.compact { padding: 72px 0 48px; }
.hero-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px;
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
  border-radius: 999px;
  font-size: 13px; font-weight: 600;
  color: var(--blue-600);
  margin-bottom: 28px;
}
.hero-pill .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--green-600);
  box-shadow: 0 0 0 3px var(--green-100);
}
h1 {
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.035em;
  color: var(--navy);
  max-width: 900px;
  margin: 0 auto 24px;
}
h1.sm { font-size: clamp(34px, 5vw, 56px); }
h1 .grad {
  background: linear-gradient(135deg, var(--blue-600), var(--navy));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-lead {
  font-size: 19px; line-height: 1.55;
  color: var(--slate-600);
  max-width: 620px; margin: 0 auto 40px;
}
.hero-ctas {
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
  margin-bottom: 24px;
}

/* SECTION */
section.block { padding: 120px 0; }
section.block.alt { background: var(--slate-50); }
section.block.sm { padding: 80px 0; }
.section-head { text-align: center; margin-bottom: 64px; max-width: 720px; margin-left: auto; margin-right: auto; }
.section-head.left { text-align: left; margin-left: 0; }
.section-tag {
  display: inline-block;
  font-size: 13px; font-weight: 600;
  color: var(--blue-600);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
h2 {
  font-size: clamp(32px, 4.5vw, 48px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--navy);
  margin-bottom: 20px;
}
h3 {
  font-size: 20px; font-weight: 700;
  color: var(--navy); letter-spacing: -0.015em;
}
.section-lead {
  font-size: 18px; color: var(--slate-600);
  max-width: 600px; margin: 0 auto;
}

/* CODE */
.code-wrap {
  max-width: 880px; margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--slate-200);
}
.code-head {
  background: var(--slate-50);
  border-bottom: 1px solid var(--slate-200);
  display: flex; align-items: center;
  padding: 0 16px;
  overflow-x: auto;
}
.code-dots { display: flex; gap: 6px; padding: 14px 0; margin-right: 16px; flex: none; }
.code-dots span {
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--slate-300);
}
.code-dots span:nth-child(1) { background: #FF5F57; }
.code-dots span:nth-child(2) { background: #FEBC2E; }
.code-dots span:nth-child(3) { background: #28C840; }
.code-tabs { display: flex; }
.tab {
  font-family: var(--mono);
  font-size: 12px; font-weight: 500;
  color: var(--slate-500);
  background: transparent; border: none;
  padding: 14px 16px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
  white-space: nowrap;
}
.tab.active { color: var(--navy); border-bottom-color: var(--blue-600); }
.code-body {
  background: var(--navy);
  padding: 28px 32px;
  overflow-x: auto;
}
.code-body pre {
  font-family: var(--mono);
  font-size: 13.5px; line-height: 1.75;
  color: #E2E8F0;
}
.tok-k { color: #C4B5FD; }
.tok-s { color: #86EFAC; }
.tok-f { color: #7DD3FC; }
.tok-c { color: #64748B; font-style: italic; }
.tok-n { color: #FCD34D; }

/* FEATURES */
.features {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.features.two { grid-template-columns: repeat(2, 1fr); }
.feature {
  background: white;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.feature:hover {
  border-color: var(--blue-500);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}
.feature-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--blue-50);
  color: var(--blue-600);
  display: grid; place-items: center;
  margin-bottom: 20px;
}
.feature h3 {
  font-size: 18px; font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.feature p {
  font-size: 14.5px; line-height: 1.6;
  color: var(--slate-600);
}

/* PRICING */
.pricing {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1100px; margin: 0 auto;
}
.plan {
  background: white;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  position: relative;
  transition: box-shadow 0.2s;
}
.plan:hover { box-shadow: var(--shadow-lg); }
.plan.featured {
  border: 2px solid var(--navy);
  box-shadow: var(--shadow-lg);
  transform: scale(1.02);
}
.plan-ribbon {
  position: absolute; top: -12px; left: 50%;
  transform: translateX(-50%);
  background: var(--navy); color: white;
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 6px 14px; border-radius: 999px;
}
.plan-name {
  font-size: 14px; font-weight: 700;
  color: var(--slate-500);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}
.plan-price {
  font-size: 44px; font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.03em;
  line-height: 1; margin-bottom: 8px;
}
.plan-price .suf { font-size: 15px; color: var(--slate-500); font-weight: 500; }
.plan-desc {
  font-size: 14px; color: var(--slate-600);
  margin-bottom: 28px;
}
.plan ul { list-style: none; margin-bottom: 28px; }
.plan li {
  padding: 10px 0;
  font-size: 14.5px;
  color: var(--slate-700);
  display: flex; gap: 10px; align-items: flex-start;
}
.plan li svg { flex: none; color: var(--green-600); margin-top: 3px; }
.plan-cta {
  width: 100%; padding: 12px 20px;
  font-family: var(--sans); font-weight: 600; font-size: 14.5px;
  background: white; color: var(--navy);
  border: 1px solid var(--slate-300);
  border-radius: 10px; cursor: pointer;
  transition: all 0.15s;
  display: block; text-align: center; text-decoration: none;
}
.plan-cta:hover { background: var(--slate-50); border-color: var(--navy); }
.plan.featured .plan-cta { background: var(--navy); color: white; border-color: var(--navy); }
.plan.featured .plan-cta:hover { background: var(--blue-600); border-color: var(--blue-600); }

/* FINAL CTA */
.final {
  padding: 120px 0;
  text-align: center;
  background:
    radial-gradient(ellipse 700px 350px at 50% 100%, var(--blue-50), transparent 70%),
    white;
}
.final h2 { max-width: 800px; margin: 0 auto 20px; }
.final .section-lead { margin-bottom: 36px; }
.final .hero-ctas { margin-bottom: 0; }

/* FOOTER */
footer {
  background: var(--slate-50);
  border-top: 1px solid var(--slate-200);
  padding: 64px 0 32px;
}
.foot-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.foot-brand { max-width: 280px; }
.foot-brand p {
  margin-top: 16px;
  font-size: 14px; color: var(--slate-600);
  line-height: 1.6;
}
.foot-col h4 {
  font-size: 13px; font-weight: 700;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}
.foot-col a {
  display: block;
  padding: 6px 0;
  font-size: 14px; color: var(--slate-600);
  transition: color 0.15s;
}
.foot-col a:hover { color: var(--blue-600); }
.foot-bottom {
  border-top: 1px solid var(--slate-200);
  padding-top: 24px;
  display: flex; justify-content: space-between;
  font-size: 13px; color: var(--slate-500);
  flex-wrap: wrap; gap: 16px;
}

/* PROSE (legal, blog) */
.prose {
  max-width: 720px; margin: 0 auto;
  font-size: 16px; line-height: 1.75;
  color: var(--slate-700);
}
.prose h2 { font-size: 28px; margin: 48px 0 16px; }
.prose h3 { font-size: 20px; margin: 32px 0 12px; }
.prose p { margin-bottom: 16px; }
.prose ul, .prose ol { margin: 0 0 16px 24px; }
.prose li { margin-bottom: 8px; }
.prose a { color: var(--blue-600); text-decoration: underline; }

/* TABLES */
.tbl {
  width: 100%; border-collapse: collapse;
  background: white; border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  font-size: 14.5px;
}
.tbl th, .tbl td {
  padding: 14px 20px;
  text-align: left;
  border-bottom: 1px solid var(--slate-200);
}
.tbl th {
  background: var(--slate-50);
  font-weight: 700; color: var(--navy);
  font-size: 13px; text-transform: uppercase;
  letter-spacing: 0.05em;
}
.tbl tr:last-child td { border-bottom: none; }
.tbl td.check { color: var(--green-600); font-weight: 700; }
.tbl td.dash { color: var(--slate-400); }

/* RESPONSIVE */
@media (max-width: 900px) {
  .wrap, .nav-inner { padding-left: 20px; padding-right: 20px; }
  .nav-links { display: none; }
  .features, .features.two { grid-template-columns: 1fr; }
  .pricing { grid-template-columns: 1fr; }
  .plan.featured { transform: none; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .foot-brand { grid-column: 1 / -1; }
  section.block { padding: 80px 0; }
}

/* REVEAL */
.reveal { opacity: 0; transform: translateY(20px); transition: all 0.7s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
