/*
Theme Name: Grainsoft Motion
Theme URI: https://grainsoft.pl/
Author: Damian Ziarnik
Author URI: https://grainsoft.pl/
Description: Scrollytellingowa, ciemna wersja motywu Grainsoft - elementy animuja sie dynamicznie podczas przewijania (parallax, pinned sections, progresywne odslanianie tekstu). Bazuje na Grainsoft New.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 8.0
Text Domain: grainsoft-new
*/

/* ============ Design tokens ============ */
:root {
  --navy-950: #020816;
  --navy-900: #030d24;
  --navy-800: #071b3b;
  --navy-700: #0c2a55;
  --blue: #0b78ff;
  --blue-light: #1a9cff;
  --cyan: #22d3ee;
  --green: #18c97a;
  --ink: #0c1d3a;
  --muted: #5d6d84;
  --muted-light: #9fb1c9;
  --line: #dce7f4;
  --soft: #f4f8fd;
  --white: #ffffff;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 18px 45px rgba(7, 30, 65, 0.12);
  --shadow-lg: 0 30px 70px rgba(7, 30, 65, 0.2);
  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ============ Base ============ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

h1, h2, h3 {
  line-height: 1.15;
  margin: 0 0 0.6em;
  font-weight: 800;
  letter-spacing: -0.02em;
}

p {
  margin: 0 0 1em;
}

.container {
  width: min(1280px, calc(100% - 40px));
  margin-inline: auto;
}

.container--narrow {
  width: min(860px, calc(100% - 40px));
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 2000;
  padding: 10px 18px;
  background: var(--blue);
  color: var(--white);
  border-radius: 0 0 10px 10px;
  transition: top 0.2s var(--ease);
}

.skip-link:focus {
  top: 0;
}

/* Pasek postępu scrolla */
.scroll-progress {
  position: fixed;
  inset: 0 0 auto;
  height: 3px;
  z-index: 1500;
  pointer-events: none;
}

.scroll-progress span {
  display: block;
  height: 100%;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
}

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border: 0;
  border-radius: 999px;
  font: 600 15px/1.2 var(--font-sans);
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease);
}

.btn-lg {
  padding: 15px 30px;
  font-size: 16px;
}

.btn-primary {
  color: var(--white);
  background: linear-gradient(120deg, var(--blue) 0%, var(--blue-light) 100%);
  box-shadow: 0 10px 28px rgba(11, 120, 255, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(11, 120, 255, 0.45);
}

.btn-outline {
  color: var(--white);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(6px);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-2px);
}

.btn-soft {
  color: var(--blue);
  background: rgba(11, 120, 255, 0.1);
}

.btn-soft:hover {
  background: rgba(11, 120, 255, 0.18);
  transform: translateY(-2px);
}

.btn-ghost {
  color: var(--muted);
  background: transparent;
  box-shadow: inset 0 0 0 1.5px var(--line);
}

.btn-ghost:hover {
  color: var(--ink);
  background: var(--soft);
}

.link-button {
  border: 0;
  padding: 0;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.link-button:hover {
  color: var(--white);
}

/* ============ Header / nav ============ */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  color: var(--white);
  transition: background 0.25s ease, box-shadow 0.25s ease;
}

.admin-bar .site-header {
  top: 32px;
}

.site-header.is-scrolled,
.site-header.nav-open {
  background: linear-gradient(105deg, rgba(2, 8, 22, 0.94), rgba(6, 22, 50, 0.94));
  box-shadow: 0 12px 30px rgba(2, 8, 22, 0.25);
  backdrop-filter: blur(14px);
}

.navbar {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 76px;
}

.brand img {
  width: 150px;
  height: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-left: auto;
}

.nav-links > a:not(.nav-cta) {
  position: relative;
  font-weight: 500;
  font-size: 15px;
  opacity: 0.88;
  transition: opacity 0.2s;
}

.nav-links > a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--blue-light), var(--cyan));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}

.nav-links > a:not(.nav-cta):hover,
.nav-links > a.is-active {
  opacity: 1;
}

.nav-links > a:not(.nav-cta):hover::after,
.nav-links > a.is-active::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  border: 0;
  background: none;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.25s var(--ease), opacity 0.2s;
}

.nav-open .nav-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

.nav-open .nav-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ============ Hero ============ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 140px 0 80px;
  color: var(--white);
  background: linear-gradient(160deg, var(--navy-950) 0%, var(--navy-900) 45%, var(--navy-800) 100%);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.55;
  animation: orb-float 14s ease-in-out infinite;
}

