@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("fonts/manrope-latin-ext.woff2") format("woff2");
}

@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("fonts/space-grotesk-latin-ext.woff2") format("woff2");
}

:root {
  color-scheme: light;
  --ink: #111827;
  --muted: #5b6671;
  --line: #dbe4e2;
  --paper: #f6f8f3;
  --white: #ffffff;
  --teal: #0a8f84;
  --teal-dark: #075b55;
  --cyan: #32d5bf;
  --amber: #d58a23;
  --blue: #2e6f9e;
  --display: "Space Grotesk", Manrope, ui-sans-serif, system-ui, sans-serif;
  --body: Manrope, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --shadow: 0 24px 70px rgba(17, 24, 39, 0.12);
  --soft-shadow: 0 10px 32px rgba(17, 24, 39, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

:target {
  scroll-margin-top: 84px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  line-height: 1.55;
}

a {
  color: inherit;
}

.site-header {
  border-bottom: 1px solid rgba(17, 24, 39, 0.08);
  background: #0f2022;
  color: var(--white);
}

.nav,
.wrap {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.nav {
  display: flex;
  min-height: 66px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-weight: 800;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid rgba(57, 227, 207, 0.55);
  border-radius: 8px;
  background: #10151a;
  color: #39e3cf;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
}

.brand-mark .bm-tx {
  line-height: 1;
}

.brand-mark .bm-chev {
  display: inline-block;
  width: 0.46em;
  height: 0.72em;
  margin-right: 0.12em;
  background: #ef9b2d;
  clip-path: polygon(0 0, 42% 0, 100% 50%, 42% 100%, 0 100%, 50% 50%);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 16px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
}

.nav-links a {
  text-decoration: none;
}

.nav-toggle-cb {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.nav-toggle {
  display: none;
}

.hero {
  padding: 82px 0 58px;
  background:
    linear-gradient(90deg, rgba(5, 11, 13, 0.92), rgba(5, 11, 13, 0.6)),
    url("ekartel-workshop.jpg");
  background-position: center;
  background-size: cover;
  color: var(--white);
}

.eyebrow,
.section-kicker {
  color: var(--teal);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.hero .eyebrow {
  display: inline-flex;
  margin-bottom: 18px;
  padding: 8px 11px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.9);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: var(--display);
  letter-spacing: 0;
}

h1 {
  max-width: 900px;
  margin-bottom: 20px;
  font-size: 48px;
  line-height: 1.04;
}

.lead {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 19px;
  font-weight: 500;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: var(--teal);
  color: var(--white);
  font-weight: 850;
  text-decoration: none;
}

.button.secondary {
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.12);
}

.section {
  padding: 68px 0;
}

.section.white {
  background: var(--white);
}

.section-head {
  max-width: 780px;
  margin-bottom: 28px;
}

h2 {
  margin-bottom: 10px;
  font-size: 32px;
  line-height: 1.08;
}

.section-head p,
.copy p,
.card p,
.check-list li,
.faq details {
  color: var(--muted);
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

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

.case-study-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.98fr) minmax(320px, 0.72fr);
  gap: 26px;
  align-items: start;
}

.case-study-copy {
  display: grid;
  gap: 18px;
}

.case-point-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.case-point {
  min-height: 100%;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--soft-shadow);
}

.case-point h3 {
  margin: 0 0 8px;
  font-size: 21px;
  line-height: 1.14;
}

.case-point p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.mentai-preview-card {
  display: block;
  overflow: hidden;
  border: 1px solid rgba(10, 143, 132, 0.22);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
  color: inherit;
  text-decoration: none;
}

.mentai-preview-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1200 / 833;
  object-fit: contain;
  object-position: top center;
}

.mentai-preview-meta {
  display: grid;
  gap: 7px;
  padding: 16px;
  border-top: 1px solid var(--line);
}

