/* ============================================
   SECTIONS — Page-level layout
   ============================================ */

/* ─── HERO ─── */

.hero {
  min-height: 100svh;
  height: auto;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: 64px;
  padding-bottom: var(--space-16);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero__bg-image {
  position: absolute;
  inset: -4%;          /* nadmiar żeby zoom nie pokazał krawędzi */
  width: 108%;
  height: 108%;
  z-index: 0;

  background-image: url('../assets/background-hero.webp');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;

  mix-blend-mode: luminosity;
  filter: hue-rotate(10deg) saturate(0.7) brightness(0.6);

  /* Idle zoom — bardzo powolny, ledwo zauważalny */
  animation: hero-bg-breathe 18s ease-in-out infinite alternate;

  /* Płynne przejście dla parallax z myszką */
  transition: transform 0.12s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}

@keyframes hero-bg-breathe {
  from {
    transform: scale(1.00) translate(0px, 0px);
  }
  to {
    transform: scale(1.06) translate(-8px, -4px);
  }
}

/* Respektuj prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .hero__bg-image {
    animation: none;
    transition: none;
  }
}



/* Radial glow — star of the show */
.hero__glow {
  position: absolute;
  top: -10%;
  right: -5%;
  width: 55vw;
  height: 55vw;
  max-width: 720px;
  max-height: 720px;
  border-radius: 50%;
  background: radial-gradient(
    ellipse at center,
    rgba(59, 130, 246, 0.10) 0%,
    rgba(139, 92, 246, 0.08) 40%,
    transparent 70%
  );
  animation: hero-float 8s ease-in-out infinite;
  filter: blur(1px);
}

.hero__glow-secondary {
  position: absolute;
  bottom: 10%;
  left: -8%;
  width: 35vw;
  height: 35vw;
  max-width: 480px;
  max-height: 480px;
  border-radius: 50%;
  background: radial-gradient(
    ellipse at center,
    rgba(139, 92, 246, 0.07) 0%,
    transparent 65%
  );
  animation: hero-float 11s ease-in-out infinite reverse;
}

@keyframes hero-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(-16px, -20px) scale(1.02); }
  66%       { transform: translate(12px, -10px) scale(0.98); }
}

.hero__inner {
  position: relative;
  z-index: 1;
  padding-block: var(--space-16);
  display: grid;
  gap: var(--space-8);
  min-width: 0;
  max-width: 820px;
}

.hero__label {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.hero__label-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse-dot 2.5s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.7); }
}
.hero h1 {
  font-size: var(--text-hero);
}

.hero__heading {
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.1;
  color: var(--text-primary);
}

.hero__heading em {
  font-style: normal;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.35);
}

.hero__sub {
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  color: var(--text-secondary);
  line-height: 1.65;
  max-width: min(520px, 100%);
}

.hero__meta {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  flex-wrap: wrap;
}

.hero__meta-item {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  letter-spacing: 0.08em;
}

.hero__meta-sep {
  width: 1px;
  height: 12px;
  background: var(--border-default);
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
  max-width: 100%;
}

.hero__scroll {
  position: absolute;
  bottom: var(--space-8);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  opacity: 0.4;
  transition: opacity var(--duration-base);
  z-index: 1;
}

.hero__scroll:hover { opacity: 0.7; }

.hero__scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--text-tertiary), transparent);
  animation: scroll-line 2s ease-in-out infinite;
}

@keyframes scroll-line {
  0%   { transform: scaleY(0); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: top; }
  51%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

.hero__scroll-label {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  writing-mode: vertical-lr;
}

.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.2s ease;
  z-index: 0;
}

.hero__canvas.is-ready {
  opacity: 1;
}

@media (max-width: 1024px) {
  .hero {
    padding-bottom: var(--space-4);
  }

  .hero__inner {
    padding-block: clamp(var(--space-6), 4svh, var(--space-12));
    gap: clamp(var(--space-5), 3svh, var(--space-8));
  }
}

@media (max-width: 768px) {
  .hero__heading {
    line-height: 0.95;
    letter-spacing: -0.03em;
  }

  .hero__actions {
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
  }

  .hero__actions .btn-primary,
  .hero__actions .btn-secondary {
    width: auto !important;
  }
}