.hero-orb--1 {
  width: 460px;
  height: 460px;
  top: -120px;
  right: -80px;
  background: radial-gradient(circle, rgba(11, 120, 255, 0.5), transparent 70%);
}

.hero-orb--2 {
  width: 380px;
  height: 380px;
  bottom: -120px;
  left: -100px;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.32), transparent 70%);
  animation-delay: -5s;
}

.hero-orb--3 {
  width: 280px;
  height: 280px;
  top: 38%;
  left: 42%;
  background: radial-gradient(circle, rgba(24, 201, 122, 0.22), transparent 70%);
  animation-delay: -9s;
}

@keyframes orb-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(34px, -26px) scale(1.06); }
  66% { transform: translate(-22px, 22px) scale(0.96); }
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 65% at 50% 40%, #000 35%, transparent 100%);
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 60px;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--blue-light);
  background: rgba(11, 120, 255, 0.12);
  box-shadow: inset 0 0 0 1px rgba(26, 156, 255, 0.35);
}

.hero h1 {
  font-size: clamp(34px, 4.6vw, 58px);
  margin: 18px 0;
}

.gradient-text {
  background: linear-gradient(90deg, var(--blue-light) 0%, var(--cyan) 55%, var(--green) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero .lead {
  max-width: 56ch;
  font-size: 18px;
  color: var(--muted-light);
}

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

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin: 46px 0 0;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.stat-value,
.about-stats dt {
  font-size: clamp(24px, 2.6vw, 34px);
  font-weight: 800;
  background: linear-gradient(90deg, var(--blue-light), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-stats dd {
  margin: 4px 0 0;
  font-size: 13.5px;
  color: var(--muted-light);
}

/* Terminal */
.hero-visual {
  position: relative;
}

.terminal {
  border-radius: var(--radius);
  background: rgba(3, 10, 26, 0.85);
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  overflow: hidden;
  transform: perspective(1200px) rotateY(-5deg) rotateX(2deg);
  transition: transform 0.5s var(--ease);
}

.hero-visual:hover .terminal {
  transform: perspective(1200px) rotateY(0deg) rotateX(0deg);
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 13px 16px;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.terminal-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.terminal-dot--red { background: #ff5f57; }
.terminal-dot--yellow { background: #febc2e; }
.terminal-dot--green { background: #28c840; }

.terminal-title {
  margin-left: 10px;
  font: 12px var(--font-mono);
  color: var(--muted-light);
}

.terminal-body {
  padding: 20px 22px 24px;
  min-height: 264px;
  font: 13.5px/1.9 var(--font-mono);
}

.terminal-line {
  margin: 0;
  color: var(--muted-light);
  visibility: hidden;
}

.terminal-line.is-visible {
  visibility: visible;
}

.terminal-line--cmd {
  color: var(--white);
}

.terminal-prompt {
  color: var(--green);
  margin-right: 9px;
}

.terminal-cursor {
  display: inline-block;
  width: 8px;
  height: 16px;
  vertical-align: middle;
  background: var(--blue-light);
  animation: cursor-blink 1s steps(1) infinite;
}

@keyframes cursor-blink {
  50% { opacity: 0; }
}

.hero-float {
  position: absolute;
  padding: 9px 16px;
  border-radius: 999px;
  font: 600 13px var(--font-mono);
  color: var(--white);
  background: rgba(7, 27, 59, 0.85);
  box-shadow: inset 0 0 0 1px rgba(26, 156, 255, 0.35), 0 14px 30px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(8px);
  animation: float-bob 5.5s ease-in-out infinite;
}

.hero-float--php { top: -18px; left: -8px; }
.hero-float--laravel { bottom: 56px; right: -16px; animation-delay: -2s; }
.hero-float--uptime { bottom: -16px; left: 38px; animation-delay: -3.5s; color: var(--green); }

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

.hero-scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.55);
  animation: float-bob 2.4s ease-in-out infinite;
}

.hero-scroll-hint:hover {
  color: var(--white);
}

/* ============ Sections ============ */
.section {
  padding: 96px 0;
}

.section-heading {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 52px;
}

.section-heading--left {
  text-align: left;
  margin: 0 0 18px;
}

.section-heading h2 {
  font-size: clamp(28px, 3.4vw, 40px);
  position: relative;
  display: inline-block;
}

.section-heading h2::after {
  content: "";
  display: block;
  width: 56px;
  height: 4px;
  margin: 14px auto 0;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
}

.section-heading--left h2::after {
  margin-left: 0;
}

.section-heading p {
  color: var(--muted);
  font-size: 17px;
  margin: 12px 0 0;
}

/* ============ Reveal animations ============ */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease) var(--d, 0s), transform 0.7s var(--ease) var(--d, 0s);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.reveal-group .reveal:nth-child(1) { --d: 0s; }
.reveal-group .reveal:nth-child(2) { --d: 0.08s; }
.reveal-group .reveal:nth-child(3) { --d: 0.16s; }
.reveal-group .reveal:nth-child(4) { --d: 0.24s; }
.reveal-group .reveal:nth-child(5) { --d: 0.32s; }
.reveal-group .reveal:nth-child(6) { --d: 0.4s; }
.reveal-group .reveal:nth-child(7) { --d: 0.48s; }
.reveal-group .reveal:nth-child(8) { --d: 0.56s; }
.reveal-group .reveal:nth-child(9) { --d: 0.64s; }
.reveal-group .reveal:nth-child(10) { --d: 0.72s; }

/* ============ Technologies ============ */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}

.tech-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 26px 14px;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: inset 0 0 0 1px var(--line);
  font-weight: 600;
  font-size: 14.5px;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.tech-card img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  filter: grayscale(0.25);
  transition: filter 0.25s, transform 0.25s var(--ease);
}

.tech-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow), inset 0 0 0 1px rgba(11, 120, 255, 0.4);
}

.tech-card:hover img {
  filter: none;
  transform: scale(1.1);
}

.tech-marquee {
  margin-top: 44px;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.tech-marquee-track {
  display: flex;
  gap: 14px;
  width: max-content;
  animation: marquee 28s linear infinite;
}

.tech-marquee:hover .tech-marquee-track {
  animation-play-state: paused;
}

@keyframes marquee {
  to { transform: translateX(-50%); }
}

.tech-pill {
  padding: 9px 20px;
  border-radius: 999px;
  background: var(--soft);
  box-shadow: inset 0 0 0 1px var(--line);
  font: 600 14px var(--font-mono);
  color: var(--muted);
  white-space: nowrap;
}

/* ============ Cards / services ============ */
.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: inset 0 0 0 1px var(--line);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.section--services {
  background: var(--soft);
}

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

.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 30px 26px;
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg), inset 0 0 0 1px rgba(11, 120, 255, 0.25);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  margin-bottom: 18px;
  border-radius: 14px;
  color: var(--blue);
  background: rgba(11, 120, 255, 0.1);
  transition: transform 0.3s var(--ease), background 0.3s, color 0.3s;
}

