@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap");
@import url("https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;700&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
:root {
  --p: #7c3aed;
  --p2: #a855f7;
  --p3: #c084fc;
  --blk: #060608;
  --g1: #111115;
  --g2: #1a1a20;
  --s: #c0c0c0;
  --txt: #f0f0f0;
  --mut: #666;
}
html {
  scroll-behavior: smooth;
}
body {
  background: var(--blk);
  color: var(--txt);
  font-family: "Inter", sans-serif;
  overflow-x: hidden;
}
::-webkit-scrollbar {
  width: 3px;
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--p), var(--p2));
}

/* ================================================================
   CURSOR
   ================================================================ */
#cursor {
  position: fixed;
  width: 12px;
  height: 12px;
  background: var(--p2);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.1s;
  mix-blend-mode: difference;
}
#cursor-trail {
  position: fixed;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(168, 85, 247, 0.4);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition:
    left 0.12s ease,
    top 0.12s ease;
}

/* ================================================================
   PRELOADER
   ================================================================ */
#preloader {
  position: fixed;
  inset: 0;
  background: var(--blk);
  z-index: 9990;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 1.5rem;
}
.pre-logo {
  font-size: 3rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  opacity: 0;
  animation: preIn 0.6s 0.2s forwards;
}
.pre-logo span {
  color: var(--p2);
}
.pre-bar {
  width: 200px;
  height: 2px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
}
.pre-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--p), var(--p2), var(--p3));
  animation: preFill 1.4s 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  width: 0;
}
@keyframes preIn {
  to {
    opacity: 1;
  }
}
@keyframes preFill {
  to {
    width: 100%;
  }
}

/* ================================================================
   NAV
   ================================================================ */
nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 1.2rem 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.4s;
}
nav.scrolled {
  background: rgba(6, 6, 8, 0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(124, 58, 237, 0.2);
}
.logo {
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: #fff;
  text-decoration: none;
}
.logo span {
  color: var(--p2);
}
.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}
.nav-links a {
  color: var(--mut);
  text-decoration: none;
  font-size: 0.88rem;
  transition: color 0.3s;
  position: relative;
}
.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--p2);
  transition: width 0.3s;
}
.nav-links a:hover {
  color: #fff;
}
.nav-links a:hover::after {
  width: 100%;
}
.nav-cta {
  background: linear-gradient(135deg, var(--p), var(--p2));
  color: #fff;
  border: none;
  padding: 0.65rem 1.5rem;
  border-radius: 50px;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}
.nav-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--p2), var(--p3));
  opacity: 0;
  transition: 0.3s;
}
.nav-cta:hover::before {
  opacity: 1;
}
.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(124, 58, 237, 0.5);
}
.nav-cta span {
  position: relative;
  z-index: 1;
}

