:root {
  --bg: #0d1117;
  --bg-soft: #151b24;
  --bg-card: #1d2633;
  --text: #ffffff;
  --muted: #b8c0cc;
  --light: #f4f6f8;
  --dark-text: #111827;
  --blue: #27b7ff;
  --blue-dark: #0077b6;
  --border: rgba(255, 255, 255, 0.10);
  --border-strong: rgba(255, 255, 255, 0.18);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Poppins", sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

/* HEADER */

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
  padding: 18px 8%;
  background: rgba(13, 17, 23, 0.90);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo-img {
  width: 154px;
  height: auto;
}

.nav {
  display: flex;
  flex: 1 1 auto;
  justify-content: center;
  align-items: center;
  flex-wrap: nowrap;
  gap: 24px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.nav a {
  white-space: nowrap;
}

.brand,
.header-actions {
  flex: 0 0 auto;
}

.nav a {
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav a:hover {
  color: var(--text);
}

/* BUTTONS */

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 46px;
  padding: 13px 24px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
  font-size: 15px;
  line-height: 1;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}

.button:hover {
  transform: translateY(-2px);
}

.button-light {
  background: #ffffff;
  color: #090d13;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.28);
}

.button-primary {
  background: linear-gradient(135deg, var(--blue), #78dcff);
  color: #061018;
  box-shadow: 0 16px 38px rgba(39, 183, 255, 0.28);
}

/* HERO */

.hero {
  position: relative;
  overflow: hidden;
  min-height: 760px;
  background:
    linear-gradient(90deg, rgba(13, 17, 23, 0.98) 0%, rgba(13, 17, 23, 0.86) 44%, rgba(13, 17, 23, 0.35) 100%),
    url("assets/hero-bg.jpg") center/cover no-repeat;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -10% -35% -10%;
  height: 280px;
  background: radial-gradient(circle, rgba(39, 183, 255, 0.18), transparent 62%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: stretch;
  gap: 50px;
  min-height: 760px;
  padding: 70px 8% 0;
}

.hero-content {
  max-width: 760px;
  align-self: center;
  padding-bottom: 70px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.055em;
}

.hero-text {
  max-width: 650px;
  margin: 26px 0 0;
  color: #e4e8ee;
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 34px;
}

.small-note {
  color: var(--muted);
  font-size: 14px;
}

.hero-person {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  height: 100%;
}

.hero-person img {
  position: relative;
  z-index: 2;
  width: min(500px, 100%);
  max-height: 650px;
  object-fit: contain;
  object-position: bottom center;
  filter: drop-shadow(0 28px 38px rgba(0, 0, 0, 0.48));
}

.person-glow {
  position: absolute;
  width: 390px;
  height: 390px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(39, 183, 255, 0.22), transparent 70%);
  right: 8%;
  bottom: 8%;
  z-index: 1;
}

/* SECTIONS */

.section {
  padding: 96px 8%;
}

.section-dark {
  background:
    radial-gradient(circle at 20% 20%, rgba(39, 183, 255, 0.07), transparent 32%),
    var(--bg-soft);
}

.section-light {
  background: var(--light);
  color: var(--dark-text);
}

.section-heading {
  max-width: 890px;
  margin-bottom: 42px;
}

.section-heading h2,
.split h2,
.about-card h2,
.cta-box h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.12;
  letter-spacing: -0.045em;
}

.section-heading p:not(.eyebrow) {
  max-width: 760px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.dark-text .eyebrow {
  color: var(--blue-dark);
}

/* CARDS */

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.card {
  min-height: 240px;
  padding: 30px;
  border-radius: 26px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)),
    var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
}

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-bottom: 26px;
  border-radius: 14px;
  background: rgba(39, 183, 255, 0.12);
  color: var(--blue);
  font-weight: 800;
}

