/* ═══════════════════════════════════════════════════════════════
   ZELVEON AI — style.css
   Single typeface (DM Sans), semantyczne zmienne kolorów,
   auto + manual light/dark mode.
═══════════════════════════════════════════════════════════════ */

/* ── RESET ───────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ── DESIGN TOKENS — DARK (default) ──────────────────────────── */
:root {
  /* Surfaces */
  --bg:              #0a0a0a;
  --bg-elevated:     #111111;
  --bg-subtle:       rgba(245, 244, 240, 0.018);

  /* Inverted surfaces (used in pricing section as accent) */
  --bg-inverted:     #f5f4f0;
  --bg-inverted-soft:#eeede8;

  /* Text */
  --text:            #f5f4f0;
  --text-secondary:  #d3d1c7;
  --text-muted:      #8e8d86;
  --text-faint:      #3a3a37;
  --text-inverted:   #0a0a0a;
  --text-inverted-muted: #6b6a64;

  /* Borders */
  --border:          rgba(245, 244, 240, 0.12);
  --border-soft:     rgba(245, 244, 240, 0.06);
  --border-strong:   rgba(245, 244, 240, 0.25);
  --border-inverted: rgba(10, 10, 10, 0.18);

  /* UI Chrome */
  --nav-bg:          rgba(10, 10, 10, 0.86);
  --hero-letter:     rgba(245, 244, 240, 0.10);
  --input-bg:        rgba(245, 244, 240, 0.04);
  --input-bg-focus:  rgba(245, 244, 240, 0.06);

  /* Accent (success/error always the same) */
  --success-bg:      rgba(97, 209, 133, 0.06);
  --success-border:  rgba(97, 209, 133, 0.4);
  --success-text:    #9febb5;
  --error-bg:        rgba(226, 75, 74, 0.06);
  --error-border:    rgba(226, 75, 74, 0.4);
  --error-text:      #f0a0a0;

  /* Typography */
  --font-body:       'DM Sans', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;

  /* Layout */
  --nav-height:      80px;
  --section-px:      clamp(24px, 5vw, 80px);
  --section-py:      clamp(80px, 10vw, 140px);
  --max-width:       1440px;

  /* Motion */
  --ease-out:        cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out:     cubic-bezier(0.4, 0, 0.2, 1);

  color-scheme: dark;
}

/* ── DESIGN TOKENS — LIGHT ───────────────────────────────────── */
:root[data-theme="light"] {
  --bg:              #f5f4f0;
  --bg-elevated:     #ffffff;
  --bg-subtle:       rgba(10, 10, 10, 0.022);

  --bg-inverted:     #0a0a0a;
  --bg-inverted-soft:#161616;

  --text:            #0a0a0a;
  --text-secondary:  #2c2c2a;
  --text-muted:      #6b6a64;
  --text-faint:      #c8c6bc;
  --text-inverted:   #f5f4f0;
  --text-inverted-muted: rgba(245, 244, 240, 0.55);

  --border:          rgba(10, 10, 10, 0.12);
  --border-soft:     rgba(10, 10, 10, 0.06);
  --border-strong:   rgba(10, 10, 10, 0.28);
  --border-inverted: rgba(245, 244, 240, 0.15);

  --nav-bg:          rgba(245, 244, 240, 0.88);
  --hero-letter:     rgba(10, 10, 10, 0.09);
  --input-bg:        rgba(10, 10, 10, 0.03);
  --input-bg-focus:  rgba(10, 10, 10, 0.05);

  color-scheme: light;
}

/* Fallback dla użytkowników bez JS — respektuj preferencje systemu */
@media (prefers-color-scheme: light) {
  :root:not([data-theme]) {
    --bg:              #f5f4f0;
    --bg-elevated:     #ffffff;
    --bg-subtle:       rgba(10, 10, 10, 0.022);
    --bg-inverted:     #0a0a0a;
    --bg-inverted-soft:#161616;
    --text:            #0a0a0a;
    --text-secondary:  #2c2c2a;
    --text-muted:      #6b6a64;
    --text-faint:      #c8c6bc;
    --text-inverted:   #f5f4f0;
    --text-inverted-muted: rgba(245, 244, 240, 0.55);
    --border:          rgba(10, 10, 10, 0.12);
    --border-soft:     rgba(10, 10, 10, 0.06);
    --border-strong:   rgba(10, 10, 10, 0.28);
    --border-inverted: rgba(245, 244, 240, 0.15);
    --nav-bg:          rgba(245, 244, 240, 0.88);
    --hero-letter:     rgba(10, 10, 10, 0.09);
    --input-bg:        rgba(10, 10, 10, 0.03);
    --input-bg-focus:  rgba(10, 10, 10, 0.05);
    color-scheme: light;
  }
}