/* ================================================================
   HERO
   ================================================================ */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 5%;
  position: relative;
  overflow: hidden;
}
#c1 {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 960px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(124, 58, 237, 0.12);
  border: 1px solid rgba(124, 58, 237, 0.35);
  color: var(--p2);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: 2rem;
  animation: fadeDown 0.8s 0.2s both;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.dot {
  width: 7px;
  height: 7px;
  background: var(--p2);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(168, 85, 247, 0.6);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(168, 85, 247, 0);
  }
}
.glitch-wrap {
  margin-bottom: 1.5rem;
  animation: fadeUp 0.9s 0.3s both;
}
.glitch {
  font-size: clamp(3.5rem, 9vw, 7rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1;
  position: relative;
  color: #fff;
  display: inline-block;
}
.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
.glitch::before {
  color: #a855f7;
  animation: glitch1 3s infinite;
  clip-path: polygon(0 0, 100% 0, 100% 35%, 0 35%);
}
.glitch::after {
  color: #22d3ee;
  animation: glitch2 3s infinite;
  clip-path: polygon(0 65%, 100% 65%, 100% 100%, 0 100%);
}
@keyframes glitch1 {
  0%,
  90%,
  100% {
    transform: none;
    opacity: 0;
  }
  91% {
    transform: translate(-3px, 1px);
    opacity: 0.8;
  }
  93% {
    transform: translate(3px, -1px);
    opacity: 0.8;
  }
  95% {
    transform: translate(-1px, 2px);
    opacity: 0.8;
  }
  97% {
    transform: none;
    opacity: 0;
  }
}
@keyframes glitch2 {
  0%,
  88%,
  100% {
    transform: none;
    opacity: 0;
  }
  89% {
    transform: translate(3px, 2px);
    opacity: 0.8;
  }
  91% {
    transform: translate(-3px, -2px);
    opacity: 0.8;
  }
  93% {
    transform: translate(2px, 1px);
    opacity: 0.8;
  }
  95% {
    transform: none;
    opacity: 0;
  }
}
.gradient-title {
  font-size: clamp(3.5rem, 9vw, 7rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1;
  background: linear-gradient(
    135deg,
    #c0c0c0 0%,
    #fff 40%,
    #a855f7 70%,
    #c084fc 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200%;
  animation:
    shimmer 4s linear infinite,
    fadeUp 0.9s 0.4s both;
}
@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}
.hero-sub {
  font-size: 1.1rem;
  color: var(--mut);
  max-width: 560px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
  animation: fadeUp 0.9s 0.5s both;
}
.hero-btns {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeUp 0.9s 0.6s both;
}
.btn-mag {
  position: relative;
  padding: 0.95rem 2.2rem;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: box-shadow 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  border: none;
}
.btn-mag-primary {
  background: linear-gradient(135deg, var(--p), var(--p2));
  color: #fff;
}
.btn-mag-primary:hover {
  box-shadow: 0 0 40px rgba(124, 58, 237, 0.6);
}
.btn-mag-outline {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.btn-mag-outline:hover {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.05);
}
.btn-inner {
  position: relative;
  z-index: 1;
  pointer-events: none;
}
.stat-row {
  display: flex;
  gap: 3rem;
  justify-content: center;
  margin-top: 3.5rem;
  flex-wrap: wrap;
  animation: fadeUp 0.9s 0.7s both;
}
.stat {
  text-align: center;
}
.stat-num {
  font-size: 2.8rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--s), #fff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
}
.stat-label {
  color: var(--mut);
  font-size: 0.82rem;
  margin-top: 0.3rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.scroll-ind {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  animation: fadeUp 1s 1s both;
}
.scroll-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(var(--p2), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine {
  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;
  }
}
.scroll-text {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--mut);
  text-transform: uppercase;
}

/* ================================================================
   MEGA FLIP SECTION
   ================================================================ */
#codeflip {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  perspective: 2000px;
  background: var(--blk);
  display: flex;
  align-items: center;
  justify-content: center;
}
.flip-glow {
  position: absolute;
  width: 800px;
  height: 800px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(124, 58, 237, 0.18) 0%,
    transparent 70%
  );
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.2s;
}
#codeflip.flipped .flip-glow {
  opacity: 1;
}
.flip-universe {
  width: 100%;
  max-width: 1100px;
  padding: 2rem 5%;
  transform-style: preserve-3d;
  position: relative;
}
.flip-front {
  text-align: center;
  padding: 6rem 2rem;
  transition:
    transform 1s cubic-bezier(0.86, 0, 0.07, 1),
    opacity 0.5s;
  transform-origin: center bottom;
  transform: rotateX(0deg);
}
.flip-front-eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--p2);
  font-weight: 700;
  margin-bottom: 1.4rem;
}
.flip-front h2 {
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin-bottom: 1.4rem;
}
.flip-front h2 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--p2), var(--p3), #60a5fa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.flip-front p {
  color: var(--mut);
  font-size: 1.05rem;
  line-height: 1.75;
  max-width: 520px;
  margin: 0 auto;
}
.flip-arrow {
  margin-top: 3rem;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--mut);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  animation: arrowBounce 2s ease-in-out infinite;
}
.flip-arrow svg {
  opacity: 0.4;
}
@keyframes arrowBounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(6px);
  }
}
#codeflip.flipped .flip-front {
  transform: rotateX(85deg) translateY(-60px);
  opacity: 0;
  pointer-events: none;
}
.flip-back {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 5%;
  transform: rotateX(-85deg) translateY(60px);
  opacity: 0;
  transition:
    transform 1s 0.15s cubic-bezier(0.86, 0, 0.07, 1),
    opacity 0.4s 0.1s;
  transform-origin: center top;
  pointer-events: none;
}
#codeflip.flipped .flip-back {
  transform: rotateX(0deg) translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.term-headline {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  margin-bottom: 2rem;
  text-align: center;
  opacity: 0;
  transform: translateY(-20px);
  transition:
    opacity 0.6s 0.8s,
    transform 0.6s 0.8s;
}
#codeflip.flipped .term-headline {
  opacity: 1;
  transform: none;
}
.term-headline span {
  color: var(--p2);
}