.card h3 {
  margin: 0 0 12px;
  font-size: 23px;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

/* BLUEPRINT / FLOW */

.section-blueprint {
  background:
    linear-gradient(rgba(13, 17, 23, 0.92), rgba(13, 17, 23, 0.95)),
    repeating-linear-gradient(
      90deg,
      rgba(255,255,255,0.05) 0,
      rgba(255,255,255,0.05) 1px,
      transparent 1px,
      transparent 80px
    ),
    repeating-linear-gradient(
      0deg,
      rgba(255,255,255,0.05) 0,
      rgba(255,255,255,0.05) 1px,
      transparent 1px,
      transparent 80px
    );
}

.flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  align-items: stretch;
  gap: 16px;
}

.flow-item {
  padding: 26px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid var(--border);
}

.flow-item span {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--blue);
  font-weight: 800;
}

.flow-item h3 {
  margin: 0 0 10px;
  font-size: 21px;
  line-height: 1.2;
}

.flow-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.flow-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  font-size: 28px;
  font-weight: 800;
}

/* USE CASES */

.section-usecases {
  background:
    radial-gradient(circle at 12% 18%, rgba(39, 183, 255, 0.13), transparent 30%),
    linear-gradient(180deg, #0d1117, #101722);
}

.usecase-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.usecase-card {
  min-height: 280px;
  padding: 26px;
  border-radius: 26px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.07), rgba(255,255,255,0.025)),
    var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
}

.usecase-label {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  margin-bottom: 18px;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--blue);
  background: rgba(39, 183, 255, 0.11);
  border: 1px solid rgba(39, 183, 255, 0.22);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.usecase-card h3 {
  margin: 0 0 12px;
  font-size: 22px;
  line-height: 1.22;
  letter-spacing: -0.035em;
}

.usecase-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.62;
}

/* EXAMPLE */

.section-example {
  background:
    radial-gradient(circle at 85% 15%, rgba(39, 183, 255, 0.15), transparent 28%),
    linear-gradient(180deg, #101722, #0d1117);
}

.example-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 48px;
  align-items: center;
}

.example-heading {
  margin-bottom: 0;
}

.automation-board {
  position: relative;
  padding: 26px;
  border-radius: 34px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.07), rgba(255,255,255,0.03));
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow);
}

.auto-node {
  position: relative;
  padding: 24px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid var(--border);
}

.auto-node + .auto-line + .auto-node {
  margin-top: 0;
}

.auto-node span {
  display: inline-flex;
  margin-bottom: 10px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.10em;
  text-transform: uppercase;
}

.auto-node strong {
  display: block;
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: -0.035em;
}

.auto-node p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.auto-node.system {
  background:
    linear-gradient(135deg, rgba(39, 183, 255, 0.18), rgba(255,255,255,0.055));
  border-color: rgba(39, 183, 255, 0.28);
}

.auto-line {
  position: relative;
  width: 2px;
  height: 44px;
  margin: 14px auto;
  background: linear-gradient(to bottom, rgba(39, 183, 255, 0.18), var(--blue));
}

.auto-line::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -7px;
  width: 0;
  height: 0;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-top: 10px solid var(--blue);
  transform: translateX(-50%);
}


/* AGENT AI */

.section-agent {
  background:
    radial-gradient(circle at 18% 18%, rgba(39, 183, 255, 0.15), transparent 30%),
    radial-gradient(circle at 88% 76%, rgba(39, 183, 255, 0.10), transparent 28%),
    linear-gradient(180deg, #101722, #0d1117);
}

.agent-layout {
  display: grid;
  grid-template-columns: 0.86fr 1.14fr;
  gap: 46px;
  align-items: center;
}

.agent-copy h2 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(34px, 4.6vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.055em;
}

.agent-copy > p {
  max-width: 700px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.agent-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.agent-points span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--blue);
  background: rgba(39, 183, 255, 0.11);
  border: 1px solid rgba(39, 183, 255, 0.24);
  font-size: 13px;
  font-weight: 800;
}

.agent-note {
  display: grid;
  gap: 8px;
  margin-top: 24px;
  padding: 22px 24px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid var(--border);
}

.agent-note strong {
  color: #ffffff;
  font-size: 17px;
}

.agent-note span {
  color: #d8e6f2;
  line-height: 1.55;
}

.agent-chat-card {
  overflow: hidden;
  min-height: 680px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow);
}