.hero__break::before {
  content: '\A';
  white-space: pre;
}

@media (max-width: 1100px) {
  .hero__break::before {
    content: ' ';
    white-space: normal;
  }
  .hero__br {
    display: none;
  }
}



/* ─── PROOF BAR ─── */

.proof-bar {
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-elevated);
  padding: var(--space-5) 0;
  overflow: hidden;
}

.proof-bar__inner {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 4vw, var(--space-10)); /* było: var(--space-10) */
  flex-wrap: nowrap; /* było: wrap */
}

.proof-bar__stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex-shrink: 1; /* było: 0 */
  min-width: 0;   /* dodaj */
}

.proof-bar__stat-value {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 5vw, var(--text-xl)); /* było: var(--text-xl) */
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.03em;
  line-height: 1;
}

.proof-bar__stat-label {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-tertiary);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.proof-bar__sep {
  width: 1px;
  height: 32px;
  background: var(--border-default);
  flex-shrink: 1;
}

.proof-bar__quote {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  font-style: italic;
  max-width: 440px;
}

.proof-bar__quote cite {
  font-style: normal;
  color: var(--text-tertiary);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  display: block;
  margin-top: 4px;
}

/* ─── SECTION WRAPPER ─── */

.section {
  padding-block: var(--space-32);
}

.section--tight {
  padding-block: var(--space-20);
}

.section__header {
  margin-bottom: var(--space-16);
  max-width: var(--container-text);
}

.section__header h2 {
  margin-top: var(--space-3);
}

.section__header p {
  margin-top: var(--space-4);
  font-size: var(--text-md);
}

/* ─── PROBLEM SECTION ─── */

.problem {
  background: var(--bg-elevated);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.problem__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: start;
}

.problem__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  margin-top: var(--space-8);
}

.problem__item {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: var(--space-4);
  align-items: start;
}

.problem__item-num {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--accent);
  letter-spacing: 0.06em;
  padding-top: 2px;
}

.problem__item-text {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.6;
}

.problem__item-text strong {
  color: var(--text-primary);
  font-weight: 500;
}

.problem__callout {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  margin-top: var(--space-8);
}

.problem__callout p {
  font-size: var(--text-md);
  color: rgba(255, 255, 255, 0.80);
  line-height: 1.65;
  max-width: 100%;
}

/* ── Problem Statement ─────────────────────────────── */
.problem-statement {
  padding: var(--space-24) 0;
  position: relative;
  overflow: hidden;
}

.problem-statement__inner {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  padding: var(--space-12) var(--space-8);
}

/* Subtelna poświata w tle */
.problem-statement__accent {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 300px;
  background: radial-gradient(ellipse at center,
    rgba(99, 102, 241, 0.07) 0%,
    transparent 70%
  );
  pointer-events: none;
  z-index: 0;
}

/* Główny tekst — serif dla kontrastu z resztą strony */
/* .problem-statement__text {
  
} */

/* Ozdobny separator */
.problem-statement__divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
  position: relative;
  z-index: 1;
}

.problem-statement__divider span {
  display: block;
  width: 60px;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2)
  );
}

.problem-statement__divider span:last-child {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.2),
    transparent
  );
}

/* Drugie zdanie */
.problem-statement__sub {
  position: relative;
  z-index: 1;
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
}


/* ─── ABOUT / POSITIONING ─── */

.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: start;
}

.about__differentiators {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  margin-top: var(--space-8);
}

.differentiator {
  padding: var(--space-6);
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  transition:
    border-color var(--duration-base),
    background-color var(--duration-base);
}

.differentiator:hover {
  border-color: var(--border-hover);
  background: var(--bg-surface);
}

.differentiator__icon {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: var(--space-3);
}

.differentiator__title {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-2);
  letter-spacing: -0.01em;
}

.differentiator__desc {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 100%;
}

/* ── ABOUT SECTION ─────────────────────────────────────── */

.about {
  padding: var(--section-padding, 120px 0);
}

.about__container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: stretch;
}

/* Lewa kolumna */
.about__label {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent, #7B6EF6);
  margin-bottom: 24px;
}

.about__title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--color-text, #fff);
  margin-bottom: 32px;
}