/* TERMINAL */
.terminal {
  width: 100%;
  max-width: 860px;
  background: #080810;
  border-radius: 18px;
  border: 1px solid rgba(124, 58, 237, 0.35);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04),
    0 30px 80px rgba(0, 0, 0, 0.6),
    0 0 80px rgba(124, 58, 237, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  overflow: hidden;
  font-family: "JetBrains Mono", monospace;
}
.term-bar {
  background: #111118;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 0.85rem 1.3rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.tb {
  width: 13px;
  height: 13px;
  border-radius: 50%;
}
.tb1 {
  background: #ff5f57;
}
.tb2 {
  background: #febc2e;
}
.tb3 {
  background: #28c840;
}
.term-title {
  margin-left: 0.6rem;
  font-size: 0.73rem;
  color: #555;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.term-title-dot {
  width: 6px;
  height: 6px;
  background: var(--p2);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
.term-tabs {
  display: flex;
  background: #0c0c14;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding: 0 1rem;
  overflow: hidden;
}
.term-tab {
  padding: 0.55rem 1.1rem;
  font-size: 0.72rem;
  color: #444;
  font-family: "JetBrains Mono", monospace;
  border-bottom: 2px solid transparent;
  transition:
    color 0.3s,
    border-color 0.3s;
  white-space: nowrap;
}
.term-tab.active {
  color: var(--p2);
  border-bottom-color: var(--p2);
}
.term-body {
  padding: 1.6rem 0;
  min-height: 340px;
  overflow: hidden;
}
.code-line {
  display: flex;
  align-items: baseline;
  padding: 0.1rem 1.6rem;
  opacity: 0;
  transform: translateX(-12px);
  transition:
    opacity 0.35s,
    transform 0.35s;
  font-size: 0.8rem;
  line-height: 1.85;
  white-space: nowrap;
  gap: 0;
}
.code-line.show {
  opacity: 1;
  transform: none;
}
.code-line:hover {
  background: rgba(124, 58, 237, 0.06);
}
.ln {
  color: #333;
  font-size: 0.7rem;
  min-width: 2.5rem;
  padding-right: 1.2rem;
  text-align: right;
  user-select: none;
  flex-shrink: 0;
}
.code-content {
  flex: 1;
  overflow: hidden;
}
.c-cm {
  color: #4b5563;
}
.c-kw {
  color: #c084fc;
}
.c-fn {
  color: #60a5fa;
}
.c-str {
  color: #86efac;
}
.c-num {
  color: #fb923c;
}
.c-op {
  color: #e2e8f0;
}
.c-cls {
  color: #f472b6;
}
.c-prop {
  color: #93c5fd;
}
.c-bool {
  color: #f97316;
}
.c-indent {
  display: inline-block;
  width: 1.4rem;
}
.c-cursor {
  display: inline-block;
  width: 2px;
  height: 0.85em;
  background: var(--p2);
  vertical-align: middle;
  animation: cblink 0.75s step-end infinite;
  margin-left: 1px;
}
@keyframes cblink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}
.term-status {
  background: #0c0c14;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 0.45rem 1.6rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.65rem;
  font-family: "JetBrains Mono", monospace;
  color: #444;
}
.status-left {
  display: flex;
  gap: 1.2rem;
  align-items: center;
}
.status-branch {
  color: var(--p2);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.status-ok {
  color: #4ade80;
}
.skill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  margin-top: 1.8rem;
  max-width: 860px;
  width: 100%;
}
.sk {
  background: rgba(124, 58, 237, 0.1);
  border: 1px solid rgba(124, 58, 237, 0.25);
  color: var(--p3);
  padding: 0.3rem 0.85rem;
  border-radius: 50px;
  font-size: 0.73rem;
  font-weight: 600;
  font-family: "JetBrains Mono", monospace;
  opacity: 0;
  transform: scale(0.85) translateY(6px);
  transition:
    opacity 0.35s,
    transform 0.35s;
}
.sk.show {
  opacity: 1;
  transform: none;
}
.sk:hover {
  background: rgba(124, 58, 237, 0.22);
  border-color: rgba(168, 85, 247, 0.5);
  color: #fff;
}

