/* ==========================================================================
   Sys-Maker – style strony
   Paleta z logo: #10201B (ciemny), #22A060 (zielony), #4F5A55 (szary)
   ========================================================================== */

/* ---------- Czcionki (hostowane lokalnie, bez Google Fonts – RODO) ----------
   Jeden plik na krój/grubość: łacina podstawowa + rozszerzona (polskie znaki). */
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-var.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/jetbrains-mono-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/jetbrains-mono-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

/* ---------- Tokeny ---------- */
:root {
  --ink: #10201B;
  --ink-2: #172C25;
  --ink-3: #21392F;
  --green: #22A060;
  --green-text: #187A48;   /* zielony na jasnym tle – kontrast AA */
  --green-bright: #3CC47D; /* zielony na ciemnym tle */
  --muted: #4F5A55;
  --bg: #FFFFFF;
  --bg-alt: #F3F6F4;
  --line: #DCE4E0;
  --on-dark: #E8EFEB;
  --on-dark-muted: #A3B3AB;

  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --radius: 14px;
  --radius-sm: 8px;
  --container: 1160px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 72px;
  --shadow: 0 1px 2px rgba(16, 32, 27, .06), 0 8px 24px rgba(16, 32, 27, .06);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; height: auto; }

h1, h2, h3 {
  font-family: var(--font-mono);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 .6em;
  text-wrap: balance;
}
h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.2rem; letter-spacing: -0.01em; }

p { margin: 0 0 1em; }

a { color: var(--green-text); text-underline-offset: 3px; }

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

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.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;
}

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--green); color: #fff; padding: .6em 1em; border-radius: var(--radius-sm);
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 16px; }