.agent-chat-topbar {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 0 22px;
  color: #ffffff;
  background: rgba(9, 13, 19, 0.88);
  border-bottom: 1px solid var(--border);
}

.agent-status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 18px rgba(39, 183, 255, 0.9);
}

.agent-chat-card iframe {
  display: block;
  width: 100%;
  height: 622px;
  border: 0;
  background: #ffffff;
}

.cta-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
}

/* STEPS */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.step {
  padding: 30px;
  border-radius: 26px;
  background: #ffffff;
  border: 1px solid rgba(17, 24, 39, 0.08);
  box-shadow: 0 24px 60px rgba(17, 24, 39, 0.08);
}

.step span {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--blue-dark);
  font-weight: 800;
  font-size: 14px;
}

.step h3 {
  margin: 0 0 12px;
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: -0.03em;
}

.step p {
  margin: 0;
  color: #4b5563;
  line-height: 1.6;
}

/* BENEFITS */

.split {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 50px;
  align-items: start;
}

.benefits {
  display: grid;
  gap: 16px;
}

.benefit {
  padding: 24px 26px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid var(--border);
}

.benefit strong {
  display: block;
  margin-bottom: 8px;
  font-size: 20px;
}

.benefit p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

/* ABOUT */

.section-about {
  background: var(--light);
  color: var(--dark-text);
}

.about-card {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 60px;
  align-items: start;
  padding: 54px;
  border-radius: 34px;
  background: #ffffff;
  box-shadow: 0 24px 70px rgba(17, 24, 39, 0.08);
}

.about-text p {
  margin: 0;
  color: #374151;
  font-size: 18px;
  line-height: 1.8;
}

.signature-line {
  margin-top: 30px;
  padding: 22px 24px;
  border-radius: 20px;
  background: #0d1117;
  color: #ffffff;
  font-weight: 800;
  font-size: clamp(20px, 3vw, 30px);
  letter-spacing: -0.03em;
}

.signature-line span {
  color: var(--blue);
}

/* CTA */

.cta-section {
  padding: 96px 8%;
  background:
    radial-gradient(circle at 70% 20%, rgba(39, 183, 255, 0.16), transparent 30%),
    var(--bg);
}

