/* ============================================================
   Levia — styly
   Barvy a fonty se mění v :root níže.
   ============================================================ */

:root {
  /* Barvy */
  --bg:        #0a0b0f;
  --bg-soft:   #111319;
  --bg-card:   #15171f;
  --border:    #232634;
  --text:      #e9ecf3;
  --text-dim:  #9aa0b0;
  --accent:    #6d5efc;
  --accent-2:  #f5a030;
  --accent-glow: rgba(109, 94, 252, 0.35);

  /* Typografie */
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-head: 'Space Grotesk', 'Inter', sans-serif;

  /* Rozměry */
  --max: 1140px;
  --radius: 16px;
}

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

html { background: var(--bg); }

body {
  position: relative;
  font-family: var(--font-body);
  background: transparent;
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ============================ HVĚZDIČKY ============================ */
#stars {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: -2;
  pointer-events: none;
}

/* ============================ DEKORATIVNÍ POZADÍ ============================ */
.bg-decor {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}
/* jemná mřížka jako u custom-build webů */
.bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.022) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
}
/* plovoucí barevné koule (glow) */
.bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
}
.bg-orb--1 {
  top: -120px; left: -100px;
  width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(109,94,252,0.55), transparent 70%);
  animation: orbFloat 22s ease-in-out infinite;
}
.bg-orb--2 {
  top: 38%; right: -160px;
  width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(245,160,48,0.32), transparent 70%);
  animation: orbFloat 28s ease-in-out infinite reverse;
}
.bg-orb--3 {
  bottom: -150px; left: 30%;
  width: 560px; height: 560px;
  background: radial-gradient(circle, rgba(109,94,252,0.32), transparent 70%);
  animation: orbFloat 26s ease-in-out infinite;
}
@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%      { transform: translate(40px, 30px) scale(1.08); }
  66%      { transform: translate(-30px, 20px) scale(0.96); }
}
@media (prefers-reduced-motion: reduce) {
  .bg-orb { animation: none; }
}

a { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}
.container--narrow { max-width: 760px; }

.grad {
  background: linear-gradient(100deg, var(--accent) 0%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent-2);
  margin-bottom: 14px;
}

/* ============================ BUTTONS ============================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.96rem;
  padding: 14px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .25s ease, background .25s ease;
  white-space: nowrap;
}
.btn--sm { padding: 10px 18px; font-size: 0.88rem; }
.btn--block { width: 100%; }
.btn--primary {
  background: linear-gradient(100deg, var(--accent), #8b7dff);
  color: #fff;
  box-shadow: 0 8px 30px var(--accent-glow);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 12px 40px var(--accent-glow); }
.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn--ghost:hover { border-color: var(--accent); background: rgba(109,94,252,.08); }

/* ============================ GLOW ORB BUTTON (v2 – Huly-style) ========== */
/*
  Struktura HTML:
  <div class="btn-glow-wrap">
    <div class="btn-border-glow" aria-hidden="true"></div>
    <div class="btn-border-glow btn-border-glow--mirror" aria-hidden="true"></div>
    <a class="btn btn--primary btn--glow" href="#">
      <span class="btn-orb-wrap" aria-hidden="true">
        <span class="btn-orb btn-orb--1"></span>
        <span class="btn-orb btn-orb--2"></span>
      </span>
      Text
    </a>
  </div>
*/

/* Wrapper */
.btn-glow-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  z-index: 0;
}
/* Modifikátor pro blokové tlačítko (btn--block) na celou šířku rodiče */
.btn-glow-wrap--block { display: flex; width: 100%; }

/* ── Vnější dvojitý glow border ── */
/* Každý z obou divů má ::before (těsný 2px) + ::after (atmosférický 15px blur). */
/* První div = levý glow; druhý (zrcadlený) = pravý glow. Opacity řídí JS.   */
.btn-border-glow {
  position: absolute;
  inset: -5px;
  border-radius: 999px;
  pointer-events: none;
  will-change: opacity;
  opacity: 0;
}
.btn-border-glow--mirror {
  transform: scaleX(-1);
}
/* Těsný border (2px, blur 2px) */
.btn-border-glow::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 999px;
  border: 2px solid transparent;
  background:
    linear-gradient(transparent, transparent) padding-box,
    linear-gradient(97deg,
      rgba(109, 94, 252, 0)    38%,
      rgba(109, 94, 252, 0.3)  82%,
      #8b7dff                  93%
    ) border-box;
  filter: blur(2px);
}
/* Atmosférický glow (3px, blur 15px) */
.btn-border-glow::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 999px;
  border: 3px solid transparent;
  background:
    linear-gradient(transparent, transparent) padding-box,
    linear-gradient(92deg,
      rgba(109, 94, 252, 0.15) 46%,
      #6d5efc                  98%
    ) border-box;
  filter: blur(15px);
}