/* ---------- Przyciski ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px;
  padding: .75em 1.4em;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: .95rem;
  text-decoration: none;
  border: 2px solid transparent;
  transition: background-color .2s, border-color .2s, color .2s, transform .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: #1B8A52; }
.btn-ghost { border-color: rgba(232, 239, 235, .3); color: var(--on-dark); }
.btn-ghost:hover { border-color: var(--green-bright); color: #fff; }
.btn-block { width: 100%; }

/* ---------- Nagłówek ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h);
  background: transparent;
  transition: background-color .25s, box-shadow .25s;
}
.site-header.is-scrolled,
.site-header.nav-open {
  background: rgba(16, 32, 27, .92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .06);
}
.header-inner {
  height: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand img { width: 160px; height: auto; }

.site-nav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; align-items: center; gap: 4px;
}
.site-nav a {
  display: block;
  padding: .5em .85em;
  color: var(--on-dark);
  text-decoration: none;
  font-size: .95rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: color .2s, background-color .2s;
}
.site-nav a:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.site-nav .nav-cta {
  margin-left: 8px;
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--green-bright);
  border: 1.5px solid rgba(60, 196, 125, .45);
}
.site-nav .nav-cta:hover { background: var(--green); border-color: var(--green); color: #fff; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  background: none; border: 0; padding: 0; cursor: pointer;
  position: relative;
}
.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  position: absolute; left: 11px; width: 22px; height: 2px;
  background: var(--on-dark); border-radius: 2px;
  transition: transform .25s, opacity .2s;
}
.nav-toggle-bar { top: 21px; }
.nav-toggle-bar::before, .nav-toggle-bar::after { content: ""; left: 0; }
.nav-toggle-bar::before { top: -7px; }
.nav-toggle-bar::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    background: rgba(16, 32, 27, .97);
    border-top: 1px solid rgba(255, 255, 255, .06);
    padding: 12px var(--gutter) 24px;
    display: none;
  }
  .site-header.nav-open .site-nav { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .site-nav a { padding: .85em .5em; font-size: 1.05rem; }
  .site-nav .nav-cta { margin: 12px 0 0; text-align: center; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: radial-gradient(1200px 600px at 85% 20%, rgba(34, 160, 96, .16), transparent 60%), var(--ink);
  color: var(--on-dark);
  padding: calc(var(--header-h) + clamp(48px, 9vw, 112px)) 0 clamp(64px, 10vw, 128px);
  overflow: hidden;
}
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 70% 30%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 70% 30%, #000 20%, transparent 75%);
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: .9rem;
  color: var(--green-bright);
  background: rgba(34, 160, 96, .1);
  border: 1px solid rgba(34, 160, 96, .3);
  padding: .3em .8em;
  border-radius: 999px;
  margin-bottom: 1.4em;
}
.eyebrow .prompt { color: var(--on-dark-muted); margin-right: .25em; }
.hero h1 { color: #fff; }
.accent { color: var(--green-bright); }
.lead {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: var(--on-dark-muted);
  max-width: 36em;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 2em 0 2.2em; }
.hero-points {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-wrap: wrap; gap: 8px 24px;
  font-size: .92rem; color: var(--on-dark-muted);
}
.hero-points li::before {
  content: "✓"; color: var(--green-bright); font-weight: 700; margin-right: .5em;
}

/* Terminal */
.terminal {
  background: #0A1511;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: var(--radius);
  box-shadow: 0 30px 60px rgba(0, 0, 0, .35), 0 0 0 1px rgba(34, 160, 96, .08);
  overflow: hidden;
  min-width: 0;
}
.terminal-bar {
  display: flex; align-items: center; gap: 7px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, .03);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.terminal-bar .dot { width: 11px; height: 11px; border-radius: 50%; background: #2C3E37; }
.terminal-bar .dot:first-child { background: var(--green); }
.terminal-title {
  margin-left: auto; margin-right: auto; padding-right: 40px;
  font-family: var(--font-mono); font-size: .78rem; color: var(--on-dark-muted);
}
.terminal-body {
  margin: 0;
  padding: 20px 22px 24px;
  min-height: 330px;
  font-family: var(--font-mono);
  font-size: .86rem;
  line-height: 1.75;
  color: var(--on-dark);
  white-space: pre-wrap;
  word-break: break-word;
}
.terminal-body .t-prompt { color: var(--green-bright); }
.terminal-body .t-out { color: var(--on-dark-muted); }
.terminal-body .t-ok { color: var(--green-bright); }
.terminal-body .t-strong { color: #fff; font-weight: 700; }
.cursor {
  display: inline-block; width: .6em; height: 1.15em;
  background: var(--green-bright);
  vertical-align: text-bottom;
  animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; }
  .terminal-body { min-height: 300px; }
}
@media (max-width: 480px) {
  .terminal-body { font-size: .74rem; padding: 16px; }
}

/* ---------- Sekcje ---------- */
.section { padding: clamp(72px, 10vw, 120px) 0; }
.section-alt { background: var(--bg-alt); }
.section-head { margin-bottom: clamp(40px, 5vw, 56px); }
.kicker {
  font-family: var(--font-mono);
  font-size: .9rem;
  color: var(--green-text);
  margin-bottom: .8em;
}
.kicker-light { color: var(--green-bright); }
.section-lead { font-size: 1.1rem; color: var(--muted); max-width: 720px; }

/* Filary usług */
.pillars {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.pillar {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(28px, 4vw, 40px);
  box-shadow: var(--shadow);
  transition: border-color .25s, transform .25s;
}
.pillar:hover { border-color: rgba(34, 160, 96, .5); }
.pillar > p { color: var(--muted); }
.pillar-icon {
  width: 56px; height: 56px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--ink);
  margin-bottom: 24px;
}
.pillar-icon svg {
  width: 30px; height: 30px;
  fill: none; stroke: var(--green-bright); stroke-width: 3;
  stroke-linecap: round; stroke-linejoin: round;
}
.pillar-icon svg .fill { fill: var(--green-bright); stroke: none; }

.checklist { list-style: none; padding: 0; margin: 1.4em 0 0; }
.checklist li {
  position: relative;
  padding: .55em 0 .55em 1.8em;
  border-top: 1px solid var(--line);
  font-size: .98rem;
}
.checklist li::before {
  content: ">";
  position: absolute; left: 0; top: .55em;
  font-family: var(--font-mono); font-weight: 700;
  color: var(--green);
}

@media (max-width: 800px) {
  .pillars { grid-template-columns: 1fr; }
}

/* Karty współpracy */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}
.card p:last-child { margin-bottom: 0; color: var(--muted); }
.card-cmd {
  font-family: var(--font-mono);
  font-size: .85rem;
  color: var(--green-text);
  margin-bottom: 1em;
}
.card-cmd::before { content: "$ "; color: var(--muted); }
.card-featured {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--on-dark);
}
.card-featured h3 { color: #fff; }
.card-featured p:last-child { color: var(--on-dark-muted); }
.card-featured .card-cmd { color: var(--green-bright); }
.card-featured .card-cmd::before { color: var(--on-dark-muted); }

@media (max-width: 900px) {
  .cards { grid-template-columns: 1fr; }
}

/* Kroki */
.steps {
  list-style: none; padding: 0;
  margin: clamp(48px, 6vw, 72px) 0 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  counter-reset: none;
}
.step {
  position: relative;
  padding-top: 24px;
  border-top: 2px solid var(--line);
}
.step::before {
  content: "";
  position: absolute; top: -2px; left: 0;
  width: 40px; height: 2px; background: var(--green);
}
.step-no {
  display: block;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: .9rem;
  color: var(--green-text);
  margin-bottom: .6em;
}
.step h3 { font-size: 1.05rem; margin-bottom: .4em; }
.step p { font-size: .96rem; color: var(--muted); margin: 0; }

@media (max-width: 900px) {
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 32px; }
}
@media (max-width: 520px) {
  .steps { grid-template-columns: 1fr; }
}

