/* ==========================================================================
   ITmedes — arkusz stylów
   Motyw: ciemny, techniczny. Bez zależności zewnętrznych.
   ========================================================================== */

:root {
  --bg:            #080b12;
  --bg-alt:        #0d1220;
  --bg-card:       #111827;
  --bg-card-hover: #151f33;
  --line:          #1e293b;
  --line-soft:     #172033;

  --txt:           #e6edf7;
  --txt-dim:       #93a3bb;
  --txt-faint:     #64748b;

  --accent:        #22d3ee;
  --accent-2:      #3b82f6;
  --accent-glow:   rgba(34, 211, 238, .14);

  --radius:        14px;
  --radius-sm:     8px;
  --maxw:          1160px;

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto,
          "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
          "Liberation Mono", monospace;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--txt);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  line-height: 1.2;
  letter-spacing: -.02em;
  margin: 0 0 .6em;
  font-weight: 650;
}
h1 { font-size: clamp(2.1rem, 5.2vw, 3.5rem); letter-spacing: -.035em; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.35rem); }
h3 { font-size: 1.18rem; }
p  { margin: 0 0 1.1em; }

::selection { background: var(--accent); color: #04070d; }

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

/* ------------------------------------------------------------- layout -- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 24px;
}

section { padding: 92px 0; position: relative; }
section.alt { background: var(--bg-alt); border-block: 1px solid var(--line-soft); }

.eyebrow {
  font-family: var(--mono);
  font-size: .78rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 .9rem;
  display: flex;
  align-items: center;
  gap: .6rem;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 1px;
  background: var(--accent);
  opacity: .6;
}

.lead { color: var(--txt-dim); font-size: 1.06rem; max-width: 62ch; }

.section-head { max-width: 720px; margin-bottom: 54px; }

/* skip link */
.skip {
  position: absolute; left: -9999px;
  background: var(--accent); color: #04070d;
  padding: 10px 18px; border-radius: 0 0 var(--radius-sm) 0;
  font-weight: 600; z-index: 200;
}
.skip:focus { left: 0; top: 0; }

/* ------------------------------------------------------------- header -- */
.hdr {
  position: sticky; top: 0; z-index: 100;
  background: rgba(8, 11, 18, .72);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, background .25s;
}
.hdr.scrolled { border-bottom-color: var(--line); background: rgba(8, 11, 18, .92); }

.hdr .wrap {
  display: flex; align-items: center; gap: 20px;
  height: 72px;
}

.brand {
  display: flex; align-items: center; gap: 11px;
  color: var(--txt); font-weight: 680; font-size: 1.16rem;
  letter-spacing: -.02em; text-decoration: none;
  margin-right: auto; flex-shrink: 0;
}
.brand:hover { text-decoration: none; }
.brand svg { width: 30px; height: 30px; flex-shrink: 0; }
.brand span b { color: var(--accent); font-weight: 680; }
.brand small {
  display: block; font-size: .64rem; font-family: var(--mono);
  letter-spacing: .17em; color: var(--txt-faint);
  text-transform: uppercase; font-weight: 400; margin-top: -3px;
}

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  color: var(--txt-dim); font-size: .935rem; font-weight: 500;
  padding: 8px 13px; border-radius: var(--radius-sm);
  text-decoration: none; transition: color .18s, background .18s;
  white-space: nowrap;
}
.nav a:hover, .nav a.active { color: var(--txt); background: var(--bg-card); text-decoration: none; }