.service-card:hover .service-icon {
  color: var(--white);
  background: linear-gradient(120deg, var(--blue), var(--blue-light));
  transform: scale(1.08) rotate(-4deg);
}

.service-card h3 {
  font-size: 19px;
}

.service-card p {
  color: var(--muted);
  font-size: 15px;
  flex-grow: 1;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 14.5px;
  color: var(--blue);
}

.card-link svg {
  transition: transform 0.25s var(--ease);
}

.card-link:hover svg {
  transform: translateX(4px);
}

/* ============ Featured project ============ */
.featured {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 48px;
  align-items: center;
  padding: 48px;
  border-radius: 24px;
  color: var(--white);
  background:
    radial-gradient(circle at 85% 15%, rgba(11, 120, 255, 0.25), transparent 45%),
    linear-gradient(135deg, var(--navy-900), var(--navy-800));
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.featured-media {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.featured-logo {
  width: 130px;
  padding: 12px 22px;
  border-radius: 14px;
  background: var(--white);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3);
}

.featured-locker {
  max-height: 320px;
  width: auto;
  filter: drop-shadow(0 26px 40px rgba(0, 0, 0, 0.45));
  animation: float-bob 6s ease-in-out infinite;
}

.install-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 14px;
  color: var(--green);
  background: rgba(24, 201, 122, 0.12);
  box-shadow: inset 0 0 0 1px rgba(24, 201, 122, 0.4);
}

.badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue-light);
  background: rgba(11, 120, 255, 0.14);
  box-shadow: inset 0 0 0 1px rgba(26, 156, 255, 0.35);
}

.featured-copy h3 {
  font-size: clamp(24px, 2.8vw, 32px);
  margin-top: 14px;
}

