/* ── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Tła — paleta TESTron (głęboki fiolet) */
  --bg:           #06000f;
  --bg2:          #0b0120;
  --bg3:          #130630;
  --bg4:          #1c0d42;

  /* Obramowania */
  --border:       #2d1a55;
  --border2:      #1a0d38;

  /* Akcenty TESTron — fiolet */
  --purple:       #9333ea;
  --purple-dim:   #7c3aed;
  --purple-light: #c084fc;
  --purple-ultra: #e9d5ff;
  --purple-glow:  rgba(147,51,234,.18);
  --purple-glow2: rgba(147,51,234,.08);

  /* Kolor drugorzędny (cyan — "builder" identity) */
  --alt:          #38bdf8;
  --alt-dim:      #0ea5e9;
  --alt-glow:     rgba(56,189,248,.12);

  /* Zielony — wyniki testów (PASS) i TESTron brand */
  --green:         #22c55e;
  --green-dim:     #16a34a;
  --green-glow:    rgba(34,197,94,.15);
  --testron-green: #4ade80;

  /* Czerwony — błędy formularza */
  --red:          #f85149;

  /* Żółty — bugi, ostrzeżenia */
  --yellow:       #f59e0b;

  /* Tekst */
  --text:         #f2edff;
  --text2:        #9580c8;
  --text3:        #4d3870;

  /* Systemowe */
  --radius:       8px;
  --radius-lg:    14px;
  --shadow:       0 8px 32px rgba(0,0,0,.6);
  --shadow-lg:    0 24px 64px rgba(0,0,0,.6);
  --font:         'Inter', 'Segoe UI', system-ui, sans-serif;
  --mono:         'JetBrains Mono', 'Fira Code', monospace;
}

html { scroll-behavior: smooth; overflow-x: hidden; width: 100%; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: var(--purple-light); text-decoration: none; }
a:hover { text-decoration: underline; }
.mono { font-family: var(--mono); }

/* ── Typografia ───────────────────────────────────────────── */
h1 {
  font-size: 2.9rem;
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.1;
  margin-bottom: 18px;
}
h1 em {
  color: var(--purple-light);
  font-style: normal;
  text-shadow: 0 0 48px rgba(192,132,252,.3);
}
h2 {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -.5px;
}
h2 + p { color: var(--text2); margin-top: 10px; font-size: 1rem; }

/* ── Układ ────────────────────────────────────────────────── */
.container  { max-width: 980px; margin: 0 auto; padding: 0 24px; }
section     { padding: 88px 0; }

#o-mnie       { background: var(--bg2); }
#moja-droga   { background: var(--bg); }
#testron      { background: radial-gradient(ellipse 100% 80% at 50% 50%, #130040 0%, #06000f 65%); }
#projekty     { background: var(--bg2); }
#umiejetnosci { background: var(--bg); }
#kontakt      { background: var(--bg2); }

.section-header   { text-align: center; margin-bottom: 56px; }
.section-tag {
  display: inline-block;
  font-size: .7rem; font-weight: 700; letter-spacing: 2.5px;
  text-transform: uppercase; color: var(--purple-light); margin-bottom: 14px;
}

/* ── Nav ──────────────────────────────────────────────────── */
nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(6,0,15,.85);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border2);
}
.nav-inner {
  max-width: 980px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
  height: 60px;
}
.nav-logo {
  font-weight: 700; font-size: 1.1rem; color: var(--text);
  letter-spacing: -.3px;
}
.testron-te {
  color: var(--text);
  -webkit-text-fill-color: var(--text);
}
.testron-st {
  color: var(--testron-green);
  -webkit-text-fill-color: var(--testron-green);
}

.nav-logo span {
  color: var(--testron-green);
  display: inline-block;
  font-size: 1.6rem;
  line-height: 0;
  vertical-align: middle;
  margin: 0 1px;
  animation: heartbeat 1.4s ease-in-out infinite;
}
@keyframes heartbeat {
  0%,48%,100% { transform: scale(1); }
  12%          { transform: scale(1.55); }
  36%          { transform: scale(1.3); }
}
.nav-links { display: flex; gap: 28px; list-style: none; align-items: center; }
.nav-links a { color: var(--text2); font-size: .88rem; transition: color .2s; }
.nav-links a:hover { color: var(--text); text-decoration: none; }
.nav-link-flagship {
  color: var(--purple-light) !important;
  font-weight: 600;
  padding: 4px 12px;
  border: 1px solid rgba(147,51,234,.35);
  border-radius: 20px;
  background: rgba(147,51,234,.08);
  transition: background .2s, border-color .2s !important;
}
.nav-link-flagship:hover {
  background: rgba(147,51,234,.18) !important;
  border-color: rgba(147,51,234,.6) !important;
}