.cta-box {
  max-width: 960px;
  margin: auto;
  padding: 58px;
  border-radius: 34px;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03));
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.cta-box p {
  max-width: 680px;
  margin: 18px auto 30px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

/* FOOTER */

.footer {
  padding: 42px 8%;
  text-align: center;
  background: #090d13;
  border-top: 1px solid var(--border);
  color: var(--muted);
}

.footer p {
  margin: 6px 0;
}

.footer strong {
  color: var(--text);
}

/* TABLET */

@media (max-width: 1100px) {
  .nav {
    display: none;
  }

  .hero {
    min-height: auto;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 22px;
    min-height: auto;
    padding-top: 70px;
    padding-bottom: 0;
    text-align: left;
  }

  .hero-content {
    padding-bottom: 10px;
  }

  .hero-person {
    min-height: auto;
    height: auto;
  }

  .hero-person img {
    width: min(430px, 88%);
    max-height: 520px;
    margin: 0 auto;
  }

  .cards,
  .steps {
    grid-template-columns: 1fr;
  }

  .usecase-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .flow {
    grid-template-columns: 1fr;
  }

  .flow-arrow {
    transform: rotate(90deg);
    padding: 4px 0;
  }

  .example-layout,
  .split,
  .about-card,
  .agent-layout {
    grid-template-columns: 1fr;
  }

  .agent-chat-card {
    min-height: 640px;
  }

  .agent-chat-card iframe {
    height: 582px;
  }
}

/* MOBILE */

@media (max-width: 700px) {
  .header {
    padding: 12px 5%;
  }

  .logo-img {
    width: 120px;
  }

  .header .button {
    display: none;
  }

  .hero-inner,
  .section,
  .cta-section {
    padding-left: 5%;
    padding-right: 5%;
  }

  .hero-inner {
    padding-top: 48px;
  }

  .hero h1 {
    font-size: clamp(36px, 10.6vw, 48px);
    line-height: 1.04;
  }

  .hero-text {
    font-size: 17px;
    line-height: 1.6;
  }

  .hero-actions {
    margin-top: 28px;
  }

  .button {
    width: 100%;
    min-height: 52px;
    padding-left: 18px;
    padding-right: 18px;
    text-align: center;
    white-space: normal;
  }

  .small-note {
    width: 100%;
    text-align: center;
  }

  .hero-person img {
    width: 86%;
    max-height: 470px;
  }

  .person-glow {
    width: 260px;
    height: 260px;
    right: 15%;
  }

  .section {
    padding-top: 72px;
    padding-bottom: 72px;
  }

  .eyebrow {
    font-size: 12px;
    line-height: 1.7;
  }

  .section-heading {
    margin-bottom: 30px;
  }

  .section-heading h2,
  .split h2,
  .about-card h2,
  .cta-box h2 {
    font-size: clamp(30px, 9vw, 42px);
  }

  .section-heading p:not(.eyebrow) {
    font-size: 16px;
  }

  .card,
  .step,
  .flow-item,
  .auto-node,
  .usecase-card {
    padding: 24px;
    border-radius: 22px;
  }

  .agent-chat-card {
    min-height: 620px;
    border-radius: 24px;
  }

  .agent-chat-card iframe {
    height: 562px;
  }

  .agent-chat-topbar {
    padding: 0 16px;
  }

  .usecase-grid {
    grid-template-columns: 1fr;
  }

  .card {
    min-height: auto;
  }

  .card h3,
  .flow-item h3,
  .auto-node strong,
  .step h3 {
    font-size: 22px;
  }

  .flow-arrow {
    font-size: 24px;
  }

  .automation-board {
    padding: 18px;
    border-radius: 26px;
  }

  .auto-line {
    height: 38px;
    margin: 12px auto;
  }

  .about-card,
  .cta-box {
    padding: 30px 22px;
    border-radius: 26px;
  }

  .about-text p,
  .cta-box p {
    font-size: 16px;
  }

  .signature-line {
    font-size: 20px;
  }
}

/* === DOPIESZCZENIE UX / MOBILE / KONTAKT === */

section[id] {
  scroll-margin-top: 92px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.contact-phone {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 9px;
  min-height: 46px;
  padding: 12px 18px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(39, 183, 255, 0.13);
  border: 1px solid rgba(39, 183, 255, 0.34);
  text-decoration: none;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.contact-phone:hover {
  transform: translateY(-2px);
  background: rgba(39, 183, 255, 0.20);
  border-color: rgba(39, 183, 255, 0.52);
}

.contact-icon {
  color: #ffffff;
  font-size: 16px;
  line-height: 1;
}

.flow-arrow {
  align-self: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: rgba(39, 183, 255, 0.10);
  border: 1px solid rgba(39, 183, 255, 0.22);
}

.signature-line {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 11px;
  text-align: center;
  white-space: nowrap;
}

.signature-line span {
  color: inherit;
}

.signature-line .signature-arrow {
  color: var(--blue);
}

.scroll-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 80;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  color: #ffffff;
  background: linear-gradient(135deg, var(--blue), #0f8ed1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.34), 0 0 24px rgba(39, 183, 255, 0.24);
  text-decoration: none;
  font-size: 34px;
  font-weight: 800;
  line-height: 1;
}

.scroll-top:hover {
  transform: translateY(-2px);
}

.mobile-contact-bar {
  display: none;
}

.footer {
  padding-bottom: 52px;
}

@media (max-width: 1100px) {
  .header-actions {
    margin-left: auto;
  }

  .flow-arrow {
    margin: 0 auto;
    transform: none;
  }
}

@media (max-width: 700px) {
  body {
    padding-bottom: 86px;
  }

  .header {
    position: sticky;
    min-height: 66px;
    justify-content: center;
    padding: 10px 5%;
  }

  .brand {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }

  .logo-img {
    width: 138px;
  }

  .header-actions {
    position: absolute;
    left: 5%;
    margin-left: 0;
  }

  .header-actions .button {
    display: none;
  }

  .contact-phone {
    width: 44px;
    height: 44px;
    min-height: 44px;
    padding: 0;
    border-radius: 50%;
  }

  .contact-phone .contact-text {
    display: none;
  }

  .contact-icon {
    font-size: 18px;
  }

  .flow-arrow {
    width: 38px;
    height: 38px;
    transform: rotate(90deg);
  }

  .signature-line {
    gap: 7px;
    padding: 18px 14px;
    font-size: clamp(16px, 4.55vw, 20px);
    letter-spacing: -0.04em;
  }

  .mobile-contact-bar {
    position: fixed;
    left: 16px;
    bottom: 18px;
    z-index: 81;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 52px;
    padding: 0 18px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(13, 17, 23, 0.94);
    border: 1px solid rgba(39, 183, 255, 0.40);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.34), 0 0 20px rgba(39, 183, 255, 0.16);
    text-decoration: none;
    backdrop-filter: blur(14px);
  }

  .mobile-contact-bar span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--blue);
    color: #061018;
    font-size: 16px;
  }

  .mobile-contact-bar strong {
    font-size: 14px;
    line-height: 1;
  }

  .scroll-top {
    right: 16px;
    bottom: 18px;
    width: 52px;
    height: 52px;
    font-size: 32px;
  }
}