.featured-copy > p {
  color: var(--muted-light);
}

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

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
}

.check-list svg {
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--green);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 4px 0 24px;
}

.tags span {
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}

/* ============ Experience timeline ============ */
.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
  max-width: 820px;
  margin-inline: auto;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg, var(--blue), var(--cyan), var(--green));
  opacity: 0.4;
}

.timeline-item {
  position: relative;
  padding: 0 0 34px 52px;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: 3px;
  top: 8px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: inset 0 0 0 4px var(--blue);
}

.timeline-item:first-child .timeline-dot::after {
  content: "";
  position: absolute;
  inset: -7px;
  border-radius: 50%;
  border: 2px solid rgba(11, 120, 255, 0.5);
  animation: pulse-ring 2.2s var(--ease) infinite;
}

@keyframes pulse-ring {
  0% { transform: scale(0.7); opacity: 1; }
  100% { transform: scale(1.5); opacity: 0; }
}

.timeline-card {
  padding: 26px 28px;
}

.timeline-card:hover {
  transform: translateX(6px);
  box-shadow: var(--shadow);
}

.timeline-period {
  display: inline-block;
  margin-bottom: 10px;
  padding: 5px 13px;
  border-radius: 999px;
  font: 600 13px var(--font-mono);
  color: var(--blue);
  background: rgba(11, 120, 255, 0.1);
}

.timeline-card h3 {
  font-size: 19px;
  margin-bottom: 4px;
}

.timeline-company {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 14.5px;
  font-weight: 600;
}

.timeline-card ul {
  margin: 12px 0 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 14.5px;
  display: grid;
  gap: 5px;
}

/* ============ Testimonials ============ */
.section--testimonials {
  background:
    radial-gradient(circle at 12% 18%, rgba(11, 120, 255, 0.14), transparent 42%),
    linear-gradient(150deg, var(--navy-950), var(--navy-800));
  color: var(--white);
}

.section--testimonials .section-heading p {
  color: var(--muted-light);
}

.testimonials {
  overflow: hidden;
}

.testimonials-track {
  display: flex;
  gap: 24px;
  transition: transform 0.55s var(--ease);
}

.testimonial {
  flex: 0 0 calc((100% - 48px) / 3);
  margin: 0;
  padding: 30px 28px 26px;
  position: relative;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(6px);
}

.testimonial:hover {
  transform: translateY(-4px);
  box-shadow: inset 0 0 0 1px rgba(26, 156, 255, 0.4), 0 20px 45px rgba(0, 0, 0, 0.3);
}

.testimonial-quote {
  position: absolute;
  top: 6px;
  right: 20px;
  font-size: 64px;
  font-weight: 800;
  line-height: 1;
  color: rgba(26, 156, 255, 0.25);
}

.testimonial blockquote {
  margin: 0 0 22px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--muted-light);
}

.testimonial-footer {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-weight: 700;
  color: var(--white);
  flex-shrink: 0;
}

.testimonial-info {
  display: flex;
  flex-direction: column;
  font-size: 13.5px;
}

.testimonial-info strong {
  font-size: 14.5px;
}

.testimonial-info span {
  color: var(--muted-light);
}

.testimonial-stars {
  margin-left: auto;
  color: #fbbf24;
  font-size: 14px;
  letter-spacing: 2px;
}

.slider-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 34px;
}

.slider-btn {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  font-size: 18px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s var(--ease);
}

.slider-btn:hover {
  background: rgba(11, 120, 255, 0.5);
  transform: scale(1.06);
}

.slider-dots {
  display: flex;
  gap: 9px;
}

.slider-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: width 0.25s var(--ease), background 0.25s;
}

.slider-dot.is-active {
  width: 26px;
  background: linear-gradient(90deg, var(--blue-light), var(--cyan));
}

/* ============ About ============ */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 56px;
  align-items: center;
}

