/* ============================================================
   Namor Tech — Roman Kasprzyk | ciemny techniczny design system
   ============================================================ */

:root {
  --bg: #0b1220;
  --bg-alt: #0f1828;
  --card: #141f33;
  --card-hover: #182642;
  --line: rgba(255, 255, 255, 0.08);
  --text: #f0f4fa;
  --muted: #a8b4c9;
  --accent: #ffc626;
  --accent-strong: #ffb300;
  --accent-ink: #1a1200;
  --glow: rgba(255, 198, 38, 0.35);
  --radius: 14px;
  --maxw: 1140px;
  --header-h: 72px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { 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;
  margin: 0 0 0.5em;
  font-weight: 800;
  letter-spacing: -0.01em;
}
h1, h2 { font-family: "Sora", "Manrope", sans-serif; }
h1 { font-size: clamp(2rem, 5vw, 3.3rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 22px;
}

/* ---------- header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(11, 18, 32, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--text);
  white-space: nowrap;
}
.logo:hover { text-decoration: none; }
.logo .bolt {
  width: 34px; height: 34px; flex: none;
  display: grid; place-items: center;
  background: linear-gradient(145deg, var(--accent), var(--accent-strong));
  color: var(--accent-ink);
  border-radius: 9px;
  box-shadow: 0 0 18px var(--glow);
}
.logo .bolt svg { width: 18px; height: 18px; }
.logo small {
  display: block;
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.main-nav { display: flex; align-items: center; gap: 26px; }
.main-nav a {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.95rem;
}
.main-nav a:hover { color: var(--text); text-decoration: none; }
.main-nav a.active { color: var(--accent); }

.nav-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(145deg, var(--accent), var(--accent-strong));
  color: var(--accent-ink) !important;
  font-weight: 800;
  padding: 10px 18px;
  border-radius: 999px;
  box-shadow: 0 0 22px var(--glow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.nav-phone:hover { transform: translateY(-1px); box-shadow: 0 0 32px var(--glow); text-decoration: none; }
.nav-phone svg { width: 16px; height: 16px; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 9px 11px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 20px; height: 2px;
  background: var(--text);
  margin: 4px 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--line);
    padding: 8px 22px 20px;
    display: none;
  }
  .nav-open .main-nav { display: flex; }
  .main-nav a { padding: 13px 4px; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .main-nav a:last-of-type { border-bottom: none; }
  .nav-phone { justify-content: center; margin-top: 14px; }
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(60px, 10vw, 120px) 0 clamp(50px, 8vw, 100px);
  background:
    radial-gradient(900px 480px at 80% -10%, rgba(255, 198, 38, 0.08), transparent 60%),
    radial-gradient(700px 420px at -10% 110%, rgba(56, 116, 255, 0.10), transparent 60%),
    var(--bg);
}
.hero-circuit {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.5;
}
.hero .container { position: relative; }
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}
.hero-kicker::before {
  content: "";
  width: 26px; height: 2px;
  background: var(--accent);
  box-shadow: 0 0 8px var(--glow);
}
.hero h1 span { color: var(--accent); }
.hero-lead {
  max-width: 640px;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.2rem);
  margin-bottom: 30px;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 44px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1rem;
  padding: 14px 26px;
  border-radius: 999px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn svg { width: 18px; height: 18px; }
.btn-primary {
  background: linear-gradient(145deg, var(--accent), var(--accent-strong));
  color: var(--accent-ink);
  box-shadow: 0 6px 26px var(--glow);
}
.btn-primary:hover { box-shadow: 0 8px 34px var(--glow); }
.btn-ghost {
  border: 1px solid var(--line);
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* trust bar */
.trust-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 13px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 18px;
}
.trust-item .t-icon {
  width: 40px; height: 40px; flex: none;
  display: grid; place-items: center;
  border-radius: 10px;
  background: rgba(255, 198, 38, 0.12);
  color: var(--accent);
}
.trust-item .t-icon svg { width: 20px; height: 20px; }
.trust-item strong { display: block; font-size: 1.02rem; line-height: 1.25; }
.trust-item small { color: var(--muted); font-size: 0.82rem; }

/* ---------- sections ---------- */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 720px; margin-bottom: 42px; }
.kicker {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.section-head p { color: var(--muted); }

/* cards */
.grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 198, 38, 0.4);
  background: var(--card-hover);
}
.card .c-icon {
  width: 64px; height: 64px;
  display: grid; place-items: center;
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(255, 198, 38, 0.22), rgba(255, 179, 0, 0.07));
  border: 1px solid rgba(255, 198, 38, 0.38);
  box-shadow: 0 0 22px rgba(255, 198, 38, 0.12);
  color: var(--accent);
  margin-bottom: 18px;
}
.card { position: relative; }
.card::before {
  content: "";
  position: absolute;
  top: 0; left: 24px; right: 24px;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: linear-gradient(90deg, var(--accent), transparent);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.card:hover::before { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .card:hover .ml-title, .card:hover .c-icon { animation: none; }
}
.card .c-icon svg { width: 30px; height: 30px; }
.card p { color: var(--muted); font-size: 0.95rem; margin-bottom: 0; }
.card .tag {
  display: inline-block;
  margin-top: 14px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

/* mini-logo uslugi: piktogram + duzy graficzny naglowek */
.mini-logo {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
}
.mini-logo .c-icon { margin-bottom: 0; flex: none; }
.mini-logo h3 { margin: 0; }
.ml-title {
  display: block;
  font-family: "Sora", "Manrope", sans-serif;
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.1;
  color: var(--text);
}
.ml-sub {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 4px;
}
.card:hover .ml-title {
  background: linear-gradient(100deg, var(--accent) 20%, #fff3cf 40%, var(--accent) 60%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: title-shine 1.6s linear infinite;
}
.card:hover .c-icon {
  animation: icon-flash 1.1s ease-in-out infinite;
}
@keyframes title-shine {
  from { background-position: 200% 0; }
  to { background-position: 0% 0; }
}
@keyframes icon-flash {
  0%, 100% { box-shadow: 0 0 18px rgba(255, 198, 38, 0.18); border-color: rgba(255, 198, 38, 0.38); }
  50% { box-shadow: 0 0 38px rgba(255, 198, 38, 0.55); border-color: rgba(255, 198, 38, 0.9); }
}

/* mini-lista zakresu w kartach */
.mini-list { list-style: none; margin: 14px 0 0; padding: 0; }
.mini-list li {
  position: relative;
  padding: 3px 0 3px 24px;
  color: var(--muted);
  font-size: 0.9rem;
}
.mini-list li::before {
  content: "";
  position: absolute;
  left: 2px; top: 10px;
  width: 7px; height: 4px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}
.mini-list li strong { color: var(--text); }

/* proces wspolpracy */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
  counter-reset: step;
}
.step {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  position: relative;
}
.step .s-num {
  display: inline-grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--accent), var(--accent-strong));
  color: var(--accent-ink);
  font-weight: 800;
  font-size: 1.2rem;
  margin-bottom: 14px;
  box-shadow: 0 0 18px var(--glow);
}
.step h3 { font-size: 1.05rem; }
.step p { color: var(--muted); font-size: 0.92rem; margin: 0; }

