/* ============================================================
   ROBO HUB — style.css
   Motyw hybrydowy: ciemne hero/wideo/CTA + jasne sekcje treściowe
   ============================================================ */

:root {
  /* --- powierzchnie ciemne (BMF) --- */
  --d-bg-0: #0a0a0a;
  --d-bg-1: #121214;
  --d-bg-2: #1c1c1e;
  --d-bg-3: #2c2c2e;
  --d-line: rgba(255, 255, 255, 0.09);
  --d-ink: #f2f4f6;
  --d-muted: #a3abb5;

  /* --- powierzchnie jasne (Śniadania) --- */
  --l-bg-0: #e3e8ec;
  --l-bg-1: #f4f6f8;
  --l-line: #d2d9de;
  --l-line-2: #b9c4cc;
  --l-ink: #16181c;
  --l-muted: #49525c;

  /* --- akcenty --- */
  --blue: #00d4ff;
  --blue-dark: #00a8cc;
  /* kotwica funkcjonalna AA na jasnym tle */
  --blue-deep: #086079;

  /* --- typografia --- */
  --font-display: 'Archivo', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;

  /* --- rytm --- */
  --sp-4: 16px;
  --sp-5: 24px;
  --sp-6: 32px;
  --sp-7: 48px;
  --sp-8: 64px;
  --sp-9: 96px;
  --sp-10: 128px;
  --ease-out: cubic-bezier(0.4, 0, 0.2, 1);
  --wrap: 1180px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-display);
  background: var(--d-bg-0);
  color: var(--d-ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--blue); color: var(--d-bg-0); }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--d-bg-0); }
::-webkit-scrollbar-thumb { background: var(--d-bg-3); }
::-webkit-scrollbar-thumb:hover { background: var(--blue-dark); }

img, video { max-width: 100%; display: block; }
a { color: inherit; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--sp-5); }

/* ============================================================
   Sekcje — przełącznik motywu
   ============================================================ */
.sec { padding: var(--sp-9) 0; }
.sec--dark {
  --bg: var(--d-bg-0);
  --bg-2: var(--d-bg-2);
  --ink: var(--d-ink);
  --muted: var(--d-muted);
  --line: var(--d-line);
  --accent: var(--blue);
  background: var(--bg);
  color: var(--ink);
}
.sec--light {
  --bg: var(--l-bg-1);
  --bg-2: #ffffff;
  --ink: var(--l-ink);
  --muted: var(--l-muted);
  --line: var(--l-line);
  --accent: var(--blue-deep);
  background: var(--bg);
  color: var(--ink);
}
.sec--light.sec--alt { --bg: var(--l-bg-0); background: var(--bg); }

/* ============================================================
   Typografia
   ============================================================ */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent, var(--blue));
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: var(--sp-4);
}
.eyebrow::before {
  content: '';
  width: 28px;
  height: 1px;
  background: currentColor;
}
h1, h2, h3 { line-height: 1.12; letter-spacing: -0.02em; font-weight: 800; }
h1 { font-size: clamp(34px, 5.4vw, 62px); }
h2 { font-size: clamp(28px, 3.6vw, 42px); }
h3 { font-size: clamp(20px, 2.2vw, 26px); }
.lead {
  font-size: clamp(16px, 1.6vw, 19px);
  color: var(--muted, var(--d-muted));
  max-width: 760px;
  margin-top: var(--sp-5);
}
.sec-head { margin-bottom: var(--sp-7); }

/* ============================================================
   Nawigacja
   ============================================================ */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: rgba(10, 10, 10, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--d-line);
}
.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
  font-size: 19px;
  letter-spacing: 0.02em;
}
.logo svg { display: block; }
.logo b { color: var(--blue); }
.nav-links { display: flex; align-items: center; gap: var(--sp-6); list-style: none; }
.nav-links a {
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--d-muted);
  transition: color 0.2s var(--ease-out);
}
.nav-links a:hover { color: var(--blue); }
.nav-cta {
  border: 1px solid var(--blue);
  color: var(--blue) !important;
  padding: 9px 16px;
  transition: background 0.2s var(--ease-out), color 0.2s var(--ease-out);
}
.nav-cta:hover { background: var(--blue); color: var(--d-bg-0) !important; }

