/* ===== Landing: AI infrastruktura ===== */

/* --- Nic nesmi vytecet do stran --- */
html, body { overflow-x: hidden; max-width: 100%; }
img, svg { max-width: 100%; }
.site-header, footer { max-width: 100vw; overflow-x: hidden; }

/* --- Cely web na bilem pozadi (misto sedeho) --- */
body { background: #ffffff; }

/* --- Sirka obsahu --- */
.lp-c {
  width: 100%;
  max-width: 1080px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 40px;
  padding-right: 40px;
}

/* --- Hlavicka nad tmavym hero musi byt citelna --- */
.site-header:not(.is-scrolled),
.site-header:not(.is-scrolled) a,
.site-header:not(.is-scrolled) .nav a,
.site-header:not(.is-scrolled) .submenu-trigger { color: #fff; }
.site-header:not(.is-scrolled) .logo img { filter: brightness(0) invert(1); }
.site-header:not(.is-scrolled) .btn--outline { color: #fff; border-color: rgba(255,255,255,0.45); background: transparent; }
.site-header:not(.is-scrolled) .btn:not(.btn--outline) { background: #c2f15e; color: #232323; }
.site-header:not(.is-scrolled) .burger span { background: #fff; }
.site-header:not(.is-scrolled) .submenu a { color: #232323; }
.site-header.is-scrolled { background: rgba(255,255,255,0.92); }

/* --- Hero --- */
.lp-hero { padding-top: 170px; padding-bottom: 110px; }
.lp-hero::before, .lp-hero::after { display: none !important; content: none !important; }
/* style.css ma na .ai-mcp__h2 font-size s !important, proto i tady !important */
.lp-hero .ai-mcp__h2 {
  color: #fff;
  font-size: clamp(42px, 6.6vw, 96px) !important;
  line-height: 1.0;
  letter-spacing: -0.02em;
  max-width: 980px;
  margin: 18px auto 0;
}
.lp-hero .accent { color: #c2f15e; }
.lp-hero__lead {
  max-width: 640px;
  margin: 30px auto 0;
  font-size: 17px;
  line-height: 1.6;
  color: rgba(255,255,255,0.85);
}

/* --- Skok z homepage rovnou na "Co to obsahuje" (fixni hlavicka) --- */
#co-to-obsahuje { scroll-margin-top: 96px; }

/* --- Bloky infrastruktury: 2 sloupce, vlevo sede / vpravo zlute --- */
.lp-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.lp-block {
  border-radius: 30px;
  padding: 44px 42px 40px;
  display: flex;
  flex-direction: column;
}
/* levy sloupec = sedy, pravy = zluty */
.lp-grid > .lp-block:nth-child(odd)  { background: #f0f0ee; border: 0; }
.lp-grid > .lp-block:nth-child(even) { background: #fdf3c4; border: 0; }
.lp-block__tag {
  align-self: flex-start;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #8a8a7a;
  margin-bottom: 16px;
}
.lp-block h3 {
  font-size: 27px;
  font-weight: 700;
  line-height: 1.2;
  color: #232323;
  margin: 0 0 12px;
}
.lp-block > p {
  font-size: 16px;
  line-height: 1.65;
  color: #55584f;
  margin: 0 0 28px;
}
.lp-block > p strong { color: #232323; font-weight: 600; }
.lp-more { display: none; }
.lp-block__cta {
  align-self: flex-start;
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: #232323;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 700;
  padding: 11px 22px;
  border: 1.5px solid #232323;
  border-radius: 999px;
  cursor: pointer;
  transition: background .18s ease, color .18s ease;
}
.lp-block__cta:hover { background: #232323; color: #fff; }
.lp-block__cta svg { width: 13px; height: 13px; }

/* --- Popup --- */
.lp-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(15,15,15,0.6);
}
.lp-modal.is-open { display: flex; }
.lp-modal__dialog {
  position: relative;
  background: #fff;
  border-radius: 26px;
  max-width: 620px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  padding: 30px 44px 40px;
}
.lp-modal__close {
  position: absolute;
  top: 18px; right: 18px;
  width: 38px; height: 38px;
  border: 0;
  border-radius: 50%;
  background: #f2f2ef;
  color: #232323;
  font-size: 19px;
  line-height: 1;
  cursor: pointer;
  z-index: 3;
}
.lp-modal__close:hover { background: #e6e6e2; }
.lp-modal__tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #8a8a7a;
  margin-bottom: 12px;
}
.lp-modal__dialog h3 { font-size: 27px; font-weight: 700; color: #232323; margin: 0 0 14px; }
.lp-modal__dialog p { font-size: 16px; line-height: 1.7; color: #55584f; margin: 0 0 16px; }
.lp-modal__dialog ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.lp-modal__dialog li {
  display: flex; gap: 11px; align-items: flex-start;
  font-size: 15.5px; line-height: 1.55; color: #3f4239;
}
.lp-modal__dialog li::before {
  content: ""; flex: 0 0 8px; width: 8px; height: 8px;
  border-radius: 50%; background: #c2f15e; margin-top: 8px;
}
body.lp-locked { overflow: hidden; }

/* --- Kroky: na bilem webu potrebuji jemny ramecek --- */
.steps .step { position: relative; border: 1.5px solid #e8e8e4; }

/* --- Rucne kreslene carkovane sipky mezi kroky (nahore, mimo text) --- */
.lp-arrow {
  position: absolute;
  right: -54px;
  top: 0;
  transform: rotate(-8deg);
  width: 100px; height: 66px;
  color: #232323;
  pointer-events: none;
  z-index: 2;
}
.lp-arrow svg { width: 100%; height: 100%; display: block; overflow: visible; }
/* carky misto tecek + tenci tah (prebiji atributy v SVG) */
.lp-arrow svg path { stroke-dasharray: 11 8; stroke-width: 1.8; }

/* --- Dve CTA vedle sebe, presne stejna sirka i vyska --- */
.lp-ctas { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 46px auto 0; max-width: 780px; align-items: stretch; }
.lp-ctas .btn { width: 100%; justify-content: center; text-align: center; white-space: normal; }

@media (max-width: 900px) {
  .lp-grid { grid-template-columns: 1fr; }
  .lp-block { padding: 34px 28px 32px; border-radius: 24px; }
  .lp-block h3 { font-size: 23px; }
  .lp-arrow { display: none; }
}
@media (max-width: 760px) {
  .lp-c { padding-left: 20px; padding-right: 20px; }
  .lp-hero { padding-top: 130px; padding-bottom: 80px; }
  .lp-c .steps, .lp-c .mini-faq { grid-template-columns: 1fr; }
  .lp-c .ctas { flex-direction: column; align-items: stretch; }
  .lp-ctas { grid-template-columns: 1fr; }
  .lp-c .ctas .btn, .lp-ctas .btn { width: 100%; }
  .lp-modal__dialog { padding: 24px 24px 30px; }
}

/* =========================================================
   ANIMOVANE GRAFIKY V POPUPU
   ========================================================= */
.lp-anim {
  position: relative;
  height: 188px;
  border-radius: 18px;
  margin: 4px 0 26px;
  overflow: hidden;
  background: radial-gradient(135% 150% at 18% -12%, #333 0%, #1d1d1d 58%, #121212 100%);
}
.lp-anim__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 26px 26px;
  -webkit-mask: radial-gradient(120% 120% at 50% 25%, #000 38%, transparent 76%);
          mask: radial-gradient(120% 120% at 50% 25%, #000 38%, transparent 76%);
}
.lp-anim > svg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  display: block;
}
.lp-anim [class^="a-"], .lp-anim [class*=" a-"] {
  transform-box: fill-box;
  transform-origin: center;
}

/* animace */
@keyframes lpFloat  { 0%,100%{ transform: translateY(0) } 50%{ transform: translateY(-8px) } }
@keyframes lpFloat2 { 0%,100%{ transform: translateY(0) } 50%{ transform: translateY(6px) } }
@keyframes lpFlow   { to { stroke-dashoffset: -28 } }
@keyframes lpRing   { 0%{ transform: scale(.45); opacity:.7 } 80%{ opacity:0 } 100%{ transform: scale(1.9); opacity:0 } }
@keyframes lpSpin   { to { transform: rotate(360deg) } }
@keyframes lpBlink  { 0%,100%{ opacity:.22 } 50%{ opacity:1 } }
@keyframes lpRise   { 0%{ transform: translateY(18px); opacity:0 } 42%,78%{ transform: translateY(0); opacity:1 } 100%{ transform: translateY(-5px); opacity:0 } }
@keyframes lpDrop   { 0%{ transform: translateY(-36px); opacity:0 } 45%{ opacity:1 } 70%,100%{ transform: translateY(0); opacity:1 } }
@keyframes lpDraw   { 0%{ stroke-dashoffset:1 } 55%,100%{ stroke-dashoffset:0 } }
@keyframes lpBar    { 0%{ transform: scaleX(.05) } 70%,100%{ transform: scaleX(1) } }
@keyframes lpType   { 0%{ transform: scaleX(0) } 68%,100%{ transform: scaleX(1) } }
@keyframes lpPkt    { 0%{ transform: translateX(0); opacity:0 } 12%{ opacity:1 } 88%{ opacity:1 } 100%{ transform: translateX(var(--pkt,120px)); opacity:0 } }
@keyframes lpSwing  { 0%,100%{ transform: rotate(-9deg) } 50%{ transform: rotate(9deg) } }

.a-float  { animation: lpFloat  3.4s ease-in-out infinite }
.a-float2 { animation: lpFloat2 3.8s ease-in-out infinite }
.a-flow   { stroke-dasharray: 6 8; animation: lpFlow 1.1s linear infinite }
.a-flowr  { stroke-dasharray: 6 8; animation: lpFlow 1.1s linear infinite reverse }
.a-ring   { animation: lpRing 2.4s ease-out infinite }
.a-spin   { animation: lpSpin 7s linear infinite }
.a-blink  { animation: lpBlink 1.5s ease-in-out infinite }
.a-rise   { animation: lpRise 2.8s ease-in-out infinite }
.a-drop   { animation: lpDrop 2.3s ease-in-out infinite }
.a-draw   { stroke-dasharray: 1; stroke-dashoffset: 1; animation: lpDraw 2.4s ease-in-out infinite }
.a-bar    { transform-origin: left center; animation: lpBar 2.8s ease-in-out infinite }
.a-type   { transform-origin: left center; animation: lpType 3s ease-in-out infinite }
.a-pkt    { animation: lpPkt 1.9s ease-in-out infinite }
.a-swing  { animation: lpSwing 3.2s ease-in-out infinite }
.d1 { animation-delay: .35s } .d2 { animation-delay: .7s } .d3 { animation-delay: 1.05s } .d4 { animation-delay: 1.4s }

@media (prefers-reduced-motion: reduce) {
  .lp-anim [class^="a-"], .lp-anim [class*=" a-"] { animation: none !important }
}