.mentai-preview-domain {
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.mentai-preview-meta strong {
  font-family: var(--display);
  font-size: 19px;
  line-height: 1.12;
}

.mentai-preview-meta span:last-child {
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

.card,
.cta,
.faq details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--soft-shadow);
}

.card {
  padding: 24px;
}

.card h3 {
  margin-bottom: 8px;
  font-size: 23px;
  line-height: 1.16;
}

.check-list {
  counter-reset: process-check;
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  counter-increment: process-check;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: start;
  padding: 14px 16px;
  border-left: 5px solid var(--amber);
  border-radius: 8px;
  background: var(--white);
  font-weight: 730;
  box-shadow: var(--soft-shadow);
  animation: checklistDrift 8s ease-in-out infinite;
  will-change: translate, scale, box-shadow;
}

.check-list li::before {
  content: counter(process-check, decimal-leading-zero);
  display: grid;
  width: 32px;
  height: 26px;
  place-items: center;
  border-radius: 8px;
  background: #ddf7f2;
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 950;
}

.check-list li:nth-child(2) {
  animation-delay: 0.6s;
}

.check-list li:nth-child(3) {
  animation-delay: 1.2s;
}

.check-list li:nth-child(4) {
  animation-delay: 1.8s;
}

.check-list li:nth-child(5) {
  animation-delay: 2.4s;
}

.faq {
  display: grid;
  gap: 12px;
}

.faq details {
  padding: 18px 20px;
}

.faq summary {
  color: var(--ink);
  cursor: pointer;
  font-family: var(--display);
  font-size: 20px;
  font-weight: 700;
}

.faq p {
  margin: 10px 0 0;
}

.cta {
  padding: 36px;
  background: #0f2022;
  color: var(--white);
}

.cta p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 18px;
}

.motion-section {
  overflow: hidden;
  background: #0f2022;
  color: var(--white);
}

.motion-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: 24px;
  align-items: stretch;
}

.motion-copy {
  display: grid;
  align-content: center;
  min-height: 440px;
}

.motion-copy h2 {
  max-width: 620px;
}

.motion-copy p {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 18px;
  font-weight: 650;
}

.motion-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 18px;
}

.motion-tags span {
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.motion-console {
  position: relative;
  display: grid;
  gap: 16px;
  min-height: 440px;
  overflow: hidden;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    rgba(255, 255, 255, 0.08);
  background-size: 32px 32px, 32px 32px, auto;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.26);
  will-change: translate, box-shadow;
}

.motion-console::before {
  content: "";
  position: absolute;
  inset: 68px 22px auto;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  opacity: 0.78;
  animation: motionScan 5s ease-in-out infinite;
}

.console-top {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 7px;
}

.console-top span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.38);
}

.console-top span:first-child {
  background: var(--cyan);
}

.motion-lane {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  align-items: stretch;
}

.motion-node {
  position: relative;
  display: grid;
  gap: 9px;
  min-height: 132px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(8, 25, 27, 0.78);
  animation: nodeWake 7.2s ease-in-out infinite;
  cursor: default;
  will-change: translate, scale, box-shadow;
}

.motion-node:nth-child(2) {
  animation-delay: 0.6s;
}

.motion-node:nth-child(3) {
  animation-delay: 1.2s;
}

.motion-node:nth-child(4) {
  animation-delay: 1.8s;
}

.motion-node::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -10px;
  z-index: 2;
  width: 20px;
  height: 3px;
  border-radius: 999px;
  background: var(--cyan);
  box-shadow: 0 0 18px rgba(50, 213, 191, 0.62);
  transform: translateY(-50%);
  animation: linePulse 2.8s ease-in-out infinite;
}

.motion-node:last-child::after {
  display: none;
}

.motion-node em {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 8px;
  background: #ddf7f2;
  color: var(--teal-dark);
  font-style: normal;
  font-weight: 950;
}

.motion-node strong {
  color: #9bf4e7;
  font-family: var(--display);
  line-height: 1.1;
}

