/* ============================================================
   CLEANFAST — style.css
   ============================================================ */

:root {
  --white: #FFFFFF;
  --dark: #0C1117;
  --dark-2: #131A22;
  --light: #F4F6F7;
  --accent: #00E5C8;        /* electric turquoise — akcent na ciemnym */
  --accent-ink: #00A38E;    /* ciemniejszy wariant na białym tle */
  --text: #0C1117;
  --text-muted: #5A6672;
  --text-inverse: rgba(255, 255, 255, 0.92);
  --text-inverse-muted: rgba(255, 255, 255, 0.55);
  --font: 'Manrope', system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --nav-h: 84px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
}

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  overflow-x: clip;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

.container {
  width: min(1320px, 100% - 48px);
  margin-inline: auto;
}

.section { padding: clamp(96px, 12vw, 180px) 0; }

/* ============ Typografia ============ */

.display {
  font-size: clamp(44px, 7.2vw, 104px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.display-xl { font-size: clamp(48px, 8vw, 116px); }

.display .accent { color: var(--accent-ink); }
.process .accent, .contact .accent { color: var(--accent); }

.kicker {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-ink);
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.kicker::before {
  content: "";
  width: 42px;
  height: 2px;
  background: var(--accent);
}

.kicker-dark { color: var(--accent); }

.lead {
  font-size: clamp(17px, 1.4vw, 21px);
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 560px;
}

.lead-dark { color: var(--text-inverse-muted); }

/* ============ Przyciski ============ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 16px 32px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.35s var(--ease), background 0.35s var(--ease),
              color 0.35s var(--ease), border-color 0.35s var(--ease);
  will-change: transform;
}

.btn-primary {
  background: var(--accent);
  color: var(--dark);
}
.btn-primary:hover { background: #33EDD6; }

.btn-ghost {
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
  backdrop-filter: blur(4px);
}
.btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, 0.08); }

.btn-lg { padding: 20px 44px; font-size: 17px; }

/* ============ Nav ============ */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease),
              backdrop-filter 0.4s var(--ease);
}

.nav-inner {
  width: min(1440px, 100% - 48px);
  margin-inline: auto;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.logo {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #fff;
  transition: color 0.4s var(--ease);
}
.logo span { color: var(--accent); }

.nav-links {
  display: flex;
  gap: 36px;
}

.nav-link {
  position: relative;
  font-size: 15px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  transition: color 0.3s var(--ease);
  padding: 6px 0;
}

/* animated underline */
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease);
}
.nav-link:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-link:hover { color: #fff; }

.btn-nav {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
  color: #fff;
  padding: 12px 24px;
  font-size: 14px;
  backdrop-filter: blur(6px);
}
.btn-nav:hover { background: var(--accent); border-color: var(--accent); color: var(--dark); }

/* nav po scrollu */
.nav.scrolled {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(12, 17, 23, 0.08);
}
.nav.scrolled .logo { color: var(--dark); }
.nav.scrolled .nav-link { color: rgba(12, 17, 23, 0.7); }
.nav.scrolled .nav-link:hover { color: var(--dark); }
.nav.scrolled .btn-nav {
  background: var(--dark);
  border-color: var(--dark);
  color: #fff;
}
.nav.scrolled .btn-nav:hover { background: var(--accent); border-color: var(--accent); color: var(--dark); }

/* burger */
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 110;
}
.burger span {
  display: block;
  width: 26px;
  height: 2px;
  margin-inline: auto;
  background: #fff;
  transition: transform 0.35s var(--ease), background 0.35s var(--ease);
}
.nav.scrolled .burger span, .burger.open span { background: var(--dark); }
.burger.open span:nth-child(1) { transform: translateY(4.5px) rotate(45deg); }
.burger.open span:nth-child(2) { transform: translateY(-4.5px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 105;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease);
}
.mobile-menu.open { opacity: 1; pointer-events: auto; }