/* FAQ */
.faq-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: 12px;
  overflow: hidden;
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 52px 18px 22px;
  font-weight: 700;
  position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 20px; top: 50%;
  transform: translateY(-50%);
  color: var(--accent);
  font-size: 1.5rem;
  font-weight: 400;
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item[open] summary { color: var(--accent); }
.faq-item .faq-body { padding: 0 22px 20px; color: var(--muted); }
.faq-item .faq-body p { margin: 0; }

/* stats */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 18px;
  text-align: center;
}
.stat {
  padding: 28px 14px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.stat .num {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  color: var(--accent);
  line-height: 1.1;
}
.stat .lbl { color: var(--muted); font-size: 0.9rem; margin-top: 6px; }

/* opinions */
.quote {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
}
.quote .stars { color: var(--accent); letter-spacing: 2px; margin-bottom: 12px; }
.quote p { color: var(--text); font-size: 0.98rem; }
.quote footer { color: var(--muted); font-size: 0.85rem; }

/* timeline (o mnie) */
.timeline { position: relative; margin: 0; padding: 0 0 0 30px; list-style: none; }
.timeline::before {
  content: "";
  position: absolute;
  left: 8px; top: 6px; bottom: 6px;
  width: 2px;
  background: linear-gradient(var(--accent), rgba(255, 198, 38, 0.1));
}
.timeline li { position: relative; padding: 0 0 34px 22px; }
.timeline li::before {
  content: "";
  position: absolute;
  left: -21px; top: 7px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--bg);
  border: 3px solid var(--accent);
  box-shadow: 0 0 12px var(--glow);
}
.timeline .t-when {
  font-family: "Sora", "Manrope", sans-serif;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}