.burger {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 10px;
}
.burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--d-ink);
  margin: 5px 0;
  transition: transform 0.3s var(--ease-out), opacity 0.3s var(--ease-out);
}
.burger[aria-expanded='true'] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded='true'] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded='true'] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   Przyciski
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 15px 26px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s var(--ease-out), background 0.2s var(--ease-out),
    color 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
}
.btn--primary { background: var(--blue); color: var(--d-bg-0); }
.btn--primary:hover {
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 rgba(0, 212, 255, 0.35);
}
.btn--ghost { border-color: var(--line, var(--d-line)); color: var(--ink, var(--d-ink)); }
.btn--ghost:hover { border-color: var(--accent, var(--blue)); color: var(--accent, var(--blue)); }
.sec--light .btn--primary { background: var(--blue-deep); color: #fff; }
.sec--light .btn--primary:hover { box-shadow: 4px 4px 0 rgba(8, 96, 121, 0.28); }
.btn .arr { transition: transform 0.2s var(--ease-out); }
.btn:hover .arr { transform: translateX(4px); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 140px 0 var(--sp-8);
}
.hero-media,
.hero-media video,
.hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(10, 10, 10, 0.94) 30%, rgba(10, 10, 10, 0.55) 70%, rgba(10, 10, 10, 0.35)),
    linear-gradient(0deg, var(--d-bg-0) 0%, transparent 30%);
}
#cv { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero .wrap { position: relative; z-index: 2; }
.hero-inner { max-width: 780px; }
.hero .cursor { animation: blink 1s steps(1) infinite; color: var(--blue); }
@keyframes blink { 50% { opacity: 0; } }
.hero-cta { display: flex; flex-wrap: wrap; gap: var(--sp-4); margin-top: var(--sp-6); }

/* hero podstrony */
.hero--sub { min-height: 68vh; padding-top: 130px; }
.crumbs {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--d-muted);
  margin-bottom: var(--sp-4);
}
.crumbs a { color: var(--blue); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

/* ============================================================
   Marquee — pasek dowodów
   ============================================================ */
.proof {
  position: relative;
  z-index: 2;
  background: var(--d-bg-1);
  border-top: 1px solid var(--d-line);
  border-bottom: 1px solid var(--d-line);
  overflow: hidden;
  padding: var(--sp-5) 0;
}
.marquee { display: flex; overflow: hidden; }
.marquee-track {
  display: flex;
  gap: var(--sp-6);
  padding-right: var(--sp-6);
  flex-shrink: 0;
  animation: slide 44s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes slide { to { transform: translateX(-100%); } }
.proof-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 300px;
  max-width: 340px;
  border-left: 2px solid var(--blue);
  padding-left: var(--sp-4);
}
.proof-item strong { font-size: 15px; letter-spacing: 0.01em; white-space: nowrap; }
.proof-item span { font-size: 13px; color: var(--d-muted); line-height: 1.45; }

/* ============================================================
   Karty oferty (home)
   ============================================================ */
.offer-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-5);
}
.offer-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--bg-2);
  border: 1px solid var(--line);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out),
    border-color 0.25s var(--ease-out);
}
.offer-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 18px 40px rgba(8, 20, 26, 0.14);
}
.offer-card::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease-out);
}
.offer-card:hover::after { transform: scaleX(1); }
.offer-media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--d-bg-2); }
.offer-media video,
.offer-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease-out);
}
.offer-card:hover .offer-media video,
.offer-card:hover .offer-media img { transform: scale(1.04); }
.offer-body { padding: var(--sp-5); display: flex; flex-direction: column; gap: 10px; flex: 1; }
.offer-body h3 { color: var(--ink); }
.offer-body p { font-size: 15px; color: var(--muted); }
.offer-link {
  margin-top: auto;
  padding-top: var(--sp-4);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ============================================================
   Karty uwiarygodnienia / dla kogo
   ============================================================ */
.cred-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-5);
}
.cred-card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  padding: var(--sp-6);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color 0.25s var(--ease-out), transform 0.25s var(--ease-out);
}
.cred-card:hover { border-color: var(--accent); transform: translateY(-3px); }
.cred-card .kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}
.cred-card p { font-size: 15px; color: var(--muted); }
.cred-card p strong { color: var(--ink); }

