:root {
  --color-bg: #0A0A0A;
  --color-bg-elevated: #1A1A1A;
  --color-yellow: #FFEB00;
  --color-yellow-hover: #FFD700;
  --color-text: #FFFFFF;
  --color-text-muted: #A0A0A0;
  --color-border: #2A2A2A;
}

html, body { background: var(--color-bg); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

::selection { background: var(--color-yellow); color: #000; }

a, button { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--color-yellow);
  outline-offset: 2px;
}

/* Hero word stagger */
.hero-h1 .word { will-change: transform, opacity; }

/* Pakiet hover */
.pkg-card { transition: transform .25s ease, border-color .25s ease; }
.pkg-card:hover { transform: scale(1.02); border-color: var(--color-yellow); }

/* FAQ accordion */
.faq-item summary { list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item .faq-icon { transition: transform .3s ease; display: inline-block; }
.faq-item[open] .faq-icon { transform: rotate(180deg); }
.faq-item > div { animation: faqOpen .3s ease; }
@keyframes faqOpen {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Timeline active dot */
.timeline-step.is-active .dot-fill {
  background: var(--color-yellow);
  box-shadow: 0 0 16px var(--color-yellow);
}
.timeline-step.is-active .timeline-dot { border-color: var(--color-yellow); }

/* Strategy connecting line (desktop) */
@media (min-width: 768px) {
  .strategy-grid::before {
    content: "";
    position: absolute;
    top: 1.75rem;
    left: 8%;
    right: 8%;
    height: 2px;
    background: linear-gradient(to right, transparent, var(--color-border) 10%, var(--color-border) 90%, transparent);
    z-index: 0;
  }
}

/* MailerLite embed override (force dark-friendly look on yellow bg) */
.ml-embedded { background: transparent !important; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .hero-label, .hero-sub, .hero-cta { opacity: 1 !important; }
}

/* Nav transition */
#topnav { transition: transform .4s cubic-bezier(.4,0,.2,1); }

/* Nav link animated underline */
nav a[href^="#"] { position: relative; }
nav a[href^="#"]::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0; right: 100%;
  height: 1px;
  background: var(--color-yellow);
  transition: right .25s ease;
}
nav a[href^="#"]:hover::after { right: 0; }

/* CTA button shimmer */
.hero-cta a, section a.bg-yellow, section a.border-2 {
  position: relative;
  overflow: hidden;
}
.hero-cta a::before, section a.bg-yellow::before, section a.border-2::before {
  content: "";
  position: absolute;
  top: 0; left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  transition: left .5s ease;
  pointer-events: none;
}
.hero-cta a:hover::before, section a.bg-yellow:hover::before, section a.border-2:hover::before {
  left: 140%;
}

/* Team cards hover */
.team-card { transition: transform .3s ease, border-color .3s ease; }
.team-card:hover { transform: translateY(-6px); border-color: var(--color-yellow) !important; }
.team-card img { transition: transform .5s ease; }
.team-card:hover img { transform: scale(1.04); }

/* Case study image – init state handled by GSAP */
.case-img { will-change: clip-path, opacity; }

/* Case stat boxes hover */
.case-stat { transition: border-color .25s ease, background .25s ease; }
.case-stat:hover { border-color: var(--color-yellow); background: rgba(255,235,0,0.06); }

/* Blockquote left bar pulse */
.case-quote { transition: border-color .3s ease; }
.case-quote:hover { border-color: var(--color-yellow-hover); }

/* Social icons hover scale */
footer a svg { transition: transform .2s ease, color .2s ease; }
footer a:hover svg { transform: scale(1.25); }

/* FAQ item hover background */
.faq-item summary { transition: background .2s ease; }
.faq-item summary:hover { background: rgba(255,255,255,0.04); }

/* Timeline step line fill on active */
.timeline-line { position: absolute; }
.timeline-step.is-active .timeline-dot {
  transform: scale(1.15);
  transition: transform .3s ease, border-color .3s ease;
}

/* Scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--color-bg); }
::-webkit-scrollbar-thumb { background: var(--color-border); }
::-webkit-scrollbar-thumb:hover { background: var(--color-yellow); }