/* nav nad otwartym menu, logo w ciemnej wersji */
.nav:has(.burger.open) {
  z-index: 110;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.nav:has(.burger.open) .logo { color: var(--dark); }
.mobile-menu nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}
.mobile-menu nav a {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.mobile-menu nav .btn { font-size: 16px; margin-top: 16px; }

/* ============ Hero ============ */

.hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--dark);
  animation: heroZoom 14s var(--ease) forwards;
}

@keyframes heroZoom {
  from { transform: scale(1.12); }
  to   { transform: scale(1); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(12, 17, 23, 0.82) 0%, rgba(12, 17, 23, 0.45) 55%, rgba(12, 17, 23, 0.25) 100%),
    linear-gradient(to top, rgba(12, 17, 23, 0.55), transparent 40%);
}

.hero-kicker {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.28em;
  color: var(--accent);
  margin-bottom: 28px;
  opacity: 0;
  animation: fadeUp 1s var(--ease) 0.2s forwards;
}

.hero-title {
  font-size: clamp(44px, 7.6vw, 108px);
  font-weight: 800;
  line-height: 1.03;
  letter-spacing: -0.03em;
  margin-bottom: 32px;
}
.hero-title em { font-style: normal; color: var(--accent); }

/* text reveal linia po linii */
.hero-title .line {
  display: block;
  overflow: hidden;
}
.hero-title .line span {
  display: block;
  transform: translateY(110%);
  animation: lineUp 1.1s var(--ease) forwards;
}
.hero-title .line:nth-child(1) span { animation-delay: 0.35s; }
.hero-title .line:nth-child(2) span { animation-delay: 0.5s; }

@keyframes lineUp { to { transform: translateY(0); } }

.hero-sub {
  font-size: clamp(16px, 1.4vw, 20px);
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 44px;
  opacity: 0;
  animation: fadeUp 1s var(--ease) 0.85s forwards;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  opacity: 0;
  animation: fadeUp 1s var(--ease) 1.05s forwards;
}

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

.hero-scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 56px;
  overflow: hidden;
}
.hero-scroll span {
  display: block;
  width: 1px;
  height: 100%;
  background: rgba(255, 255, 255, 0.6);
  animation: scrollLine 2.2s var(--ease) infinite;
}
@keyframes scrollLine {
  0% { transform: translateY(-100%); }
  55% { transform: translateY(0); }
  100% { transform: translateY(100%); }
}

/* ============ Intro ============ */

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

.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 80px);
  margin-top: clamp(48px, 6vw, 88px);
}

/* ============ Usługi ============ */

.services { background: var(--dark); }

.services-head {
  padding: clamp(96px, 12vw, 160px) 24px clamp(56px, 7vw, 96px);
  color: #fff;
}

.svc {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 88vh;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}

.svc-media {
  position: absolute;
  inset: -8% 0;
  z-index: -2;
  will-change: transform;
}
.svc-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--dark-2);
  transform: scale(1.02);
  transition: transform 1.2s var(--ease);
}
.svc:hover .svc-media img { transform: scale(1.08); }

.svc-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, rgba(12, 17, 23, 0.88) 0%, rgba(12, 17, 23, 0.35) 45%, rgba(12, 17, 23, 0.25) 100%);
  transition: background 0.6s var(--ease);
}

.svc-content {
  padding-bottom: clamp(56px, 8vw, 104px);
  padding-top: 120px;
}

.svc-num {
  display: block;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 16px;
}

.svc-title {
  font-size: clamp(40px, 6.4vw, 92px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 18px;
}

.svc-desc {
  font-size: clamp(16px, 1.4vw, 20px);
  color: rgba(255, 255, 255, 0.75);
  max-width: 520px;
  margin-bottom: 24px;
}

.svc-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--accent);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.svc-link i {
  font-style: normal;
  transition: transform 0.4s var(--ease);
}
.svc:hover .svc-link { opacity: 1; transform: translateY(0); }
.svc:hover .svc-link i { transform: translateX(6px); }

@media (hover: none) {
  .svc-link { opacity: 1; transform: none; }
}

/* ============ Liczby ============ */

.stats { background: var(--light); }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(40px, 5vw, 64px);
}

.stat {
  border-top: 2px solid rgba(12, 17, 23, 0.12);
  padding-top: 28px;
}

