/* creationX — pomoc zdalna. Tokeny kolorów i typografia zgodne z creationx.pl. */

@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/assets/outfit-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF,
                 U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/assets/outfit-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
                 U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215;
}

:root {
  --cx-navy-950: #071d2b;
  --cx-navy-900: #0b2f40;
  --cx-navy-800: #10475a;
  --cx-orange-300: #fdba74;
  --cx-orange-500: #f47c20;
  --cx-orange-600: #c2410c;
  --cx-orange-700: #9a3412;
  --cx-ink: #172033;
  --cx-copy: #526071;
  --cx-copy-dark: #c8dbe2;
  --cx-copy-dark-muted: #a9c0c9;
  --cx-surface: #ffffff;
  --cx-surface-cool: #f4f7f9;
  --cx-surface-warm: #f5f2ec;
  --cx-border: #d9e1e8;
  --cx-danger: #991b1b;
  --cx-danger-soft: #fee2e2;
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Outfit', var(--font-primary);
  --header-h: 72px;
  --wrap: 1120px;
  color-scheme: light;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  padding-top: var(--header-h);
  background: var(--cx-surface);
  color: var(--cx-copy);
  font-family: var(--font-primary);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

h1, h2, h3 { font-family: var(--font-heading); color: var(--cx-ink); line-height: 1.18; margin: 0 0 14px; }
h1 { font-size: clamp(30px, 5.2vw, 46px); letter-spacing: -.02em; }
h2 { font-size: clamp(25px, 3.4vw, 33px); letter-spacing: -.01em; }
h3 { font-size: 19px; }
p { margin: 0 0 14px; }
a { color: var(--cx-orange-600); }

/* ---------------------------------------------------------------- nagłówek */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 1000;
  height: var(--header-h);
  background: var(--cx-navy-950);
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo { display: flex; align-items: center; }
.logo img { height: 30px; width: auto; display: block; }
.header-actions { display: flex; align-items: center; gap: 14px; }
.header-tel { color: #fff; text-decoration: none; font-weight: 600; white-space: nowrap; }
.header-tel:hover { color: var(--cx-orange-300); }

/* ---------------------------------------------------------------- przyciski */
.btn {
  display: inline-block; border-radius: 10px; padding: 13px 22px;
  font-family: var(--font-heading); font-weight: 600; font-size: 16px;
  text-decoration: none; border: 1px solid transparent; transition: background-color .15s ease, color .15s ease;
}
.btn-primary { background: var(--cx-orange-600); color: #fff; }
.btn-primary:hover { background: var(--cx-orange-700); }
.btn-ghost { border-color: rgba(255, 255, 255, .35); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, .1); }
.btn-sm { padding: 9px 16px; font-size: 15px; }
.section .btn-ghost { border-color: var(--cx-border); color: var(--cx-ink); }
.section .btn-ghost:hover { background: var(--cx-surface-cool); }

/* ---------------------------------------------------------------- hero */
.hero {
  background: linear-gradient(135deg, var(--cx-navy-950) 0%, var(--cx-navy-800) 100%);
  color: var(--cx-copy-dark);
  padding: clamp(48px, 8vw, 84px) 0 clamp(44px, 7vw, 72px);
}
.hero h1 { color: #fff; max-width: 20ch; }
.hero .lead { color: var(--cx-copy-dark); font-size: clamp(17px, 2vw, 19px); max-width: 62ch; margin-bottom: 26px; }
.eyebrow {
  font-family: var(--font-heading); font-weight: 600; font-size: 13px;
  letter-spacing: .14em; text-transform: uppercase; color: var(--cx-orange-300); margin: 0 0 14px;
}
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 0 0 28px; }
.chip {
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 999px; padding: 8px 16px; font-size: 14px; line-height: 1.4;
}
.chip b { color: #fff; font-family: var(--font-heading); }
.chip span { color: var(--cx-copy-dark-muted); margin-left: 6px; }
.chip a { color: inherit; text-decoration: none; }
.chip a:hover span { color: var(--cx-orange-300); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------------------------------------------------------------- sekcje */
.section { padding: clamp(48px, 7vw, 80px) 0; }
.section-alt { background: var(--cx-surface-cool); }
.section-lead { max-width: 72ch; margin-bottom: 32px; font-size: 17px; }

.card {
  background: var(--cx-surface); border: 1px solid var(--cx-border);
  border-radius: 16px; padding: 24px;
}
.card h3 { margin-bottom: 8px; }
.card p:last-child { margin-bottom: 0; }
.card-flat { background: var(--cx-surface-cool); border-color: transparent; }
.section-alt .card { background: var(--cx-surface); }

.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(440px, 100%), 1fr)); }

/* ---------------------------------------------------------------- kroki */
.steps { list-style: none; counter-reset: none; padding: 0; margin: 0; display: grid; gap: 18px;
         grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }
.step { position: relative; padding-top: 30px; }
.step-no {
  position: absolute; top: -18px; left: 24px;
  width: 40px; height: 40px; border-radius: 12px;
  background: var(--cx-orange-600); color: #fff;
  font-family: var(--font-heading); font-weight: 700; font-size: 19px;
  display: flex; align-items: center; justify-content: center;
}
.label { color: var(--cx-ink); font-weight: 600; font-size: 14px; margin: 16px 0 6px; }
code {
  display: block; background: var(--cx-navy-950); color: #fff;
  border-radius: 10px; padding: 12px 14px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 14.5px; word-break: break-all; user-select: all;
}
.hint { font-size: 14.5px; color: var(--cx-copy); }
ul.hint { margin: 6px 0 0; padding-left: 18px; }
ul.hint li { margin: 4px 0; }
ul.hint code { display: inline; padding: 1px 5px; }
.download-options { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 14px; }
.download-options .btn { padding: 10px 14px; font-size: 15px; }
.warn {
  background: var(--cx-danger-soft); color: var(--cx-danger);
  border-radius: 10px; padding: 12px 14px; font-size: 14.5px; margin-top: 14px;
}

/* ---------------------------------------------------------------- sekcja ciemna */
.section-dark { background: var(--cx-navy-950); color: var(--cx-copy-dark); }
.section-dark h2 { color: #fff; }
.section-dark .section-lead { color: var(--cx-copy-dark); }
.facts { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr)); margin: 8px 0 34px; }
.fact {
  border: 1px solid rgba(255, 255, 255, .14); border-radius: 14px;
  padding: 18px 20px; background: rgba(255, 255, 255, .04);
}
.fact b { display: block; font-family: var(--font-heading); font-size: 26px; color: var(--cx-orange-300); line-height: 1.2; }
.fact span { font-size: 14.5px; color: var(--cx-copy-dark-muted); }
.clients-label {
  font-family: var(--font-heading); font-size: 13px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--cx-copy-dark-muted); margin-bottom: 8px;
}
.clients { color: #fff; font-size: 17px; max-width: 80ch; }
.stack { color: var(--cx-copy-dark-muted); font-size: 15.5px; max-width: 80ch; margin-bottom: 0; }

/* ---------------------------------------------------------------- kontakt */
.contact { display: grid; gap: 24px; grid-template-columns: 1.3fr 1fr; align-items: start; }
.contact-links { display: flex; flex-wrap: wrap; gap: 12px; }
.link-arrow { font-weight: 600; text-decoration: none; }
.link-arrow:hover { text-decoration: underline; }

/* ---------------------------------------------------------------- stopka */
.site-footer { background: var(--cx-navy-950); color: var(--cx-copy-dark-muted); padding: 44px 0 24px; font-size: 15px; }
.footer-inner { display: grid; gap: 28px; grid-template-columns: 1.4fr 1fr 1fr; }
.footer-logo { height: 28px; width: auto; display: block; margin-bottom: 14px; }
.footer-desc { max-width: 40ch; }
.footer-head { font-family: var(--font-heading); color: #fff; font-weight: 600; margin-bottom: 10px; }
.footer-col p { margin: 0 0 8px; }
.site-footer a { color: var(--cx-copy-dark); text-decoration: none; }
.site-footer a:hover { color: var(--cx-orange-300); }
.footer-bottom {
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 32px; padding-top: 18px; font-size: 14px;
}
.footer-bottom p { margin: 0; }

@media (max-width: 860px) {
  .contact, .footer-inner { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .logo img { height: 24px; }
  /* Na telefonie numer jest użyteczniejszy niż kotwica - dotknięcie dzwoni. */
  .header-actions .btn { display: none; }
  .header-tel { font-size: 15px; }
  @media (max-width: 340px) { .header-tel { font-size: 13px; } }
  .hero-cta .btn, .contact-links .btn { flex: 1 1 100%; text-align: center; }
  .download-options .btn { flex: 1 1 100%; text-align: center; }
}