@media (max-width: 380px) {
  .logo-img {
    width: 126px;
  }

  .signature-line {
    gap: 5px;
    font-size: 15px;
  }

  .mobile-contact-bar {
    padding: 0 14px;
  }

  .mobile-contact-bar strong {
    font-size: 13px;
  }
}
/* Nowoczesna ikonka telefonu / komórki */
.phone-svg {
  display: block;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Ikona w górnym przycisku Zadzwoń */
.contact-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: currentColor;
  line-height: 1;
}

/* Ikona w przycisku Szybki kontakt na telefonie */
.mobile-contact-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.16);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #38bdf8;
  flex: 0 0 auto;
  line-height: 1;
}

/* Zabezpieczenie, żeby stara ikonka/emoji nie rozwalała wyglądu */
.contact-phone .contact-icon,
.mobile-contact-bar .mobile-contact-icon {
  font-size: 0;
}

/* === Floating controls: pokazuj dopiero po minięciu zdjęcia w hero === */
.scroll-top,
.mobile-contact-bar {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(14px) scale(0.96);
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
}

body.show-floating-actions .scroll-top,
body.show-floating-actions .mobile-contact-bar {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

@media (prefers-reduced-motion: reduce) {
  .scroll-top,
  .mobile-contact-bar {
    transition: none;
  }
}


/* === PORTFOLIO / LINKEDIN === */

.social-link {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  text-decoration: none;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.social-link:hover {
  transform: translateY(-2px);
  background: rgba(39, 183, 255, 0.16);
  border-color: rgba(39, 183, 255, 0.42);
}

.section-portfolio {
  background:
    radial-gradient(circle at 12% 20%, rgba(39, 183, 255, 0.16), transparent 28%),
    radial-gradient(circle at 90% 80%, rgba(39, 183, 255, 0.10), transparent 30%),
    linear-gradient(180deg, #0d1117, #111827);
}

.case-study {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 44px;
  align-items: start;
}

/* kolumna z tekstem trzyma sie gory i jedzie ze scrollem
   przy wysokich galeriach zdjec */
@media (min-width: 1101px) {
  .case-copy {
    position: sticky;
    top: 108px;
  }
}

.case-copy h2 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(34px, 4.6vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.055em;
}

.case-copy > p {
  max-width: 700px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.case-result-box {
  display: grid;
  gap: 8px;
  margin-top: 24px;
  padding: 22px 24px;
  border-radius: 24px;
  background: rgba(39, 183, 255, 0.11);
  border: 1px solid rgba(39, 183, 255, 0.26);
}

.case-result-box strong {
  color: #ffffff;
  font-size: 17px;
}

.case-result-box span {
  color: #d8e6f2;
  line-height: 1.55;
}

.case-steps {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 22px;
}

.case-steps div {
  padding: 20px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid var(--border);
}

.case-steps span {
  display: inline-flex;
  margin-bottom: 10px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.10em;
}

.case-steps strong {
  display: block;
  margin-bottom: 8px;
  font-size: 18px;
  line-height: 1.2;
}

.case-steps p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.case-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.button-ghost {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.case-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.case-shot {
  position: relative;
  overflow: hidden;
  min-height: 230px;
  margin: 0;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-strong);
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.24);
}

.case-shot-large {
  grid-row: span 2;
  min-height: 480px;
}

.case-shot-wide {
  grid-column: span 2;
  min-height: 230px;
}

.case-shot img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  object-position: top center;
  transform: scale(1.01);
}

.case-shot figcaption {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  padding: 10px 12px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(9, 13, 19, 0.84);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
}

.about-actions {
  margin-top: 20px;
}

.inline-link,
.footer-links a {
  color: var(--blue);
  font-weight: 800;
  text-decoration: none;
}

.inline-link:hover,
.footer-links a:hover {
  text-decoration: underline;
}

.footer-links {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

@media (max-width: 1100px) {
  .case-study {
    grid-template-columns: 1fr;
  }

  .case-gallery {
    max-width: 900px;
  }
}

@media (max-width: 700px) {
  .social-link {
    display: none;
  }

  .case-steps,
  .case-gallery {
    grid-template-columns: 1fr;
  }

  .case-shot,
  .case-shot-large,
  .case-shot-wide {
    grid-column: auto;
    grid-row: auto;
    min-height: 260px;
  }

  .case-shot-large {
    min-height: 360px;
  }

  .case-actions .button {
    width: 100%;
  }
}

/* === MOBILE SECTION NAV === */

.mobile-section-nav {
  display: none;
}

@media (max-width: 1100px) {
  .mobile-section-nav {
    position: sticky;
    top: 78px;
    z-index: 49;
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 10px 5%;
    background: rgba(13, 17, 23, 0.94);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(16px);
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .mobile-section-nav::-webkit-scrollbar {
    display: none;
  }

  .mobile-section-nav a {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 8px 13px;
    border-radius: 999px;
    color: #d8e6f2;
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid rgba(255, 255, 255, 0.12);
    text-decoration: none;
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
  }

  .mobile-section-nav a:active,
  .mobile-section-nav a:hover {
    color: #061018;
    background: var(--blue);
    border-color: rgba(39, 183, 255, 0.80);
  }

  section[id] {
    scroll-margin-top: 138px;
  }
}

@media (max-width: 700px) {
  .mobile-section-nav {
    top: 66px;
    padding-top: 9px;
    padding-bottom: 9px;
  }

  .mobile-section-nav a {
    min-height: 34px;
    padding: 8px 12px;
    font-size: 12px;
  }

  section[id] {
    scroll-margin-top: 126px;
  }
}

/* === PROJECT 2 / AGENT SYSTEM CASE === */

.section-portfolio-agent {
  background:
    radial-gradient(circle at 82% 16%, rgba(39, 183, 255, 0.17), transparent 30%),
    radial-gradient(circle at 10% 86%, rgba(39, 183, 255, 0.10), transparent 28%),
    linear-gradient(180deg, #111827, #0d1117);
  border-top: 1px solid var(--border);
}

.case-study-agent {
  align-items: stretch;
}

.agent-system-card {
  display: grid;
  align-content: start;
  gap: 22px;
  padding: 28px;
  border-radius: 34px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.075), rgba(255,255,255,0.03)),
    rgba(255, 255, 255, 0.035);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow);
}

.agent-system-header {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 2px;
  color: #ffffff;
}

.system-flow-visual {
  display: grid;
  gap: 14px;
}

.system-node {
  position: relative;
  padding: 22px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
}

.system-node-blue {
  background: linear-gradient(135deg, rgba(39, 183, 255, 0.20), rgba(255,255,255,0.06));
  border-color: rgba(39, 183, 255, 0.34);
}

.system-node span {
  display: inline-flex;
  margin-bottom: 10px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.10em;
}

.system-node strong {
  display: block;
  color: #ffffff;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -0.035em;
}

.system-node p {
  margin: 9px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.system-connector {
  position: relative;
  width: 2px;
  height: 34px;
  margin: -2px auto;
  background: linear-gradient(to bottom, rgba(39, 183, 255, 0.16), var(--blue));
}

.system-connector::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -7px;
  width: 0;
  height: 0;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-top: 10px solid var(--blue);
  transform: translateX(-50%);
}

.system-note {
  display: grid;
  gap: 7px;
  padding: 20px 22px;
  border-radius: 22px;
  color: #d8e6f2;
  background: rgba(39, 183, 255, 0.11);
  border: 1px solid rgba(39, 183, 255, 0.26);
}

.system-note strong {
  color: #ffffff;
}

@media (max-width: 700px) {
  .agent-system-card {
    padding: 20px;
    border-radius: 26px;
  }

  .system-node {
    padding: 20px;
    border-radius: 22px;
  }

  .system-node strong {
    font-size: 20px;
  }
}

/* ===== ROZWIJANE KARTY PROJEKTÓW (portfolio) ===== */

.section-fold {
  padding-top: 44px;
  padding-bottom: 44px;
}

.portfolio-intro {
  margin-bottom: 34px;
}

.case-fold {
  border: 1px solid var(--border-strong);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.035);
  overflow: hidden;
}

.case-fold[open] {
  border-color: rgba(39, 183, 255, 0.45);
  background: rgba(255, 255, 255, 0.05);
}

.case-fold-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
  padding: 30px 36px;
  cursor: pointer;
  list-style: none;
  transition: background 0.2s ease;
}