/* ── Samotné tlačítko ── */
.btn--glow {
  position: relative;
  overflow: hidden;
  z-index: 1;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(109, 94, 252, 0.22);
  color: #0a0c1e;
  box-shadow: 0 1px 24px rgba(109, 94, 252, 0.10);
}
.btn--primary.btn--glow:hover { transform: none; box-shadow: 0 1px 24px rgba(109, 94, 252, 0.10); }

/* ── Orb wrapper (pohybuje se s kurzorem) ── */
.btn-orb-wrap {
  position: absolute;
  top: 50%;
  left: 0;
  width: 280px;
  height: 90px;
  transform: translateX(0) translateY(-50%);
  will-change: transform;
  pointer-events: none;
  z-index: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Jádro orbu – plochý ovál, bez viditelných kruhů */
.btn-orb--1 {
  position: absolute;
  width: 180px;
  height: 55px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center,
    rgba(155, 130, 255, 0.90)  0%,
    transparent               100%
  );
  filter: blur(14px);
  mix-blend-mode: multiply;
}

/* Atmosférický ovál – velký, velmi měkký */
.btn-orb--2 {
  position: absolute;
  width: 280px;
  height: 90px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center,
    rgba(109, 94, 252, 0.38)  0%,
    transparent               100%
  );
  filter: blur(28px);
  mix-blend-mode: multiply;
}

/* Text vždy nad orbem */
.btn-text {
  position: relative;
  z-index: 2;
}

/* ============================ NAV ============================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  background: rgba(10, 11, 15, 0.6);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.nav.scrolled { border-color: var(--border); background: rgba(10,11,15,.85); }
.nav__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}
.logo { display: flex; align-items: center; }
.logo__img { height: 44px; width: auto; flex-shrink: 0; transition: opacity .2s; transform: translateY(-18.1%); }
.logo:hover .logo__img { opacity: 0.85; }
.nav__links { position: absolute; left: 50%; transform: translateX(-50%); display: flex; gap: 30px; }
.nav__links a { color: var(--text-dim); font-size: 0.94rem; font-weight: 500; transition: color .2s; }
.nav__links a:hover { color: var(--text); }
.nav__burger { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 24px; height: 24px; background: none; border: 0; cursor: pointer; padding: 0; z-index: 201; }
.nav__burger span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .3s ease, opacity .3s ease; }
.nav__burger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger.active span:nth-child(2) { opacity: 0; }
.nav__burger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.site-menu { position: fixed; inset: 0; background: rgba(10,11,15,.97); backdrop-filter: blur(10px); z-index: 200; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: opacity .35s ease; }
.site-menu.active { opacity: 1; visibility: visible; }
.site-menu ul { list-style: none; text-align: center; display: flex; flex-direction: column; gap: 1.4rem; }
.site-menu a { color: var(--text); text-decoration: none; font-family: var(--font-head); font-size: clamp(1.4rem, 4vw, 2rem); font-weight: 700; letter-spacing: -.01em; opacity: .85; transition: opacity .2s, color .2s; }
.site-menu a:hover { opacity: 1; color: var(--accent-2); }
.site-menu__close { position: absolute; top: 13px; right: 24px; width: 44px; height: 44px; background: none; border: none; cursor: pointer; padding: 0; z-index: 201; }
.site-menu__close svg { width: 26px; height: 26px; stroke: var(--text); stroke-width: 2; fill: none; }

/* ============================ HERO ============================ */
.hero {
  position: relative;
  padding: 170px 0 24px;
  text-align: center;
  overflow: hidden;
}
.hero__glow {
  position: absolute;
  top: -200px; left: 50%;
  transform: translateX(-50%);
  width: 900px; height: 700px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 60%);
  filter: blur(40px);
  pointer-events: none;
  z-index: 0;
}
.hero__inner { position: relative; z-index: 1; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-soft);
  font-size: 0.82rem;
  color: var(--text-dim);
  margin-bottom: 28px;
}
.badge__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 10px var(--accent-2); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .4; } }

.hero__title {
  font-family: var(--font-head);
  font-size: clamp(2.3rem, 6vw, 4.1rem);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.02em;
  max-width: 900px;
  margin: 0 auto 24px;
}
.hero__sub {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--text-dim);
  max-width: 640px;
  margin: 0 auto 38px;
}
.hero__cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 0; }