.timeline h3 { margin: 4px 0 6px; }
.timeline p { color: var(--muted); margin: 0; font-size: 0.97rem; }

/* badges */
.badges { display: flex; flex-wrap: wrap; gap: 10px; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 198, 38, 0.35);
  background: rgba(255, 198, 38, 0.08);
  color: var(--text);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 0.88rem;
  font-weight: 700;
}
.badge svg { width: 15px; height: 15px; color: var(--accent); }

/* two-column layout */
.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* checklist */
.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li {
  position: relative;
  padding: 0 0 14px 34px;
  color: var(--text);
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0; top: 5px;
  width: 20px; height: 20px;
  border-radius: 6px;
  background: rgba(255, 198, 38, 0.14);
  border: 1px solid rgba(255, 198, 38, 0.4);
}
.checklist li::after {
  content: "";
  position: absolute;
  left: 6px; top: 9px;
  width: 8px; height: 5px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}
.checklist li small { display: block; color: var(--muted); }

/* gallery / realizacje */
.project {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.project .p-media {
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    repeating-linear-gradient(45deg, rgba(255,255,255,0.02) 0 12px, transparent 12px 24px),
    linear-gradient(160deg, #16233c, #0e1728);
  color: var(--muted);
  font-size: 0.85rem;
  border-bottom: 1px solid var(--line);
}
.project .p-media img { width: 100%; height: 100%; object-fit: cover; }
.project .p-body { padding: 24px; }
.footer-logo { max-width: 210px; margin-bottom: 12px; border-radius: 8px; }
.project .p-body p { color: var(--muted); font-size: 0.95rem; margin-bottom: 0; }

/* CTA band */
.cta-band {
  background:
    radial-gradient(600px 300px at 85% 50%, rgba(255, 198, 38, 0.14), transparent 65%),
    var(--bg-alt);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: center;
  padding: clamp(50px, 7vw, 80px) 0;
}
.cta-band h2 { margin-bottom: 10px; }
.cta-band p { color: var(--muted); margin-bottom: 26px; }

/* ---------- forms ---------- */
.form-grid { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
label { display: block; font-weight: 700; font-size: 0.88rem; margin-bottom: 6px; }
input, textarea, select {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  font: inherit;
  padding: 13px 15px;
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 198, 38, 0.15);
}
textarea { min-height: 140px; resize: vertical; }

.contact-box {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}
.contact-box .row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.contact-box .row:last-child { border-bottom: none; }
.contact-box .row svg { width: 20px; height: 20px; color: var(--accent); flex: none; }
.contact-box .row a { color: var(--text); font-weight: 700; }

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: #080d18;
  padding: 44px 0 28px;
  color: var(--muted);
  font-size: 0.9rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 30px;
  margin-bottom: 30px;
}
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: var(--text); font-size: 0.95rem; margin-bottom: 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.82rem;
}

/* ---------- animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }

/* hero circuit animation */
.circuit-path {
  fill: none;
  stroke: rgba(255, 198, 38, 0.25);
  stroke-width: 1.6;
}
.circuit-pulse {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 90 1400;
  stroke-dashoffset: 0;
  filter: drop-shadow(0 0 6px var(--glow));
  animation: pulse-flow 7s linear infinite;
}
.circuit-pulse.delay { animation-delay: 3.5s; }
.circuit-node {
  fill: var(--bg);
  stroke: rgba(255, 198, 38, 0.5);
  stroke-width: 1.6;
}
.circuit-node.lit {
  fill: var(--accent);
  filter: drop-shadow(0 0 5px var(--glow));
  animation: node-blink 3.4s ease-in-out infinite;
}
@keyframes pulse-flow {
  from { stroke-dashoffset: 1490; }
  to { stroke-dashoffset: 0; }
}
@keyframes node-blink {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .circuit-pulse, .circuit-node.lit { animation: none; }
  .btn, .card, .nav-phone { transition: none; }
}