.about__text {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--color-text-muted, rgba(255,255,255,0.6));
  margin-bottom: 20px;
}

.about__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  font-size: 0.95rem;
  color: var(--accent, #7B6EF6);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, gap 0.2s;
}

.about__link:hover {
  border-color: var(--accent, #7B6EF6);
  gap: 14px;
}

/* Prawa kolumna — video */
.about__video-wrapper {
  width: 100%;
  padding-top: 3rem;
}

.about__video-inner {
  position: relative;
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  background: #0d0d0d;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 32px 80px rgba(0,0,0,0.5);
  aspect-ratio: 16 / 9; /* ← zamiast height: 100% i min-height */
}

/* Thumbnail */
.about__video-thumb {
  position: absolute;
  width: 100%;
  aspect-ratio: 16 / 9;
  cursor: pointer;
}

.about__video-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.about__video-thumb:hover .about__video-img {
  transform: scale(1.03);
}

/* Przycisk play */
.about__play-btn {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.35);
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}

.about__play-btn:hover {
  background: rgba(0,0,0,0.5);
}

.about__play-btn svg {
  width: 72px;
  height: 72px;
  color: #fff;
  filter: drop-shadow(0 4px 24px rgba(0,0,0,0.6));
  transition: transform 0.2s;
}

.about__play-btn:hover svg {
  transform: scale(1.1);
}

/* Podpis pod filmem */
.about__video-caption {
  position: absolute;
  bottom: 16px;
  left: 16px;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.03em;
  pointer-events: none;
}

.about__video-caption span {
  color: #fff;
  font-weight: 600;
}

/* Embed (po kliknięciu play) */
.about__video-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
}

.about__video-embed iframe,
.about__video-embed video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}


/* ── RESPONSIVE ─────────────────────────────────────────── */

@media (max-width: 900px) {
  .about__container {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}


/* ─── SERVICES ─── */

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
  margin-top: var(--space-12);
}

.service-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  transition:
    border-color var(--duration-base),
    transform var(--duration-base);
}

.service-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.service-card__number {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--accent);
  letter-spacing: 0.1em;
}

.service-card__title {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.service-card__for {
  font-size: var(--text-xs);
  font-family: var(--font-mono);
  color: var(--text-tertiary);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.service-card__desc {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.65;
  max-width: 100%;
  flex: 1;
}

.service-card__when {
  padding-top: var(--space-4);
  border-top: 1px solid var(--border-subtle);
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  line-height: 1.5;
}

.service-card__when strong {
  color: var(--text-secondary);
  font-weight: 500;
}

.services__ghost {
  margin-top: var(--space-12);
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-left: 3px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
  align-items: start;
}

.services__ghost-title {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: var(--space-3);
}

.services__ghost-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.services__ghost-list li {
  font-size: var(--text-sm);
  color: var(--text-tertiary);
  padding-left: var(--space-4);
  position: relative;
  line-height: 1.5;
}

.services__ghost-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--text-disabled);
}

/* Dwie karty równej szerokości */
.services__grid--two {
  grid-template-columns: repeat(2, 1fr);
}

/* Lista w karcie */
.service-card__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: 0;
  margin: 0;
}

.service-card__list li {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  padding-left: var(--space-4);
  position: relative;
  line-height: 1.5;
}

.service-card__list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 0.7rem;
  top: 2px;
}

/* Blok podejście */
.services__approach {
  margin-top: var(--space-8);
  display: flex;
  align-items: flex-start;
  gap: var(--space-8);
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
}

.services__approach-item {
  display: flex;
  gap: var(--space-5);
  align-items: flex-start;
  flex: 1;
}

.services__approach-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-top: 2px;
}

.services__approach-title {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-2);
  letter-spacing: -0.01em;
}

.services__approach-desc {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.6;
}

.services__approach-sep {
  width: 1px;
  align-self: stretch;
  background: var(--border-subtle);
  flex-shrink: 0;
}

/* Responsive */
@media (max-width: 768px) {
  .services__grid--two {
    grid-template-columns: 1fr;
  }

  .services__approach {
    flex-direction: column;
    gap: var(--space-6);
  }

  .services__approach-sep {
    width: 100%;
    height: 1px;
    align-self: auto;
  }
}


