/* ============================================================
   Marek Andryszczyk — arkusz stylów (baza)
   Kolory, czcionki, przyciski, menu, stopka, animacje.
   Układ poszczególnych sekcji: profil.css
   #FFFFFF · #2E5BFF · #9B9DA8 · #0B0D12
   ============================================================ */

/* Czcionki hostowane lokalnie (licencja SIL Open Font License 1.1), pobrane z Google Fonts 23.09.2026 */
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("assets/fonts/jetbrains-mono-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("assets/fonts/jetbrains-mono-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: "Manrope";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("assets/fonts/manrope-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("assets/fonts/manrope-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: "Space Grotesk";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("assets/fonts/space-grotesk-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("assets/fonts/space-grotesk-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 {
  /* Kolory bazowe */
  --white: #FFFFFF;
  --canvas: #F8FAFF;
  --soft: #F2F5FB;
  --line: #ECEDF1;
  --line-2: #E4E6EC;
  --grey: #9B9DA8;
  --muted: #6E727E;
  --slate: #565A66;
  --ink: #0B0D12;
  --ink-2: #12151C;
  --blue: #2E5BFF;
  --blue-dark: #1B41D8;
  --blue-light: #4C74FF;

  /* Na ciemnym tle */
  --on-dark-soft: rgba(255, 255, 255, 0.66);
  --on-dark-mute: rgba(255, 255, 255, 0.45);
  --line-dark: rgba(255, 255, 255, 0.1);

  /* System */
  --font-body: "Manrope", system-ui, -apple-system, sans-serif;
  --font-head: "Space Grotesk", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --wrap: 1180px;
  --pad-x: clamp(20px, 4vw, 48px);
  --sec-y: clamp(72px, 8vw, 120px);
  --round: clamp(0px, 3vw, 44px);
  --radius: 22px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-head);
  letter-spacing: -0.03em;
  line-height: 1.15;
}
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
a { color: var(--blue); text-decoration: none; transition: color 0.25s ease; }
a:hover { color: var(--blue-dark); }

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 16px; color: #fff; }

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 2 * var(--pad-x));
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

.hl { color: var(--blue); }

/* ---------- Przyciski ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15.5px;
  padding: 17px 30px;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.3s var(--ease), box-shadow 0.3s ease, background 0.3s ease,
              border-color 0.3s ease, color 0.3s ease;
}
.btn__arrow { transition: transform 0.3s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(4px); }

.btn--accent {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 18px 40px -20px rgba(46, 91, 255, 0.85);
}
.btn--accent:hover {
  background: var(--blue-dark);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 24px 50px -18px rgba(46, 91, 255, 0.95);
}

.btn--ghost {
  background: var(--white);
  color: var(--ink);
  border-color: rgba(155, 157, 168, 0.38);
  box-shadow: 0 10px 30px -22px rgba(11, 13, 18, 0.5);
}
.btn--ghost:hover {
  color: var(--ink);
  border-color: var(--ink);
  transform: translateY(-3px);
}

.btn--sm {
  padding: 11px 22px;
  font-size: 14px;
  font-family: var(--font-head);
}

/* ---------- Etykiety ---------- */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 20px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--blue);
  flex: none;
}
.eyebrow--onDark { color: rgba(255, 255, 255, 0.62); }
.eyebrow--onDark::before { background: var(--blue-light); }

.minilabel {
  margin: 0 0 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--grey);
}
.minilabel--blue { color: var(--blue); }

/* ---------- Nawigacja (pływająca „pigułka”) ---------- */
.nav {
  position: fixed;
  top: clamp(12px, 1.6vw, 22px);
  left: 0;
  right: 0;
  z-index: 90;
  display: flex;
  justify-content: center;
  padding: 0 clamp(12px, 3vw, 32px);
  pointer-events: none;
}
.nav__pill {
  position: relative;
  pointer-events: auto;
  width: 100%;
  max-width: 1180px;
  height: 66px;
  padding: 0 12px 0 clamp(14px, 1.8vw, 22px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: rgba(255, 255, 255, 0.62);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid rgba(155, 157, 168, 0.24);
  border-radius: 999px;
  box-shadow: 0 18px 50px -26px rgba(11, 13, 18, 0.28);
  transition: background 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease,
              height 0.4s var(--ease), max-width 0.5s var(--ease);
}
.nav.is-scrolled .nav__pill {
  height: 58px;
  max-width: 1040px;
  background: rgba(255, 255, 255, 0.88);
  border-color: rgba(155, 157, 168, 0.34);
  box-shadow: 0 22px 60px -28px rgba(11, 13, 18, 0.38);
}

.nav__drawer { display: flex; align-items: center; gap: clamp(14px, 2vw, 28px); }
.nav__menu { display: flex; align-items: center; gap: 2px; }
.nav__menu a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--slate);
  font-size: 14.5px;
  font-weight: 500;
  transition: color 0.25s ease, background 0.25s ease;
}
.nav__menu a:hover,
.nav__menu a.is-active { color: var(--ink); background: rgba(155, 157, 168, 0.13); }
.nav__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--grey); flex: none; }
.nav__menu a:nth-child(1) .nav__dot { background: var(--ink); }
.nav__menu a:nth-child(2) .nav__dot { background: #5478D8; }
.nav__menu a:nth-child(3) .nav__dot { background: var(--blue); }
.nav__menu a:nth-child(4) .nav__dot { background: var(--grey); }

.nav__toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(155, 157, 168, 0.4);
  background: none;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.nav__toggle span { width: 16px; height: 1.6px; border-radius: 2px; background: var(--ink); transition: transform 0.3s var(--ease), opacity 0.2s; }
.nav.is-open .nav__toggle span:nth-child(1) { transform: translateY(5.6px) rotate(45deg); }
.nav.is-open .nav__toggle span:nth-child(2) { opacity: 0; }
.nav.is-open .nav__toggle span:nth-child(3) { transform: translateY(-5.6px) rotate(-45deg); }

/* ---------- Stopka ---------- */
.footer {
  padding: clamp(56px, 6vw, 80px) 0 28px;
  border-top: 1px solid var(--line);
  background: var(--white);
}
.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.75fr) minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 40px;
}
.footer__slogan {
  margin: 20px 0 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blue);
}
.footer__desc { max-width: 40ch; font-size: 14.5px; line-height: 1.68; color: var(--muted); }
.footer__col { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; font-size: 14.5px; }
.footer__col .minilabel { margin-bottom: 6px; }
.footer__col a { color: var(--slate); overflow-wrap: anywhere; }
.footer__col a:hover { color: var(--blue); }
.footer__bottom {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 48px;
  padding-top: 22px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--grey);
}
.footer__bottom::before {
  content: "";
  position: absolute;
  top: 0;
  left: var(--pad-x);
  right: var(--pad-x);
  height: 1px;
  background: var(--line);
}

/* ---------- Animacje ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  }
  .reveal.is-visible { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* ---------- Responsywność ---------- */
@media (max-width: 1024px) {
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .nav__toggle { display: flex; }
  .nav__drawer {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 10px;
    border: 1px solid rgba(155, 157, 168, 0.24);
    border-radius: 22px;
    background: var(--white);
    box-shadow: 0 30px 70px -30px rgba(11, 13, 18, 0.4);
  }
  .nav.is-open .nav__drawer { display: flex; }
  .nav__menu { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav__menu a { padding: 14px 16px; border-radius: 14px; font-size: 16px; }
  .nav__cta { padding-block: 15px; }
}

@media (max-width: 620px) {
  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .footer__bottom { flex-direction: column; }
}