.case-fold-summary::-webkit-details-marker {
  display: none;
}

.case-fold-summary:hover {
  background: rgba(39, 183, 255, 0.06);
}

.case-fold-head .eyebrow {
  margin-bottom: 8px;
}

.case-fold-title {
  margin: 0;
  font-size: clamp(24px, 3.2vw, 38px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.04em;
  color: var(--text);
}

.case-fold-lead {
  margin: 10px 0 0;
  max-width: 640px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}

.case-fold-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.case-fold-tags span {
  padding: 6px 13px;
  border-radius: 999px;
  font-size: 13px;
  color: #d8e6f2;
  background: rgba(39, 183, 255, 0.10);
  border: 1px solid rgba(39, 183, 255, 0.26);
}

.case-fold-toggle {
  flex-shrink: 0;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid rgba(39, 183, 255, 0.45);
  color: var(--blue);
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
  transition: background 0.2s ease, transform 0.2s ease;
}

.case-fold-summary:hover .case-fold-toggle {
  background: rgba(39, 183, 255, 0.16);
  transform: translateY(-1px);
}

.case-fold .when-open { display: none; }
.case-fold[open] .when-open { display: inline; }
.case-fold[open] .when-closed { display: none; }

.case-fold-body {
  padding: 6px 36px 40px;
  border-top: 1px solid var(--border);
}

.case-fold-body .case-study {
  padding-top: 26px;
}

@media (max-width: 700px) {
  .case-fold-summary {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 22px 20px;
  }

  .case-fold-toggle {
    align-self: stretch;
    text-align: center;
  }

  .case-fold-body {
    padding: 4px 18px 30px;
  }

  .case-fold-lead {
    font-size: 15px;
  }
}


/* ROI / LICZBY */
.roi-compare {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  margin-bottom: 22px;
}

.roi-card {
  padding: 30px;
  border-radius: 26px;
  background: #ffffff;
  border: 1px solid rgba(17, 24, 39, 0.08);
  box-shadow: 0 24px 60px rgba(17, 24, 39, 0.08);
}

.roi-card p {
  margin: 0;
  color: #4b5563;
  line-height: 1.6;
}

.roi-label {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--blue-dark);
  font-weight: 800;
  font-size: 14px;
}