/* ─── WORK GRID ─── */

.work__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
  margin-top: var(--space-12);
}

/* PROCESS */

.process {
  position: relative;
  overflow: hidden;
}

.process__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* .process__bg-image {
  position: absolute;
  inset: -4%;         
  width: 108%;
  height: 108%;
  z-index: 0;

  background-image: url('../assets/cta1.webp');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;

  mix-blend-mode: luminosity;
  filter: hue-rotate(15deg) saturate(0.8) brightness(0.7);

  animation: hero-bg-breathe 18s ease-in-out infinite alternate;

  transition: transform 0.12s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
} */

/* ── NAGŁÓWEK ───────────────────────────────────────── */

.process__header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto var(--space-12);
}

.process__subtitle {
  margin-top: var(--space-4);
  font-size: var(--text-md);
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ── CTA pod procesem ───────────────────────────────── */

.process__cta {
  display: flex;
  justify-content: center;
  margin-top: var(--space-12);
  padding-bottom: 0;
}

/* ── Usuń nadmiarowy padding sekcji process ─────────── */

.process {
  padding-bottom: var(--space-20);
}


/* ── SLALOM WRAPPER ─────────────────────────────────── */

.process__slalom {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
}

.process__svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
  z-index: 0;
}

#slalomPath {
  stroke: var(--accent, #7B6EF6);
  stroke-width: 1.5px;
  fill: none;
  stroke-linecap: round;
  stroke-dasharray: 6 5;
  opacity: 0.5;
  stroke-dashoffset: 0;
  transition: none;
}

/* ── NODE ───────────────────────────────────────────── */

.process__node {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 32px 0;            /* KONTROLOWANIE WYSOKOŚCI SEKCJI */
  width: 50%;
}

/* Nieparzyste — lewa strona */
.process__node:nth-child(odd) {
  align-self: flex-start;
  flex-direction: row;
}

/* Parzyste — prawa strona */
.process__node:nth-child(even) {
  align-self: flex-end;
  flex-direction: row-reverse;
  text-align: right;
}

.process__node:nth-child(even) .process__card {
  align-items: flex-end;
}

/* ── DOT ────────────────────────────────────────────── */

.process__dot {
  position: relative;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.process__dot-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px solid var(--accent, #7B6EF6);
  opacity: 0;
}

.process__node.is-active .process__dot-ring {
  animation: pulse-ring 2.5s ease-out infinite;
  opacity: 0.4;
}

@keyframes pulse-ring {
  0%   { transform: scale(1);   opacity: 0.4; }
  70%  { transform: scale(1.8); opacity: 0;   }
  100% { transform: scale(1.8); opacity: 0;   }
}

.process__dot-num {
  position: relative;
  z-index: 1;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-elevated, #111);
  border: 1.5px solid var(--accent, #7B6EF6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent, #7B6EF6);
  font-family: var(--font-mono, monospace);
  transition: background 0.25s, color 0.25s;
}

/* ── CARD ───────────────────────────────────────────── */

.process__card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: var(--bg-elevated, #111);
  border: 1px solid var(--border-subtle, rgba(255,255,255,0.08));
  border-radius: 12px;
  padding: 14px 18px;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}

.process__card:hover {
  border-color: var(--accent, #7B6EF6);
  transform: translateY(-3px);
  box-shadow: 0 10px 32px rgba(123,110,246,0.14);
}

.process__card-tag {
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent, #7B6EF6);
  font-family: var(--font-mono, monospace);
}

.process__card-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-primary, #fff);
  margin: 0;
}

.process__card-desc {
  font-size: 0.78rem;
  color: var(--text-secondary, rgba(255,255,255,0.55));
  line-height: 1.55;
  margin: 0;
}

/* ── RESPONSIVE ─────────────────────────────────────── */

@media (max-width: 600px) {
  .process__node,
  .process__node:nth-child(even) {
    width: 100%;
    align-self: auto;
    flex-direction: row;
    text-align: left;
  }

  .process__node:nth-child(even) .process__card {
    align-items: flex-start;
  }

  .process__svg { display: none; }
}


/* ─── TESTIMONIALS ─── */

.not-for-you {
  background: var(--bg-elevated);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.not-for-you__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: start;
}

.not-for-you__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin-top: var(--space-6);
}

.not-for-you__item {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: var(--space-3);
  align-items: start;
}

.not-for-you__item-x {
  color: var(--text-disabled);
  font-size: var(--text-sm);
  padding-top: 1px;
}

.not-for-you__item-text {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.55;
}

.not-for-you__positive {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  margin-top: var(--space-6);
}

.not-for-you__positive-title {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-4);
}

