@font-face { font-family: "Geist"; font-style: normal; font-weight: 300 600; font-display: swap;
  src: url(fonts/geist-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Geist"; font-style: normal; font-weight: 300 600; font-display: swap;
  src: url(fonts/geist-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Geist Mono"; font-style: normal; font-weight: 400 500; font-display: swap;
  src: url(fonts/geistmono-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Geist Mono"; font-style: normal; font-weight: 400 500; font-display: swap;
  src: url(fonts/geistmono-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --paper: #f4f4f1;
  --ink: #141413;
  --ink-2: #4b4a46;
  --ink-3: #6e6d67;
  --line: #dcdbd5;
  --accent: #2f5a45;
  --accent-dark: #9fc2ad;
  --night: #121211;
  --night-line: #2c2c29;
  --sans: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --gutter: clamp(20px, 5vw, 72px);
  --max: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection { background: var(--ink); color: var(--paper); }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 1px solid currentColor; outline-offset: 4px; }
img, svg, canvas { display: block; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--ink); color: var(--paper); padding: 8px 12px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.mono { font-family: var(--mono); font-size: 12px; letter-spacing: .04em; text-transform: uppercase; font-weight: 400; }
.accent { color: var(--accent); }

/* Nagłówek */
.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--paper) 92%, transparent);
  -webkit-backdrop-filter: saturate(1.2) blur(10px); backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid transparent; transition: border-color .3s; }
.top.scrolled { border-bottom-color: var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand img { height: 30px; width: auto; }
.nav { display: flex; gap: 32px; align-items: center; }
.nav a { color: var(--ink-2); transition: color .2s; }
.nav a:hover { color: var(--ink); }
.nav .cta { color: var(--paper); background: var(--ink); padding: 9px 14px; }
.nav .cta:hover { color: var(--paper); background: var(--accent); }

/* Hero */
.hero { padding: clamp(48px, 9vh, 110px) 0 clamp(56px, 9vh, 110px); }
.hero-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(24px, 4vw, 64px); align-items: center; }
.tag { display: inline-flex; align-items: center; gap: 10px; color: var(--ink-2); margin: 0 0 32px; }
.tag .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: blink 2.4s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .25; } }
.hero h1 {
  font: 500 clamp(40px, 5.2vw, 76px)/1.02 var(--sans);
  letter-spacing: -.045em; margin: 0;
}
.lead { margin: 32px 0 0; max-width: 46ch; color: var(--ink-2); font-size: clamp(17px, 1.35vw, 19px); }
.hero-actions { display: flex; gap: 28px; align-items: center; margin-top: 40px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 14px; padding: 15px 22px;
  background: var(--ink); color: var(--paper); border: 1px solid var(--ink);
  transition: background .25s, border-color .25s;
}
.btn:hover { background: var(--accent); border-color: var(--accent); }
.btn span { transition: transform .25s; }
.btn:hover span { transform: translateX(4px); }
.link { border-bottom: 1px solid var(--line); padding-bottom: 3px; color: var(--ink-2); transition: border-color .2s, color .2s; }
.link:hover { border-color: var(--ink); color: var(--ink); }

.net-wrap { position: relative; aspect-ratio: 1 / 1; width: 100%; max-width: 560px; justify-self: end; }
.net-wrap canvas { width: 100%; height: 100%; }
.net-label { position: absolute; color: var(--ink-3); }
.net-label.tl { top: 0; left: 0; }
.net-label.br { bottom: 0; right: 0; text-align: right; }

.stack { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: clamp(48px, 8vh, 88px); padding-top: 22px; border-top: 1px solid var(--line); color: var(--ink-3); }
.stack b { color: var(--ink); font-weight: 400; }

/* Sekcje */
section { scroll-margin-top: 72px; }
.sec { padding: clamp(80px, 12vh, 136px) 0; border-top: 1px solid var(--line); }
.sec-head { display: grid; grid-template-columns: 1fr 2fr; gap: 40px; margin-bottom: clamp(48px, 7vh, 80px); }
.sec-num { color: var(--ink-3); padding-top: 12px; margin: 0; }
.sec-head h2 { font: 500 clamp(32px, 3.8vw, 52px)/1.06 var(--sans); letter-spacing: -.035em; margin: 0; max-width: 20ch; }