/* ── BASE ────────────────────────────────────────────────────── */
html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.3s var(--ease-out), color 0.3s var(--ease-out);
}

img { max-width: 100%; display: block; }
a { color: inherit; }

::selection {
  background: var(--text);
  color: var(--bg);
}

/* ── SCROLL REVEAL ───────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.reveal.revealed {
  opacity: 1;
  transform: none;
}
.reveal-delay-1 { transition-delay: 0.12s; }
.reveal-delay-2 { transition-delay: 0.24s; }
.reveal-delay-3 { transition-delay: 0.36s; }

/* ── TYPOGRAPHY HELPERS ──────────────────────────────────────── */
.section-tag {
  display: block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-body);
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.05;
  color: var(--text);
}

/* ── BUTTONS ─────────────────────────────────────────────────── */
.btn-primary,
.btn-ghost,
.btn-outline,
.btn-primary-light {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 30px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: opacity 0.2s, background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}

.btn-primary {
  background: var(--text);
  color: var(--bg);
}
.btn-primary:hover { opacity: 0.85; transform: translateY(-1px); }

.btn-ghost {
  background: none;
  color: var(--text-secondary);
  border: 1px solid var(--border-strong);
}
.btn-ghost:hover {
  color: var(--text);
  border-color: var(--text);
}

.btn-outline {
  background: none;
  color: var(--text-inverted);
  border: 1px solid var(--border-inverted);
  width: 100%;
  text-align: center;
}
.btn-outline:hover {
  background: var(--text-inverted);
  color: var(--bg-inverted);
  border-color: var(--text-inverted);
}

.btn-primary-light {
  background: var(--bg-inverted);
  color: var(--text-inverted);
  width: 100%;
  text-align: center;
}
.btn-primary-light:hover { opacity: 0.85; }

/* ── NAVIGATION ──────────────────────────────────────────────── */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--section-px);
  height: var(--nav-height);
  border-bottom: 1px solid var(--border-soft);
  background: var(--nav-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: border-color 0.3s, background-color 0.3s;
}

#navbar.scrolled {
  border-color: var(--border);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-z {
  width: 34px;
  height: 34px;
  background: var(--text);
  color: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.nav-z.small { width: 28px; height: 28px; }
.nav-z svg { width: 22px; height: 22px; }
.nav-z.small svg { width: 18px; height: 18px; }

.nav-wordmark {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text);
}

.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.nav-cta {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--text);
  border: none;
  padding: 11px 22px;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.2s;
  white-space: nowrap;
}
.nav-cta:hover { opacity: 0.85; }

/* Theme toggle button */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: none;
  border: 1px solid var(--border);
  color: var(--text);
  cursor: pointer;
  padding: 0;
  transition: border-color 0.2s, background-color 0.2s, color 0.2s;
  flex-shrink: 0;
}
.theme-toggle:hover {
  border-color: var(--border-strong);
  background: var(--bg-subtle);
}
.theme-toggle svg {
  width: 18px;
  height: 18px;
  transition: opacity 0.2s, transform 0.3s var(--ease-out);
}
/* Default (dark mode): show moon, hide sun */
.theme-icon-sun { display: none; }
.theme-icon-moon { display: block; }
:root[data-theme="light"] .theme-icon-sun { display: block; }
:root[data-theme="light"] .theme-icon-moon { display: none; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme]) .theme-icon-sun { display: block; }
  :root:not([data-theme]) .theme-icon-moon { display: none; }
}

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text);
  transition: transform 0.3s, opacity 0.3s, background-color 0.3s;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ── HERO ─────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: calc(var(--nav-height) + 60px) var(--section-px) 120px;
  overflow: hidden;
}

.hero-bg-letter {
  position: absolute;
  top: 50%;
  right: -4vw;
  left: auto;
  transform: translateY(-50%);
  font-family: var(--font-body);
  font-size: clamp(260px, 46vw, 680px);
  font-weight: 500;
  color: transparent;
  -webkit-text-stroke: 1px var(--hero-letter);
  letter-spacing: -0.04em;
  pointer-events: none;
  user-select: none;
  animation: fadeIn 2s var(--ease-out) forwards;
  z-index: 0;
}