.about-photo-frame {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-photo-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 24px;
  padding: 2px;
  background: linear-gradient(135deg, var(--blue), transparent 40%, transparent 60%, var(--cyan));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.about-photo-frame img {
  width: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.about-photo-frame:hover img {
  transform: scale(1.03);
}

.about-languages {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
  justify-content: center;
}

.lang-pill {
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13.5px;
  color: var(--muted);
  background: var(--soft);
  box-shadow: inset 0 0 0 1px var(--line);
}

.lang-pill strong {
  color: var(--ink);
}

.about-copy > p {
  color: var(--muted);
  font-size: 16.5px;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 26px 0 30px;
  padding: 22px 24px;
  border-radius: var(--radius);
  background: var(--soft);
  box-shadow: inset 0 0 0 1px var(--line);
}

.about-stats dd {
  margin: 2px 0 0;
  font-size: 13px;
  color: var(--muted);
}

/* ============ Support ============ */
.support-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 36px;
  align-items: center;
  padding: 44px 48px;
  border-radius: 24px;
  background:
    radial-gradient(circle at 90% 10%, rgba(24, 201, 122, 0.18), transparent 50%),
    linear-gradient(135deg, var(--navy-900), var(--navy-800));
  color: var(--white);
  box-shadow: var(--shadow-lg);
}

.support-card img {
  width: 150px;
  animation: float-bob 5s ease-in-out infinite;
}

.support-copy h2 {
  font-size: clamp(24px, 2.6vw, 30px);
}

.support-copy p {
  color: var(--muted-light);
  max-width: 60ch;
}

.support-copy p:last-child {
  margin-bottom: 0;
}

/* ============ FAQ ============ */
.section--faq {
  background: var(--soft);
}

.faq-list {
  display: grid;
  gap: 14px;
}

.faq-item {
  border-radius: var(--radius-sm);
  background: var(--white);
  box-shadow: inset 0 0 0 1px var(--line);
  overflow: hidden;
  transition: box-shadow 0.25s;
}

.faq-item[open] {
  box-shadow: inset 0 0 0 1.5px rgba(11, 120, 255, 0.4), var(--shadow);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary svg {
  flex-shrink: 0;
  color: var(--blue);
  transition: transform 0.3s var(--ease);
}

.faq-item[open] summary svg {
  transform: rotate(180deg);
}

.faq-item p {
  margin: 0;
  padding: 0 24px 22px;
  color: var(--muted);
  font-size: 15px;
}

/* ============ Contact ============ */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 40px;
  align-items: start;
}

.contact-cards {
  display: grid;
  gap: 16px;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px 24px;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: inset 0 0 0 1px var(--line);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow), inset 0 0 0 1px rgba(11, 120, 255, 0.35);
}

.contact-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 13px;
  color: var(--blue);
  background: rgba(11, 120, 255, 0.1);
  flex-shrink: 0;
}

.contact-card strong {
  display: block;
  font-size: 14px;
  margin-bottom: 2px;
}

.contact-card a,
.contact-card div > span {
  font-size: 14.5px;
  color: var(--muted);
}

.contact-card a:hover {
  color: var(--blue);
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: 34px;
  border-radius: 24px;
  background: var(--white);
  box-shadow: var(--shadow), inset 0 0 0 1px var(--line);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  width: 100%;
  padding: 14px 18px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  font: 15px var(--font-sans);
  color: var(--ink);
  background: var(--soft);
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.contact-form textarea {
  resize: vertical;
  min-height: 130px;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--blue);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(11, 120, 255, 0.12);
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--muted);
  cursor: pointer;
}

.consent input {
  margin-top: 3px;
  accent-color: var(--blue);
}

.gs-hp {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  margin: 0;
  overflow: hidden;
}

.form-status {
  margin: 0;
  font-size: 14.5px;
  font-weight: 600;
  min-height: 1.4em;
}

.form-status.is-success { color: var(--green); }
.form-status.is-error { color: #ef4444; }

/* ============ Footer ============ */
.site-footer {
  color: var(--muted-light);
  background: linear-gradient(165deg, var(--navy-950), var(--navy-900));
  padding: 70px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: 44px;
  padding-bottom: 50px;
}

.footer-about p {
  margin-top: 18px;
  font-size: 14.5px;
  max-width: 36ch;
}

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  color: var(--muted-light);
  background: rgba(255, 255, 255, 0.06);
  transition: color 0.2s, background 0.2s, transform 0.2s var(--ease);
}

.footer-social a:hover {
  color: var(--white);
  background: var(--blue);
  transform: translateY(-3px);
}

.footer-col h3 {
  color: var(--white);
  font-size: 15px;
  margin-bottom: 18px;
}

.footer-col a {
  display: block;
  padding: 5px 0;
  font-size: 14.5px;
  transition: color 0.2s, transform 0.2s var(--ease);
}

.footer-col a:hover {
  color: var(--white);
  transform: translateX(4px);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 22px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 13.5px;
}

.footer-legal {
  display: flex;
  gap: 22px;
}