/* ================================================================
   USŁUGI
   ================================================================ */
#uslugi {
  padding: 7rem 5%;
  background: var(--blk);
  overflow: hidden;
}
.section-header {
  margin-bottom: 4rem;
}
.section-label {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--p2);
  margin-bottom: 0.7rem;
  font-weight: 700;
}
.section-title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.section-title .s {
  background: linear-gradient(135deg, var(--s), #fff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.section-sub {
  color: var(--mut);
  font-size: 1rem;
  max-width: 500px;
  line-height: 1.7;
  margin-top: 0.8rem;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}
.scard {
  background: var(--g1);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  padding: 2rem;
  position: relative;
  overflow: hidden;
  cursor: default;
  transition:
    transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275),
    border-color 0.4s;
}
.scard::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at var(--mx, 50%) var(--my, 50%),
    rgba(124, 58, 237, 0.12),
    transparent 60%
  );
  opacity: 0;
  transition: 0.4s;
}
.scard:hover {
  transform: translateY(-6px) scale(1.01);
  border-color: rgba(124, 58, 237, 0.4);
}
.scard:hover::before {
  opacity: 1;
}
.scard-glow {
  position: absolute;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.3), transparent 70%);
  top: -20px;
  right: -20px;
  opacity: 0;
  transition: 0.4s;
}
.scard:hover .scard-glow {
  opacity: 1;
}
.scard-icon {
  font-size: 2.2rem;
  margin-bottom: 1.3rem;
  display: block;
}
.scard h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
}
.scard p {
  color: var(--mut);
  font-size: 0.88rem;
  line-height: 1.65;
}
.scard-tag {
  display: inline-block;
  background: rgba(124, 58, 237, 0.15);
  border: 1px solid rgba(124, 58, 237, 0.3);
  color: var(--p2);
  font-size: 0.73rem;
  padding: 0.25rem 0.8rem;
  border-radius: 50px;
  margin-top: 1.2rem;
  font-weight: 600;
}
.scard-line {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  width: 0;
  background: linear-gradient(90deg, var(--p), var(--p2));
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.scard:hover .scard-line {
  width: 100%;
}

/* ================================================================
   PROCES
   ================================================================ */
#proces {
  padding: 7rem 5%;
  background: linear-gradient(
    180deg,
    var(--blk) 0%,
    #0a0612 50%,
    var(--blk) 100%
  );
}
.steps-wrap {
  position: relative;
  margin-top: 4rem;
}
.steps-connector {
  position: absolute;
  top: 44px;
  left: calc(12.5% + 28px);
  right: calc(12.5% + 28px);
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--p),
    var(--p2),
    var(--p),
    transparent
  );
}
.steps-connector-anim {
  position: absolute;
  top: 44px;
  left: calc(12.5% + 28px);
  height: 1px;
  width: 0;
  background: linear-gradient(90deg, var(--p2), var(--p3));
  transition: width 1.5s ease;
  box-shadow: 0 0 10px var(--p2);
}
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  position: relative;
  z-index: 2;
}
.step {
  text-align: center;
  padding: 1.5rem 1rem;
}
.step-ring {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1px solid rgba(124, 58, 237, 0.4);
  background: rgba(124, 58, 237, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  position: relative;
  transition: all 0.5s;
}
.step-ring::before {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid transparent;
  background: linear-gradient(135deg, var(--p), var(--p2)) border-box;
  -webkit-mask:
    linear-gradient(#fff 0 0) padding-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: destination-out;
  opacity: 0;
  transition: 0.4s;
}
.step:hover .step-ring::before {
  opacity: 1;
}
.step:hover .step-ring {
  background: rgba(124, 58, 237, 0.2);
  box-shadow: 0 0 30px rgba(124, 58, 237, 0.3);
}
.step-num {
  font-size: 1rem;
  font-weight: 800;
  color: var(--p2);
}
.step h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.step p {
  color: var(--mut);
  font-size: 0.83rem;
  line-height: 1.6;
}

/* ================================================================
   REALIZACJE
   ================================================================ */
#realizacje {
  padding: 7rem 5%;
  background: var(--blk);
}
.port-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  margin-top: 4rem;
}
.port-item {
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  aspect-ratio: 16/9;
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.port-bg {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.port-item:hover .port-bg {
  transform: scale(1.1);
}
.port-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.95) 0%,
    rgba(0, 0, 0, 0.3) 60%,
    transparent 100%
  );
  opacity: 0;
  transition: opacity 0.4s;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
}
.port-item:hover .port-overlay {
  opacity: 1;
}
.port-overlay h3 {
  font-size: 0.95rem;
  font-weight: 700;
  transform: translateY(10px);
  transition: transform 0.4s 0.05s;
}
.port-item:hover .port-overlay h3 {
  transform: translateY(0);
}
.port-overlay span {
  font-size: 0.78rem;
  color: var(--p2);
  transform: translateY(10px);
  transition: transform 0.4s 0.1s;
}
.port-item:hover .port-overlay span {
  transform: translateY(0);
}
.port-tag {
  display: inline-block;
  background: rgba(124, 58, 237, 0.2);
  border: 1px solid rgba(124, 58, 237, 0.4);
  color: var(--p3);
  font-size: 0.7rem;
  padding: 0.15rem 0.6rem;
  border-radius: 50px;
  margin-bottom: 0.4rem;
  width: fit-content;
  transform: translateY(10px);
  transition: transform 0.4s 0.15s;
}
.port-item:hover .port-tag {
  transform: translateY(0);
}
.pp1 {
  background: linear-gradient(135deg, #0d0520, #1a0840);
}
.pp2 {
  background: linear-gradient(135deg, #03111f, #062340);
}
.pp3 {
  background: linear-gradient(135deg, #160800, #2d1500);
}
.pp4 {
  background: linear-gradient(135deg, #031208, #062616);
}
.pp5 {
  background: linear-gradient(135deg, #1a0512, #380a25);
}
.pp6 {
  background: linear-gradient(135deg, #111, #202020);
}

/* ================================================================
   OPINIE
   ================================================================ */
#opinie {
  padding: 7rem 5%;
  background: var(--g1);
}
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 4rem;
}
.rcard {
  background: var(--g2);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  padding: 2rem;
  transition: all 0.4s;
  position: relative;
  overflow: hidden;
}
.rcard::before {
  content: "❝";
  position: absolute;
  right: 1.5rem;
  top: 1rem;
  font-size: 5rem;
  color: rgba(124, 58, 237, 0.1);
  font-family: serif;
  line-height: 1;
}
.rcard:hover {
  transform: translateY(-4px);
  border-color: rgba(124, 58, 237, 0.3);
  background: #1e1e26;
}
.stars {
  margin-bottom: 1rem;
  font-size: 0.9rem;
  letter-spacing: 2px;
  color: #f59e0b;
}
.rcard p {
  color: #bbb;
  font-size: 0.88rem;
  line-height: 1.7;
  font-style: italic;
  margin-bottom: 1.3rem;
  position: relative;
  z-index: 1;
}
.rauthor {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.ravatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--p), var(--p2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.82rem;
  flex-shrink: 0;
}
.rname {
  font-weight: 600;
  font-size: 0.88rem;
}
.rrole {
  color: var(--mut);
  font-size: 0.76rem;
}

/* ================================================================
   FAQ
   ================================================================ */
#faq {
  padding: 7rem 5%;
  background: var(--blk);
}
.faq-list {
  max-width: 720px;
  margin: 4rem auto 0;
}
.fq {
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  overflow: hidden;
}
.fq-btn {
  width: 100%;
  background: none;
  border: none;
  color: #fff;
  text-align: left;
  padding: 1.4rem 0;
  font-size: 0.97rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color 0.3s;
}
.fq-btn:hover {
  color: var(--p2);
}
.fq-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(124, 58, 237, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s;
  flex-shrink: 0;
  color: var(--p2);
  font-size: 0.9rem;
}
.fq.open .fq-icon {
  background: var(--p);
  border-color: var(--p);
  transform: rotate(45deg);
}
.fq-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}
.fq.open .fq-body {
  max-height: 200px;
}
.fq-body p {
  color: var(--mut);
  font-size: 0.88rem;
  line-height: 1.7;
  padding-bottom: 1.3rem;
}

/* ================================================================
   CTA
   ================================================================ */
#cta {
  padding: 8rem 5%;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 80% 60% at 50% 50%,
    rgba(124, 58, 237, 0.12),
    transparent
  );
}
.cta-rings {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(124, 58, 237, 0.15);
  transform: translate(-50%, -50%);
  animation: ringPulse 3s ease-in-out infinite;
}
.ring:nth-child(1) {
  width: 300px;
  height: 300px;
  animation-delay: 0s;
}
.ring:nth-child(2) {
  width: 500px;
  height: 500px;
  animation-delay: 0.5s;
}
.ring:nth-child(3) {
  width: 700px;
  height: 700px;
  animation-delay: 1s;
}
@keyframes ringPulse {
  0%,
  100% {
    opacity: 0.3;
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    opacity: 0.08;
    transform: translate(-50%, -50%) scale(1.03);
  }
}
.cta-inner {
  position: relative;
  z-index: 2;
}
#cta h2 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
  line-height: 1.1;
}
#cta p {
  color: var(--mut);
  font-size: 1.05rem;
  margin-bottom: 3rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}