/* ── Hero ─────────────────────────────────────────────────── */
#hero {
  padding: 100px 0 80px;
  background: linear-gradient(140deg, #06000f 0%, #0d0028 55%, #0a0018 100%);
  position: relative; overflow: hidden;
}
#hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 75% 40%, rgba(147,51,234,.1) 0%, transparent 65%),
    radial-gradient(ellipse 40% 30% at 15% 80%, rgba(167,139,250,.06) 0%, transparent 55%);
  pointer-events: none;
}
#hero::after {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(147,51,234,.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(147,51,234,.022) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 56px; align-items: start;
  position: relative; z-index: 1;
}
.hero-tag {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(147,51,234,.1); border: 1px solid rgba(147,51,234,.28);
  color: var(--purple-light); font-size: .74rem; font-weight: 600;
  padding: 5px 14px; border-radius: 20px; margin-bottom: 22px;
  letter-spacing: .8px; text-transform: uppercase;
}
.hero-dot {
  width: 7px; height: 7px; background: var(--purple-light);
  border-radius: 50%; animation: pulse 2s infinite; flex-shrink: 0;
}
@keyframes pulse {
  0%,100% { opacity:1; transform:scale(1); }
  50%      { opacity:.5; transform:scale(.8); }
}
.hero-sub {
  font-size: 1.08rem; color: var(--text2); margin-bottom: 18px;
  max-width: 520px; line-height: 1.7;
}
.hero-hook {
  font-size: 1rem; color: var(--text2); margin-bottom: 34px;
  padding: 14px 20px; border-left: 3px solid var(--purple);
  background: rgba(147,51,234,.07); border-radius: 0 var(--radius) var(--radius) 0;
  max-width: 520px; line-height: 1.75;
}
.hero-hook strong { color: var(--text); }
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 22px; border-radius: var(--radius); font-size: .88rem;
  font-weight: 600; cursor: pointer; transition: all .2s; border: none;
  text-decoration: none !important;
}
.btn-primary {
  background: linear-gradient(135deg, var(--purple-dim), var(--purple));
  color: #fff;
  box-shadow: 0 4px 20px rgba(147,51,234,.3);
}
.btn-primary:hover {
  box-shadow: 0 6px 28px rgba(147,51,234,.5);
  transform: translateY(-2px);
}
.btn-outline {
  background: transparent; color: var(--text);
  border: 1px solid var(--border);
}
.btn-outline:hover {
  border-color: var(--border); background: var(--bg3);
  transform: translateY(-1px);
}
.btn-pulse {
  border-color: var(--purple) !important;
  color: var(--purple-light) !important;
  position: relative;
  animation: btnPulseGlow 2s ease-in-out infinite;
}
.btn-pulse::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: inherit;
  background: transparent;
  border: 2px solid var(--purple);
  animation: btnPulseRing 2s ease-out infinite;
  pointer-events: none;
}
@keyframes btnPulseGlow {
  0%, 100% { box-shadow: 0 0 8px rgba(147,51,234,.4), 0 0 20px rgba(147,51,234,.15); }
  50%       { box-shadow: 0 0 18px rgba(147,51,234,.8), 0 0 40px rgba(147,51,234,.35); }
}
@keyframes btnPulseRing {
  0%   { transform: scale(1);   opacity: .7; }
  70%  { transform: scale(1.12); opacity: 0; }
  100% { transform: scale(1.12); opacity: 0; }
}
.hero-stats {
  display: flex; gap: 32px; margin-top: 40px; padding-top: 32px;
  border-top: 1px solid var(--border2);
}
.stat-num { font-size: 2rem; font-weight: 800; color: var(--green); line-height: 1; }
.stat-num.stat-pass { color: inherit; }
.stat-lbl { font-size: .76rem; color: var(--text2); margin-top: 4px; }