.who-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-4);
}
.who-card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  padding: var(--sp-5);
  transition: border-color 0.25s var(--ease-out);
}
.who-card:hover { border-color: var(--accent); }
.who-card h3 { font-size: 17px; margin-bottom: 8px; }
.who-card p { font-size: 14px; color: var(--muted); }

/* ============================================================
   Listy tematyczne (podstrony)
   ============================================================ */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-8);
  align-items: start;
}
.ticks { list-style: none; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 26px; font-size: 15px; color: var(--muted); }
.ticks li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 12px;
  height: 12px;
  border: 2px solid var(--accent);
}
.ticks--cols { grid-template-columns: repeat(2, 1fr); column-gap: var(--sp-6); }

.callout {
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  background: var(--bg-2);
  padding: var(--sp-6);
}
.callout .kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 10px;
}
.callout p { font-size: 16px; }

/* ============================================================
   CTA Skanera
   ============================================================ */
.scanner { position: relative; overflow: hidden; }
.scanner::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(0, 212, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 212, 255, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 90% 90% at 50% 40%, #000 30%, transparent 75%);
}
.scanner .wrap { position: relative; }
.scanner-inner { max-width: 820px; }

/* ============================================================
   Stopka
   ============================================================ */
.footer {
  background: var(--d-bg-0);
  border-top: 1px solid var(--d-line);
  padding: var(--sp-8) 0 var(--sp-6);
  color: var(--d-muted);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: var(--sp-6);
  margin-bottom: var(--sp-7);
}
.footer h4 {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--d-ink);
  margin-bottom: var(--sp-4);
}
.footer ul { list-style: none; display: grid; gap: 8px; }
.footer a { color: var(--d-muted); text-decoration: none; font-size: 14px; transition: color 0.2s; }
.footer a:hover { color: var(--blue); }
.footer .about { font-size: 14px; max-width: 320px; margin-top: var(--sp-4); }
.footer-base {
  border-top: 1px solid var(--d-line);
  padding-top: var(--sp-5);
  display: flex;
  justify-content: space-between;
  gap: var(--sp-4);
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
}

/* ============================================================
   Animacje wejścia
   ============================================================ */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal[data-delay='1'] { transition-delay: 0.08s; }
.js .reveal[data-delay='2'] { transition-delay: 0.16s; }
.js .reveal[data-delay='3'] { transition-delay: 0.24s; }

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ============================================================
   Responsywność
   ============================================================ */
@media (max-width: 960px) {
  .offer-grid, .cred-grid, .split { grid-template-columns: 1fr; }
  .who-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .split { gap: var(--sp-6); }
}
@media (max-width: 720px) {
  .sec { padding: var(--sp-8) 0; }
  .who-grid { grid-template-columns: 1fr; }
  .ticks--cols { grid-template-columns: 1fr; }
  .hero { min-height: 78vh; padding-top: 110px; }
  .nav-links {
    position: fixed;
    inset: 68px 0 auto 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: rgba(10, 10, 10, 0.97);
    border-bottom: 1px solid var(--d-line);
    padding: var(--sp-4) var(--sp-5) var(--sp-5);
    transform: translateY(-130%);
    transition: transform 0.3s var(--ease-out);
  }
  .nav-links.open { transform: none; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 12px 0; }
  .nav-cta { border: 0; padding-left: 0 !important; }
  .burger { display: block; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   Dostępność — reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track { animation: none; }
  .marquee { flex-wrap: wrap; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero .cursor { animation: none; }
  .btn, .offer-card, .offer-media video, .offer-media img, .cred-card { transition: none; }
  #cv { display: none; }
}