/* Zasady */
.principles { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--ink); }
.principle { padding: 28px 36px 0 0; }
.principle + .principle { padding-left: 36px; border-left: 1px solid var(--line); }
.principle .mono { color: var(--accent); display: block; margin-bottom: 28px; }
.principle h3 { font: 500 21px/1.25 var(--sans); letter-spacing: -.015em; margin: 0 0 12px; }
.principle p { margin: 0; color: var(--ink-2); font-size: 16px; }

/* Zakres */
.services { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.service { display: grid; grid-template-columns: 56px 1fr 2fr; gap: 24px; padding: 30px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.service .mono { color: var(--ink-3); }
.service h3 { font: 500 clamp(21px, 2vw, 26px)/1.2 var(--sans); letter-spacing: -.02em; margin: 0; }
.service p { margin: 0; color: var(--ink-2); max-width: 60ch; }

/* Agent w działaniu */
.agent { background: var(--night); color: var(--paper); padding: clamp(80px, 12vh, 136px) 0; }
.agent .sec-num { color: #8f8e87; }
.agent .sec-head h2 { color: var(--paper); }
.agent-grid { display: grid; grid-template-columns: 1fr 1.35fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.agent-copy p { margin: 0 0 18px; color: #b3b2ab; max-width: 42ch; }
.agent-copy .note { color: #8f8e87; margin-top: 28px; }
.console { border: 1px solid var(--night-line); font: 400 14px/1.75 var(--mono); }
.console-bar { display: flex; justify-content: space-between; padding: 12px 18px; border-bottom: 1px solid var(--night-line); color: #8f8e87; font-size: 12px; }
.console-body { padding: 22px 18px 26px; min-height: 330px; }
.console-body .ln { display: grid; grid-template-columns: 22px 1fr auto; gap: 8px; opacity: 0; transform: translateY(4px); transition: opacity .35s, transform .35s; }
.console-body .ln.on { opacity: 1; transform: none; }
.console-body .k { color: #8f8e87; }
.console-body .ok { color: var(--accent-dark); }
.console-body .t { color: #8f8e87; }
.console-body .q { color: var(--paper); }
.console-body .res { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--night-line); }
.caret { display: inline-block; width: 8px; height: 15px; background: var(--accent-dark); vertical-align: -2px; animation: blink 1s steps(1) infinite; }

/* Proces */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); list-style: none; margin: 0; padding: 0; counter-reset: step; }
.step { padding: 24px 28px 0 0; border-top: 1px solid var(--ink); counter-increment: step; position: relative; }
.step::before { content: counter(step, decimal-leading-zero) " /"; display: block; font: 400 12px/1 var(--mono); letter-spacing: .04em; color: var(--accent); margin-bottom: 36px; }
.step::after { content: ""; position: absolute; top: -4px; left: 0; width: 7px; height: 7px; background: var(--ink); }
.step h3 { font: 500 19px/1.3 var(--sans); letter-spacing: -.015em; margin: 0 0 10px; }
.step p { margin: 0; color: var(--ink-2); font-size: 15px; }

/* FAQ */
.faq { border-top: 1px solid var(--ink); }
.qa { border-bottom: 1px solid var(--line); }
.qa summary { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 26px 0; cursor: pointer; list-style: none; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary h3 { font: 500 clamp(19px, 1.8vw, 23px)/1.3 var(--sans); letter-spacing: -.015em; margin: 0; }
.qa .pm { font-size: 18px; color: var(--accent); transition: transform .25s; }
.qa[open] .pm { transform: rotate(45deg); }
.qa p { margin: 0 0 28px; color: var(--ink-2); max-width: 70ch; }

/* Oddany czas — zadania przekreślane przy przewijaniu */
.chores { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.chore { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.chore .task { position: relative; font: 500 clamp(20px, 2.6vw, 34px)/1.2 var(--sans); letter-spacing: -.025em; transition: color .6s ease .5s; }
.chore .task::after { content: ""; position: absolute; left: 0; top: 54%; height: 2px; width: 0; background: var(--accent); transition: width .7s cubic-bezier(.6,0,.2,1) .35s; }
.chore .who { color: var(--accent); white-space: nowrap; opacity: 0; transform: translateX(-8px); transition: opacity .5s ease 1s, transform .5s ease 1s; }
.chore.in .task { color: var(--ink-3); }
.chore.in .task::after { width: 100%; }
.chore.in .who { opacity: 1; transform: none; }

/* Dewiza */
.motto { padding: clamp(96px, 16vh, 180px) 0; border-top: 1px solid var(--line); }
.motto-text { margin: 0; font: 500 clamp(40px, 6.4vw, 96px)/1 var(--sans); letter-spacing: -.05em; max-width: 15ch; }
.motto-text sup { font: 400 .32em/1 var(--mono); color: var(--accent); vertical-align: top; margin-left: .1em; }
.motto-note { margin: 36px 0 0; color: var(--ink-2); font-size: 14px; }

/* Kalkulator */
.calc { display: grid; grid-template-columns: 1.1fr 1fr; border: 1px solid var(--ink); }
.calc-inputs { padding: clamp(24px, 3vw, 44px); display: grid; gap: 36px; align-content: center; }
.field { display: grid; gap: 14px; }
.field-top { display: flex; justify-content: space-between; gap: 16px; font-size: 16px; color: var(--ink-2); }
.field output { color: var(--ink); font-size: 15px; }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 22px; background: transparent; cursor: pointer; margin: 0; }
input[type=range]::-webkit-slider-runnable-track { height: 1px; background: var(--ink); }
input[type=range]::-moz-range-track { height: 1px; background: var(--ink); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; background: var(--accent); border: 0; border-radius: 0; margin-top: -6.5px; }
input[type=range]::-moz-range-thumb { width: 14px; height: 14px; background: var(--accent); border: 0; border-radius: 0; }
input[type=range]:focus-visible { outline: 1px solid var(--ink); outline-offset: 6px; }
.calc-out { background: var(--ink); color: var(--paper); padding: clamp(24px, 3vw, 44px); display: flex; flex-direction: column; justify-content: center; }
.calc-label { color: #8f8e87; margin: 0; }
.calc-big { margin: 14px 0 0; font: 500 clamp(56px, 7.5vw, 112px)/1 var(--sans); letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.calc-big small { font-size: .4em; letter-spacing: 0; color: #8f8e87; }
.calc-fte { margin: 10px 0 0; font-size: 20px; color: var(--accent-dark); }
.calc-formula { margin: 28px 0 0; padding-top: 18px; border-top: 1px solid var(--night-line); color: #b3b2ab; text-transform: none; letter-spacing: 0; font-size: 13px; }
.calc-note { margin: 12px 0 0; color: #8f8e87; font-size: 13px; line-height: 1.5; }

/* Kontakt */
.contact { background: var(--night); color: var(--paper); padding: clamp(96px, 15vh, 160px) 0 0; }
.contact .mono { color: #8f8e87; }
.contact h2 { font: 500 clamp(40px, 6vw, 84px)/1 var(--sans); letter-spacing: -.045em; margin: 24px 0 48px; max-width: 16ch; }
.contact h2 .accent { color: var(--accent-dark); }
.mail { display: inline-flex; align-items: center; gap: 16px; font: 400 clamp(22px, 3vw, 38px)/1.2 var(--mono); letter-spacing: -.02em;
  border-bottom: 1px solid #4a4945; padding-bottom: 8px; transition: border-color .25s; }
.mail:hover { border-color: var(--accent-dark); }
.contact-note { margin: 28px 0 0; color: #a3a29b; max-width: 52ch; font-size: 16px; }
.foot { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap;
  margin-top: clamp(96px, 14vh, 150px); padding: 26px 0 34px; border-top: 1px solid var(--night-line); color: #8f8e87; }
.foot img { height: 24px; width: auto; }

/* Pojawianie się */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .tag .dot, .caret { animation: none; }
  .console-body .ln { opacity: 1; transform: none; transition: none; }
  .chore .task, .chore .task::after, .chore .who { transition: none; }
}

/* Responsywność */
@media (max-width: 1000px) {
  .hero-grid, .agent-grid, .calc, .team { grid-template-columns: 1fr; }
  .net-wrap { justify-self: center; max-width: 440px; }
  .principles { grid-template-columns: 1fr; }
  .principle, .principle + .principle { padding: 28px 0; border-left: 0; }
  .principle + .principle { border-top: 1px solid var(--line); }
  .principle .mono { margin-bottom: 16px; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 56px; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .nav a:not(.cta) { display: none; }
  .brand img { height: 26px; }
  .sec-head { grid-template-columns: 1fr; gap: 14px; }
  .service { grid-template-columns: 36px 1fr; }
  .service p { grid-column: 2; }
  .steps { grid-template-columns: 1fr; row-gap: 48px; }
  .console { font-size: 12.5px; }
  .console-body { min-height: 0; }
  .console-body .ln { grid-template-columns: 18px 1fr; }
  .console-body .t { display: none; }
  .chore { flex-direction: column; gap: 6px; }
}