.stat-num {
  display: block;
  font-size: clamp(40px, 4.4vw, 68px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--dark);
  white-space: nowrap;
}
.stat-num span { color: var(--accent-ink); }

.stat-label {
  display: block;
  margin-top: 10px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-muted);
}

/* ============ Proces (dark) ============ */

.process {
  background: var(--dark);
  color: var(--text-inverse);
}

.process-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(56px, 7vw, 120px);
  align-items: start;
}

.process-left { position: sticky; top: 140px; }
.process-left .lead { margin-top: 32px; }

.process-steps {
  display: flex;
  flex-direction: column;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 34px 0 34px 56px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  opacity: 0.32;
  transition: opacity 0.6s var(--ease);
}
.step:first-child { border-top: 1px solid rgba(255, 255, 255, 0.1); }
.step.active { opacity: 1; }

/* linia + kropka */
.step::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 46px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.3);
  transition: background 0.5s var(--ease), border-color 0.5s var(--ease),
              box-shadow 0.5s var(--ease);
}
.step.active::before {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 20px rgba(0, 229, 200, 0.55);
}

.step-name {
  display: block;
  font-size: clamp(24px, 2.4vw, 34px);
  font-weight: 800;
  letter-spacing: 0.06em;
  transition: color 0.5s var(--ease);
}
.step.active .step-name { color: var(--accent); }

.step-desc {
  display: block;
  margin-top: 6px;
  font-size: 16px;
  color: var(--text-inverse-muted);
}

/* ============ Sticky storytelling ============ */

.story {
  position: relative;
  height: 420vh;
  background: var(--white);
}

.story-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: center;
  width: min(1320px, 100% - 48px);
}

.story-left .display { font-size: clamp(36px, 4.6vw, 68px); }

.story-list {
  margin-top: clamp(32px, 4vw, 56px);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.story-list li {
  font-size: clamp(22px, 2.4vw, 34px);
  font-weight: 800;
  letter-spacing: 0.04em;
  color: rgba(12, 17, 23, 0.22);
  transition: color 0.5s var(--ease), transform 0.5s var(--ease);
  display: flex;
  align-items: center;
  gap: 16px;
}

.story-list li::before {
  content: "";
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.5s var(--ease);
}

.story-list li.active {
  color: var(--dark);
  transform: translateX(4px);
}
.story-list li.active::before { width: 36px; }

.story-right {
  position: relative;
  height: min(72vh, 640px);
  border-radius: 16px;
  overflow: hidden;
  background: var(--light);
}

.story-right figure {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 0.7s var(--ease), transform 1.1s var(--ease);
}
.story-right figure.active {
  opacity: 1;
  transform: scale(1);
}
.story-right img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ============ O nas ============ */

.about { background: var(--light); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(48px, 6vw, 100px);
  align-items: center;
}

.about-media {
  border-radius: 16px;
  overflow: hidden;
  height: min(72vh, 620px);
}
.about-media img {
  width: 100%;
  height: 112%;
  object-fit: cover;
  background: var(--dark-2);
}

.about-text .lead { margin-bottom: 40px; }

.about-points li {
  position: relative;
  padding: 18px 0 18px 36px;
  font-size: 17px;
  font-weight: 600;
  border-top: 1px solid rgba(12, 17, 23, 0.1);
}
.about-points li:last-child { border-bottom: 1px solid rgba(12, 17, 23, 0.1); }
.about-points li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--accent-ink);
  font-weight: 800;
}

.about-note {
  margin-top: 28px;
  font-size: 15px;
  color: var(--text-muted);
}
.about-note strong { color: var(--text); }

/* ============ Kontakt ============ */

.contact {
  background: var(--dark);
  color: var(--text-inverse);
}

.contact .lead { margin-top: 32px; }

