/* Home page motion layer. Mild entrances (each under half a second, played once), a few short accents, no endless new loops
   apart from nothing: every animation added here finishes. All of it sits inside "no-preference", so visitors who ask for
   reduced motion see the page still. Content is only ever held back while JavaScript is running (.js / .m-* classes). */
@media (prefers-reduced-motion:no-preference){

:root{ --m-ease:cubic-bezier(.2,.8,.2,1); }
@supports (interpolate-size:allow-keywords){ :root{ interpolate-size:allow-keywords; } }

.js .reveal{ transform:translateY(18px); transition-duration:.45s; }
.js .reveal.in-view{ transform:none; }

/* ---------- Headings: words rise in turn ---------- */
.mw{ display:inline-block; }
.js .reveal:not(.in-view) .mw{ opacity:0; }
.js .reveal.in-view .mw{ animation:m-word .45s var(--m-ease) backwards; animation-delay:calc(var(--i,0) * 45ms); }
.js .reveal.in-view .kicker,.js .reveal.in-view .sd-kicker{ animation:m-kicker .5s var(--m-ease) backwards; }
.js .head.reveal.in-view>p,.js .sd-head.reveal.in-view>p,.js .head.reveal.in-view>.text-link{ animation:m-up .45s var(--m-ease) .18s backwards; }

/* ---------- Platform cards ---------- */
.js .features .card.reveal:nth-child(3n+2){ transition-delay:.07s,0s,0s,0s; }
.js .features .card.reveal:nth-child(3n){ transition-delay:.14s,0s,0s,0s; }
.js .card.reveal.in-view .icon-tile{ animation:m-pop .5s var(--m-ease) .15s backwards; }
.js .card.reveal:not(.in-view) .chips span{ opacity:0; }
.js .card.reveal.in-view .chips span{ animation:m-up .4s var(--m-ease) .25s backwards; }
.js .card.reveal.in-view .chips span:nth-child(2){ animation-delay:.31s; }
.js .card.reveal.in-view .chips span:nth-child(3){ animation-delay:.37s; }
.js .card.reveal.in-view .code{ animation:m-type .9s steps(24,end) .3s backwards; }

/* ---------- Solutions list ---------- */
.js .solution-list.reveal{ opacity:1; transform:none; transition:none; }
.js .solution-list.reveal:not(.in-view) .solution{ opacity:0; }
.js .solution-list.reveal.in-view .solution{ animation:m-side .45s var(--m-ease) backwards; }
.js .solution-list.reveal.in-view .solution:nth-of-type(2){ animation-delay:.08s; }
.js .solution-list.reveal.in-view .solution:nth-of-type(3){ animation-delay:.16s; }
.js .solution-list.reveal.in-view .solution:nth-of-type(4){ animation-delay:.24s; }
.solution{ position:relative; }
.solution::after{ content:""; position:absolute; left:0; right:0; bottom:-1px; height:1px; background:linear-gradient(90deg,#087cff,#20d9f3,transparent); transform:scaleX(0); transform-origin:0 50%; transition:transform .45s var(--m-ease); }
.solution:hover::after{ transform:scaleX(1); }
.solution .num{ transition:color .25s; }
.solution:hover .num{ color:#6fdcff; }

/* ---------- Guest experience: the line draws, then the three steps light up in order ---------- */
.js .steps:not(.m-run):before{ transform:scaleX(0); }
.steps.m-run:before{ animation:m-draw 1.1s var(--m-ease) backwards,gc-flow 7s linear 1.1s 3; }
.steps.m-run .stepno{ animation:m-step 1.2s ease-in-out .35s 2; }
.steps.m-run .step-card:nth-child(2) .stepno{ animation-delay:.75s; }
.steps.m-run .step-card:nth-child(3) .stepno{ animation-delay:1.15s; }
.step-card{ transition:border-color .3s; }
.step-card:hover{ border-color:rgba(58,159,255,.4); }

/* ---------- Security ---------- */
.security{ position:relative; overflow:hidden; }
.security::after{ content:""; position:absolute; top:0; bottom:0; left:0; width:32%; background:linear-gradient(100deg,transparent,rgba(110,200,255,.09),transparent); transform:translateX(-120%); pointer-events:none; }
.js .security.reveal.in-view::after{ animation:m-sweep 1.8s ease-in-out .3s; }
.js .security.reveal:not(.in-view) .security-item{ opacity:0; }
.js .security.reveal.in-view .security-item{ animation:m-up .45s var(--m-ease) .2s backwards; transition:border-color .3s,transform .3s; }
.js .security.reveal.in-view .security-item:nth-child(2){ animation-delay:.28s; }
.js .security.reveal.in-view .security-item:nth-child(3){ animation-delay:.36s; }
.js .security.reveal.in-view .security-item:nth-child(4){ animation-delay:.44s; }
.security-item:hover{ border-color:rgba(58,159,255,.45); transform:translateY(-3px); }

/* ---------- Questions ---------- */
.js .faq-list.reveal:not(.in-view) .faq-item{ opacity:0; }
.js .faq-list.reveal.in-view .faq-item{ animation:m-up .4s var(--m-ease) backwards; }
.js .faq-list.reveal.in-view .faq-item:nth-child(2){ animation-delay:.06s; }
.js .faq-list.reveal.in-view .faq-item:nth-child(3){ animation-delay:.12s; }
.js .faq-list.reveal.in-view .faq-item:nth-child(4){ animation-delay:.18s; }
.js .faq-list.reveal.in-view .faq-item:nth-child(5){ animation-delay:.24s; }
.faq-item{ transition:background .25s,border-color .25s; }
.faq-item:hover{ border-color:rgba(58,159,255,.35); }
/* smooth open and close where the browser supports it; elsewhere the answer simply appears */
@supports selector(::details-content){
  .faq-item::details-content{ block-size:0; overflow:hidden; opacity:0; transition:block-size .35s var(--m-ease),opacity .3s,content-visibility .35s allow-discrete; }
  .faq-item[open]::details-content{ block-size:auto; opacity:1; }
}

/* ---------- Final call to action ---------- */
.cta{ isolation:isolate; }
.cta::before,.cta::after{ content:""; position:absolute; z-index:-1; left:50%; top:0; width:min(760px,120%); aspect-ratio:1; border-radius:50%; border:1px solid rgba(80,180,255,.28); transform:translate(-50%,-50%) scale(.35); opacity:0; pointer-events:none; }
.js .cta.reveal.in-view::before{ animation:gc-ring 4.5s ease-out .2s 2; }
.js .cta.reveal.in-view::after{ animation:gc-ring 4.5s ease-out 1.7s 2; }
.js .cta.reveal.in-view>p,.js .cta.reveal.in-view>.hero-buttons,.js .cta.reveal.in-view>.contact{ animation:m-up .45s var(--m-ease) .2s backwards; }
.js .cta.reveal.in-view>.hero-buttons{ animation-delay:.28s; }
.js .cta.reveal.in-view>.contact{ animation-delay:.36s; }

/* ---------- Footer ---------- */
.footer-grid.m-wait>*{ opacity:0; }
.footer-grid.m-in>*{ animation:m-up .45s var(--m-ease) backwards; }
.footer-grid.m-in>:nth-child(2){ animation-delay:.07s; }
.footer-grid.m-in>:nth-child(3){ animation-delay:.14s; }
.footer-grid.m-in>:nth-child(4){ animation-delay:.21s; }

/* ---------- Section edges: a thin light draws across as each section arrives ---------- */
main>.section,main>.sd-section{ position:relative; }
main>.m-edge::before{ content:""; position:absolute; left:12%; right:12%; top:0; height:1px; background:linear-gradient(90deg,transparent,rgba(32,217,243,.45),transparent); transform:scaleX(0); transition:transform .9s var(--m-ease); pointer-events:none; }
main>.m-edge.m-seen::before{ transform:scaleX(1); }

@keyframes m-word{ from{ opacity:0; transform:translateY(.45em); } }
@keyframes m-kicker{ from{ opacity:0; letter-spacing:.4em; } }
@keyframes m-up{ from{ opacity:0; transform:translateY(14px); } }
@keyframes m-side{ from{ opacity:0; transform:translateX(26px); } }
@keyframes m-pop{ from{ opacity:0; transform:scale(.6) rotate(-10deg); } 60%{ transform:scale(1.08) rotate(2deg); } }
@keyframes m-type{ from{ clip-path:inset(0 100% 0 0); } to{ clip-path:inset(0 0 0 0); } }
@keyframes m-draw{ from{ transform:scaleX(0); } }
@keyframes m-step{ 50%{ transform:scale(1.12); background:#0b2542; border-color:#20d9f3; box-shadow:0 0 0 10px rgba(32,217,243,.12); color:#fff; } }
@keyframes m-sweep{ to{ transform:translateX(420%); } }
}

/* ---------- Useful in every mode: link underlines and "you are here" in the menu ---------- */
.footer nav a{ width:fit-content; background:linear-gradient(currentColor,currentColor) 0 100%/0 1px no-repeat; transition:background-size .25s,color .25s; }
.footer nav a:hover,.footer nav a:focus-visible{ background-size:100% 1px; }
.nav-links>a{ position:relative; }
.nav-links>a::after{ content:""; position:absolute; left:0; right:0; bottom:-7px; height:2px; border-radius:2px; background:linear-gradient(90deg,#087cff,#20d9f3); transform:scaleX(0); transition:transform .25s; }
.nav-links>a:hover::after,.nav-links>a.is-current::after{ transform:scaleX(1); }
.nav-links>a.is-current{ color:#fff; }
@media (max-width:1050px){ .nav-links>a::after{ left:8px; right:auto; width:28px; bottom:3px; } }

/* ---------- Finishing touches ---------- */
/* highlighted phrases keep their descenders: the gradient is only painted inside the element's own box */
main h2 .gradient{ display:inline-block; padding-bottom:.14em; margin-bottom:-.14em; }
@media (max-width:600px){
  /* the greeting pop-up covers content on small screens; the chat button itself stays */
  #gcSiteChatGreeting{ display:none !important; }
}
@media (max-width:520px){
  .footer-grid{ grid-template-columns:repeat(2,minmax(0,1fr)); gap:30px 18px; }
  .footer-grid>:first-child{ grid-column:1 / -1; }
  .footer-grid>:last-child{ grid-column:1 / -1; display:flex; flex-wrap:wrap; column-gap:22px; }
  .footer-grid>:last-child h3{ flex-basis:100%; }
  .footer{ padding-bottom:92px; } /* room for the chat and back-to-top buttons */
}