.hero-content {
  position: relative;
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  text-align: center;
  z-index: 1;
}

.hero-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.hero-headline {
  font-family: var(--font-body);
  font-size: clamp(48px, 8.5vw, 108px);
  font-weight: 500;
  line-height: 0.96;
  letter-spacing: -0.045em;
  max-width: 1000px;
  margin: 0 auto;
  color: var(--text);
}
.hero-headline em {
  font-style: normal;
  font-weight: 300;
  color: var(--text-muted);
}

.hero-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  margin: 56px auto 0;
  max-width: 640px;
}

.hero-sub {
  font-size: 17px;
  font-weight: 400;
  color: var(--text-secondary);
  line-height: 1.6;
  text-align: center;
}

.hero-actions {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  animation: fadeIn 1.2s var(--ease-out) 1s both;
  z-index: 1;
}
.scroll-line {
  width: 1px;
  height: 48px;
  background: var(--text-muted);
  animation: scrollPulse 2s ease-in-out 2s infinite;
}

/* ── STATS BAR ───────────────────────────────────────────────── */
.stats-bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  align-items: stretch;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stat-item {
  padding: 44px var(--section-px);
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 180px;
}

.stat-divider {
  width: 1px;
  background: var(--border);
  align-self: center;
  height: 60px;
}

.stat-number {
  font-family: var(--font-body);
  font-size: clamp(34px, 3.6vw, 48px);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1;
  margin-bottom: 12px;
  color: var(--text);
}

.stat-label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  text-transform: uppercase;
  line-height: 1.55;
}

/* ── MANIFESTO ───────────────────────────────────────────────── */
.manifesto {
  padding: var(--section-py) var(--section-px);
  border-bottom: 1px solid var(--border);
}

.manifesto-inner {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 60px;
  align-items: start;
  max-width: 1280px;
}

.manifesto-text {
  font-family: var(--font-body);
  font-size: clamp(24px, 3vw, 42px);
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: -0.025em;
  color: var(--text);
}
.manifesto-text strong { font-weight: 600; color: var(--text); }
.manifesto-text .muted { color: var(--text-muted); font-weight: 300; }

/* ── SERVICES ────────────────────────────────────────────────── */
.section-services {
  padding: var(--section-py) 0 var(--section-py);
  border-bottom: 1px solid var(--border);
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 0 var(--section-px) 56px;
  flex-wrap: wrap;
  gap: 24px;
}

.section-count {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--border);
}

.service-card {
  padding: 56px var(--section-px);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s;
  position: relative;
  overflow: hidden;
}
.service-card:nth-child(3n) { border-right: none; }
.service-card:nth-child(n+4) { border-bottom: none; }
.service-card:hover { background: var(--bg-subtle); }

.service-number {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--text-muted);
  margin-bottom: 28px;
}

.service-name {
  font-family: var(--font-body);
  font-size: clamp(20px, 1.9vw, 26px);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin-bottom: 18px;
  color: var(--text);
}

.service-desc {
  font-size: 15px;
  font-weight: 400;
  color: var(--text-muted);
  line-height: 1.65;
}

.service-arrow {
  position: absolute;
  bottom: 28px;
  right: var(--section-px);
  font-size: 18px;
  color: var(--text-faint);
  transition: transform 0.2s, color 0.2s;
}
.service-card:hover .service-arrow {
  transform: translate(4px, -4px);
  color: var(--text);
}

/* ── PROCESS ─────────────────────────────────────────────────── */
.section-process {
  padding: var(--section-py) var(--section-px);
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border);
}

.process-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: end;
  margin-bottom: 72px;
}

.process-intro {
  font-size: 16px;
  font-weight: 400;
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 460px;
  justify-self: end;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.process-step {
  padding: 0 36px 0 0;
  border-right: 1px solid var(--border);
}
.process-step:last-child { border-right: none; padding-right: 0; }
.process-step:not(:first-child) { padding-left: 36px; }

.step-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.step-num {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--text-muted);
  white-space: nowrap;
}

.step-line {
  flex: 1;
  height: 1px;
  background: var(--border);
}