.footer-legal a:hover {
  color: var(--white);
}

/* ============ Cookie banner ============ */
.cookie-banner {
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  z-index: 1800;
  width: min(960px, calc(100% - 32px));
  animation: cookie-in 0.5s var(--ease);
}

@keyframes cookie-in {
  from { opacity: 0; transform: translate(-50%, 24px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

.cookie-banner-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 26px;
  border-radius: 20px;
  color: var(--white);
  background: rgba(4, 14, 34, 0.92);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45), inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(14px);
}

.cookie-banner-icon {
  color: var(--blue-light);
  flex-shrink: 0;
}

.cookie-banner-copy p {
  margin: 4px 0 0;
  font-size: 13.5px;
  color: var(--muted-light);
}

.cookie-banner-copy a {
  color: var(--blue-light);
  text-decoration: underline;
}

.cookie-banner-actions {
  display: flex;
  flex-direction: column;
  gap: 9px;
  flex-shrink: 0;
}

.cookie-banner .btn {
  padding: 10px 20px;
  font-size: 14px;
  justify-content: center;
}

.cookie-banner .btn-ghost {
  color: var(--muted-light);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.2);
}

.cookie-banner .btn-ghost:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

/* ============ Pages / prose / 404 ============ */
.page-main {
  padding-top: 76px;
  min-height: 60vh;
}

.prose h1 {
  font-size: clamp(30px, 4vw, 42px);
  margin-bottom: 26px;
}

.prose h2 {
  font-size: 21px;
  margin: 34px 0 10px;
}

.prose p,
.prose li {
  color: var(--muted);
  font-size: 15.5px;
}

.legal-intro {
  font-size: 17px;
  color: var(--ink);
}

.error-404 {
  text-align: center;
  padding-top: 140px;
}

.error-code {
  font-size: clamp(90px, 16vw, 160px);
  font-weight: 800;
  line-height: 1;
  margin: 0;
}

.error-404 p {
  color: var(--muted);
  max-width: 46ch;
  margin: 14px auto 28px;
}

/* ============ Responsive ============ */
@media (max-width: 1080px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .hero {
    min-height: 0;
  }

  .hero-visual {
    max-width: 620px;
  }

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

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

  .testimonial {
    flex-basis: calc((100% - 24px) / 2);
  }

  .featured {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-photo {
    max-width: 420px;
    margin-inline: auto;
  }

  .support-card {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
  }

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

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

@media (max-width: 760px) {
  .section {
    padding: 68px 0;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 14px 20px 22px;
    background: linear-gradient(150deg, rgba(2, 8, 22, 0.98), rgba(6, 22, 50, 0.98));
    backdrop-filter: blur(14px);
    box-shadow: 0 24px 40px rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
  }

  .nav-open .nav-links {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .nav-links > a:not(.nav-cta) {
    padding: 11px 4px;
    font-size: 16px;
  }

  .nav-cta {
    margin-top: 10px;
    justify-content: center;
  }

  .hero {
    padding-top: 120px;
  }

  .hero-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
  }

  .hero-float {
    display: none;
  }

  .tech-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

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

  .testimonial {
    flex-basis: 100%;
  }

  .featured {
    padding: 30px 22px;
  }

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

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .cookie-banner-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .cookie-banner-actions {
    flex-direction: row;
    width: 100%;
  }

  .cookie-banner-actions .btn {
    flex: 1;
  }
}

/* ============ Motion safety ============ */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .terminal-line {
    visibility: visible;
  }
}

/* ====================================================================
   MOTION THEME — ciemny motyw + animacje sterowane scrollem
   ==================================================================== */

html {
  background: #02060f;
}

body {
  background:
    radial-gradient(circle at 80% -10%, rgba(11, 120, 255, 0.12), transparent 50%),
    radial-gradient(circle at 0% 40%, rgba(34, 211, 238, 0.06), transparent 45%),
    #02060f;
  color: #e8eefb;
}

.section-heading h2,
.prose h1,
.prose h2,
.legal-intro,
.faq-item summary,
.contact-card strong,
.timeline-card h3 {
  color: #ffffff;
}

.section-heading p,
.about-copy > p,
.timeline-company,
.timeline-card ul,
.about-stats dd,
.faq-item p,
.consent,
.prose p,
.prose li,
.error-404 p,
.contact-card a,
.contact-card div > span {
  color: var(--muted-light);
}

.card,
.tech-card,
.faq-item,
.contact-card,
.contact-form,
.about-stats {
  background: rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(6px);
}

.tech-card {
  color: #e8eefb;
}

.tech-card img {
  filter: none;
}

.tech-card:hover,
.contact-card:hover {
  box-shadow: inset 0 0 0 1px rgba(26, 156, 255, 0.45), 0 20px 45px rgba(0, 0, 0, 0.4);
}

.tech-pill,
.lang-pill {
  background: rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.09);
  color: var(--muted-light);
}

