:root {
  color-scheme: dark;
  --bg: #06102b;
  --bg-soft: #0c1b45;
  --card: rgba(255, 255, 255, 0.07);
  --card-strong: rgba(255, 255, 255, 0.11);
  --line: rgba(173, 205, 255, 0.18);
  --text: #eef5ff;
  --muted: #b1bfd8;
  --accent: #2291e3;
  --accent-2: #a0d2f2;
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.45);
  --radius: 28px;
  --max: 1360px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.site-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 20% 10%, rgba(34, 145, 227, 0.22), transparent 28%),
    radial-gradient(circle at 80% 0%, rgba(160, 210, 242, 0.22), transparent 26%),
    linear-gradient(180deg, #06102b 0%, #08163a 48%, #040b1d 100%);
}
.grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(160,210,242,0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(160,210,242,0.055) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, black, transparent 75%);
}
.glow {
  position: absolute;
  width: 420px;
  height: 420px;
  filter: blur(70px);
  opacity: .28;
  border-radius: 50%;
}
.glow-one { left: -120px; top: 160px; background: var(--accent); }
.glow-two { right: -160px; top: 360px; background: var(--accent-2); }

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  width: min(var(--max), calc(100% - 48px));
  margin: 16px auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(7, 11, 22, 0.76);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 50px rgba(0,0,0,.22);
}
.brand, .nav { display: flex; align-items: center; gap: 10px; }
.brand { font-weight: 800; letter-spacing: -0.03em; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: transparent;
  border: none;
  overflow: visible;
}
.brand-logo { width: 100%; height: 100%; object-fit: contain; display: block; filter: drop-shadow(0 4px 10px rgba(34,145,227,.18)); }
.header-brand-group {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.partner-badge {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  padding: 4px;
  border-radius: 18px;
  background: rgba(255,255,255,.06);
  border: 1px solid var(--line);
  box-shadow: 0 12px 30px rgba(0,0,0,.18);
}
.partner-badge img {
  display: block;
  height: 42px;
  width: auto;
  max-width: 230px;
  border-radius: 14px;
}
.nav a {
  padding: 10px 12px;
  color: var(--muted);
  font-size: 14px;
  transition: color .2s ease, background .2s ease;
  border-radius: 999px;
}
.nav a:hover { color: var(--text); background: rgba(255,255,255,.08); }
.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--text);
}
.nav-toggle span { display: block; width: 18px; height: 2px; margin: 4px auto; background: currentColor; }

.section { width: min(var(--max), calc(100% - 48px)); margin: 0 auto; }
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(430px, .9fr);
  gap: 48px;
  align-items: center;
  padding: 110px 0 70px;
}
.eyebrow {
  margin: 0 0 16px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: 12px;
  font-weight: 800;
}
h1,h2,h3,p { margin-top: 0; }
h1 {
  margin-bottom: 22px;
  font-size: clamp(46px, 8vw, 92px);
  line-height: .92;
  letter-spacing: -0.085em;
  max-width: 880px;
}
h1 mark, h2 mark { background: none; color: var(--accent-2); }
h2 {
  margin-bottom: 18px;
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1;
  letter-spacing: -0.06em;
}
h3 { margin-bottom: 10px; letter-spacing: -0.025em; }
.hero-lead, .section-heading p, .contact p, .strip p, .section-heading ul, .step p, .card p, .app-pane p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.75;
}
.hero-lead { max-width: 720px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 34px 0; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { color: #03120f; background: linear-gradient(135deg, var(--accent), var(--accent-2)); }
.btn-secondary { border: 1px solid var(--line); background: rgba(255,255,255,.06); }
.hero-proof {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  max-width: 720px;
}
.hero-proof div {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255,255,255,.045);
}
.hero-proof strong, .hero-proof span { display: block; }
.hero-proof strong { font-size: 18px; }
.hero-proof span { margin-top: 4px; color: var(--muted); font-size: 13px; }

.hero-panel {
  position: relative;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,.11), rgba(255,255,255,.045));
  box-shadow: var(--shadow);
  overflow: visible;
}
.hero-panel::before {
  content: "";
  position: absolute;
  inset: -1px;
  background: radial-gradient(circle at top right, rgba(34,145,227,.22), transparent 35%);
  pointer-events: none;
}
.panel-top, .workflow-card { position: relative; }
.panel-top { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 14px; margin-bottom: 16px; }
.status-dot { width: 10px; height: 10px; background: var(--accent); border-radius: 50%; box-shadow: 0 0 24px var(--accent); }
.workflow-card {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 16px;
  padding: 20px;
  margin-bottom: 14px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(5, 9, 18, .58);
}
.workflow-card.active { background: linear-gradient(135deg, rgba(34,145,227,.18), rgba(160,210,242,.12)); }
.workflow-card span {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 15px; background: rgba(255,255,255,.08); color: var(--accent); font-weight: 800;
}
.workflow-card p { margin: 0; color: var(--muted); line-height: 1.55; }

