/* Animated hero slider (replaces the static banner): navy + glowing teal arc, 3D phone with real app screens,
   glass cards, 3 auto-advancing slides. Pure CSS animations, driven by aff.js (class .on on the active slide). */
.hx { position: relative; overflow: hidden; color: #fff; background: radial-gradient(900px 520px at 78% 38%, rgba(20,184,166,.28), transparent 60%), radial-gradient(700px 400px at 8% 90%, rgba(56,189,248,.14), transparent 60%), linear-gradient(160deg, #07122b 0%, #0b1a3c 55%, #082033 100%); }
.hx-in { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 20px; min-height: 620px; padding-top: 40px; padding-bottom: 70px; }
.hx-arc { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hx-arc path { fill: none; stroke: url(#hxg); stroke-width: 3; stroke-linecap: round; filter: drop-shadow(0 0 10px rgba(45,212,191,.9)); stroke-dasharray: 2400; stroke-dashoffset: 2400; animation: hxarc 3.2s .2s cubic-bezier(.4,0,.2,1) forwards; }
.hx-arc path.b { stroke-width: 1.5; opacity: .5; animation-delay: .7s; }
@keyframes hxarc { to { stroke-dashoffset: 0; } }
.hx-dots i { position: absolute; width: 4px; height: 4px; border-radius: 50%; background: #5eead4; opacity: 0; box-shadow: 0 0 10px #2dd4bf; animation: hxdot 6s linear infinite; }
@keyframes hxdot { 0% { opacity: 0; transform: translateY(0); } 15% { opacity: .9; } 100% { opacity: 0; transform: translateY(-160px); } }

/* text slides */
.hx-text { position: relative; min-height: 300px; }
.hx-s { position: absolute; inset: 0 0 auto 0; opacity: 0; pointer-events: none; }
.hx-s.on { opacity: 1; pointer-events: auto; }
.hx-s .kick { display: inline-flex; gap: 8px; align-items: center; color: #5eead4; background: rgba(45,212,191,.12); border: 1px solid rgba(94,234,212,.25); padding: 6px 14px; border-radius: 999px; font-weight: 700; font-size: .85rem; }
.hx-s h1, .hx-s h2 { font-size: clamp(2.3rem, 5.2vw, 4rem); font-weight: 900; line-height: 1.05; letter-spacing: -.03em; margin: 18px 0 14px; color: #fff; }
.hx-s h1 em, .hx-s h2 em { font-style: normal; }
.hx-s em .w { background: linear-gradient(90deg, #5eead4, #a7f3d0); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: .08em; }
.hx-s p { color: #cbd5e1; font-size: 1.15rem; max-width: 470px; margin: 0; }
.hx-s .w { display: inline-block; opacity: 0; transform: translateY(26px); }
.hx-s.on .w { animation: hxup .6s cubic-bezier(.2,.8,.2,1) forwards; }
.hx-s.on p, .hx-s.on .kick { animation: hxfade .7s .35s both; }
@keyframes hxup { to { opacity: 1; transform: none; } }
@keyframes hxfade { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.hx-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.hx-ctas .btn.ghost { background: rgba(255,255,255,.08); color: #fff; border: 1px solid rgba(255,255,255,.25); box-shadow: none; }
.hx-ctas .btn.ghost::after { display: none; }
.hx-proof { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 22px; color: #a5b4c8; font-size: .9rem; }
.hx-proof span::before { content: "✓"; color: #5eead4; font-weight: 900; margin-right: 7px; }

/* phone */
.hx-stage { position: relative; height: 580px; perspective: 1400px; }
.hx-phone { position: absolute; left: 50%; top: 50%; width: 270px; aspect-ratio: 9/19.3; margin: -290px 0 0 -100px; border-radius: 44px; padding: 10px; background: linear-gradient(145deg, #3b4a6b, #0f172a 40%, #1e2a44); box-shadow: 0 0 0 2px rgba(148,163,184,.25), 0 50px 90px -30px rgba(0,0,0,.8), 0 0 80px -10px rgba(45,212,191,.35); transform: rotateY(-16deg) rotateX(4deg) rotateZ(2deg); animation: hxfloat 7s ease-in-out infinite; }
.hx-phone::before { content: ""; position: absolute; top: 17px; left: 50%; width: 82px; height: 22px; margin-left: -41px; background: #0b1120; border-radius: 0 0 14px 14px; z-index: 3; }
@keyframes hxfloat { 50% { transform: rotateY(-10deg) rotateX(2deg) rotateZ(0deg) translateY(-14px); } }
.hx-screen { position: relative; width: 100%; height: 100%; border-radius: 35px; overflow: hidden; background: #fff; }
.hx-screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; opacity: 0; transform: translateX(30px) scale(1.02); transition: opacity .7s ease, transform .9s cubic-bezier(.2,.8,.2,1); }
.hx-screen img.on { opacity: 1; transform: none; }
.hx-screen::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,.35) 48%, transparent 60%); transform: translateX(-120%); animation: hxglare 6s 1.5s ease-in-out infinite; }
@keyframes hxglare { 0%, 70% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }

/* glass cards (per slide) */
.hx-card { position: absolute; display: flex; align-items: center; gap: 14px; padding: 16px 20px; border-radius: 20px; color: #fff; font-weight: 800; font-size: 1.15rem; line-height: 1.2; background: linear-gradient(135deg, rgba(45,212,191,.28), rgba(15,118,110,.18)); border: 1px solid rgba(94,234,212,.45); backdrop-filter: blur(14px); box-shadow: 0 20px 50px -20px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.25), 0 0 30px -6px rgba(45,212,191,.5); opacity: 0; transform: translateX(-30px) scale(.9); transition: opacity .5s, transform .6s cubic-bezier(.2,.9,.3,1.2); z-index: 4; }
.hx-card small { display: block; font-weight: 600; font-size: .78rem; color: #a7f3d0; margin-top: 3px; }
.hx-card .ic { width: 44px; height: 44px; flex: 0 0 auto; border-radius: 14px; display: grid; place-items: center; font-size: 1.35rem; background: rgba(255,255,255,.12); }
.hx-card.on { opacity: 1; transform: none; }
.hx-card.c1 { left: 0; top: 120px; } .hx-card.c2 { left: 30px; top: 250px; } .hx-card.c3 { left: 0; top: 380px; }
.hx-card .tick { color: #5eead4; }

/* slide dots + progress */
.hx-nav { position: absolute; left: 20px; bottom: 26px; display: flex; gap: 10px; z-index: 5; }
.hx-nav button { width: 44px; height: 6px; border: 0; padding: 0; border-radius: 99px; background: rgba(255,255,255,.18); cursor: pointer; overflow: hidden; position: relative; }
.hx-nav button i { position: absolute; inset: 0; width: 0; background: linear-gradient(90deg, #2dd4bf, #34d399); border-radius: 99px; }
.hx-nav button.on i { animation: hxbar var(--hxdur, 5.5s) linear forwards; }
@keyframes hxbar { to { width: 100%; } }

@media (max-width: 980px) {
  .hx-in { grid-template-columns: 1fr; min-height: 0; padding-top: 28px; padding-bottom: 80px; }
  .hx-text { min-height: 270px; }
  .hx-stage { height: 470px; }
  .hx-phone { width: 215px; margin: -235px 0 0 -40px; }
  .hx-card { font-size: .95rem; padding: 12px 14px; } .hx-card .ic { width: 36px; height: 36px; font-size: 1.1rem; }
  .hx-card.c1 { top: 70px; } .hx-card.c2 { top: 190px; left: 10px; } .hx-card.c3 { top: 310px; }
}
@media (max-width: 520px) {
  .hx-text { min-height: 280px; }
  .hx-s h1, .hx-s h2 { font-size: 2.35rem; }
  .hx-ctas .btn { width: 100%; }
  .hx-phone { width: 190px; margin: -205px 0 0 -10px; }
  .hx-stage { height: 420px; }
}
@media (prefers-reduced-motion: reduce) {
  .hx *, .hx *::before, .hx *::after { animation: none !important; transition: none !important; }
  .hx-s .w { opacity: 1; transform: none; }
  .hx-arc path { stroke-dashoffset: 0; }
}

.vsec { padding: 70px 0 10px; background: var(--white); }
.vsec h2 { margin-bottom: 26px; }
.vsec .vid video { box-shadow: 0 40px 90px -35px rgba(11,21,48,.6), 0 0 0 1px rgba(15,23,42,.06); }