.stats-bar {
  position: relative;
  padding: 44px 0;
  overflow: hidden;
  background:
    radial-gradient(120% 140% at 50% -20%, rgba(109,94,252,0.18), transparent 55%),
    linear-gradient(180deg, rgba(245,160,48,0.05), rgba(109,94,252,0.06));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stats-bar::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 700px; height: 220px;
  background: radial-gradient(ellipse, var(--accent-glow), transparent 70%);
  filter: blur(50px);
  pointer-events: none;
}
.stats-bar .container { position: relative; z-index: 1; }
.hero__stats {
  display: flex;
  justify-content: center;
  gap: 60px;
  flex-wrap: wrap;
}
.stat {
  text-align: center;
  flex: 1;
  min-width: 0;
}
.stat__num {
  font-family: var(--font-head);
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1;
  background: linear-gradient(100deg, var(--accent) 0%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat__label { color: var(--text-dim); font-size: 0.9rem; margin-top: 6px; }

/* ============================ TRUST ============================ */
.trust {
  position: relative;
  padding: 46px 0 50px;
  overflow: hidden;
  background:
    radial-gradient(120% 140% at 50% -20%, rgba(109,94,252,0.18), transparent 55%),
    linear-gradient(180deg, rgba(245,160,48,0.05), rgba(109,94,252,0.06));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.trust__glow {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 700px; height: 220px;
  background: radial-gradient(ellipse, var(--accent-glow), transparent 70%);
  filter: blur(50px);
  pointer-events: none;
}
.trust .container { position: relative; z-index: 1; }
.trust__label {
  text-align: center;
  color: var(--text);
  font-family: var(--font-head);
  font-weight: 600;
  letter-spacing: 0.02em;
  font-size: 0.95rem;
  margin-bottom: 24px;
}
.trust__row {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 20px;
  border-radius: 999px;
  background: rgba(21, 23, 31, 0.7);
  border: 1px solid var(--border);
  backdrop-filter: blur(8px);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
  transition: transform .2s ease, border-color .2s ease, box-shadow .25s ease, background .2s ease;
}
.chip__dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 10px var(--accent-2);
}

/* ============================ CLIENTS ============================ */
.clients {
  padding: 28px 0 44px;
  border-bottom: 1px solid var(--border);
}
.clients__label {
  text-align: center;
  color: var(--text-dim);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 32px;
}
.clients__marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 12%, #000 88%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 12%, #000 88%, transparent 100%);
}
.clients__track {
  display: flex;
  align-items: center;
  gap: 72px;
  width: max-content;
  animation: clients-scroll 30s linear infinite;
  padding: 0 36px;
  will-change: transform;
}
@keyframes clients-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.clients__logo {
  height: 30px;
  width: auto;
  opacity: 0.45;
  transition: opacity 0.2s;
  user-select: none;
  flex-shrink: 0;
}
.clients__lockup {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  flex-shrink: 0;
}
.clients__logo:hover,
.clients__logo:active { opacity: 0.85; }
.clients__lockup .clients__logo { filter: brightness(0) invert(1); }
.clients__logo--ghost {
  filter: grayscale(1) brightness(1.3) contrast(0.85);
  opacity: 0.45;
  -webkit-transform: translate3d(0, 0, 0);
  transform: translate3d(0, 0, 0);
}
.clients__logo--ghost:hover,
.clients__logo--ghost:active {
  opacity: 0.85;
}
.clients__lockup:hover .clients__logo,
.clients__lockup:active .clients__logo { opacity: 0.85; }
.clients__wordmark {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
  color: rgba(233,236,243,0.45);
  transition: color 0.2s;
  white-space: nowrap;
  user-select: none;
}
.clients__lockup:hover .clients__wordmark,
.clients__lockup:active .clients__wordmark { color: rgba(233,236,243,0.85); }

/* ============================ SECTIONS ============================ */
.section { padding: 100px 0; }
.section__title {
  font-family: var(--font-head);
  font-size: clamp(1.7rem, 3.6vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  max-width: 760px;
}
.section__lead { color: var(--text-dim); font-size: 1.1rem; max-width: 620px; margin-top: 18px; }

/* ============================ PROBLEM ============================ */
.problem__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 50px;
}
.prob {
  position: relative;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: transform .2s, border-color .2s;
  animation: probFloat 7s ease-in-out infinite;
}
.prob:nth-child(2) { animation-delay: -1.6s; }
.prob:nth-child(3) { animation-delay: -3.2s; }
.prob:nth-child(4) { animation-delay: -4.8s; }
.prob:hover { transform: translateY(-4px); }
/* stále běžící světelný glow uvnitř bubliny */
.prob__glow {
  position: absolute;
  width: 180px; height: 180px;
  top: -40px; left: -40px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(109,94,252,0.35), transparent 70%);
  filter: blur(28px);
  pointer-events: none;
  animation: probGlow 9s ease-in-out infinite;
}
.prob:nth-child(2) .prob__glow { background: radial-gradient(circle, rgba(245,160,48,0.30), transparent 70%); animation-delay: -2.2s; }
.prob:nth-child(3) .prob__glow { animation-delay: -4.4s; }
.prob:nth-child(4) .prob__glow { background: radial-gradient(circle, rgba(245,160,48,0.30), transparent 70%); animation-delay: -6.6s; }
.prob > *:not(.prob__glow) { position: relative; z-index: 2; }
/* Hover fill overlay – zaplní celou bublinu barvou */
.prob::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: rgba(109, 94, 252, 0.20);
  opacity: 0;
  transition: opacity 0.45s ease;
  pointer-events: none;
  z-index: 1;
}
.prob:nth-child(2)::after,
.prob:nth-child(4)::after { background: rgba(245, 160, 48, 0.18); }
.prob:hover::after { opacity: 1; }
@keyframes probGlow {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: .55; }
  25%      { transform: translate(140px, 30px) scale(1.15); opacity: .9; }
  50%      { transform: translate(160px, 150px) scale(1); opacity: .6; }
  75%      { transform: translate(20px, 140px) scale(1.1); opacity: .85; }
}
@keyframes probFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}
@media (prefers-reduced-motion: reduce) {
  .prob, .prob__glow { animation: none; }
}
.prob__icon { margin-bottom: 18px; }