.strip {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(34,145,227,.12), rgba(160,210,242,.10));
}
.strip strong { color: var(--text); }
.strip p { margin: 0; max-width: 980px; }

.split, .process-layout, .media-split, .apps-layout, .packages-layout, .partner-layout, .contact-layout { padding: 94px 0 0; }
.section-heading { max-width: 760px; margin-bottom: 34px; }
.section-heading.narrow { max-width: 620px; }
.cards { display: grid; gap: 16px; }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.card, .step, .contact-card, .app-content, .partner-card, .media-card {
  border: 1px solid var(--line);
  background: var(--card);
  backdrop-filter: blur(16px);
  border-radius: var(--radius);
}
.card { padding: 24px; min-height: 280px; }
.featured-card { background: linear-gradient(180deg, rgba(34,145,227,.12), rgba(255,255,255,.05)); }
.icon {
  display: inline-grid;
  place-items: center;
  min-width: 48px;
  height: 48px;
  padding: 0 12px;
  margin-bottom: 24px;
  border-radius: 16px;
  color: #03120f;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  font-weight: 900;
}

.media-split {
  display: grid;
  grid-template-columns: minmax(370px, .74fr) minmax(760px, 1.26fr);
  gap: 56px;
  align-items: center;
}
.media-split.reverse {
  grid-template-columns: minmax(760px, 1.26fr) minmax(370px, .74fr);
  gap: 64px;
}
.media-card { padding: 16px; box-shadow: var(--shadow); width: 100%; }
.media-card img { width: 100%; border-radius: 20px; }
.visual-team-large { max-width: 820px; justify-self: end; }
.visual-ecosystem-large { max-width: 840px; justify-self: start; }
.visual-process-large { max-width: 820px; justify-self: end; }
.contact-visual-large { max-width: 840px; justify-self: end; }
.visual-team-large,
.visual-process-large,
.visual-ecosystem-large,
.contact-visual-large { padding: 14px; }
.visual-team-large img,
.visual-process-large img,
.visual-ecosystem-large img,
.contact-visual-large img {
  min-height: auto;
  object-fit: contain;
  object-position: center;
}
.media-split.reverse .section-heading { padding-left: 10px; }
.bullet-list { margin: 24px 0 0; padding-left: 20px; }
.bullet-list li { color: var(--muted); margin-bottom: 10px; line-height: 1.7; }