.not-for-you__positive-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.not-for-you__positive-list li {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.5;
}

.not-for-you__positive-list li::before {
  content: '\2713';
  color: var(--accent);
  font-size: var(--text-xs);
  padding-top: 2px;
}

.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
  margin-top: var(--space-12);
}

/* ─── FAQ ─── */

.faq__list {
  display: flex;
  flex-direction: column;
  margin-top: var(--space-12);
  border-top: 1px solid var(--border-subtle);
}

.faq__item {
  border-bottom: 1px solid var(--border-subtle);
}

.faq__question {
  width: 100%;
  text-align: left;
  padding: var(--space-6) 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--text-primary);
  font-family: var(--font-text);
  transition: color var(--duration-fast);
  cursor: pointer;
}

.faq__question:hover { color: var(--accent); }

.faq__icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  position: relative;
  color: var(--text-tertiary);
  transition: transform var(--duration-base) var(--ease-out-expo),
              color var(--duration-fast);
}

.faq__icon::before,
.faq__icon::after {
  content: '';
  position: absolute;
  background: currentColor;
  border-radius: 2px;
  transition: transform var(--duration-base) var(--ease-out-expo),
              opacity var(--duration-base);
}

.faq__icon::before {
  width: 12px;
  height: 1.5px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.faq__icon::after {
  width: 1.5px;
  height: 12px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.faq__item.is-open .faq__icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
  opacity: 0;
}

.faq__item.is-open .faq__question { color: var(--accent); }
.faq__item.is-open .faq__icon { color: var(--accent); }

.faq__answer {
  overflow: hidden;
  max-height: 0;
  transition: max-height var(--duration-slow) var(--ease-out-expo);
}

.faq__answer-inner {
  padding-bottom: var(--space-6);
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 640px;
}

.faq__answer-inner strong {
  color: var(--text-primary);
  font-weight: 500;
}

/* ─── FINAL CTA ─── */

.cta__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.cta__bg-image {
  position: absolute;
  inset: -4%;          /* nadmiar żeby zoom nie pokazał krawędzi */
  width: 108%;
  height: 108%;
  z-index: 0;

  background-image: url('../assets/background-cta.webp');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;

  mix-blend-mode: luminosity;
  filter: hue-rotate(10deg) saturate(0.7) brightness(0.6);

  /* Idle zoom — bardzo powolny, ledwo zauważalny */
  animation: hero-bg-breathe 18s ease-in-out infinite alternate;

  /* Płynne przejście dla parallax z myszką */
  transition: transform 0.12s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}

.final-cta {
  text-align: center;
  padding-block: var(--space-32);
  position: relative;
  overflow: hidden;
}

.final-cta__glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 300px;
  background: radial-gradient(
    ellipse at center,
    rgba(59, 130, 246, 0.08) 0%,
    transparent 70%
  );
  pointer-events: none;
}

.final-cta__inner {
  position: relative;
  z-index: 1;
  max-width: var(--container-cta);
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-6);
}

.final-cta h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.final-cta p {
  font-size: var(--text-md);
  color: var(--text-secondary);
  text-align: center;
  max-width: 420px;
}

.final-cta__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
}

.final-cta__micro {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  letter-spacing: 0.06em;
}

/* ─── PRZYCISK — stan ładowania ─────────────────────────── */
.btn-primary[data-loading] {
  opacity: 0.75;
  cursor: wait;
  letter-spacing: 0.02em;
}