/* ====== Custom SVG ikony v bublinách ====== */
.picon {
  width: 52px; height: 52px;
  overflow: visible;
  display: block;
}
/* Základní tvary (obrysy) */
.pi-shape {
  stroke: var(--accent);
  stroke-width: 2;
  fill: none;
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
}
.pi-shape--accent { stroke: var(--accent-2); }
.pi-shape--dim    { stroke: var(--text-dim); }

/* Linky uvnitř tvarů */
.pi-line {
  stroke: var(--accent);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-dasharray: 40;
  stroke-dashoffset: 40;
}
.pi-line--accent  { stroke: var(--accent-2); }
.pi-line--center  { stroke: var(--accent); }

/* Oblouk a šipka (ikona 2) */
.pi-arc {
  stroke: var(--accent);
  stroke-width: 2.5;
  fill: none;
  stroke-linecap: round;
  stroke-dasharray: 300;
  stroke-dashoffset: 300;
}
/* Druhý oblouk v ikoně 2 – lehce opožděný */
.prob.in .pi-arc ~ .pi-arc { animation-delay: .25s; }
.pi-arrow {
  stroke: var(--accent);
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 30;
  stroke-dashoffset: 30;
}

/* Přerušené čáry (ikona 3) */
.pi-dash {
  stroke: var(--text-dim);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-dasharray: 4 4;
  opacity: 0;
}

/* Otazník (ikona 4) */
.pi-q {
  stroke: var(--accent-2);
  stroke-width: 2.2;
  fill: none;
  stroke-linecap: round;
  stroke-dasharray: 40;
  stroke-dashoffset: 40;
}
.pi-qdot {
  fill: var(--accent-2);
  opacity: 0;
  r: 1.5;
}

/* Animace — spustí se jen jednou při načtení */
.prob.in .pi-shape      { animation: drawStroke .7s cubic-bezier(.4,0,.2,1) forwards; }
.prob.in .pi-shape:nth-of-type(2) { animation-delay: .12s; }
.prob.in .pi-shape:nth-of-type(3) { animation-delay: .22s; }

.prob.in .pi-line       { animation: drawLine .5s cubic-bezier(.4,0,.2,1) forwards; }
.prob.in .pi-line:nth-of-type(1) { animation-delay: .55s; }
.prob.in .pi-line:nth-of-type(2) { animation-delay: .65s; }
.prob.in .pi-line:nth-of-type(3) { animation-delay: .72s; }
.prob.in .pi-line:nth-of-type(4) { animation-delay: .78s; }
.prob.in .pi-line:nth-of-type(5) { animation-delay: .83s; }
.prob.in .pi-line:nth-of-type(6) { animation-delay: .88s; }