.motion-node span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.32;
}

.motion-feed {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.motion-card {
  display: grid;
  gap: 7px;
  min-height: 116px;
  padding: 14px;
  border: 1px solid rgba(50, 213, 191, 0.3);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.2);
  animation: cardFloat 7s ease-in-out infinite;
  cursor: default;
  will-change: translate, scale, box-shadow;
}

.motion-card:nth-child(2) {
  animation-delay: 1s;
}

.motion-card:nth-child(3) {
  animation-delay: 2s;
}

.motion-card strong {
  color: #233036;
  font-size: 14px;
  line-height: 1.15;
}

.motion-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.service-architecture {
  background: var(--white);
}

.service-layer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.service-layer-card {
  position: relative;
  display: grid;
  gap: 14px;
  min-height: 100%;
  overflow: hidden;
  padding: 22px;
  border: 1px solid rgba(10, 143, 132, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(238, 251, 247, 0.9)),
    var(--white);
  box-shadow: var(--soft-shadow);
  animation: serviceLayerDrift 8.5s ease-in-out infinite;
  will-change: translate, scale, box-shadow;
}

.service-layer-card:nth-child(2) {
  animation-delay: 0.7s;
}

.service-layer-card:nth-child(3) {
  animation-delay: 1.4s;
}

.service-layer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.service-layer-number {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 8px;
  background: #0f2022;
  color: var(--cyan);
  font-family: var(--display);
  font-size: 13px;
  font-weight: 900;
}

.service-layer-live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.service-layer-live::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--cyan);
  box-shadow: 0 0 0 0 rgba(50, 213, 191, 0.45);
  animation: serviceDotPulse 2.6s ease-in-out infinite;
}

.service-layer-card h3 {
  margin-bottom: 0;
  font-size: 22px;
  line-height: 1.12;
}

.service-layer-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 15px;
}

.service-layer-signals {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.service-layer-signals span {
  display: inline-flex;
  min-height: 29px;
  align-items: center;
  padding: 0 10px;
  border: 1px solid rgba(10, 143, 132, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: #284045;
  font-size: 12px;
  font-weight: 850;
}

.service-layer-result {
  margin-top: auto;
  color: var(--teal-dark);
  font-size: 14px;
  font-weight: 900;
}

@media (hover: hover) and (pointer: fine) {
  .card,
  .cta,
  .faq details,
  .motion-console,
  .motion-node,
  .motion-card,
  .service-layer-card,
  .check-list li,
  .button {
    transition:
      border-color 180ms ease,
      box-shadow 180ms ease,
      translate 180ms ease,
      scale 180ms ease,
      background 180ms ease;
  }

  .motion-lane:hover .motion-node:not(:hover),
  .motion-feed:hover .motion-card:not(:hover),
  .service-layer-grid:hover .service-layer-card:not(:hover),
  .check-list:hover li:not(:hover) {
    opacity: 0.82;
    translate: 0 2px;
  }

  .card:hover,
  .faq details:hover,
  .check-list li:hover {
    animation-play-state: paused;
    translate: 0 -10px;
    scale: 1.018;
    border-color: rgba(10, 143, 132, 0.42);
    box-shadow: 0 26px 68px rgba(17, 24, 39, 0.16);
    z-index: 2;
  }

  .motion-console:hover {
    translate: 0 -6px;
    border-color: rgba(50, 213, 191, 0.34);
    box-shadow: 0 34px 100px rgba(0, 0, 0, 0.34);
  }

  .motion-node:hover,
  .motion-card:hover {
    animation-play-state: paused;
    translate: 0 -12px;
    scale: 1.045;
    border-color: rgba(50, 213, 191, 0.72);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.28), 0 0 0 1px rgba(50, 213, 191, 0.18);
    filter: saturate(1.1);
    opacity: 1;
    z-index: 3;
  }

  .motion-node:hover em {
    background: var(--cyan);
    color: #052f2c;
  }

  .service-layer-card:hover {
    animation-play-state: paused;
    translate: 0 -10px;
    scale: 1.022;
    border-color: rgba(10, 143, 132, 0.46);
    box-shadow: 0 28px 68px rgba(17, 24, 39, 0.16);
    z-index: 2;
  }

  .button:hover {
    translate: 0 -2px;
  }
}

@keyframes motionScan {
  0% {
    transform: translateY(0);
  }
  48%,
  58% {
    transform: translateY(326px);
  }
  100% {
    transform: translateY(0);
  }
}

@keyframes nodeWake {
  0%,
  100% {
    border-color: rgba(255, 255, 255, 0.16);
    box-shadow: none;
    transform: translateY(0);
  }
  50% {
    border-color: rgba(50, 213, 191, 0.62);
    box-shadow: 0 0 0 1px rgba(50, 213, 191, 0.16), 0 0 30px rgba(50, 213, 191, 0.16);
    transform: translateY(-4px);
  }
}

@keyframes linePulse {
  0%,
  100% {
    opacity: 0.5;
    scale: 0.82 1;
  }
  50% {
    opacity: 1;
    scale: 1.15 1;
  }
}

@keyframes cardFloat {
  0%,
  100% {
    transform: translateY(0);
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.2);
  }
  50% {
    transform: translateY(-7px);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.25);
  }
}