.wa-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  background: linear-gradient(135deg, #128c7e, #25d366);
  color: #fff;
  padding: 1.1rem 2.8rem;
  border-radius: 50px;
  font-size: 1.05rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.4s;
  position: relative;
  overflow: hidden;
}
.wa-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #25d366, #128c7e);
  opacity: 0;
  transition: 0.4s;
}
.wa-btn:hover::before {
  opacity: 1;
}
.wa-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 50px rgba(37, 211, 102, 0.35);
}
.wa-btn span {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.wa-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

/* ================================================================
   FOOTER
   ================================================================ */
footer {
  background: #030305;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 2rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.flogo {
  font-size: 1.2rem;
  font-weight: 900;
}
.flogo span {
  color: var(--p2);
}
footer p {
  color: var(--mut);
  font-size: 0.82rem;
}

/* ================================================================
   REVEAL ANIMATIONS
   ================================================================ */
.rev {
  opacity: 0;
  transform: translateY(50px);
  transition:
    opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.rev.in {
  opacity: 1;
  transform: none;
}
.rev-left {
  opacity: 0;
  transform: translateX(-50px);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}
.rev-left.in {
  opacity: 1;
  transform: none;
}
.rev-scale {
  opacity: 0;
  transform: scale(0.85);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}
.rev-scale.in {
  opacity: 1;
  transform: scale(1);
}

/* ================================================================
   MISC
   ================================================================ */
.typed-cursor {
  animation: blink 0.8s infinite;
}
@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes fadeDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.tilt {
  transform-style: preserve-3d;
  transform: perspective(1000px);
}
.ticker {
  display: inline-block;
}
.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9997;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* ================================================================
   SHOWCASE
   ================================================================ */
#showcase {
  padding: 8rem 5% 6rem;
  background: var(--blk);
  overflow: hidden;
  position: relative;
}
#showcase::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 60% 50% at 50% 100%,
    rgba(124, 58, 237, 0.1),
    transparent
  );
  pointer-events: none;
}
.showcase-header {
  text-align: center;
  margin-bottom: 4.5rem;
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}
.showcase-header.in {
  opacity: 1;
  transform: none;
}
.showcase-header .section-label {
  margin-bottom: 0.6rem;
}
.showcase-header h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.sc-stage {
  max-width: 960px;
  margin: 0 auto;
  position: relative;
  opacity: 0;
  transform: translateY(90px) scale(0.96);
  transition:
    opacity 1s 0.2s cubic-bezier(0.22, 1, 0.36, 1),
    transform 1s 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}