.prob.in .pi-arc        { animation: drawStroke .65s .3s cubic-bezier(.4,0,.2,1) forwards; }
.prob.in .pi-arrow      { animation: drawLine .4s .8s cubic-bezier(.4,0,.2,1) forwards; }

.prob.in .pi-dash       { animation: fadeIn .3s .7s ease forwards; }

.prob.in .pi-q          { animation: drawLine .55s .45s cubic-bezier(.4,0,.2,1) forwards; }
.prob.in .pi-qdot       { animation: fadeIn .2s .9s ease forwards; }

@keyframes drawStroke {
  to { stroke-dashoffset: 0; }
}
@keyframes drawLine {
  to { stroke-dashoffset: 0; }
}
@keyframes fadeIn {
  to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .pi-shape, .pi-line, .pi-arc, .pi-arrow, .pi-dash, .pi-q {
    stroke-dashoffset: 0; animation: none;
  }
  .pi-qdot { opacity: 1; animation: none; }
}
.prob h3 { font-family: var(--font-body); font-size: 1.05rem; font-weight: 600; margin-bottom: 8px; }
.prob p { color: var(--text-dim); font-size: 0.92rem; }

/* ============================ SERVICE CARDS ============================ */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 50px;
}
.card {
  position: relative;
  display: block;
  color: var(--text);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 34px 30px;
  transition: border-color .25s;
}
.card--featured {
  background: linear-gradient(180deg, rgba(109,94,252,.12), var(--bg-card));
  border-color: rgba(109,94,252,.4);
}
/* Wrapper pro badge přesahující mimo kartu (mimo overflow:hidden) */
.card-badge-wrap {
  position: relative;
}
.card-badge-wrap > .card {
  height: 100%;
}
.card-badge-wrap > .card__badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  white-space: nowrap;
}
.card__badge {
  position: absolute; top: -12px; left: 30px;
  background: linear-gradient(100deg, var(--accent), #8b7dff);
  color: #fff; font-size: 0.72rem; font-weight: 600;
  padding: 5px 13px; border-radius: 999px;
}
.card__num { font-family: var(--font-body); font-size: 0.9rem; color: var(--accent-2); margin-bottom: 16px; font-weight: 600; }
.card h3 { font-family: var(--font-body); font-size: 1.3rem; font-weight: 700; margin-bottom: 12px; }
.card p { color: var(--text-dim); margin-bottom: 20px; }
.card__list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.card__list li { position: relative; padding-left: 26px; font-size: 0.92rem; color: var(--text); }
.card__list li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--accent-2); font-weight: 700;
}

/* ============================ PHOTO CARD (hover reveal) ============================ */
.card--photo {
  padding: 0;
  min-height: 380px;
  overflow: hidden;
  background: #000;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  isolation: isolate;
}
.card--photo .card__badge {
  top: 20px;
  z-index: 3;
}

.card__photo-bg {
  position: absolute;
  inset: 0;
  background: url('assets/pozadi-desktop.png') center / cover no-repeat;
  transition: transform .6s cubic-bezier(.4,0,.2,1);
}
.card--photo-2 .card__photo-bg {
  background-image: url('assets/pozadi-desktop.png');
}
.card--photo-3 .card__photo-bg {
  background-image: url('assets/pozadi-desktop.png');
}
.card--photo-4 .card__photo-bg {
  background-image: none;
  background: #050618;
}