.step-name {
  font-family: var(--font-body);
  font-size: clamp(18px, 1.7vw, 23px);
  font-weight: 500;
  letter-spacing: -0.025em;
  margin-bottom: 14px;
  color: var(--text);
}

.step-desc {
  font-size: 15px;
  font-weight: 400;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── INDUSTRIES ──────────────────────────────────────────────── */
.section-industries {
  padding: var(--section-py) var(--section-px);
  border-bottom: 1px solid var(--border);
}

.industries-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: end;
  margin-bottom: 56px;
}

.industries-sub {
  font-size: 16px;
  font-weight: 400;
  color: var(--text-muted);
  max-width: 380px;
  line-height: 1.65;
  justify-self: end;
  text-align: right;
}

.industries-list {
  list-style: none;
  border-top: 1px solid var(--border);
}

.industry-row {
  display: grid;
  grid-template-columns: minmax(220px, auto) 1fr auto;
  align-items: baseline;
  column-gap: 48px;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
  cursor: default;
  position: relative;
  transition: padding-left 0.3s var(--ease-out);
}
.industry-row:hover { padding-left: 8px; }

.industry-name {
  font-family: var(--font-body);
  font-size: clamp(22px, 2.3vw, 30px);
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--text);
  transition: color 0.2s;
}

.industry-usecase {
  font-size: 16px;
  font-weight: 400;
  color: var(--text-muted);
  text-align: left;
  line-height: 1.5;
  max-width: 480px;
}

.industry-arrow {
  width: 22px;
  height: 22px;
  color: var(--text-faint);
  transition: transform 0.2s, color 0.2s;
  flex-shrink: 0;
  align-self: center;
}
.industry-row:hover .industry-arrow {
  transform: translate(4px, -4px);
  color: var(--text);
}

/* "Open door" CTA — Twojej branży nie ma na liście? */
.industries-open {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 56px;
  align-items: center;
  margin-top: 56px;
  padding: 48px 52px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  transition: border-color 0.3s, background-color 0.3s;
}
.industries-open:hover {
  border-color: var(--border-strong);
}

.industries-open-content {
  max-width: 680px;
}

.industries-open-title {
  font-family: var(--font-body);
  font-size: clamp(22px, 2.2vw, 30px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 14px;
}

.industries-open-desc {
  font-size: 16px;
  font-weight: 400;
  color: var(--text-muted);
  line-height: 1.6;
}

.industries-open-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 30px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  background: var(--text);
  color: var(--bg);
  border: none;
  white-space: nowrap;
  transition: opacity 0.2s, transform 0.2s;
}
.industries-open-cta:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}

/* ── PRICING (inverted accent section) ───────────────────────── */
.section-pricing {
  padding: var(--section-py) var(--section-px);
  background: var(--bg-inverted);
  color: var(--text-inverted);
  border-bottom: 1px solid var(--border-inverted);
}

.section-pricing .section-tag { color: var(--text-inverted-muted); }
.section-pricing .section-title { color: var(--text-inverted); }

.pricing-header {
  margin-bottom: 52px;
}

.pricing-sub {
  margin-top: 18px;
  font-size: 15px;
  font-weight: 400;
  color: var(--text-inverted-muted);
  max-width: 580px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--border-inverted);
}

.pricing-card {
  padding: 48px 40px;
  border-right: 1px solid var(--border-inverted);
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--bg-inverted);
}
.pricing-card:last-child { border-right: none; }

.pricing-card--featured {
  background: var(--bg);
  color: var(--text);
}

.pricing-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: var(--text);
  color: var(--bg);
  padding: 5px 12px;
  margin-bottom: 22px;
  align-self: flex-start;
}

.pricing-tier {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-inverted-muted);
  margin-bottom: 14px;
}
.pricing-card--featured .pricing-tier { color: var(--text-muted); }

.pricing-price-wrap {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 6px;
}

.pricing-price {
  font-family: var(--font-body);
  font-size: clamp(38px, 4vw, 54px);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--text-inverted);
}
.pricing-card--featured .pricing-price { color: var(--text); }

.pricing-currency {
  font-family: var(--font-body);
  font-size: 22px;
  font-weight: 400;
  color: var(--text-inverted-muted);
}
.pricing-card--featured .pricing-currency { color: var(--text-muted); }

.pricing-period {
  font-size: 13px;
  font-weight: 400;
  color: var(--text-inverted-muted);
  margin-bottom: 30px;
}
.pricing-card--featured .pricing-period { color: var(--text-muted); }