.lang-pill strong {
  color: #ffffff;
}

.section--services,
.section--faq {
  background: transparent;
}

.timeline-dot {
  background: #02060f;
}

.timeline-card:hover,
.faq-item[open] {
  box-shadow: inset 0 0 0 1.5px rgba(26, 156, 255, 0.45), 0 20px 45px rgba(0, 0, 0, 0.35);
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.14);
  color: #ffffff;
}

.contact-form input:focus,
.contact-form textarea:focus {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--blue-light);
}

.contact-form ::placeholder {
  color: rgba(159, 177, 201, 0.75);
}

/* ---------- Hero: wyjazd przy scrollu (JS ustawia --hp) ---------- */
.hero-inner {
  will-change: transform, opacity;
}


/* ---------- Proces: pinned horizontal scroll ---------- */
.process {
  position: relative;
  height: 320vh;
}

.process-sticky {
  position: sticky;
  top: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 110px 0 60px;
  overflow: hidden;
}

.process-viewport {
  overflow: hidden;
  padding: 10px 0 26px;
}

.process-track {
  display: flex;
  gap: 26px;
  width: max-content;
  padding-left: max(20px, calc((100vw - 1280px) / 2));
  will-change: transform;
}

.process-card {
  width: min(460px, 78vw);
  padding: 42px 40px;
  border-radius: 24px;
  background:
    radial-gradient(circle at 85% 10%, rgba(11, 120, 255, 0.14), transparent 50%),
    linear-gradient(135deg, rgba(7, 27, 59, 0.95), rgba(3, 13, 36, 0.95));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1), 0 24px 60px rgba(0, 0, 0, 0.4);
}

.process-num {
  display: block;
  margin-bottom: 18px;
  font: 800 44px var(--font-mono);
  line-height: 1;
  background: linear-gradient(90deg, var(--blue-light), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.process-card h3 {
  font-size: 23px;
  color: #ffffff;
}

.process-card p {
  margin: 0;
  color: var(--muted-light);
  font-size: 15.5px;
}

.process-card--cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  background:
    radial-gradient(circle at 20% 90%, rgba(24, 201, 122, 0.16), transparent 55%),
    linear-gradient(135deg, rgba(8, 38, 84, 0.97), rgba(4, 18, 46, 0.97));
}

.process-card--cta .btn {
  margin-top: 18px;
}

.process-progress {
  width: min(1280px, calc(100% - 40px));
  margin: 26px auto 0;
  height: 3px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.process-progress span {
  display: block;
  height: 100%;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
}

/* ---------- Usługi: sticky split ---------- */
.services-split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 64px;
  align-items: start;
}

.services-rail {
  position: sticky;
  top: 120px;
}

.services-nav {
  display: grid;
  gap: 6px;
  margin-top: 26px;
}

.services-nav-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 15px 18px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 16px;
  color: var(--muted-light);
  transition: background 0.25s, color 0.25s, transform 0.25s var(--ease);
}

.services-nav-num {
  font: 700 13px var(--font-mono);
  color: rgba(159, 177, 201, 0.6);
  transition: color 0.25s;
}

.services-nav-item:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
}

.services-nav-item.is-active {
  color: #ffffff;
  background: rgba(11, 120, 255, 0.13);
  box-shadow: inset 0 0 0 1px rgba(26, 156, 255, 0.35);
  transform: translateX(8px);
}

.services-nav-item.is-active .services-nav-num {
  color: var(--blue-light);
}

.services-panels {
  display: grid;
  gap: 28px;
}

.service-panel {
  position: relative;
  padding: 40px 42px;
  border-radius: 24px;
  background:
    radial-gradient(circle at 90% 8%, rgba(11, 120, 255, 0.13), transparent 50%),
    linear-gradient(135deg, rgba(7, 27, 59, 0.95), rgba(3, 13, 36, 0.95));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  overflow: hidden;
  transition: box-shadow 0.3s, transform 0.3s var(--ease);
}