/* ── browser chrome mockup (card 04) ── */
.card__browser-bg {
  position: absolute;
  inset: 0;
  background: #050618;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.card__browser-bar {
  height: 26px;
  background: rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  padding: 0 9px;
  gap: 5px;
  flex-shrink: 0;
}
.card__browser-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  opacity: 0.45;
}
.card__browser-dot--r { background: #ff5f57; }
.card__browser-dot--y { background: #febc2e; }
.card__browser-dot--g { background: #28c840; }
.card__browser-url {
  margin-left: 6px;
  flex: 1;
  height: 12px;
  border-radius: 6px;
  background: rgba(255,255,255,0.06);
}
.card__browser-nav {
  height: 20px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  flex-shrink: 0;
}
.card__browser-page {
  flex: 1;
  padding: 12px 10px 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.card__browser-hero {
  width: 100%;
  height: 38px;
  border-radius: 3px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.05);
  flex-shrink: 0;
}
.card__browser-text {
  height: 4px;
  border-radius: 2px;
  background: rgba(255,255,255,0.055);
}
.card__browser-text:nth-child(3) { width: 88%; }
.card__browser-text:nth-child(4) { width: 71%; }
.card__browser-text:nth-child(5) { width: 57%; }
.card__browser-row {
  display: flex;
  gap: 6px;
  flex: 1;
  margin-top: 2px;
}
.card__browser-block {
  flex: 1;
  border-radius: 3px;
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.04);
}

.card__butterfly-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.card--photo-5 .card__photo-bg {
  background-image: url('assets/pozadi-desktop.png');
}
.card--photo-6 .card__photo-bg {
  background-image: url('assets/pozadi-desktop.png');
}
.card--photo:hover .card__photo-bg {
  transform: scale(1.05);
}

.card__photo-overlay {
  position: absolute;
  inset: 0;
  background: rgba(6, 7, 14, 0.62);
  opacity: 0;
  transition: opacity .4s ease;
  z-index: 1;
}
.card--photo:hover .card__photo-overlay {
  opacity: 1;
}

.card__photo-gradient {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 80%;
  background: linear-gradient(to top, rgba(6,7,14,.95) 0%, rgba(6,7,14,.5) 40%, transparent 100%);
  z-index: 1;
  transition: opacity .4s ease;
}
.card--photo:hover .card__photo-gradient {
  opacity: 0;
}

.card__photo-inner {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 30px;
  z-index: 2;
}

.card--photo .card__num {
  margin-bottom: 10px;
  transition: margin-bottom .35s ease;
}
.card--photo h3 {
  color: #fff;
  margin-bottom: 0;
  transition: margin-bottom .35s ease;
}
.card--photo:hover h3 {
  margin-bottom: 16px;
}

.card__photo-reveal {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height .45s cubic-bezier(.4,0,.2,1), opacity .35s ease .08s;
}
.card--photo:hover .card__photo-reveal {
  max-height: 260px;
  opacity: 1;
}

.card--photo .card__photo-reveal p {
  color: rgba(233, 236, 243, 0.85);
  margin-bottom: 16px;
  font-size: 0.94rem;
}
.card--photo .card__photo-reveal .card__list li {
  color: rgba(233, 236, 243, 0.85);
}

/* ============================ PROCESS ============================ */
.process { background: var(--bg-soft); }
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 50px;
}
.step { position: relative; }
.step__num {
  width: 46px; height: 46px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-weight: 700; font-size: 1.2rem;
  background: linear-gradient(100deg, var(--accent), #8b7dff);
  color: #fff; border-radius: 12px;
  margin-bottom: 18px;
  box-shadow: 0 8px 24px var(--accent-glow);
}
.step h3 { font-family: var(--font-body); font-size: 1.15rem; font-weight: 700; margin-bottom: 8px; }
.step p { color: var(--text-dim); font-size: 0.94rem; }

/* ============================ RESULTS ============================ */
.results__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 50px;
}
.result {
  text-align: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 24px;
}
.result__big { font-family: var(--font-head); font-size: 3rem; font-weight: 700; line-height: 1; margin-bottom: 14px; }
.result p { color: var(--text-dim); font-size: 0.96rem; }

.quote {
  margin-top: 50px;
  background: linear-gradient(180deg, rgba(109,94,252,.1), var(--bg-card));
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 40px;
}
.quote p { font-size: 1.2rem; line-height: 1.6; }
.quote em { color: var(--text); font-style: italic; }
.quote footer { margin-top: 18px; color: var(--text-dim); font-size: 0.9rem; }

/* ============================ ABOUT ============================ */
.about__inner { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 60px; align-items: center; }
.about__photo-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}
.about__photo {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 24px 60px rgba(0,0,0,.45);
  width: 100%;
}
.about__signature {
  width: 72%;
  opacity: 0.9;
  margin-top: -64px;
  position: relative;
  z-index: 2;
  margin-right: -10px;
}
.about__photo::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(10,11,15,.55) 100%);
  pointer-events: none;
}
.about__photo img {
  display: block;
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  object-position: center 35%;
}
.about__text p { color: var(--text-dim); margin: 16px 0; font-size: 1.05rem; }
.about__text .btn-glow-wrap { margin-top: 14px; }