.roi-figure {
  display: block;
  font-size: 28px;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
  color: var(--dark-text);
}

.roi-card-accent {
  border: 2px solid var(--blue-dark);
}

.roi-time,
.roi-honest {
  padding: 24px 26px;
  border-radius: 22px;
  background: #ffffff;
  border: 1px solid rgba(17, 24, 39, 0.08);
  margin-bottom: 18px;
  color: #4b5563;
  line-height: 1.6;
}

.roi-time p,
.roi-honest p {
  margin: 0;
}

.roi-time strong,
.roi-honest strong,
.roi-card p strong {
  color: var(--dark-text);
}

.roi-honest > strong {
  display: block;
  margin-bottom: 8px;
}

.roi-cta {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.roi-cta span {
  color: #4b5563;
}

@media (max-width: 860px) {
  .roi-compare {
    grid-template-columns: 1fr;
  }
}

.roi-scope {
  margin-top: 12px !important;
  padding-top: 12px;
  border-top: 1px solid rgba(17, 24, 39, 0.10);
  font-size: 14.5px;
}


.roi-payback {
  margin-top: 14px !important;
  padding-top: 14px;
  border-top: 1px solid rgba(17, 24, 39, 0.10);
}

/* GWARANCJA / BONUSY / LIMIT (sekcja Liczby) */
.roi-extra .roi-card p + p {
  margin-top: 10px;
}

.roi-list {
  margin: 0;
  padding-left: 20px;
  color: #4b5563;
  line-height: 1.6;
  display: grid;
  gap: 9px;
}

.roi-list strong {
  color: var(--dark-text);
}

.roi-limit {
  margin: 0 0 20px;
  color: #4b5563;
  line-height: 1.6;
}

.roi-limit strong {
  color: var(--dark-text);
}

/* PRZEŁĄCZNIK JĘZYKA */
.nav .lang-switch,
.mobile-section-nav .lang-switch {
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  padding: 3px 12px;
  font-weight: 700;
}

/* AGENT NA STRONIE EN - screen zamiast widgetu */
.agent-shot {
  margin: 0;
  border-radius: 26px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 24px 60px rgba(2, 6, 23, 0.45);
}

.agent-shot img {
  display: block;
  width: 100%;
  height: auto;
}

.agent-shot figcaption {
  padding: 12px 16px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.05);
}


