/* ---------- Wariant A-jasny — paleta fioletowa, jasne tło ---------- */

html { scroll-behavior: smooth; }

:root {
  --accent: #7C3AED;
  --accent-deep: #5B21B6;
  --accent-soft: #A78BFA;
  --accent-tint: #EDE4FA;
  --paper: #FAF7FE;
  --cream: #F3EDFA;
  --card: #FFFFFF;
  --ink: #1A0A2E;
  --ink-soft: #3D2966;
}

body { background: var(--paper); }

::selection { background: var(--accent); color: #fff; }

/* Tekst gradient fioletowy */
.text-gradient-purple {
  background: linear-gradient(135deg, #7C3AED 0%, #5B21B6 50%, #A78BFA 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* Badge XV w nav */
.badge-xv {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.75rem;
  border: 1px solid rgba(124, 58, 237, 0.35);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.08), rgba(91, 33, 182, 0.04));
  color: var(--accent-deep);
  animation: pulse-glow 3s ease-in-out infinite;
}
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(124, 58, 237, 0); }
  50% { box-shadow: 0 0 0 8px rgba(124, 58, 237, 0.08); }
}

/* Hero glow */
.hero-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 30%, rgba(167, 139, 250, 0.35), transparent 60%),
    radial-gradient(ellipse 70% 50% at 80% 70%, rgba(124, 58, 237, 0.18), transparent 60%);
  pointer-events: none;
}

/* WEC outline w tle */
.hero-outline-stack {
  position: absolute;
  top: 30%;
  right: -2%;
  z-index: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: -3rem;
  opacity: 0.6;
  pointer-events: none;
}
.text-outline {
  font-size: clamp(8rem, 18vw, 18rem);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 0.8;
  color: transparent;
  -webkit-text-stroke: 1px rgba(124, 58, 237, 0.2);
  margin-top: -2rem;
}
.text-outline:nth-child(2) { -webkit-text-stroke-color: rgba(124, 58, 237, 0.12); }
.text-outline:nth-child(3) { -webkit-text-stroke-color: rgba(124, 58, 237, 0.06); }

.text-outline-soft {
  color: transparent;
  -webkit-text-stroke: 1px rgba(26, 10, 46, 0.35);
}

/* Hero team photo */
.hero-team-photo {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--card);
  box-shadow:
    0 25px 60px -20px rgba(124, 58, 237, 0.35),
    0 0 0 1px rgba(124, 58, 237, 0.1);
}
.hero-team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero-team-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.08), transparent 60%);
  pointer-events: none;
}

/* Buttony */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 1.85rem;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-deep) 100%);
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 999px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 18px -4px rgba(124, 58, 237, 0.45);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px -8px rgba(124, 58, 237, 0.55);
}
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 1.85rem;
  background: transparent;
  color: var(--ink);
  font-weight: 500;
  font-size: 0.95rem;
  border-radius: 999px;
  border: 1px solid rgba(26, 10, 46, 0.2);
  transition: all 0.3s ease;
}
.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent-deep);
  background: rgba(124, 58, 237, 0.04);
}

/* Service card */
.service-card {
  padding: 2.5rem;
  background: var(--card);
  border: 1px solid rgba(124, 58, 237, 0.12);
  border-radius: 8px;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(124, 58, 237, 0.08), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s;
}
.service-card:hover::before { opacity: 1; }
.service-card:hover {
  border-color: rgba(124, 58, 237, 0.4);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -16px rgba(124, 58, 237, 0.25);
}

/* Case card */
.case-card { display: block; cursor: pointer; }
.case-image {
  position: relative;
  aspect-ratio: 4 / 3;
  background-size: cover;
  background-position: center;
  border-radius: 6px;
  overflow: hidden;
  transition: all 0.5s ease;
}
.case-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26, 10, 46, 0.75), transparent 60%);
}
.case-card:hover .case-image {
  transform: scale(1.02);
  box-shadow: 0 20px 50px -15px rgba(124, 58, 237, 0.4);
}
.case-overlay { position: absolute; top: 1rem; left: 1rem; z-index: 2; }
.badge-cat {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 999px;
}

/* Marquee — logo SVG ciemne na jasnym tle, bez invert */
.marquee-track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.marquee-content {
  display: flex;
  align-items: center;
  gap: 4rem;
  padding-right: 4rem;
  flex-shrink: 0;
}
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee-item {
  flex-shrink: 0;
  width: 160px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.55;
  transition: opacity 0.3s, transform 0.3s;
}
.marquee-item:hover { opacity: 1; transform: translateY(-2px); }
.marquee-item img { max-width: 100%; max-height: 100%; object-fit: contain; }

/* Cytat */
.quote-card {
  padding: 2.5rem;
  background: var(--card);
  border: 1px solid rgba(124, 58, 237, 0.12);
  border-radius: 8px;
  box-shadow: 0 4px 18px -8px rgba(124, 58, 237, 0.15);
}

/* ============ ZESPÓŁ ============ */

.team-banner-section {
  position: relative;
  border-bottom: 1px solid rgba(26, 10, 46, 0.08);
}
.team-banner {
  position: relative;
  height: 80vh;
  min-height: 600px;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.team-banner-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(250, 247, 254, 0.1) 0%, rgba(250, 247, 254, 0.2) 40%, rgba(250, 247, 254, 0.97) 100%),
    linear-gradient(135deg, rgba(124, 58, 237, 0.22) 0%, transparent 60%);
}

/* Portretowe karty */
.portrait-card { cursor: pointer; transition: transform 0.3s; }
.portrait-card:hover { transform: translateY(-4px); }
.portrait-photo {
  aspect-ratio: 3 / 4;
  background-size: cover;
  background-position: center;
  border-radius: 6px;
  filter: grayscale(0.45) contrast(1.05);
  transition: filter 0.4s, box-shadow 0.4s;
  box-shadow: 0 4px 12px -6px rgba(26, 10, 46, 0.2);
}
.portrait-card:hover .portrait-photo {
  filter: grayscale(0) contrast(1.05);
  box-shadow: 0 18px 40px -10px rgba(124, 58, 237, 0.35);
}

/* Masonry */
.team-masonry { column-count: 1; column-gap: 1rem; }
@media (min-width: 640px) { .team-masonry { column-count: 2; } }
@media (min-width: 1024px) { .team-masonry { column-count: 3; } }
@media (min-width: 1280px) { .team-masonry { column-count: 4; } }

.masonry-item {
  break-inside: avoid;
  margin: 0 0 1rem 0;
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  cursor: zoom-in;
  box-shadow: 0 4px 14px -8px rgba(26, 10, 46, 0.25);
}
.masonry-item img {
  width: 100%;
  height: auto;
  display: block;
  filter: saturate(0.95);
  transition: transform 0.6s ease, filter 0.4s;
}
.masonry-item:hover img { transform: scale(1.03); filter: saturate(1.1); }
.masonry-item figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem;
  background: linear-gradient(to top, rgba(26, 10, 46, 0.9), transparent);
  color: rgba(255, 255, 255, 0.9);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s;
}
.masonry-item:hover figcaption { opacity: 1; transform: translateY(0); }

/* Form */
.form-input {
  width: 100%;
  padding: 0.95rem 1rem;
  background: var(--card);
  border: 1px solid rgba(124, 58, 237, 0.18);
  border-radius: 6px;
  color: var(--ink);
  font-size: 1rem;
  transition: all 0.3s;
}
.form-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
}
.form-input::placeholder { color: rgba(26, 10, 46, 0.35); }

.counter span { color: var(--ink); -webkit-text-fill-color: var(--ink); }