/* ============================ TESTIMONIALS ============================ */
/* ── Testimonial slider ── */
.testi__slider-wrap {
  margin-top: 40px;
  position: relative;
  padding: 0 52px;
}
.testi__slider { overflow: hidden; }
.testi__track {
  display: flex;
  gap: 20px;
  transition: transform .42s cubic-bezier(.4,0,.2,1);
  will-change: transform;
}
.testi__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(calc(-50% - 20px));
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.11);
  color: var(--text);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s, border-color .2s;
  flex-shrink: 0;
}
.testi__arrow:hover { background: rgba(109,94,252,.18); border-color: var(--accent); }
.testi__arrow--prev { left: 0; }
.testi__arrow--next { right: 0; }
.testi__arrow svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.testi__dots {
  display: flex; gap: 8px; justify-content: center;
  margin-top: 22px;
}
.testi__dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: rgba(255,255,255,.18); border: none; cursor: pointer; padding: 0;
  transition: background .22s, transform .22s;
}
.testi__dot--active { background: var(--accent); transform: scale(1.4); }
@media (max-width: 767px) {
  .clients__track { gap: 36px; padding: 0 18px; }
  .clients__logo { height: 24px; }
  .srv__bg { background-image: url('assets/pozadi-mobil.png'); }
  .testi { width: 100%; padding: 22px 18px 18px 20px; }
  .testi__text { font-size: 0.93rem; line-height: 1.7; margin-bottom: 12px; }
  /* Flex: slider (order 1) full width, then < dots > (order 2/3/4) below */
  .testi__slider-wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    row-gap: 12px;
    padding: 0;
  }
  .testi__slider { order: 1; width: 100%; }
  .testi__arrow {
    position: static; top: auto; bottom: auto; transform: none;
    width: 34px; height: 34px;
    background: rgba(255,255,255,.04);
    border-color: rgba(255,255,255,.08);
    flex-shrink: 0;
  }
  .testi__arrow--prev { order: 2; left: auto; }
  .testi__arrow--next { order: 4; right: auto; }
  .testi__dots {
    order: 3;
    position: static; margin: 0;
    flex: 1;
    justify-content: center;
  }
  /* Clamp all mobile reviews */
  .testi__text.is-clamped {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .testi__expand { display: block; }
}
/* Expand button */
.testi__expand {
  display: none;
  background: none; border: none;
  color: var(--accent); font-size: 0.82rem; font-style: italic;
  padding: 4px 0 0; cursor: pointer;
  font-family: inherit;
}

.testi {
  flex-shrink: 0;
  width: calc(50% - 10px);
  position: relative;
  display: flex;
  flex-direction: column;
  background: rgba(119, 119, 119, 0.07);
  backdrop-filter: blur(20px) saturate(130%);
  -webkit-backdrop-filter: blur(20px) saturate(130%);
  border: 1px solid rgba(119, 119, 119, 0.14);
  border-left: 3px solid var(--accent);
  border-radius: 20px;
  padding: 36px 44px 34px 42px;
  margin: 0;
}
.testi__text {
  flex: 1;
  font-size: 1.08rem;
  line-height: 1.8;
  color: var(--text);
  font-style: italic;
  margin: 0 0 28px;
}
.testi__footer {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.9rem;
}
.testi__avatar {
  width: 46px; height: 46px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--border);
}
.testi__meta { display: flex; flex-direction: column; gap: 2px; }
.testi__name { color: var(--text); font-weight: 600; font-style: normal; }
.testi__company { color: var(--text-dim); font-size: 0.85rem; }

/* ============================ FAQ ============================ */
.accordion { margin-top: 40px; display: flex; flex-direction: column; gap: 12px; }
.acc {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 4px 22px;
  transition: border-color .2s;
}
.acc[open] { border-color: var(--border); }
.acc summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 0;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.05rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: "+"; color: var(--accent-2); font-size: 1.4rem; transition: transform .2s; }
.acc[open] summary::after { transform: rotate(45deg); }
.acc__body {
  overflow: hidden;
  height: 0;
  transition: height 0.35s ease;
}
.acc__body > p {
  color: var(--text-dim);
  padding-bottom: 20px;
}

/* ============================ CONTACT ============================ */
.contact__box {
  position: relative;
  background: linear-gradient(180deg, rgba(109,94,252,.12), var(--bg-card));
  border-radius: 24px;
  padding: 50px;
  text-align: center;
  /* gradient border přes pseudo-element */
  isolation: isolate;
}
.contact__box::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 24px;
  padding: 1.5px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2), var(--accent));
  background-size: 200% 200%;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: borderPulse 3s ease infinite;
  pointer-events: none;
  z-index: -1;
}
@keyframes borderPulse {
  0%, 100% { background-position: 0% 50%; opacity: .7; }
  50%       { background-position: 100% 50%; opacity: 1; }
}
.contact__box .section__title, .contact__box .section__lead { margin-left: auto; margin-right: auto; }