@keyframes checklistDrift {
  0%,
  100% {
    translate: 0 0;
    box-shadow: var(--soft-shadow);
  }
  50% {
    translate: 0 -4px;
    box-shadow: 0 18px 46px rgba(17, 24, 39, 0.12);
  }
}

@keyframes serviceLayerDrift {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -5px;
  }
}

@keyframes serviceDotPulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(50, 213, 191, 0.38);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(50, 213, 191, 0);
  }
}

.site-footer {
  padding: 28px 0;
  background: #0f1517;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
}

@media (max-width: 860px) {
  .nav {
    position: relative;
  }

  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 40px;
    margin-left: auto;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    cursor: pointer;
  }

  .nav-toggle span {
    display: block;
    height: 2px;
    background: rgba(255, 255, 255, 0.92);
    border-radius: 2px;
  }

  .nav-toggle-cb:checked ~ .nav-toggle {
    background: rgba(50, 213, 191, 0.18);
  }

  .nav-toggle-cb:checked ~ .nav-links {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 8px 16px 16px;
    background: #0f2022;
    border-bottom: 1px solid rgba(255, 255, 255, 0.22);
    z-index: 40;
  }

  .nav-toggle-cb:checked ~ .nav-links a {
    padding: 13px 4px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 16px;
  }

  .nav-toggle-cb:checked ~ .nav-links .lang-pill {
    margin-top: 10px;
  }

  h1 {
    font-size: 36px;
  }

  h2 {
    font-size: 28px;
  }

  .grid,
  .grid.two,
  .case-study-grid,
  .case-point-grid,
  .service-layer-grid,
  .motion-grid,
  .motion-lane,
  .motion-feed {
    grid-template-columns: 1fr;
  }

  .motion-copy,
  .motion-console {
    min-height: auto;
  }

  .motion-node::after {
    top: auto;
    right: 50%;
    bottom: -8px;
    width: 3px;
    height: 18px;
    transform: translateX(50%);
  }

}

@media (prefers-reduced-motion: reduce) {
  .motion-console::before,
  .motion-node,
  .motion-node::after,
  .motion-card,
  .service-layer-card,
  .service-layer-live::before,
  .check-list li {
    animation: none;
  }
}

/* Przelacznik jezyka PL/EN na podstronach (link-based, spojny z pillem na stronie glownej) */
.lang-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}
.lang-pill a {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 0 11px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.74);
  text-decoration: none;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
}
.lang-pill a.is-active {
  background: #32d5bf;
  color: #06221f;
}