.pricing-hr {
  border: none;
  border-top: 1px solid var(--border-inverted);
  margin-bottom: 28px;
}
.pricing-card--featured .pricing-hr { border-color: var(--border); }

.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 36px;
  flex: 1;
}

.pricing-features li {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-inverted);
  display: flex;
  align-items: flex-start;
  gap: 12px;
  line-height: 1.55;
  opacity: 0.85;
}
.pricing-card--featured .pricing-features li { color: var(--text); opacity: 0.8; }

.pricing-features li::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--text-inverted);
  margin-top: 9px;
  flex-shrink: 0;
  opacity: 0.4;
}
.pricing-card--featured .pricing-features li::before { background: var(--text); opacity: 0.4; }

/* ── CONTACT / CTA ───────────────────────────────────────────── */
.section-contact {
  position: relative;
  padding: var(--section-py) var(--section-px);
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.contact-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--bg-subtle) 0%, transparent 65%);
  pointer-events: none;
}

.contact-inner {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.contact-tag { text-align: center; }

.contact-headline {
  font-family: var(--font-body);
  font-size: clamp(42px, 6vw, 84px);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 0.98;
  margin-bottom: 60px;
  color: var(--text);
}
.contact-headline em {
  font-style: normal;
  font-weight: 300;
  color: var(--text-muted);
}

/* FORM */
.contact-form {
  text-align: left;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 0;
}
.form-group:not(.form-row .form-group) { margin-bottom: 16px; }

.form-group label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.form-optional {
  font-size: 11px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--text-faint);
  font-weight: 400;
}

.form-group input,
.form-group textarea {
  width: 100%;
  background: var(--input-bg);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 400;
  padding: 14px 16px;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
  resize: vertical;
  -webkit-appearance: none;
  border-radius: 0;
}
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-faint);
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--text);
  background: var(--input-bg-focus);
}

.form-footer {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  margin-top: 12px;
}