/* Konzultační sekce */
.consult__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 32px 0 36px;
  text-align: left;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}
.consult__list li {
  display: flex;
  align-items: center;
  gap: 13px;
  font-size: 1rem;
  color: var(--text);
}
.consult__list svg {
  width: 22px; height: 22px;
  flex-shrink: 0;
  color: var(--accent-2);
}
.btn--lg { padding: 18px 32px; font-size: 1.05rem; }
.contact__note {
  margin-top: 16px;
  font-size: 0.85rem;
  color: var(--text-dim);
}

/* ============================ FOOTER ============================ */
.footer { border-top: 1px solid var(--border); padding: 60px 0 30px; background: var(--bg-soft); }
.footer__inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.footer__brand .logo__mark { font-size: 1.1rem; }
.footer__brand { font-family: var(--font-head); font-weight: 700; font-size: 1.2rem; }
.footer__brand p { font-family: var(--font-body); font-weight: 400; font-size: 0.92rem; color: var(--text-dim); margin-top: 14px; max-width: 280px; }
.footer__col h4 { font-family: var(--font-body); font-size: 0.95rem; font-weight: 700; margin-bottom: 16px; }
.footer__col a { display: block; color: var(--text-dim); font-size: 0.92rem; margin-bottom: 10px; transition: color .2s; }
.footer__col a:hover { color: var(--text); }
.footer__bottom {
  display: flex; justify-content: space-between;
  margin-top: 40px; padding-top: 24px;
  border-top: 1px solid var(--border);
  color: var(--text-dim); font-size: 0.85rem;
}

/* ============================ REVEAL ANIM ============================ */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ============================ RESPONSIVE ============================ */
@media (max-width: 900px) {
  /* Karty služeb: 3 pod sebou je lepší než 2+1 */
  .cards { grid-template-columns: 1fr; max-width: 560px; margin-left: auto; margin-right: auto; }
  .problem__grid, .steps, .results__grid { grid-template-columns: 1fr 1fr; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .nav__links { display: none; }
  .nav__burger { display: flex; }
  /* Sekce O nás: foto menší, ale stále vedle textu */
  .about__inner { grid-template-columns: 0.55fr 1fr; gap: 36px; }
}
@media (max-width: 680px) {
  /* Teprve na mobilu se foto přesune nad text a zmenší se */
  .about__inner { grid-template-columns: 1fr; gap: 28px; }
  .about__photo-wrap { max-width: 260px; margin: 0 auto; }
}
.show-xs { display: none; }
@media (max-width: 390px) {
  .nav .btn--sm { padding: 6px 11px; font-size: 0.78rem; }
  .hide-xs { display: none; }
  .show-xs { display: inline; }
}
@media (max-width: 600px) {
  .nav .logo__img { height: 31px; }
  .section { padding: 70px 0; }
  .hero { padding: 130px 0 24px; }
  .problem__grid, .steps, .results__grid, .form__row, .footer__inner { grid-template-columns: 1fr; }
  .cards { max-width: 100%; }
  .card__photo-bg { background-position: center top; }
  .hero__stats { gap: 16px; flex-wrap: nowrap; }
  .stat__num { font-size: 2rem; }
  .stat__label { font-size: 0.76rem; }
  .contact__box { padding: 32px 22px; }
  .quote { padding: 26px; }
  .footer__bottom { flex-direction: column; gap: 10px; }
}

/* ── Photo card – touch / .is-open (náhrada :hover na dotykových zařízeních) */
@media (hover: none) {
  .card--photo:hover .card__photo-bg     { transform: none; }
  .card--photo:hover .card__photo-overlay{ opacity: 0; }
  .card--photo:hover .card__photo-gradient{ opacity: 1; }
  .card--photo:hover h3                  { margin-bottom: 0; }
  .card--photo:hover .card__photo-reveal { max-height: 0; opacity: 0; }

  .card--photo.is-open .card__photo-bg      { transform: scale(1.05); }
  .card--photo.is-open .card__photo-overlay { opacity: 1; }
  .card--photo.is-open .card__photo-gradient{ opacity: 0; }
  .card--photo.is-open h3                   { margin-bottom: 16px; }
  .card--photo.is-open .card__photo-reveal  { max-height: 260px; opacity: 1; }
}

/* ── Shooting stars ─────────────────────────────────────────────────────── */
.shooting-star {
  position: fixed;
  width: 1.5px;
  border-radius: 1px;
  pointer-events: none;
  z-index: 9000;
  transform-origin: 50% 0%;
  will-change: transform, opacity;
}