/* ── Terminal ─────────────────────────────────────────────── */
.hero-terminal-wrap {
  display: flex; flex-direction: column; gap: 16px;
}
.terminal-window {
  background: #04000c;
  border: 1px solid rgba(45,26,85,.9);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow:
    0 24px 64px rgba(0,0,0,.7),
    0 0 0 1px rgba(147,51,234,.07),
    inset 0 1px 0 rgba(255,255,255,.04);
  font-family: var(--mono);
  font-size: .74rem;
}
.terminal-header {
  background: #0c0220;
  padding: 10px 16px;
  display: flex; align-items: center; gap: 8px;
  border-bottom: 1px solid rgba(45,26,85,.8);
}
.terminal-dot-btn {
  width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0;
}
.t-red      { background: #ff5f57; }
.t-yellow   { background: #febc2e; }
.t-green-btn{ background: #28c840; }
.terminal-title-bar {
  flex: 1; text-align: center; font-size: .68rem;
  color: var(--text2); letter-spacing: .3px;
}
.terminal-body {
  padding: 18px 20px;
  height: 318px;
  overflow: hidden;
  color: var(--text2);
  line-height: 1.8;
}
.t-line { opacity: 0; transition: opacity .22s ease; }
.t-line.visible { opacity: 1; }
.t-command   { color: var(--purple-light); }
.t-info      { color: var(--text2); font-style: italic; }
.t-pass      { color: var(--green); }
.t-result    { color: var(--green); font-weight: 600; letter-spacing: .3px; }
.t-separator { color: var(--border); }
.t-name      { color: var(--text); font-weight: 700; font-size: .84rem; }
.t-title     { color: var(--alt); }
.t-flagship  { color: var(--purple-light); font-weight: 600; }

/* ── QR mini ──────────────────────────────────────────────── */
.hero-qr-mini {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.hero-qr-mini-label { font-size: .82rem; color: var(--text2); font-weight: 600; }
.hero-qr-mini-sub   { font-size: .78rem; color: var(--text2); font-style: italic; }
.hero-qr-click {
  display: inline-block; margin-top: 2px;
  font-size: .82rem; font-weight: 700; color: var(--purple-light);
  text-decoration: none; letter-spacing: .04em;
  border: 1px solid var(--purple-dim); border-radius: 20px;
  padding: 4px 14px; transition: background .2s, color .2s;
}
.hero-qr-click:hover { background: var(--purple-dim); color: #fff; }
.hero-qr-mini-box {
  background: #fff; border-radius: 10px; padding: 10px;
  box-shadow: 0 0 0 2px var(--border2), 0 0 24px rgba(147,51,234,.15);
  animation: qr-glow 3s ease-in-out infinite;
}
#qrcode img, #qrcode canvas { display: block; border-radius: 3px; }
@keyframes qr-glow {
  0%,100% { box-shadow: 0 0 0 2px var(--border2), 0 0 16px rgba(147,51,234,.1); }
  50%      { box-shadow: 0 0 0 2px var(--purple-dim), 0 0 28px rgba(147,51,234,.25); }
}

/* ── PASS badges — zielone (wyniki testów) ────────────────── */
.pass-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(34,197,94,.1); border: 1px solid rgba(34,197,94,.3);
  color: var(--green); font-size: .9rem; font-weight: 800;
  padding: 4px 12px; border-radius: 20px;
  font-family: var(--mono); letter-spacing: 1px;
}
.pass-badge-lg {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(34,197,94,.1); border: 1px solid rgba(34,197,94,.3);
  color: var(--green); font-size: 1.4rem; font-weight: 800;
  padding: 6px 16px; border-radius: 20px;
  font-family: var(--mono); letter-spacing: 1px;
}
.pass-dot {
  width: 8px; height: 8px; background: var(--green); border-radius: 50%;
  animation: pass-pulse 1.5s infinite; flex-shrink: 0;
}
@keyframes pass-pulse {
  0%,100% { opacity:1; box-shadow: 0 0 0 0 rgba(34,197,94,.5); }
  50%      { opacity:.8; box-shadow: 0 0 0 5px rgba(34,197,94,0); }
}

/* ── O mnie ───────────────────────────────────────────────── */
.about-grid { display: grid; grid-template-columns: 190px 1fr 1fr; gap: 40px 52px; align-items: start; }
.about-text p { color: var(--text2); margin-bottom: 18px; line-height: 1.8; }
.about-text p strong { color: var(--text); font-weight: 800; }

/* photo placeholder */
.about-photo { display: flex; flex-direction: column; align-items: center; gap: 10px; padding-top: 4px; }
.about-photo-frame {
  width: 160px; height: 160px; border-radius: 50%;
  border: 2px dashed rgba(147,51,234,.45);
  background: radial-gradient(circle at 40% 35%, rgba(147,51,234,.18), var(--bg3));
  display: flex; align-items: center; justify-content: center;
  position: relative;
  animation: photoPulse 3s ease-in-out infinite alternate;
  cursor: default;
}
@keyframes photoPulse {
  from { box-shadow: 0 0 18px rgba(147,51,234,.12); }
  to   { box-shadow: 0 0 44px rgba(147,51,234,.28); }
}
.about-photo-frame svg { width: 64px; height: 64px; opacity: .35; }
.aph-add-hint {
  position: absolute; bottom: -8px;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 10px; padding: 2px 10px;
  font-size: .65rem; color: var(--text2);
  font-family: var(--font); white-space: nowrap;
}
.aph-name { font-family: var(--font); font-weight: 700; color: var(--text); font-size: .95rem; text-align: center; }
.aph-role { font-size: .76rem; color: var(--text2); text-align: center; }
.cert-card {
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 24px;
  display: flex; align-items: flex-start; gap: 16px;
  transition: border-color .2s, box-shadow .2s;
}
.cert-card:hover {
  border-color: rgba(147,51,234,.4);
  box-shadow: 0 8px 28px rgba(147,51,234,.08);
}
.cert-icon  { font-size: 2.2rem; flex-shrink: 0; }
.cert-title { font-weight: 700; font-size: .98rem; color: var(--text); }
.cert-sub   { font-size: .83rem; color: var(--text2); margin-top: 4px; }
.cert-badge {
  display: inline-block; margin-top: 10px;
  background: rgba(147,51,234,.12); border: 1px solid rgba(147,51,234,.35);
  color: var(--purple-light); font-size: .72rem; font-weight: 700;
  padding: 3px 10px; border-radius: 12px;
}

/* ── Moja Droga — timeline ────────────────────────────────── */
.timeline { max-width: 680px; margin: 0 auto; }

.tl-item {
  display: flex; gap: 24px;
}
.tl-marker {
  display: flex; flex-direction: column; align-items: center; flex-shrink: 0;
}
.tl-dot {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--bg3); border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; flex-shrink: 0;
  transition: border-color .2s, box-shadow .2s;
}
.tl-item:hover .tl-dot {
  border-color: var(--purple);
  box-shadow: 0 0 20px rgba(147,51,234,.2);
}
.tl-dot-current {
  border-color: var(--purple);
  background: rgba(147,51,234,.12);
  box-shadow: 0 0 24px rgba(147,51,234,.25);
}
.tl-line {
  width: 2px; flex: 1; min-height: 32px; margin: 8px 0;
  background: linear-gradient(to bottom, var(--border), var(--border2));
}
.tl-body {
  padding: 6px 0 40px;
}
.tl-item:last-child .tl-body { padding-bottom: 0; }
.tl-item-current .tl-body { padding-bottom: 0; }
.tl-period {
  font-size: .68rem; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: var(--purple-light); margin-bottom: 6px;
}
.tl-title {
  font-size: 1.05rem; font-weight: 700; color: var(--text); margin-bottom: 10px;
}
.tl-desc {
  font-size: .88rem; color: var(--text2); line-height: 1.75; max-width: 520px;
}
.tl-cta {
  display: inline-block; margin-top: 14px;
  color: var(--purple-light); font-size: .85rem; font-weight: 600;
  border-bottom: 1px solid rgba(192,132,252,.3);
  transition: border-color .2s, color .2s;
}
.tl-cta:hover {
  color: var(--purple-ultra); border-color: var(--purple-light);
  text-decoration: none;
}

/* ── TESTron Flagship ─────────────────────────────────────── */
.flagship-label-badge {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font-size: .72rem; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: var(--purple-light);
  margin-bottom: 56px;
}
.flagship-pulse {
  width: 8px; height: 8px; background: var(--purple-light);
  border-radius: 50%; animation: pulse 2s infinite;
}
.flagship-grid {
  display: grid; grid-template-columns: 1fr 420px;
  gap: 64px; align-items: center;
}
.flagship-title {
  font-size: 3.2rem; font-weight: 800; letter-spacing: -2px;
  color: var(--text);
  margin-bottom: 12px; line-height: 1;
}
.flagship-tagline {
  font-size: 1.05rem; color: var(--text2); margin-bottom: 24px; line-height: 1.5;
}
.flagship-desc {
  font-size: .95rem; color: var(--text2); line-height: 1.8; margin-bottom: 16px;
}
.flagship-desc strong { color: var(--text); }
.flagship-stats {
  display: flex; gap: 32px; margin: 32px 0;
  padding: 24px 0; border-top: 1px solid var(--border2);
  border-bottom: 1px solid var(--border2);
}
.flagship-stat { display: flex; flex-direction: column; }
.fs-val {
  font-family: var(--mono); font-size: 1.4rem; font-weight: 700;
  color: var(--purple-light); line-height: 1;
}
.fs-lbl { font-size: .72rem; color: var(--text2); margin-top: 4px; }
.flagship-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-flagship {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 26px; border-radius: var(--radius); font-size: .9rem;
  font-weight: 700; cursor: pointer; transition: all .25s; border: none;
  text-decoration: none !important;
  background: linear-gradient(135deg, var(--purple-dim) 0%, var(--purple) 50%, var(--purple-light) 100%);
  background-size: 200% 200%;
  color: #fff;
  box-shadow: 0 6px 32px rgba(147,51,234,.4);
}
.btn-flagship:hover {
  background-position: right center;
  box-shadow: 0 8px 40px rgba(147,51,234,.6);
  transform: translateY(-2px);
}

/* Mockup dashboardu TESTron */
.flagship-mockup {
  background: rgba(4,0,12,.9);
  border: 1px solid rgba(147,51,234,.25);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow:
    0 32px 80px rgba(0,0,0,.7),
    0 0 0 1px rgba(147,51,234,.1),
    inset 0 1px 0 rgba(255,255,255,.04);
  font-family: var(--mono);
}
.fm-header {
  background: #0c0220;
  padding: 10px 16px;
  display: flex; align-items: center; gap: 8px;
  border-bottom: 1px solid rgba(45,26,85,.8);
}
.fm-dots { display: flex; gap: 6px; }
.fm-dot { width: 11px; height: 11px; border-radius: 50%; }
.fm-dot-r { background: #ff5f57; }
.fm-dot-y { background: #febc2e; }
.fm-dot-g { background: #28c840; }
.fm-url {
  flex: 1; text-align: center; font-size: .68rem;
  color: var(--text2); letter-spacing: .3px;
}
.fm-body { padding: 20px; }
.fm-metric-row { display: flex; gap: 16px; margin-bottom: 20px; }
.fm-metric {
  flex: 1; background: rgba(147,51,234,.08); border: 1px solid rgba(147,51,234,.15);
  border-radius: 8px; padding: 12px; text-align: center;
}
.fm-m-num { font-size: 1.2rem; font-weight: 700; color: var(--purple-light); }
.fm-m-lbl { font-size: .65rem; color: var(--text2); margin-top: 3px; }
.fm-bar-section { margin-bottom: 14px; }
.fm-bar-row {
  display: flex; justify-content: space-between; align-items: center;
  font-size: .68rem; color: var(--text2); margin-bottom: 6px;
}
.fm-bar-val { color: var(--purple-light); font-weight: 600; }
.fm-bar {
  height: 6px; background: rgba(147,51,234,.12);
  border-radius: 3px; overflow: hidden;
}
.fm-fill {
  height: 100%; background: linear-gradient(90deg, var(--purple-dim), var(--purple-light));
  border-radius: 3px; transition: width .8s ease;
}
.fm-fill-full { background: linear-gradient(90deg, var(--green-dim), var(--green)); }
.fm-list { margin-top: 16px; display: flex; flex-direction: column; gap: 6px; }
.fm-item { font-size: .72rem; padding: 5px 0; }
.fm-pass { color: var(--green); }
.fm-wip  { color: var(--text2); }

/* ── Projekty ─────────────────────────────────────────────── */
.project-hero-card {
  background: var(--bg3); border: 1px solid rgba(147,51,234,.25);
  border-radius: var(--radius-lg); padding: 24px;
  background: linear-gradient(145deg, var(--bg3), rgba(147,51,234,.04));
  transition: border-color .2s, box-shadow .2s, transform .22s;
  display: flex; flex-direction: column;
}
.project-hero-card:hover {
  border-color: rgba(147,51,234,.45);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(147,51,234,.1);
}
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  align-items: start;
}
.project-card {
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 24px;
  transition: border-color .2s, transform .22s, box-shadow .22s;
  display: flex; flex-direction: column;
}
.project-card:hover {
  border-color: rgba(147,51,234,.3);
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(147,51,234,.08);
}
.project-header {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 8px; margin-bottom: 12px;
}
.project-header-left { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.project-category {
  font-size: .68rem; font-weight: 700; letter-spacing: 1.2px;
  text-transform: uppercase; color: var(--text2);
}
.project-icon  { font-size: 1.5rem; flex-shrink: 0; }
.project-badge {
  font-size: .7rem; font-weight: 700; padding: 3px 9px;
  border-radius: 12px; flex-shrink: 0;
}
.badge-pass {
  background: rgba(34,197,94,.1); color: var(--green);
  border: 1px solid rgba(34,197,94,.3);
}
.project-name    { font-weight: 700; font-size: 1rem; margin-bottom: 6px; }
.project-name-lg { font-weight: 800; font-size: 1.3rem; margin-bottom: 6px; letter-spacing: -.3px; }
.project-tagline { font-size: .82rem; color: var(--text2); margin-bottom: 12px; font-style: italic; }
.project-desc    { font-size: .86rem; color: var(--text2); line-height: 1.68; flex: 1; }
.project-footer  {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border2);
  font-size: .76rem; color: var(--text2);
}
.test-count { display: flex; align-items: center; gap: 5px; }
.test-dot   { width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.project-metrics {
  display: flex; flex-wrap: wrap; gap: 14px 20px; margin-top: 20px; padding-top: 18px;
  border-top: 1px solid var(--border2);
}
.metric     { display: flex; flex-direction: column; }
.metric-val { font-family: var(--mono); font-weight: 700; font-size: 1.1rem; color: var(--purple-light); }
.metric-lbl { font-size: .68rem; color: var(--text2); margin-top: 2px; }
.bug-found  {
  display: block; margin-top: 8px; font-size: .8rem;
  color: var(--yellow); border-left: 2px solid var(--yellow);
  padding-left: 8px; line-height: 1.5;
}
.results-row {
  display: grid; grid-template-columns: repeat(4,1fr);
  gap: 14px; margin-top: 48px;
}
.result-box {
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 24px; text-align: center;
  transition: border-color .2s, box-shadow .2s;
}
.result-box:hover {
  border-color: rgba(147,51,234,.3);
  box-shadow: 0 0 24px rgba(147,51,234,.07);
}
.result-num { font-size: 2.4rem; font-weight: 800; color: var(--green); line-height: 1; }
.result-num.mono { font-family: var(--mono); font-size: 2rem; }
.result-lbl { font-size: .76rem; color: var(--text2); margin-top: 8px; }

/* ── Audyt tej strony ─────────────────────────────────────── */
.audit-scores {
  display: grid; grid-template-columns: repeat(4,1fr);
  gap: 16px; margin-bottom: 32px;
}
.audit-score-card {
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 24px 20px; text-align: center;
  transition: border-color .2s, box-shadow .2s;
}
.audit-score-card:hover {
  border-color: rgba(74,222,128,.25);
  box-shadow: 0 0 24px rgba(74,222,128,.07);
}
.audit-score-overall {
  border-color: rgba(74,222,128,.2);
}
.asc-icon { font-size: 1.5rem; margin-bottom: 8px; }
.asc-label { font-size: .75rem; color: var(--text2); margin-bottom: 10px; min-height: 2em; }
.asc-pct { font-size: 2.4rem; font-weight: 800; line-height: 1; }
.asc-grade {
  display: inline-block; font-size: .72rem; font-weight: 700;
  border: 1px solid; border-radius: 4px; padding: 2px 9px;
  margin: 8px 0;
}
.asc-detail { font-size: .72rem; color: var(--text2); }
.audit-cta {
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
}
.audit-note {
  font-size: .78rem; color: var(--text2);
}
.audit-lock-btn {
  background: none; border: 1px solid var(--border); border-radius: 8px;
  padding: 8px 10px; cursor: pointer; font-size: 1rem;
  color: var(--text2); transition: border-color .2s, color .2s;
  line-height: 1;
}
.audit-lock-btn:hover { border-color: var(--purple); color: var(--text); }
.audit-admin {
  margin-top: 20px; background: var(--bg3);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 20px 24px;
}
.audit-admin-label {
  font-size: .75rem; color: var(--text2); display: block; margin-bottom: 12px;
  letter-spacing: .05em; text-transform: uppercase;
}
.audit-admin-pin { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.audit-pin-input {
  background: var(--bg); border: 1px solid var(--border); border-radius: 8px;
  color: var(--text); font-size: 1.2rem; letter-spacing: .4em;
  padding: 8px 14px; width: 100px; outline: none; text-align: center;
}
.audit-pin-input:focus { border-color: var(--purple); }
.audit-pin-submit {
  background: var(--purple-dim); color: #fff; border: none;
  border-radius: 8px; padding: 9px 18px; cursor: pointer; font-size: .85rem;
  transition: background .2s;
}
.audit-pin-submit:hover { background: var(--purple); }
.audit-pin-err { font-size: .78rem; color: #f87171; }
.audit-admin-panel { display: flex; flex-direction: column; gap: 12px; }
.audit-btn-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.btn-run-audit {
  background: var(--green); color: #051a0a; border: none;
  border-radius: 8px; padding: 11px 22px; font-size: .9rem; font-weight: 700;
  cursor: pointer; transition: opacity .2s;
}
.btn-run-audit:hover { opacity: .85; }
.btn-run-audit:disabled { opacity: .55; cursor: not-allowed; }
.btn-show-test {
  background: var(--bg); border: 1px solid var(--border); border-radius: 8px;
  padding: 10px 18px; font-size: .88rem; color: var(--text2); cursor: pointer;
  transition: border-color .2s, color .2s;
}
.btn-show-test:hover { border-color: var(--purple-light); color: var(--text); }

/* Progress bar */
.audit-progress-wrap { width: 100%; }
.audit-progress-bar-outer {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 6px; height: 8px; overflow: hidden; margin-bottom: 6px;
}
.audit-progress-bar-inner {
  height: 100%; background: var(--green); border-radius: 6px;
  width: 0%; transition: width .6s ease;
}
.audit-progress-info { font-size: .78rem; color: var(--text2); }

.audit-copied { font-size: .8rem; color: var(--green); font-weight: 600; }

/* Live test modal overlay */
.audit-live-overlay {
  display: none; position: fixed; inset: 0; z-index: 9999;
  background: rgba(6,0,15,.85); backdrop-filter: blur(6px);
  align-items: center; justify-content: center; padding: 20px;
}
.audit-live-modal {
  background: var(--bg3); border: 1px solid #2d1b69;
  border-radius: 16px; width: 100%; max-width: 720px;
  max-height: 85vh; display: flex; flex-direction: column;
  box-shadow: 0 8px 40px rgba(0,0,0,.6);
}
.audit-live-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 22px 14px; border-bottom: 1px solid #1e0a45;
  font-weight: 700; color: var(--text); font-size: .95rem;
}
.audit-live-close {
  background: none; border: 1px solid var(--border); border-radius: 6px;
  color: var(--text2); cursor: pointer; padding: 4px 10px; font-size: .9rem;
  transition: border-color .2s; line-height: 1;
}
.audit-live-close:hover { border-color: var(--purple); color: var(--text); }
.audit-live-progress-wrap { padding: 12px 22px 8px; }
.audit-live-progress-bar {
  background: var(--bg); border-radius: 6px; height: 6px;
  overflow: hidden; margin-bottom: 6px;
}
.audit-live-progress-bar > div {
  height: 100%; background: var(--green); border-radius: 6px;
  width: 0%; transition: width .6s ease;
}
.audit-live-status { font-size: .75rem; color: var(--text2); min-height: 1em; }
.audit-live-list {
  flex: 1; overflow-y: auto; padding: 8px 22px 18px;
  display: flex; flex-direction: column; gap: 3px;
}
.audit-live-list::-webkit-scrollbar { width: 5px; }
.audit-live-list::-webkit-scrollbar-track { background: var(--bg); }
.audit-live-list::-webkit-scrollbar-thumb { background: #2d1b69; border-radius: 3px; }
.live-row {
  font-size: .82rem; padding: 5px 10px; border-radius: 6px;
  color: var(--text2); font-family: var(--mono); white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
}
.live-passed { background: rgba(74,222,128,.06); color: #4ade80; }
.live-failed  { background: rgba(248,113,113,.08); color: #f87171; }
.live-waiting, .live-no-server {
  font-size: .82rem; color: var(--text3); text-align: center; padding: 24px 0;
}

/* ── Umiejętności ─────────────────────────────────────────── */
.skills-narrative {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 20px; margin-bottom: 48px;
}
.skill-narrative-box {
  background: var(--bg3);
  border: 1px solid rgba(147,51,234,.2);
  border-radius: var(--radius-lg); padding: 32px 28px;
  transition: border-color .2s, box-shadow .2s;
}
.skill-narrative-box:hover {
  border-color: rgba(147,51,234,.4);
  box-shadow: 0 8px 28px rgba(147,51,234,.07);
}
.skill-narrative-box-alt {
  border-color: rgba(56,189,248,.18);
}
.skill-narrative-box-alt:hover {
  border-color: rgba(56,189,248,.4);
  box-shadow: 0 8px 28px rgba(56,189,248,.07);
}
.skill-narrative-title {
  font-size: 1.05rem; font-weight: 700; color: var(--text);
  margin-bottom: 22px; line-height: 1.4;
}
.snl-tag {
  display: block; font-size: .68rem; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase; margin-bottom: 6px;
}
.snl-purple { color: var(--purple-light); }
.snl-alt    { color: var(--alt); }
.skill-item {
  display: flex; align-items: flex-start; gap: 10px;
  margin-bottom: 12px; color: var(--text2); font-size: .87rem; line-height: 1.4;
}
.skill-item::before {
  content: '→'; color: var(--purple-light); flex-shrink: 0;
  font-weight: 700; font-family: var(--mono);
}
.skill-item-alt::before { color: var(--alt); }
.skills-stack-header {
  font-size: .68rem; font-weight: 700; letter-spacing: 2.5px;
  text-transform: uppercase; color: var(--text2);
  margin-bottom: 20px; text-align: center;
}
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px,1fr));
  gap: 14px;
}
.skill-group {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px;
  transition: border-color .2s;
}
.skill-group:hover { border-color: rgba(147,51,234,.2); }
.skill-group-title {
  font-size: .68rem; font-weight: 700; letter-spacing: 1.2px;
  text-transform: uppercase; color: var(--text2); margin-bottom: 14px;
}
.skill-list { display: flex; flex-wrap: wrap; gap: 7px; }
.skill-tag {
  background: var(--bg3); border: 1px solid var(--border);
  color: var(--text2); font-size: .8rem;
  padding: 4px 10px; border-radius: 6px;
  transition: border-color .15s, color .15s;
}
.skill-tag:hover { border-color: var(--border); color: var(--text); }
.skill-tag.primary {
  border-color: rgba(147,51,234,.3); color: var(--purple-light);
  background: rgba(147,51,234,.07);
}
.skill-tag.primary:hover { border-color: var(--purple); }
.skill-tag i { font-size: .95em; vertical-align: middle; margin-right: 5px; }

/* ── Kafelki kompetencji (dowód po kliknięciu) ───────────────── */
.comp-tiles {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.ct-tile {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  transition: border-color .2s;
}
.ct-tile.is-open { border-color: rgba(34,197,94,.45); }
.ct-lock {
  width: 100%; display: flex; align-items: center; gap: 10px;
  background: none; border: none; cursor: pointer;
  padding: 16px 18px; text-align: left; font: inherit; color: var(--text);
}
.ct-lock:focus-visible { outline: 2px solid var(--green); outline-offset: -2px; }
.ct-lock-icon { font-size: .95rem; flex-shrink: 0; }
.ct-name { font-size: .92rem; font-weight: 700; }
.ct-tile.is-open .ct-name { color: var(--green); }
.ct-body { padding: 0 18px 18px; display: flex; flex-direction: column; gap: 10px; }
.ct-body[hidden] { display: none; }
.ct-row p { margin: 4px 0 0; color: var(--text2); font-size: .82rem; line-height: 1.5; }
.ct-row code { font-family: var(--mono); font-size: .78em; color: var(--purple-light); }
.ct-label {
  display: block; font-size: .62rem; font-weight: 700;
  letter-spacing: 1.4px; text-transform: uppercase; color: var(--green);
}

/* ── Kontakt ──────────────────────────────────────────────── */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 56px; align-items: start;
}
.contact-info { padding-top: 8px; }
.availability-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(147,51,234,.1); border: 1px solid rgba(147,51,234,.28);
  color: var(--purple-light); font-size: .76rem; font-weight: 600;
  padding: 6px 16px; border-radius: 20px; margin-bottom: 24px;
  letter-spacing: .3px;
}
.availability-dot {
  width: 8px; height: 8px; background: var(--purple-light);
  border-radius: 50%; animation: pulse 2s infinite; flex-shrink: 0;
}
.contact-box h2   { font-size: 1.8rem; margin-bottom: 16px; }
.contact-cta      { color: var(--text2); margin-bottom: 32px; line-height: 1.8; font-size: .96rem; }
.contact-cta strong { color: var(--text); }
.contact-links    { display: flex; justify-content: flex-start; gap: 10px; flex-wrap: wrap; }
.contact-link {
  display: flex; align-items: center; gap: 8px;
  background: var(--bg2); border: 1px solid var(--border);
  color: var(--text); padding: 11px 18px; border-radius: var(--radius);
  font-size: .88rem; font-weight: 500; transition: all .2s;
  text-decoration: none !important;
}
.contact-link:hover {
  border-color: rgba(147,51,234,.4); background: var(--bg3);
  box-shadow: 0 0 20px rgba(147,51,234,.1);
  transform: translateY(-1px);
}
.contact-link svg { width: 17px; height: 17px; fill: currentColor; flex-shrink: 0; }
.contact-reply { margin-top: 22px; font-size: .8rem; color: var(--text2); }
.contact-reply::before { content: "⏱ "; }

/* ── Formularz kontaktowy ─────────────────────────────────── */
.contact-form-wrap {
  background: var(--bg3);
  border: 1px solid rgba(74,222,128,.3);
  border-top: 3px solid var(--testron-green);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  box-shadow: 0 8px 40px rgba(74,222,128,.07), 0 0 0 1px rgba(74,222,128,.05);
}
.cf-title {
  font-size: .72rem; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: var(--testron-green);
  margin-bottom: 24px; display: flex; align-items: center; gap: 8px;
}
.cf-title::before {
  content: ''; display: inline-block;
  width: 20px; height: 2px; background: var(--testron-green);
  border-radius: 1px;
}
.cf-required-note { font-size: .75rem; color: var(--text2); margin-bottom: 20px; }
.cf-group { margin-bottom: 20px; }
.cf-label {
  display: block; font-size: .8rem; font-weight: 600;
  color: var(--text2); margin-bottom: 7px;
}
.cf-req { color: var(--testron-green); }
.cf-input {
  width: 100%; background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 11px 14px;
  color: var(--text); font-family: var(--font); font-size: .88rem;
  transition: border-color .2s, box-shadow .2s;
  outline: none;
}
.cf-input:focus {
  border-color: var(--testron-green);
  box-shadow: 0 0 0 3px rgba(74,222,128,.1);
}
.cf-input.cf-error-field { border-color: var(--red); }
.cf-textarea { resize: none; min-height: 150px; }
.cf-submit { width: 100%; justify-content: center; margin-top: 6px; }
.cf-submit:disabled { opacity: .6; cursor: not-allowed; transform: none !important; }
#cf-response {
  font-size: .85rem; font-weight: 600; padding: 10px 14px;
  border-radius: var(--radius); margin-bottom: 14px; display: none;
}
#cf-response.show { display: block; }
#cf-response.cf-ok  { color: var(--testron-green); background: rgba(74,222,128,.1); border: 1px solid rgba(74,222,128,.25); }
#cf-response.cf-err { color: var(--red); background: rgba(248,81,73,.1); border: 1px solid rgba(248,81,73,.25); }

/* ── Footer ───────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border2);
  padding: 32px 0; text-align: center;
  font-size: .84rem; color: var(--text2);
}
footer strong { color: var(--text2); }

.footer-links {
  display: flex; justify-content: center; flex-wrap: wrap;
  gap: 10px; margin-top: 20px;
}
.footer-link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 16px; border-radius: 20px; border: 1px solid;
  font-size: .82rem; font-weight: 600;
  text-decoration: none !important;
  transition: transform .2s, box-shadow .2s, background .2s;
}
.footer-link:hover {
  transform: translateY(-2px);
  text-decoration: none;
}

.fl-testron {
  color: var(--testron-green);
  border-color: rgba(74,222,128,.35);
  background: rgba(74,222,128,.08);
  animation: footer-glow 2.5s ease-in-out infinite;
}
.fl-testron:hover {
  background: rgba(74,222,128,.18);
  box-shadow: 0 4px 20px rgba(74,222,128,.35);
}
@keyframes footer-glow {
  0%,100% { box-shadow: 0 0 8px rgba(74,222,128,.15); }
  50%      { box-shadow: 0 0 20px rgba(74,222,128,.45); }
}

.fl-github {
  color: var(--purple-light);
  border-color: rgba(192,132,252,.3);
  background: rgba(192,132,252,.07);
}
.fl-github:hover {
  background: rgba(192,132,252,.18);
  box-shadow: 0 4px 16px rgba(192,132,252,.25);
}

.fl-monitor {
  color: var(--alt);
  border-color: rgba(56,189,248,.3);
  background: rgba(56,189,248,.07);
}
.fl-monitor:hover {
  background: rgba(56,189,248,.18);
  box-shadow: 0 4px 16px rgba(56,189,248,.25);
}

.fl-nauka {
  color: #fbbf24;
  border-color: rgba(251,191,36,.3);
  background: rgba(251,191,36,.07);
}
.fl-nauka:hover {
  background: rgba(251,191,36,.18);
  box-shadow: 0 4px 16px rgba(251,191,36,.25);
}

.fl-casestudy {
  color: var(--purple-light);
  border-color: rgba(192,132,252,.3);
  background: rgba(192,132,252,.07);
}
.fl-casestudy:hover {
  background: rgba(192,132,252,.18);
  box-shadow: 0 4px 16px rgba(192,132,252,.25);
}

/* ── Hamburger ────────────────────────────────────────────── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px 4px;
  z-index: 101;
}
.nav-hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text2);
  border-radius: 2px;
  transition: transform .25s, opacity .25s;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero-grid        { grid-template-columns: 1fr; gap: 40px; }
  .flagship-grid    { grid-template-columns: 1fr; gap: 40px; }
  .about-grid       { grid-template-columns: 1fr 1fr; }
  .about-photo      { grid-column: 1 / -1; flex-direction: row; gap: 20px; padding-bottom: 8px; }
  .skills-narrative { grid-template-columns: 1fr; }
  .comp-tiles       { grid-template-columns: 1fr 1fr; }
  .contact-grid     { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 720px) {
  h1 { font-size: 2.1rem; }
  h2 { font-size: 1.65rem; }
  .flagship-title { font-size: 2.4rem; }
  .results-row { grid-template-columns: repeat(2,1fr); }
  .audit-scores { grid-template-columns: repeat(2,1fr); }
  .nav-links { gap: 16px; }
  section { padding: 64px 0; }
}
@media (max-width: 600px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-photo { flex-direction: column; }
  .comp-tiles { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  .nav-hamburger { display: flex; }
  .nav-links {
    display: none;
    position: fixed;
    top: 60px; left: 0; right: 0;
    background: rgba(6,0,15,.97);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 24px 28px;
    gap: 20px;
    border-bottom: 1px solid var(--border);
    z-index: 99;
  }
  .nav-links.open { display: flex; }
  .nav-links a { font-size: 1rem; }
  .hero-stats { flex-wrap: wrap; gap: 16px; }
  .flagship-stats { flex-wrap: wrap; gap: 20px; }
  .results-row { grid-template-columns: 1fr 1fr; }
  .contact-box { padding: 32px 18px; }
}