.process-grid {
  display: grid;
  grid-template-columns: minmax(420px, .84fr) minmax(720px, 1.16fr);
  gap: 56px;
  align-items: center;
}
.timeline { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.step { padding: 26px; min-height: 244px; }
.step span { display: inline-block; margin-bottom: 28px; color: var(--accent); font-weight: 900; }
.media-tall img { min-height: auto; object-fit: contain; }
.strong-line { font-weight: 800; color: var(--accent-2) !important; }

.app-tabs { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.app-tabs button {
  border: 1px solid var(--line);
  background: rgba(255,255,255,.06);
  border-radius: 999px;
  padding: 12px 16px;
  color: var(--text);
  font-weight: 800;
  cursor: pointer;
}
.app-tabs button.active { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #03120f; }
.app-content { padding: 20px; }
.app-pane { display: none; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.app-pane.active { display: grid; }
.app-pane article {
  background: rgba(255,255,255,.05);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 20px;
}
.app-pane p { font-size: 15px; line-height: 1.65; }

.partner-card {
  padding: 34px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: center;
  background: linear-gradient(135deg, rgba(34,145,227,.16), rgba(5,9,18,.42));
}
.partner-card p { color: var(--muted); line-height: 1.7; }
.partner-code {
  padding: 24px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 24px;
  background: rgba(255,255,255,.08);
  text-align: center;
}
.partner-code span { display: block; color: var(--muted); margin-bottom: 8px; }
.partner-code strong { font-size: 30px; }

.contact {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 56px;
  align-items: center;
  margin-top: 40px;
  padding: 46px;
  border-radius: calc(var(--radius) + 8px);
  border: 1px solid rgba(34,145,227,.28);
  background: radial-gradient(circle at top right, rgba(34,145,227,.16), transparent 30%), var(--card-strong);
}
.contact > div:first-child { max-width: 600px; padding-right: 8px; }
.contact-card {
  display: grid;
  gap: 16px;
  padding: 20px;
  margin-top: 28px;
}
.contact-card a {
  padding: 16px;
  border-radius: 18px;
  background: rgba(255,255,255,.07);
  color: var(--text);
  font-weight: 800;
  transition: background .2s ease;
  overflow-wrap: anywhere;
}
.contact-card a:hover { background: rgba(34,145,227,.18); }
.contact-visual { width: 100%; margin-left: 4px; }

.footer {
  width: min(var(--max), calc(100% - 48px));
  margin: 36px auto 0;
  padding: 28px 0 44px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
}
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .65s ease, transform .65s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (max-width: 1180px) {
  .section,
  .header,
  .footer { width: min(var(--max), calc(100% - 32px)); }
  .hero, .media-split, .media-split.reverse, .process-grid, .contact { grid-template-columns: 1fr; }
  .visual-team-large, .visual-process-large, .visual-ecosystem-large, .contact-visual-large {
    max-width: 100%;
    justify-self: stretch;
  }
}

@media (max-width: 980px) {
  .hero, .media-split, .media-split.reverse, .process-grid, .contact { grid-template-columns: 1fr; }
  .cards-3, .timeline, .app-pane, .hero-proof { grid-template-columns: repeat(2, 1fr); }
  .hero { padding-top: 76px; }
}

@media (max-width: 720px) {
  .header { border-radius: 26px; align-items: flex-start; gap: 12px; }
  .header-brand-group {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .partner-badge img {
    height: 34px;
    max-width: 180px;
  }
  .nav {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(7, 11, 22, .96);
  }
  .nav.open { display: flex; }
  .nav-toggle { display: block; }
  .hero-proof, .cards-3, .timeline, .app-pane { grid-template-columns: 1fr; }
  .hero-panel { min-width: 0; }
  h1 { font-size: clamp(42px, 15vw, 68px); }
  .contact { padding: 28px; gap: 28px; }
  .footer { flex-direction: column; }
  .brand > span:last-child { max-width: 150px; }
}


@media (max-width: 980px) {
  .partner-badge img {
    height: 38px;
    max-width: 200px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}


/* v7 — poprawka responsywności górnej belki na mobile */
@media (max-width: 720px) {
  .header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 56px;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border-radius: 28px;
  }

  .header-brand-group {
    min-width: 0;
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
  }

  .brand {
    min-width: 0;
    flex: 0 1 auto;
    gap: 8px;
  }

  .brand-mark {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
  }

  .brand > span:last-child {
    display: block;
    max-width: 112px;
    font-size: 18px;
    line-height: 1.05;
    letter-spacing: -0.04em;
  }

  .partner-badge {
    flex: 0 1 auto;
    padding: 3px;
    border-radius: 14px;
  }

  .partner-badge img {
    height: 30px;
    max-width: 118px;
    width: auto;
    border-radius: 10px;
    object-fit: contain;
  }

  .nav-toggle {
    display: grid;
    place-items: center;
    justify-self: end;
    width: 54px;
    height: 54px;
    flex: 0 0 54px;
  }

  .nav-toggle span {
    margin: 3px auto;
  }

  .nav {
    top: calc(100% + 10px);
  }
}

@media (max-width: 380px) {
  .brand > span:last-child {
    max-width: 98px;
    font-size: 16px;
  }

  .partner-badge img {
    height: 28px;
    max-width: 104px;
  }

  .nav-toggle {
    width: 50px;
    height: 50px;
  }
}