.btn-submit {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--text);
  border: none;
  padding: 16px 36px;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
}
.btn-submit:hover { opacity: 0.85; transform: translateY(-1px); }
.btn-submit:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.form-note {
  font-size: 13px;
  font-weight: 400;
  color: var(--text-muted);
  line-height: 1.6;
}
.form-link {
  color: var(--text-secondary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.form-success,
.form-error {
  margin-top: 16px;
  padding: 14px 18px;
  font-size: 14px;
  line-height: 1.5;
}
.form-success {
  border: 1px solid var(--success-border);
  background: var(--success-bg);
  color: var(--success-text);
}
.form-error {
  border: 1px solid var(--error-border);
  background: var(--error-bg);
  color: var(--error-text);
}
.form-error a { color: var(--text-secondary); text-decoration: underline; }

.contact-alt {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 56px;
  font-size: 13px;
  color: var(--text-muted);
}

.contact-email {
  font-family: var(--font-body);
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s;
}
.contact-email:hover { color: var(--text-secondary); }

/* ── FOOTER ──────────────────────────────────────────────────── */
.site-footer {
  padding: 60px var(--section-px) 36px;
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 60px;
  margin-bottom: 48px;
  align-items: start;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-tagline {
  font-size: 13px;
  font-weight: 400;
  color: var(--text-muted);
}

.footer-nav {
  display: flex;
  gap: 60px;
}

.footer-col h3,
.footer-col-title {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--text); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 28px;
  border-top: 1px solid var(--border-soft);
  flex-wrap: wrap;
  gap: 12px;
}

.footer-copy,
.footer-legal {
  font-size: 12px;
  font-weight: 400;
  color: var(--text-muted);
  opacity: 0.7;
}

.footer-legal {
  display: flex;
  gap: 24px;
  opacity: 1;
}

.footer-legal a {
  color: var(--text-muted);
  opacity: 0.7;
  text-decoration: none;
  transition: color 0.2s, opacity 0.2s;
}
.footer-legal a:hover { color: var(--text); opacity: 1; }

/* ── ANIMATIONS ──────────────────────────────────────────────── */
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes scrollPulse {
  0%, 100% { transform: scaleY(1); opacity: 1; }
  50%       { transform: scaleY(0.5) translateY(12px); opacity: 0.4; }
}

/* ── RESPONSIVE ──────────────────────────────────────────────── */

/* Tablet — 1024px */
@media (max-width: 1024px) {
  .stats-bar {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
  }
  .stat-divider { display: none; }
  /* 2x2 grid: stat-items are at DOM nth-child(1,3,5,7).
     Stat 1 = top-left, Stat 2 = top-right (nth-child 3),
     Stat 3 = bottom-left (nth-child 5), Stat 4 = bottom-right (nth-child 7). */
  .stat-item { border: none; }
  .stat-item:nth-child(1),
  .stat-item:nth-child(3) { border-bottom: 1px solid var(--border); }
  .stat-item:nth-child(1),
  .stat-item:nth-child(5) { border-right: 1px solid var(--border); }

  .manifesto-inner { grid-template-columns: 1fr; gap: 20px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .service-card:nth-child(3n) { border-right: 1px solid var(--border); }
  .service-card:nth-child(2n) { border-right: none; }
  .service-card:nth-child(n+4) { border-bottom: 1px solid var(--border); }
  .service-card:nth-child(n+5) { border-bottom: none; }

  .process-header { grid-template-columns: 1fr; gap: 24px; }
  .process-intro { justify-self: start; }
  .process-steps { grid-template-columns: repeat(2, 1fr); gap: 40px; }
  .process-step { border-right: none; padding: 0; }
  .process-step:not(:first-child) { padding-left: 0; }

  .industries-header { grid-template-columns: 1fr; gap: 16px; }
  .industries-sub { justify-self: start; text-align: left; }
  .industry-row { grid-template-columns: minmax(180px, auto) 1fr auto; column-gap: 32px; }
  .industries-open {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 40px 36px;
  }
  .industries-open-cta { justify-self: start; }

  .pricing-grid { grid-template-columns: 1fr; }
  .pricing-card { border-right: none; border-bottom: 1px solid var(--border-inverted); }
  .pricing-card:last-child { border-bottom: none; }

  .footer-top { grid-template-columns: 1fr; }
  .footer-nav { flex-wrap: wrap; gap: 40px; }
}

/* Mobile — 640px */
@media (max-width: 640px) {
  :root { --nav-height: 68px; }

  .nav-links {
    display: none;
  }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--nav-height);
    left: 0; right: 0;
    background: var(--bg);
    padding: 32px var(--section-px) 48px;
    gap: 28px;
    border-bottom: 1px solid var(--border);
    z-index: 190;
  }

  .nav-links.open li { text-align: center; }
  .nav-links.open a { font-size: 14px; }
  .nav-hamburger { display: flex; }
  .nav-cta { display: none; }
  .nav-actions { gap: 10px; }
  .theme-toggle { width: 36px; height: 36px; }

  /* Hero: skróć min-height i justify-content top żeby usunąć duży pusty pasek */
  .hero {
    min-height: auto;
    padding-top: calc(var(--nav-height) + 40px);
    padding-bottom: 60px;
    justify-content: flex-start;
  }
  .hero-bg-letter {
    font-size: clamp(220px, 80vw, 380px);
    right: -10vw;
  }
  .hero-headline { font-size: clamp(40px, 11vw, 60px); }
  .hero-bottom { gap: 24px; margin-top: 40px; }
  .hero-actions { width: 100%; }
  .hero-actions .btn-primary,
  .hero-actions .btn-ghost { flex: 1; min-width: 140px; }
  .hero-scroll { display: none; }

  .stats-bar {
    grid-template-columns: 1fr 1fr;
  }
  .stat-item { padding: 32px 24px; }

  .services-grid { grid-template-columns: 1fr; }
  .service-card { border-right: none; border-bottom: 1px solid var(--border); padding: 44px var(--section-px); }
  .service-card:last-child { border-bottom: none; }

  .process-steps { grid-template-columns: 1fr; gap: 36px; }

  .industry-row { grid-template-columns: 1fr; gap: 8px; padding: 24px 0; }
  .industry-usecase { font-size: 14px; }
  .industry-arrow { display: none; }
  .industries-open {
    padding: 32px 24px;
    margin-top: 32px;
    gap: 24px;
  }
  .industries-open-cta { width: 100%; }

  .form-row { grid-template-columns: 1fr; }

  .footer-nav { flex-direction: column; gap: 32px; }

  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* PRINT */
@media print {
  #navbar, .hero-scroll, .nav-hamburger, .theme-toggle { display: none; }
  body { background: white; color: black; }
}