/* NAGLOWEK - jedna linia na sredniej szerokosci */
@media (max-width: 1440px) {
  .header { padding: 18px 4%; gap: 18px; }
  .nav { gap: 17px; font-size: 13.5px; }
  .logo-img { width: 132px; }
}

@media (max-width: 1280px) {
  .header { padding: 16px 3%; gap: 14px; }
  .nav { gap: 12px; font-size: 12.5px; }
  .logo-img { width: 112px; }
  .contact-phone { padding: 10px 14px; font-size: 13px; }
  .nav .lang-switch { padding: 3px 9px; }
}


/* PODGLAD ZRZUTOW - klikniecie otwiera caly obraz */
.case-shot,
.agent-shot {
  cursor: zoom-in;
}

.case-shot::after,
.agent-shot::after {
  content: "";
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(9, 13, 19, 0.78) url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M21 21l-4.2-4.2M11 8v6M8 11h6'/%3E%3C/svg%3E") center/18px 18px no-repeat;
  border: 1px solid rgba(255, 255, 255, 0.22);
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.18s ease, transform 0.18s ease;
  pointer-events: none;
}

.agent-shot {
  position: relative;
}

.case-shot:hover::after,
.case-shot:focus-visible::after,
.agent-shot:hover::after,
.agent-shot:focus-visible::after {
  opacity: 1;
  transform: scale(1);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 4vh 4vw;
  background: rgba(6, 9, 14, 0.93);
  backdrop-filter: blur(8px);
  cursor: zoom-out;
}

.lightbox.is-open {
  display: flex;
}

.lightbox-inner {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 100%;
  max-height: 100%;
}

.lightbox img {
  display: block;
  max-width: 100%;
  max-height: 84vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.6);
}

.lightbox-caption {
  color: rgba(255, 255, 255, 0.88);
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  line-height: 1.35;
}

.lightbox-close {
  position: absolute;
  top: 16px;
  right: 20px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.lightbox-hint {
  position: absolute;
  bottom: 18px;
  left: 0;
  right: 0;
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 12px;
}

@media (max-width: 700px) {
  .lightbox { padding: 2vh 2vw; }
  .lightbox img { max-height: 78vh; }
}
