/* ===== Homepage ===== */
.h-marquee{overflow:hidden;padding:10px 0 0;background:#000;-webkit-mask-image:linear-gradient(90deg,transparent,#000 8%,#000 92%,transparent);mask-image:linear-gradient(90deg,transparent,#000 8%,#000 92%,transparent)}
.h-track{display:flex;gap:22px;width:max-content;animation:hMarquee 45s linear infinite}
.h-track.is-reverse{animation-direction:reverse;animation-duration:55s}
.h-track img{width:420px;height:auto;aspect-ratio:16/9;object-fit:cover;border-radius:14px;border:1px solid rgba(255,255,255,.08)}
.h-marquee:hover .h-track{animation-play-state:paused}
@keyframes hMarquee{to{transform:translateX(-50%)}}
@media (prefers-reduced-motion:reduce){.h-track{animation:none}}

.h-services{padding:130px 0;background:#000;color:#fff}
.h-rows{display:flex;flex-direction:column;gap:110px}
.h-row{display:grid;grid-template-columns:1.25fr 1fr;gap:70px;align-items:center}
.h-row:nth-child(even) .h-media{order:2}
.h-num{font-size:13px;letter-spacing:2px;color:#777}
.h-row h3{font-size:50px;letter-spacing:-1.6px;line-height:1.05;margin:14px 0 18px}
.h-row p{font-size:18px;line-height:1.7;color:#b0b0b0;margin-bottom:30px;max-width:460px}
.h-media{position:relative;border-radius:22px;overflow:hidden;border:1px solid rgba(255,255,255,.08);aspect-ratio:16/10;background:radial-gradient(120% 120% at 30% 20%,#2a2a30 0%,#0d0d10 60%)}
.h-media>img.h-cover{width:100%;height:100%;object-fit:cover;display:block;transition:transform .8s cubic-bezier(.2,.7,.2,1)}
.h-media:hover>img.h-cover{transform:scale(1.04)}
.h-media .bot-pair{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;gap:4%}
.h-media .bot-pair img{width:27%;height:auto;transition:transform .5s cubic-bezier(.2,.7,.2,1)}
.h-media .bot-pair img:nth-child(2){transform:translateY(-14px)}
.h-media:hover .bot-pair img{transform:translateY(-8px)}
.h-media:hover .bot-pair img:nth-child(2){transform:translateY(-22px)}
.h-pills{display:flex;flex-wrap:wrap;gap:8px;margin:-10px 0 28px;padding:0;list-style:none}
.h-pills li{font-size:12px;padding:6px 12px;border:1px solid rgba(255,255,255,.16);border-radius:100px;color:#cfcfcf}

/* Hero */
.hc-hero{position:relative;min-height:100vh;display:flex;align-items:center;justify-content:center;overflow:hidden;background:#000;color:#fff;text-align:center}
.hc-bg{position:absolute;inset:0;display:flex;flex-direction:column;justify-content:center;gap:22px;opacity:.38;transform:rotate(-6deg) scale(1.15)}
.hc-bg .h-marquee{padding:0;-webkit-mask-image:none;mask-image:none;background:transparent}
.hc-hero::after{content:"";position:absolute;inset:0;background:radial-gradient(60% 55% at 50% 50%,rgba(0,0,0,.92) 0%,rgba(0,0,0,.55) 60%,rgba(0,0,0,.2) 100%)}
.hc-copy{position:relative;z-index:2;padding:140px 24px 80px}
.hc-copy h1{font-size:clamp(54px,8vw,112px);line-height:.98;letter-spacing:-4px;margin:18px 0 26px}
.hc-copy p{font-size:20px;color:#bdbdbd;max-width:620px;margin:0 auto 36px;line-height:1.7}
.hc-copy .buttons{display:flex;gap:14px;justify-content:center;flex-wrap:wrap}

@media(max-width:900px){
  .h-track img{width:260px}
  .h-services{padding:90px 0}
  .h-row{grid-template-columns:1fr;gap:28px}
  .h-row:nth-child(even) .h-media{order:0}
  .h-row h3{font-size:38px}
  .h-rows{gap:80px}
}

/* Design block: fan of projects */
.hm-fan img{position:absolute;width:62%;height:auto;aspect-ratio:16/9;object-fit:cover;border-radius:12px;box-shadow:0 24px 60px rgba(0,0,0,.6);border:1px solid rgba(255,255,255,.1);transition:transform .6s cubic-bezier(.2,.7,.2,1)}
.hm-fan img:nth-child(1){left:6%;top:12%;transform:rotate(-7deg)}
.hm-fan img:nth-child(2){right:6%;top:10%;transform:rotate(6deg)}
.hm-fan img:nth-child(3){left:19%;bottom:9%;z-index:2}
.hm-fan:hover img:nth-child(1){transform:rotate(-10deg) translate(-14px,-6px)}
.hm-fan:hover img:nth-child(2){transform:rotate(9deg) translate(14px,-6px)}
.hm-fan:hover img:nth-child(3){transform:translateY(-8px) scale(1.03)}

/* NFC block: card with waves */
.hn-solo{display:block}
.hn-solo img{position:absolute;left:50%;top:50%;width:44%;max-height:78%;object-fit:contain;height:auto;transform:translate(-50%,-50%) rotate(-6deg);filter:drop-shadow(0 30px 50px rgba(0,0,0,.6));z-index:2;transition:transform .6s cubic-bezier(.2,.7,.2,1)}
.hn-solo:hover img{transform:translate(-50%,-50%) rotate(0) scale(1.04)}
.hn-solo .w{position:absolute;left:50%;top:50%;width:40%;aspect-ratio:1;border:1px solid rgba(255,255,255,.18);border-radius:50%;transform:translate(-50%,-50%);animation:hnWave 3s ease-out infinite}
.hn-solo .w:nth-child(2){animation-delay:1s}.hn-solo .w:nth-child(3){animation-delay:2s}
@keyframes hnWave{0%{width:40%;opacity:.9}100%{width:110%;opacity:0}}
@media (prefers-reduced-motion:reduce){.hn-solo .w{animation:none;opacity:.3}}

/* Hero background: rows of real site screens */
.hc-bg .h-track img{width:440px;aspect-ratio:16/10;border-radius:12px}
@media(max-width:900px){.hc-bg .h-track img{width:260px}}
.hc-bg{pointer-events:none}.hc-bg .h-track{will-change:transform}.hc-bg .h-track{animation-duration:160s}

/* Safari: clip rotated/shadowed images to the rounded frame */
.h-media{isolation:isolate;-webkit-mask-image:-webkit-radial-gradient(white,black)}

/* Browsers without aspect-ratio (older Safari): keep the 16:10 frame */
@supports not (aspect-ratio:1/1){.h-media{height:0;padding-top:62.5%}}

/* homepage: all bots in one pile, they fan out on hover */
.h-media .bot-pile{position:absolute;inset:0}
.h-media .bot-pile img{position:absolute;width:29%;height:auto;border-radius:24%;filter:drop-shadow(0 16px 22px rgba(0,0,0,.45));transition:transform .6s cubic-bezier(.2,.7,.2,1)}
.bot-pile .bp-whatsapp{left:20%;top:9%;transform:rotate(-14deg)}
.bot-pile .bp-threads{left:51%;top:8%;transform:rotate(13deg)}
.bot-pile .bp-facebook{left:13%;top:39%;transform:rotate(-8deg)}
.bot-pile .bp-tiktok{left:58%;top:38%;transform:rotate(10deg)}
.bot-pile .bp-telegram{left:35.5%;top:25%;transform:rotate(-2deg)}
.h-media:hover .bot-pile .bp-whatsapp{transform:translate(-18%,-10%) rotate(-22deg)}
.h-media:hover .bot-pile .bp-threads{transform:translate(18%,-10%) rotate(22deg)}
.h-media:hover .bot-pile .bp-facebook{transform:translate(-22%,8%) rotate(-16deg)}
.h-media:hover .bot-pile .bp-tiktok{transform:translate(22%,8%) rotate(18deg)}
.h-media:hover .bot-pile .bp-telegram{transform:translateY(-6%) scale(1.08) rotate(0deg)}
@media (prefers-reduced-motion:reduce){.h-media .bot-pile img{transition:none}}