.sc-stage.in {
  opacity: 1;
  transform: none;
}
.sc-stage::before {
  content: "";
  position: absolute;
  inset: -40px;
  background: radial-gradient(
    ellipse 80% 60% at 50% 60%,
    rgba(124, 58, 237, 0.22),
    transparent 70%
  );
  border-radius: 40px;
  z-index: 0;
  pointer-events: none;
}
.sc-browser {
  position: relative;
  z-index: 1;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(124, 58, 237, 0.35);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.05),
    0 40px 100px rgba(0, 0, 0, 0.7),
    0 0 60px rgba(124, 58, 237, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
}
.sc-bar {
  background: #111118;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  padding: 0.75rem 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.sc-dots {
  display: flex;
  gap: 0.45rem;
}
.sc-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.sc-dot:nth-child(1) {
  background: #ff5f57;
}
.sc-dot:nth-child(2) {
  background: #febc2e;
}
.sc-dot:nth-child(3) {
  background: #28c840;
}
.sc-url {
  flex: 1;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 0.28rem 0.8rem;
  font-size: 0.72rem;
  font-family: "JetBrains Mono", monospace;
  color: #666;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  max-width: 340px;
  margin: 0 auto;
}
.sc-url-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4ade80;
  flex-shrink: 0;
}
.sc-media {
  display: block;
  width: 100%;
  aspect-ratio: 16/9;
  background: #0a0a12;
  object-fit: cover;
  object-position: top;
}
.sc-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
  padding: 0 0.5rem;
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.7s 0.55s ease,
    transform 0.7s 0.55s ease;
}
.sc-stage.in .sc-caption {
  opacity: 1;
  transform: none;
}
.sc-caption-left h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}
.sc-caption-left p {
  color: var(--mut);
  font-size: 0.88rem;
}
.sc-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.sc-tag {
  background: rgba(124, 58, 237, 0.12);
  border: 1px solid rgba(124, 58, 237, 0.3);
  color: var(--p3);
  padding: 0.28rem 0.75rem;
  border-radius: 50px;
  font-size: 0.73rem;
  font-weight: 600;
}