/* ─── FORMULARZ — wejście po powrocie ───────────────────── */
.contact-form.is-entering {
  animation: formEnter 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes formEnter {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ─── SUCCESS — znikanie ────────────────────────────────── */
.form-success.is-hiding-out {
  opacity: 0;
  transform: translateY(8px) scale(0.98);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

/* ─── SUCCESS — fix wyrównania ──────────────────────────── */
.form-success {
  display: flex;
  align-items: center;   /* ← było flex-start, zmieniamy na center */
  gap: 14px;
  padding: 20px 24px;
}

.form-success__body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-top: 0;        /* ← usuwa ewesntualny offset */
}

.form-success__icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  margin-top: 0;         /* ← reset marginu który mógł przesuwać ikonę */
}


/* ─── CONTACT FORM ──────────────────────────────────────── */

.contact-form {
  width: 100%;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.contact-form.is-hiding {
  opacity: 0;
  transform: translateY(-12px);
  pointer-events: none;
}

.contact-form.is-entering {
  animation: formEnter 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes formEnter {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── PRZYCISK ───────────────────────────────────────────── */

.btn-primary[data-loading] {
  opacity: 0.75;
  cursor: wait;
}

/* ─── BŁĄD ───────────────────────────────────────────────── */

.form-error-msg {
  font-size: var(--text-sm);
  color: #f87171;
  text-align: center;
  font-family: var(--font-mono);
  line-height: 1.5;
}

.form-error-msg[hidden] {
  display: none !important;
}

/* ─── SUCCESS BOX ────────────────────────────────────────── */

.form-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  padding: 24px 32px;
  max-width: 380px;
  width: 100%;
  margin: 0 auto;
  border: 1.5px solid rgba(99, 210, 140, 0.35);
  border-radius: var(--radius-lg);
  background: transparent;

  /* Stan wejściowy */
  opacity: 0;
  transform: translateY(16px) scale(0.98);
  transition: opacity 0.5s cubic-bezier(0.34, 1.56, 0.64, 1),
              transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.form-success.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.form-success.is-hiding-out {
  opacity: 0;
  transform: translateY(8px) scale(0.98);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

#form-success[hidden] {
  display: none !important;
}

.form-success__title {
  font-size: var(--text-base);
  font-weight: 600;
  color: #63d28c;

  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.4s ease 0.15s, transform 0.4s ease 0.15s;
}

.form-success__sub {
  font-size: var(--text-sm);
  color: var(--text-secondary);

  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.4s ease 0.25s, transform 0.4s ease 0.25s;
}

.form-success.is-visible .form-success__title,
.form-success.is-visible .form-success__sub {
  opacity: 1;
  transform: translateY(0);
}


/* ─── FOOTER ─── */

.footer {
  background: #070709;
  border-top: 1px solid var(--border-subtle);
  padding-block: var(--space-16);
}

.footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-12);
  margin-bottom: var(--space-12);
}

.footer__brand-name {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: var(--space-3);
}

.footer__brand-name span { color: var(--accent); }

.footer__tagline {
  font-size: var(--text-sm);
  color: var(--text-tertiary);
  max-width: 260px;
  line-height: 1.6;
}

.footer__col-title {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: var(--space-4);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer__link {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  transition: color var(--duration-fast);
}

.footer__link:hover { color: var(--text-primary); }

.footer__bottom {
  padding-top: var(--space-8);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer__copy,
.footer__made {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  letter-spacing: 0.04em;
}

/* ─── RESPONSIVE SECTIONS ─── */

@media (max-width: 1024px) {
  .services__grid {
    grid-template-columns: 1fr 1fr;
  }
  .services__ghost {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .section { padding-block: var(--space-20); }

  .hero__inner { padding-block: clamp(var(--space-4), 3svh, var(--space-8)); }
  .hero__heading { letter-spacing: -0.025em; }
  .hero__glow { width: 80vw; height: 80vw; top: -5%; right: -20%; }

  .proof-bar__inner { gap: var(--space-6); }
  .proof-bar__sep { display: none; }
  .proof-bar__quote { display: none; }

  .problem__grid,
  .about__grid,
  .process__inner,
  .not-for-you__grid { grid-template-columns: 1fr; gap: var(--space-10); }

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

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

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

  .footer__inner { grid-template-columns: 1fr; gap: var(--space-8); }
  .footer__bottom { flex-direction: column; gap: var(--space-3); text-align: center; }

  .final-cta { padding-block: var(--space-20); }
}