.service-panel:hover {
  transform: translateY(-4px);
  box-shadow: inset 0 0 0 1px rgba(26, 156, 255, 0.4), 0 24px 55px rgba(0, 0, 0, 0.4);
}

.service-panel h3 {
  font-size: 22px;
  color: #ffffff;
}

.service-panel p {
  color: var(--muted-light);
  max-width: 48ch;
}

.service-panel .service-icon {
  margin-bottom: 18px;
}

.service-panel-glyph {
  position: absolute;
  right: -26px;
  bottom: -30px;
  color: rgba(26, 156, 255, 0.1);
  transform: rotate(-8deg);
  pointer-events: none;
}


@media (max-width: 1080px) {
  .services-split {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .services-rail {
    position: static;
  }

  .services-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  .services-nav-item.is-active {
    transform: none;
  }
}

@media (max-width: 860px) {
  .process {
    height: auto;
  }

  .process-sticky {
    position: static;
    min-height: 0;
    padding: 0;
    overflow: visible;
  }

  .process-viewport {
    overflow: visible;
  }

  .process-track {
    flex-direction: column;
    width: auto;
    padding-left: 0;
    transform: none !important;
    width: min(1280px, calc(100% - 40px));
    margin-inline: auto;
  }

  .process-card {
    width: 100%;
  }

  .process-progress {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .process {
    height: auto;
  }

  .process-sticky {
    position: static;
    min-height: 0;
  }

  .dock-terminal {
    display: none;
  }
}

/* ---------- Link do opinii na wordpress.org ---------- */
.testimonials-cta {
  text-align: center;
  margin: 28px 0 0;
}

.testimonials-cta a {
  color: var(--blue-light);
  font-weight: 600;
  font-size: 15px;
}

.testimonials-cta a:hover {
  text-decoration: underline;
}

/* ---------- Dokowana konsola (podąża za scrollem) ---------- */
.dock-terminal {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 1600;
  width: 350px;
  border-radius: 16px;
  background: rgba(3, 10, 26, 0.92);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.1),
    0 0 40px rgba(11, 120, 255, 0.18),
    0 24px 55px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(12px);
  overflow: hidden;
  opacity: 0;
  transform: translateY(24px) scale(0.96);
  pointer-events: none;
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}

.dock-terminal.is-visible {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.dock-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.dock-title {
  margin-left: 8px;
  font: 11.5px var(--font-mono);
  color: var(--muted-light);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dock-close {
  margin-left: auto;
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted-light);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.dock-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.dock-body {
  padding: 14px 16px 16px;
  min-height: 96px;
  font: 12.5px/1.85 var(--font-mono);
}

.dock-line {
  margin: 0;
  color: var(--muted-light);
}

.dock-line--cmd {
  color: #ffffff;
}

.dock-prompt {
  color: var(--green);
  margin-right: 8px;
}

@media (max-width: 1080px) {
  .dock-terminal {
    display: none;
  }
}

/* ---------- Fonty self-hosted (Inter + JetBrains Mono, variable) ---------- */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('assets/fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('assets/fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url('assets/fonts/jetbrainsmono-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url('assets/fonts/jetbrainsmono-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Drugi projekt: odwrócony układ + mockup przeglądarki ---------- */
.featured + .featured {
  margin-top: 28px;
}

.featured--reverse .featured-copy {
  order: 1;
}

.featured--reverse .featured-media {
  order: 2;
}

.browser-mockup {
  margin: 0;
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  background: #0b1830;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12), 0 26px 60px rgba(0, 0, 0, 0.45);
}

.browser-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.06);
}

.browser-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
}

.browser-dot:nth-child(1) { background: #ff5f57; }
.browser-dot:nth-child(2) { background: #febc2e; }
.browser-dot:nth-child(3) { background: #28c840; }

.browser-url {
  margin-left: 12px;
  padding: 3px 14px;
  border-radius: 999px;
  font: 12px var(--font-mono);
  color: var(--muted-light);
  background: rgba(0, 0, 0, 0.25);
}

.browser-mockup img {
  width: 100%;
  display: block;
  transition: transform 6s var(--ease);
}

.browser-mockup:hover img {
  transform: translateY(calc(-100% + 320px));
}

@media (max-width: 1080px) {
  .featured--reverse .featured-copy {
    order: 2;
  }

  .featured--reverse .featured-media {
    order: 1;
  }

  .browser-mockup:hover img {
    transform: none;
  }
}