/* Stack */
.stack {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-flow: dense;
  gap: 20px;
}
.stack-group-wide { grid-column: span 2; }
.stack-group {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 28px 28px;
}
.stack-group h3 {
  font-size: .95rem;
  color: var(--muted);
  font-weight: 400;
  margin-bottom: 1em;
}
.stack-group h3::before { content: "~/"; color: var(--green-text); }
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li {
  font-family: var(--font-mono);
  font-size: .85rem;
  padding: .35em .8em;
  border-radius: 6px;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  transition: border-color .2s, color .2s;
}
.chips li:hover { border-color: var(--green); color: var(--green-text); }

.stack-more {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px;
  margin: 20px 0 0;
  padding: 18px 28px;
  border: 1px dashed #C2CFC8;
  border-radius: var(--radius);
  color: var(--muted);
  font-size: .98rem;
}
.stack-more-cmd {
  font-family: var(--font-mono);
  font-size: .85rem;
  color: var(--green-text);
  white-space: nowrap;
}

@media (max-width: 960px) {
  .stack { grid-template-columns: repeat(2, 1fr); }
  .stack-group:last-child { grid-column: span 2; }
}
@media (max-width: 640px) {
  .stack { grid-template-columns: 1fr; }
  .stack-group-wide, .stack-group:last-child { grid-column: auto; }
}

/* O mnie */
.about {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}
.about-mark {
  aspect-ratio: 1;
  display: grid; place-items: center;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
  position: sticky; top: calc(var(--header-h) + 32px);
}
.about-mark img { width: 45%; }
.about-copy { max-width: 720px; }
.about-copy > p { color: var(--muted); }
.values { list-style: none; padding: 0; margin: 2em 0 0; display: grid; gap: 14px; }
.values li {
  padding: 18px 20px;
  background: var(--bg);
  border-left: 3px solid var(--green);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--muted);
}
.values strong { color: var(--ink); font-family: var(--font-mono); font-size: .95rem; margin-right: .3em; }

@media (max-width: 760px) {
  .about { grid-template-columns: 1fr; }
  .about-mark { position: static; width: 120px; border-radius: 18px; }
}

/* Kontakt */
.contact {
  background: radial-gradient(900px 500px at 10% 100%, rgba(34, 160, 96, .18), transparent 60%), var(--ink);
  color: var(--on-dark);
}
.contact h2 { color: #fff; }
.contact .section-lead { color: var(--on-dark-muted); }
.contact-inner {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}
.contact-box {
  background: var(--ink-2);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: var(--radius);
  padding: 12px 28px 28px;
}
.contact-line {
  display: flex; flex-direction: column;
  padding: 18px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  text-decoration: none;
  color: #fff;
}
.contact-line:last-of-type { margin-bottom: 24px; }
.contact-label {
  font-family: var(--font-mono);
  font-size: .8rem;
  color: var(--on-dark-muted);
}
.contact-value {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  word-break: break-all;
  transition: color .2s;
}
.contact-line:hover .contact-value { color: var(--green-bright); }
.contact-noscript { margin: 16px 0 0; font-size: .9rem; color: var(--on-dark-muted); }

@media (max-width: 860px) {
  .contact-inner { grid-template-columns: 1fr; }
}

/* Stopka */
.site-footer {
  background: #0A1511;
  color: var(--on-dark-muted);
  padding: 48px 0;
  font-size: .9rem;
}
.footer-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px;
}
.footer-inner img { width: 220px; }
.footer-inner p { margin: 0; }
.company { line-height: 1.7; }

/* ---------- Animacja pojawiania się ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .6s ease, transform .6s ease;
}
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