.contact-cta {
  margin-top: clamp(40px, 5vw, 64px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(28px, 4vw, 56px);
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.contact-details a {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-inverse-muted);
  transition: color 0.3s var(--ease);
  width: fit-content;
}
.contact-details a:hover { color: var(--accent); }

/* ============ Footer ============ */

.footer {
  background: var(--dark);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 40px 0;
  color: var(--text-inverse-muted);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo-footer { font-size: 17px; }

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.footer-links a {
  font-size: 14px;
  font-weight: 600;
  transition: color 0.3s var(--ease);
}
.footer-links a:hover { color: #fff; }

.footer-copy { font-size: 13px; }

.footer-legal {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
}
.footer-legal strong {
  font-weight: 700;
  color: rgba(255, 255, 255, 0.65);
}

/* ============ Reveal on scroll ============ */

.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: var(--d, 0s);
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ============ Custom cursor: komiksowa gąbeczka ============ */

@media (hover: hover) and (pointer: fine) {
  html, body, a, button {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Ccircle cx='25' cy='6' r='2.2' fill='%23CBF1FF' stroke='%230C1117' stroke-width='1.4'/%3E%3Ccircle cx='19.5' cy='3.5' r='1.3' fill='%23CBF1FF' stroke='%230C1117' stroke-width='1.2'/%3E%3Crect x='2' y='10' width='28' height='19' rx='8.5' fill='%23FFD84D' stroke='%230C1117' stroke-width='2'/%3E%3Cellipse cx='9.5' cy='14' rx='3.2' ry='1.5' fill='%23FFF0B8'/%3E%3Ccircle cx='10' cy='19' r='2' fill='%23E0AC2E'/%3E%3Ccircle cx='18' cy='23.5' r='1.7' fill='%23E0AC2E'/%3E%3Ccircle cx='23.5' cy='16.5' r='1.4' fill='%23E0AC2E'/%3E%3Ccircle cx='13' cy='25' r='1.1' fill='%23E0AC2E'/%3E%3Ccircle cx='25.5' cy='22' r='1' fill='%23E0AC2E'/%3E%3C/svg%3E") 16 16, auto;
  }
}

.cursor-ring {
  position: fixed;
  top: 0; left: 0;
  z-index: 999;
  pointer-events: none;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  display: none;
}

@media (hover: hover) and (pointer: fine) {
  .cursor-ring { display: flex; }
}

.cursor-ring {
  width: 40px;
  height: 40px;
  border: 1.5px solid rgba(0, 229, 200, 0.65);
  align-items: center;
  justify-content: center;
  transition: width 0.35s var(--ease), height 0.35s var(--ease),
              background 0.35s var(--ease), border-color 0.35s var(--ease);
}

.cursor-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--dark);
  opacity: 0;
  transition: opacity 0.25s var(--ease);
  white-space: nowrap;
}

.cursor-ring.is-view {
  width: 96px;
  height: 96px;
  background: var(--accent);
  border-color: var(--accent);
}
.cursor-ring.is-view .cursor-label { opacity: 1; }

.cursor-ring.is-link {
  width: 56px;
  height: 56px;
  border-color: var(--accent);
}

/* ============ Responsywność ============ */

@media (max-width: 1024px) {
  .nav-links, .btn-nav { display: none; }
  .burger { display: flex; }

  .process-grid { grid-template-columns: 1fr; }
  .process-left { position: static; }

  .story { height: auto; }
  .story-sticky { position: static; height: auto; padding: 96px 0; }
  .story-grid { grid-template-columns: 1fr; }
  .story-right { height: 56vh; }
  .story-right figure { position: absolute; }

  .about-grid { grid-template-columns: 1fr; }
  .about-media { height: 52vh; }
}

@media (max-width: 720px) {
  .display { font-size: clamp(34px, 9.4vw, 44px); }
  .display-xl { font-size: clamp(36px, 10vw, 48px); }
  .hero-title { font-size: clamp(38px, 10.4vw, 48px); }
  .intro-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .svc { min-height: 76vh; }
  .br-desktop { display: none; }
  .hero-cta .btn { width: 100%; }
  .footer-inner { flex-direction: column; text-align: center; }
}

/* ============ Reduced motion ============ */

@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; }
  .hero-title .line span { transform: none; }
  .hero-kicker, .hero-sub, .hero-cta { opacity: 1; }
}
