:root {
  --text: #ffffff;
  background-color: #000000;
  opacity: 0.8;
  background-image:
    radial-gradient(circle, #0e2848 1.0px, transparent 1.0px),
    linear-gradient(125deg, #02020c 0%, #192337 50%, #01010b 100%);
  background-size: 50px 50px, auto;
}



html {
  scroll-behavior: smooth;
  height: auto;
}


body {
  margin: 0;
  padding: 0;
  background-color: var(--bg);
  color: var(--text);
  min-height: auto;
  position: relative;
  overflow-x: hidden;
}



section#top > * {
  position: relative;
  z-index: 1;
}


.product-card {
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.product-card:hover {
  transform: translateY(-2px);
  border-color: #374151;
}

.showcase-pill {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #d1d5db;
  background: linear-gradient(90deg, #111827, #0f172a);
  border: 1px solid #374151;
  border-radius: 999px;
  padding: 8px 12px;
}

.hero-marquee-vertical {
  animation: hero-marquee-vertical 10s linear infinite;
  will-change: transform;
}

.hero-marquee-vertical > span {
  height: 2rem;
  display: flex;
  align-items: center;
}

.hero-marquee-shell {
  position: relative;
}

.hero-marquee-shell::before,
.hero-marquee-shell::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 12px;
  pointer-events: none;
  z-index: 1;
}

.hero-marquee-shell::before {
  top: 0;
  background: linear-gradient(180deg, rgba(92, 106, 123, 0.9) 0%, rgba(11, 15, 20, 0) 75%);
}

.hero-marquee-shell::after {
  bottom: 0;
  background: linear-gradient(0deg,  rgba(92, 106, 123, 0.9) 0%, rgba(11, 15, 20, 0) 75%);
}

.hero-marquee-shell {
  border-left: 1px solid rgba(113, 49, 49, 0.05);
  padding-left: 10px;
}

.hero-marquee-vertical:hover {
  animation-play-state: paused;
}

@keyframes hero-marquee-vertical {
  0%,
  18% {
    transform: translateY(0);
  }

  20%,
  38% {
    transform: translateY(-10%);
  }

  40%,
  58% {
    transform: translateY(-20%);
  }

  60%,
  78% {
    transform: translateY(-30%);
  }

  80%,
  98% {
    transform: translateY(-40%);
  }

  100% {
    transform: translateY(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-marquee-vertical {
    animation: none;
  }
}

.showcase-card {
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 10% 10%, rgba(255, 255, 255, 0.06), transparent 45%), #111827;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.showcase-card::before {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  top: -100px;
  right: -80px;
  border-radius: 999px;
  opacity: 0.35;
  pointer-events: none;
}

.synergy-card::before {
  background: radial-gradient(circle, #10b981, transparent 65%);
}

.audity-card::before {
  background: radial-gradient(circle, #38bdf8, transparent 65%);
}

.personal-card::before {
  background: radial-gradient(circle, #f59e0b, transparent 65%);
}

.zilly-card::before {
  background: radial-gradient(circle, #ec4899, transparent 65%);
}

.pipeline-card::before {
  background: radial-gradient(circle, #8b5cf6, transparent 65%);
}

.status-badge {
  font-size: 12px;
  border-radius: 999px;
  padding: 6px 10px;
  border: 1px solid transparent;
}

.status-live {
  color: #a7f3d0;
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.45);
}

.status-prototype {
  color: #bae6fd;
  background: rgba(56, 189, 248, 0.12);
  border-color: rgba(56, 189, 248, 0.45);
}

.status-studio {
  color: #fcd34d;
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.45);
}

.status-pipeline {
  color: #ddd6fe;
  background: rgba(139, 92, 246, 0.12);
  border-color: rgba(139, 92, 246, 0.45);
}

/* ============================================================
   Split Reveal — screenshot zawsze widoczny, hover dodaje głębię
   ============================================================ */

/* Grid layout: tekst po lewej, mockup po prawej */
.showcase-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 2rem;
  min-height: 260px;
}

@media (hover: hover) and (pointer: fine) {
  .showcase-card:hover {
    transform: translateY(-6px);
    border-color: #4b5563;
    box-shadow:
      0 0 55px -12px var(--card-accent),
      0 16px 40px rgba(0, 0, 0, 0.35);
  }
}

.card-content {
  position: relative;
  z-index: 2;
  min-width: 0;
}

/* Mockup — domyślnie lekko wygaszony */
.card-mockup {
  --px: 0px;
  --py: 0px;
  position: relative;
  z-index: 2;
  border-radius: 10px;
  opacity: 0.72;
  filter: brightness(0.88) saturate(0.9);
  transform: translateY(var(--py)) translateX(var(--px)) scale(1);
  transition:
    opacity 0.48s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.48s cubic-bezier(0.4, 0, 0.2, 1),
    filter 0.48s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.48s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity, transform, filter;
  box-shadow:
    0 12px 32px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.07);
  overflow: hidden;
}

@media (hover: hover) and (pointer: fine) {
  .showcase-card:hover .card-mockup {
    opacity: 1;
    filter: brightness(1) saturate(1.05);
    transform: translateY(calc(-8px + var(--py))) translateX(var(--px)) scale(1.04);
    box-shadow:
      0 28px 56px rgba(0, 0, 0, 0.6),
      0 8px 20px rgba(0, 0, 0, 0.4),
      0 0 0 1px rgba(255, 255, 255, 0.11);
  }
}

/* Glare sweep */
.card-mockup::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    108deg,
    transparent 25%,
    rgba(255, 255, 255, 0.11) 50%,
    transparent 75%
  );
  transform: translateX(-130%);
  transition: transform 0.65s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  z-index: 10;
}

@media (hover: hover) and (pointer: fine) {
  .showcase-card:hover .card-mockup::after {
    transform: translateX(130%);
  }
}

/* Browser chrome */
.mockup-chrome {
  background: #1c2333;
  border-radius: 10px 10px 0 0;
  padding: 7px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.mockup-dots {
  display: flex;
  gap: 5px;
  flex-shrink: 0;
}

.mockup-dots span {
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.mockup-dots span:nth-child(1) { background: #ff5f57; }
.mockup-dots span:nth-child(2) { background: #febc2e; }
.mockup-dots span:nth-child(3) { background: #28c840; }

.mockup-addressbar {
  flex: 1;
  min-width: 0;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 4px;
  padding: 3px 8px;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.3);
  letter-spacing: 0.02em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: ui-monospace, monospace;
}

.mockup-viewport {
  overflow: hidden;
  border-radius: 0 0 10px 10px;
  height: 180px;
  background: #0a0f1a;
}

.mockup-viewport img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

/* Mobile: single column, mockup pod contentem, statyczny */
@media (max-width: 767px) {
  .showcase-card {
    grid-template-columns: 1fr;
    min-height: unset;
  }
  .card-content { order: 1; }
  .card-mockup {
    order: 2;
    opacity: 1;
    filter: none;
    transform: none !important;
  }
  .card-mockup::after { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .card-mockup,
  .card-mockup::after {
    transition: opacity 0.15s linear;
    transform: none !important;
  }
}

/* ---- Phone mockup (Zilly) ---- */

/* Wrapper jest niewidoczny — tylko pozycjonowanie i transform dla parallax */
.card-mockup--phone {
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  overflow: visible !important;
  opacity: 1 !important;       /* phone-frame obsługuje opacity */
  filter: none !important;     /* phone-frame obsługuje filter */
  display: flex;
  justify-content: center;
  align-items: center;
}

.card-mockup--phone::after { display: none; }

/* Opacity i filter przeniesione na phone-frame */
.phone-frame {
  opacity: 0.72;
  filter: brightness(0.88) saturate(0.9);
  transition:
    opacity 0.48s cubic-bezier(0.4, 0, 0.2, 1),
    filter 0.48s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.48s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (hover: hover) and (pointer: fine) {
  .showcase-card:hover .card-mockup--phone .phone-frame {
    opacity: 1;
    filter: brightness(1) saturate(1.05);
    box-shadow:
      0 32px 64px rgba(0, 0, 0, 0.7),
      0 0 0 3px rgba(255, 255, 255, 0.16),
      0 0 0 1px rgba(255, 255, 255, 0.05);
  }
}

/* Glare sweep na całym telefonie (obudowa + ekran) */
.phone-screen {
  position: relative;
}

.phone-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    108deg,
    transparent 25%,
    rgba(255, 255, 255, 0.11) 50%,
    transparent 75%
  );
  transform: translateX(-130%);
  transition: transform 0.65s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  z-index: 10;
}

@media (hover: hover) and (pointer: fine) {
  .showcase-card:hover .phone-frame::after {
    transform: translateX(130%);
  }
}

.phone-frame {
  position: relative;
  width: 140px;
  background: #1a1f2e;
  border-radius: 28px;
  border: 3px solid rgba(255, 255, 255, 0.12);
  overflow: hidden;
  /* box-shadow, opacity, filter, transition — zdefiniowane w bloku phone-mockup poniżej */
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.05),
    inset 0 0 0 1px rgba(255, 255, 255, 0.04),
    0 16px 36px rgba(0, 0, 0, 0.55);
  padding: 14px 6px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

/* Dynamic island / notch */
.phone-notch {
  width: 52px;
  height: 10px;
  background: #0d1117;
  border-radius: 999px;
  flex-shrink: 0;
}

/* Screenshot area */
.phone-screen {
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  background: #0a0f1a;
  aspect-ratio: 9 / 16;
}

.phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

/* Home indicator */
.phone-home {
  width: 44px;
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  flex-shrink: 0;
}

/* Mobile layout: center the phone */
@media (max-width: 767px) {
  .card-mockup--phone {
    padding: 1rem 0 0;
  }
}

.chip {
  border: 1px solid #334155;
  color: #cbd5e1;
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(15, 23, 42, 0.45);
}

.lang-switcher {
  display: flex;
  gap: 2px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 2px;
}

.lang-btn {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: #6b7280;
  background: transparent;
  border: none;
  border-radius: 6px;
  padding: 3px 8px;
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease;
  line-height: 1.5;
}

.lang-btn:hover {
  color: #d1d5db;
}

.lang-btn[aria-pressed="true"] {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.10);
}