.hdr-side { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

.lang {
  display: flex; align-items: center;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  overflow: hidden;
}
.lang a {
  font-family: var(--mono); font-size: .74rem; font-weight: 600;
  letter-spacing: .06em; padding: 6px 10px; color: var(--txt-faint);
  text-decoration: none; transition: .18s;
}
.lang a:hover { color: var(--txt); text-decoration: none; }
.lang a[aria-current="true"] { background: var(--accent); color: #04070d; }

.burger {
  display: none; background: none; border: 1px solid var(--line);
  border-radius: var(--radius-sm); width: 40px; height: 38px;
  cursor: pointer; padding: 0; place-items: center;
}
.burger span {
  display: block; width: 17px; height: 1.5px; background: var(--txt);
  position: relative; transition: .22s;
}
.burger span::before, .burger span::after {
  content: ""; position: absolute; left: 0; width: 17px; height: 1.5px;
  background: var(--txt); transition: .22s;
}
.burger span::before { top: -5.5px; }
.burger span::after  { top:  5.5px; }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.burger[aria-expanded="true"] span::after  { top: 0; transform: rotate(-45deg); }

/* ------------------------------------------------------------ buttons -- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 24px; border-radius: var(--radius-sm);
  font-size: .95rem; font-weight: 600; letter-spacing: -.005em;
  text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: transform .16s, box-shadow .2s, background .2s, border-color .2s;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary {
  background: var(--accent); color: #04070d;
  box-shadow: 0 4px 22px var(--accent-glow);
}
.btn-primary:hover { background: #67e8f9; box-shadow: 0 7px 30px rgba(34,211,238,.25); }
.btn-ghost { border-color: var(--line); color: var(--txt); background: transparent; }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn svg { width: 17px; height: 17px; }

/* --------------------------------------------------------------- hero -- */
.hero {
  position: relative; overflow: hidden;
  padding: 116px 0 96px;
  border-bottom: 1px solid var(--line-soft);
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 65% at 50% 0%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 90% 65% at 50% 0%, #000 20%, transparent 78%);
  opacity: .75; pointer-events: none;
}
.hero::after {
  content: ""; position: absolute;
  top: -240px; left: 50%; transform: translateX(-50%);
  width: 900px; height: 560px; pointer-events: none;
  background: radial-gradient(circle, rgba(34,211,238,.13) 0%, transparent 66%);
}
.hero .wrap { position: relative; z-index: 1; }
.hero-grid {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 64px; align-items: center;
}
.hero h1 { margin-bottom: .45em; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lead { font-size: 1.14rem; margin-bottom: 2rem; }

.pill {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--mono); font-size: .76rem; letter-spacing: .09em;
  text-transform: uppercase; color: var(--txt-dim);
  border: 1px solid var(--line); background: var(--bg-card);
  padding: 6px 15px 6px 12px; border-radius: 999px; margin-bottom: 26px;
}
.dot {
  width: 7px; height: 7px; border-radius: 50%; background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34,197,94,.16);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse { 50% { opacity: .45; } }

.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 2.4rem; }

.hero-stats {
  display: flex; flex-wrap: wrap; gap: 38px;
  padding-top: 26px; border-top: 1px solid var(--line-soft);
}
.hero-stats div strong {
  display: block; font-size: 1.6rem; font-weight: 680;
  color: var(--txt); letter-spacing: -.03em; line-height: 1.15;
}
.hero-stats div span { font-size: .84rem; color: var(--txt-faint); }

/* terminal */
.term {
  background: #0a0f1a; border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 26px 60px -20px rgba(0,0,0,.85);
  font-family: var(--mono); font-size: .82rem; line-height: 1.85;
}
.term-bar {
  display: flex; align-items: center; gap: 7px;
  padding: 11px 14px; background: var(--bg-card);
  border-bottom: 1px solid var(--line);
}
.term-bar i { width: 10px; height: 10px; border-radius: 50%; background: #334155; }
.term-bar i:nth-child(1) { background: #ef4444aa; }
.term-bar i:nth-child(2) { background: #f59e0baa; }
.term-bar i:nth-child(3) { background: #22c55eaa; }
.term-bar em {
  font-style: normal; margin-left: 8px;
  font-size: .74rem; color: var(--txt-faint); letter-spacing: .04em;
}
.term-body { padding: 18px 20px 22px; }
.term-body div { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.term-body .c  { color: var(--accent); }
.term-body .g  { color: #4ade80; }
.term-body .y  { color: #fbbf24; }
.term-body .m  { color: var(--txt-faint); }
.term-body .p::before { content: "PS> "; color: #7c8db0; }
.caret {
  display: inline-block; width: 8px; height: 15px; vertical-align: -2px;
  background: var(--accent); animation: blink 1.1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* --------------------------------------------------------- logo strip -- */
.strip {
  padding: 30px 0; background: var(--bg-alt);
  border-bottom: 1px solid var(--line-soft);
}
.strip ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 14px 34px; align-items: center;
}
.strip li {
  font-family: var(--mono); font-size: .8rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--txt-faint);
  transition: color .2s;
}
.strip li:hover { color: var(--txt-dim); }

/* -------------------------------------------------------------- cards -- */
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 30px 28px;
  transition: border-color .22s, transform .22s, background .22s;
  position: relative; overflow: hidden;
}
.card::after {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0; transition: opacity .28s;
}
.card:hover { border-color: #2b3d5c; background: var(--bg-card-hover); transform: translateY(-3px); }
.card:hover::after { opacity: .65; }

.card .ico {
  width: 44px; height: 44px; border-radius: 11px;
  background: linear-gradient(140deg, rgba(34,211,238,.16), rgba(59,130,246,.1));
  border: 1px solid rgba(34,211,238,.22);
  display: grid; place-items: center; margin-bottom: 20px;
}
.card .ico svg { width: 21px; height: 21px; stroke: var(--accent); }
.card h3 { margin-bottom: .5em; }
.card p { color: var(--txt-dim); font-size: .95rem; margin-bottom: 1em; }
.card ul {
  list-style: none; margin: 0; padding: 0;
  font-size: .885rem; color: var(--txt-faint);
}
.card ul li { padding-left: 17px; position: relative; margin-bottom: 5px; }
.card ul li::before {
  content: "▸"; position: absolute; left: 0; color: var(--accent); opacity: .75;
}

/* ------------------------------------------------------------- proces -- */
.steps { counter-reset: s; display: grid; gap: 0; }
.step {
  display: grid; grid-template-columns: 74px 1fr; gap: 26px;
  padding: 28px 0; border-top: 1px solid var(--line-soft);
  align-items: start;
}
.step:last-child { border-bottom: 1px solid var(--line-soft); }
.step .num {
  counter-increment: s; font-family: var(--mono);
  font-size: 1.55rem; font-weight: 600; color: var(--accent); opacity: .55;
  letter-spacing: -.02em;
}
.step .num::before { content: "0" counter(s); }
.step h3 { margin-bottom: .35em; }
.step p { color: var(--txt-dim); font-size: .95rem; margin: 0; max-width: 66ch; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.tag {
  font-family: var(--mono); font-size: .76rem; letter-spacing: .03em;
  color: var(--txt-dim); background: var(--bg-card);
  border: 1px solid var(--line); border-radius: 6px; padding: 5px 11px;
}

/* ------------------------------------------------------------ kontakt -- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }

.contact-card {
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 32px;
}
.contact-card h3 { margin-bottom: 1em; }
.cline {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 13px 0; border-top: 1px solid var(--line-soft);
}
.cline:first-of-type { border-top: 0; padding-top: 0; }
.cline svg { width: 18px; height: 18px; stroke: var(--accent); flex-shrink: 0; margin-top: 4px; }
.cline .k { display: block; font-size: .76rem; color: var(--txt-faint); font-family: var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.cline .v { color: var(--txt); font-size: .97rem; }
.cline a { color: var(--txt); }
.cline a:hover { color: var(--accent); }

.cta-box {
  background: linear-gradient(150deg, rgba(34,211,238,.09), rgba(59,130,246,.05));
  border: 1px solid rgba(34,211,238,.2);
  border-radius: var(--radius); padding: 34px;
  display: flex; flex-direction: column;
}
.cta-box p { color: var(--txt-dim); font-size: .96rem; }
.cta-box .btn { margin-top: auto; align-self: flex-start; }

/* ------------------------------------------------------------- stopka -- */
.ftr {
  background: var(--bg-alt); border-top: 1px solid var(--line);
  padding: 58px 0 30px; font-size: .92rem;
}
.ftr-grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 44px;
  padding-bottom: 34px; border-bottom: 1px solid var(--line-soft);
}
.ftr h4 {
  font-size: .78rem; font-family: var(--mono); letter-spacing: .14em;
  text-transform: uppercase; color: var(--txt-faint); margin-bottom: 1.2em; font-weight: 500;
}
.ftr ul { list-style: none; margin: 0; padding: 0; }
.ftr li { margin-bottom: 9px; }
.ftr a { color: var(--txt-dim); }
.ftr a:hover { color: var(--accent); }
.ftr address { font-style: normal; color: var(--txt-dim); line-height: 1.75; }
.ftr .brand { margin-bottom: 16px; }
.ftr-bot {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  padding-top: 22px; color: var(--txt-faint); font-size: .85rem;
}
.ftr-bot .reg { font-family: var(--mono); font-size: .78rem; letter-spacing: .04em; }

/* -------------------------------------------------------------- prose -- */
.prose { max-width: 78ch; }
.prose h2 { font-size: 1.42rem; margin-top: 2.2em; }
.prose h2:first-of-type { margin-top: 0; }
.prose h3 { font-size: 1.06rem; margin-top: 1.7em; }
.prose p, .prose li { color: var(--txt-dim); font-size: .98rem; }
.prose ul, .prose ol { padding-left: 22px; margin-bottom: 1.2em; }
.prose li { margin-bottom: .45em; }
.prose strong { color: var(--txt); font-weight: 600; }
.prose table { width: 100%; border-collapse: collapse; margin-bottom: 1.4em; font-size: .93rem; }
.prose th, .prose td { text-align: left; padding: 11px 14px; border: 1px solid var(--line); }
.prose th { background: var(--bg-card); color: var(--txt); font-weight: 600; }
.prose td { color: var(--txt-dim); }

.page-head {
  padding: 68px 0 48px; border-bottom: 1px solid var(--line-soft);
  background: var(--bg-alt);
}
.page-head h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin-bottom: .3em; }
.page-head p { color: var(--txt-faint); font-size: .9rem; margin: 0; font-family: var(--mono); }

/* -------------------------------------------------------- animacje -- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

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

/* --------------------------------------------------------------- rwd -- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .ftr-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 800px) {
  .burger { display: grid; }
  .nav {
    position: fixed; inset: 72px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--bg-alt); border-bottom: 1px solid var(--line);
    padding: 14px 24px 22px; display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 14px; font-size: 1rem; }
  body.nav-open { overflow: hidden; }
}

@media (max-width: 680px) {
  body { font-size: 16px; }
  section { padding: 64px 0; }
  .hero { padding: 72px 0 64px; }
  .grid-3, .grid-2, .contact-grid, .ftr-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 26px; }
  .hero-stats div { flex: 1 1 40%; }
  .step { grid-template-columns: 46px 1fr; gap: 16px; }
  .step .num { font-size: 1.2rem; }
  .card, .contact-card, .cta-box { padding: 24px 22px; }
  .term { font-size: .74rem; }
  .btn { width: 100%; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .facts div { flex-direction: column; gap: 3px; }
  .facts .v { text-align: left; }
}

/* --------------------------------------------------------------- druk -- */
@media print {
  .hdr, .burger, .hero::before, .hero::after, .cta-box { display: none; }
  body { background: #fff; color: #000; }
  a { color: #000; }
}
