/* The particle scene of the homepage. The first two screens are a fixed WebGL scene (vendor/particle-scene.js)
   with the copy laid over it; #top is the scroll distance the scene plays over; the rest of the page
   (.rest) then slides over the scene as a sheet. Loaded after site.css and overrides parts of it. */
:root{--blue:#156fdb;--deep:#01040a}
html,body{background:var(--deep)}
body{color:#fff;font-family:'Geist','Helvetica Neue',Arial,sans-serif;-webkit-font-smoothing:antialiased}
#top{height:420vh;pointer-events:none}
#scene,.vignette{position:fixed;inset:0;width:100%;height:100%}
#scene{display:block}
.vignette{pointer-events:none;background:radial-gradient(circle at 50% 53%,transparent 20%,rgba(0,4,10,.1) 56%,rgba(0,2,6,.8) 100%)}
.custom-cursor{display:none}

/* Pills: the buttons of the scene and of the header */
.pill{display:inline-flex;align-items:center;justify-content:center;padding:12px 20px;border-radius:999px;font-size:16px;color:#fff;text-decoration:none;white-space:nowrap}
.pill.primary{background:var(--blue)}.pill.primary:hover{background:#2a83ee;color:#fff}
.pill.white{background:#fff;color:#000}.pill.white:hover{background:#e6e6e6;color:#000}
.pill.glass,.t-nav,.trust-card,.feature-grid article{border:1px solid rgba(255,255,255,.2);background:rgba(129,129,129,.2);backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px)}
.pill.glass:hover{border-color:rgba(255,255,255,.5);color:#fff}

/* Header: floats over the scene, gets a dark bar once the rest of the page is under it (scene.js) */
.t-header{position:fixed;z-index:40;top:0;left:0;right:0;display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:20px 40px 20px 36px}
.t-header::before{content:'';position:absolute;inset:0;z-index:-1;background:rgba(1,4,10,.88);border-bottom:1px solid var(--line);backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);opacity:0;transition:opacity var(--t2) var(--E)}
.t-header.solid::before,.t-header:has(.mobile-nav)::before{opacity:1}
.t-nav{position:absolute;left:50%;transform:translateX(-50%);display:flex;gap:26px;padding:12px 24px;border-radius:999px}
.t-nav a{font-size:15px;color:#fff;text-decoration:none;white-space:nowrap}
.t-actions{margin-left:auto;display:flex;align-items:center;gap:8px}
.t-header .os-burger{border-radius:999px}
.t-header .mobile-nav{flex-basis:100%;padding-left:0;padding-right:0}

/* First screen and second screen: copy over the scene */
.hero-ui,.second-ui{position:fixed;inset:0;z-index:20;pointer-events:none;will-change:opacity,transform}
.hero-ui h1,.second-ui h2{margin:0;font-weight:400;font-size:clamp(44px,5.6vw,84px);line-height:1;letter-spacing:-.045em}
.hero-title{position:absolute;left:40px;bottom:40px}
.hero-copy{position:absolute;right:40px;bottom:40px;width:max-content;max-width:calc(100vw - 48px)}
.hero-copy>p{max-width:370px;font-size:16px;line-height:1.35}
.actions{display:flex;gap:8px;margin-top:20px}
.actions .pill{padding:16px 20px;pointer-events:auto}
.logo-flight{position:fixed;inset:0;z-index:28;pointer-events:none;perspective:1100px}
.trust-card{position:absolute;left:0;top:0;width:clamp(150px,15vw,220px);height:clamp(72px,8vw,112px);display:flex;align-items:center;justify-content:center;padding:24px 34px;border-radius:999px;box-shadow:0 20px 50px rgba(0,0,0,.25);opacity:0;will-change:transform,opacity}
.trust-card>div{display:flex;flex-direction:column;gap:4px;text-align:center;white-space:nowrap}
.trust-card b{font-size:17px;font-weight:500}
.trust-card span{font-size:14px;color:rgba(255,255,255,.72);font-variant-numeric:tabular-nums}
.demo-cap{position:fixed;z-index:29;left:0;right:0;bottom:18px;text-align:center;font-size:13px;color:rgba(255,255,255,.6);opacity:0;pointer-events:none}
.second-ui{opacity:0;visibility:hidden;transform:none!important;will-change:auto}
.second-ui h2{position:absolute;left:40px;top:118px}
.second-intro{position:absolute;left:calc(75% + 1px);top:132px;width:330px;max-width:calc(25% - 40px);font-size:14px;line-height:1.35}
.feature-grid{position:absolute;left:40px;right:40px;bottom:40px;display:grid;grid-template-columns:repeat(4,1fr);gap:14px}
.feature-grid article{height:260px;display:flex;flex-direction:column;justify-content:space-between;padding:24px;border-radius:28px}
.feature-grid article>span{text-align:right;font-size:16px;font-variant-numeric:tabular-nums}
.feature-grid h3{margin:0 0 12px;font-size:18px;font-weight:600}
.feature-grid p{font-size:14px;line-height:20px}

/* Loading screen and the entrance of the first screen (the scene sets .is-leaving, .intro-ready, .is-inview) */
.preloader{position:fixed;inset:0;z-index:1000;background:#000;display:flex;align-items:center;justify-content:center;will-change:transform;transition:transform 1.05s cubic-bezier(.76,0,.24,1)}
.preloader.is-leaving{transform:translateY(-100%)}
.preloader.is-gone{display:none}
.preloader-status{position:absolute;left:50%;bottom:40px;transform:translateX(-50%);display:flex;flex-direction:column;align-items:center;gap:8px;text-align:center}
.preloader-status span{color:rgba(255,255,255,.6);font-size:18px}
.preloader-status strong{font-size:28px;font-weight:400;line-height:1;font-variant-numeric:tabular-nums}.preloader-status b{font:inherit}
html.is-loading{overflow:hidden}
.t-header,.hero-copy>p,.hero-copy .actions .pill{opacity:0}
/* No filter on the header: it would switch off the blur behind its glass parts. */
.t-header{transform:translateY(22px)}
.hero-copy>p,.hero-copy .actions .pill{transform:translateY(20px);filter:blur(7px)}
.title-word{display:inline-block;white-space:nowrap}
.title-char{display:inline-block;opacity:0;transform:translateY(15px);filter:blur(12px);will-change:opacity,transform,filter}
.intro-ready .t-header{animation:header-rise .8s var(--E) .12s forwards}
.intro-ready .hero-title .title-char{animation:layer-rise .72s var(--E) calc(.5s + var(--char-index)*.028s) forwards}
.intro-ready .hero-copy>p{animation:layer-rise .8s var(--E) 1.4s forwards}
.intro-ready .hero-copy .actions .pill:first-child{animation:layer-rise .72s var(--E) 1.6s forwards}
.intro-ready .hero-copy .actions .pill:last-child{animation:layer-rise .72s var(--E) 1.72s forwards}
.second-ui .second-intro,.second-ui .feature-grid article{opacity:0;transform:translateY(30px)}
.second-ui .second-intro{filter:blur(7px)}
.second-ui.is-inview h2 .title-char{animation:layer-rise .72s var(--E) calc(var(--char-index)*.028s) forwards}
.second-ui.is-inview .second-intro{animation:layer-rise .8s var(--E) .6s forwards}
.second-ui.is-inview .feature-grid article{animation:layer-rise .82s var(--E) calc(.8s + var(--i,0)*.13s) forwards}
.feature-grid article:nth-child(2){--i:1}.feature-grid article:nth-child(3){--i:2}.feature-grid article:nth-child(4){--i:3}
@keyframes header-rise{to{opacity:1;transform:none}}
@keyframes layer-rise{to{opacity:1;transform:translateY(0);filter:blur(0)}}

/* The rest of the page: a sheet that covers the scene */
.rest{z-index:30;border-radius:32px 32px 0 0;border-top:1px solid rgba(255,255,255,.14);background:linear-gradient(180deg,#040912 0%,#070d18 40%,#01040a 100%)}
.rest>.section:first-child{border-top:0}
.rest .btn{border-radius:999px}
.rest .btn-primary,.rest .btn-primary:hover{background:var(--blue);color:#fff}
.rest .btn-primary:hover{background:#2a83ee}
.rest .how-n{background:#070d18}

@media(max-width:1240px){.t-nav{display:none}.t-header .os-burger{display:inline-flex}}
@media(max-width:900px){
 .t-header{padding:14px 20px}
 .t-actions .primary{display:none}
 .hero-title{left:24px;right:24px;bottom:auto;top:26%}
 .hero-copy{left:24px;right:24px;bottom:32px;width:auto}
 .actions{flex-wrap:wrap}
 .second-ui h2{left:24px;top:96px}
 .second-intro{left:24px;top:210px;width:70vw;max-width:none}
 .feature-grid{left:20px;right:20px;bottom:24px;grid-template-columns:1fr 1fr}
 .feature-grid article{height:190px;padding:16px}
 .trust-card{width:130px;height:66px;padding:16px 24px}
 .trust-card b{font-size:14px}.trust-card span{font-size:12px}
 .rest{border-radius:22px 22px 0 0}
}
@media(max-width:560px){.feature-grid article{height:150px}.feature-grid p{display:none}.feature-grid h3{margin:0;font-size:14px}}
@media(prefers-reduced-motion:reduce){
 .t-header,.hero-copy>p,.hero-copy .actions .pill,.title-char,.second-ui .second-intro,.second-ui .feature-grid article{opacity:1;transform:none;filter:none}
}

/* Without the scene (no script, or WebGL did not start) html has no .scene: the two screens are ordinary blocks. */
html:not(.scene) .preloader,html:not(.scene) #scene,html:not(.scene) .vignette,html:not(.scene) .logo-flight,html:not(.scene) .demo-cap,html:not(.scene) #top{display:none}
html:not(.scene) .t-header,html:not(.scene) .hero-copy>p,html:not(.scene) .hero-copy .actions .pill,html:not(.scene) .title-char,html:not(.scene) .second-intro,html:not(.scene) .feature-grid article{opacity:1!important;transform:none!important;filter:none!important;animation:none!important}
html:not(.scene) .hero-ui,html:not(.scene) .second-ui{position:relative;inset:auto;min-height:100svh;opacity:1!important;visibility:visible!important}
html:not(.scene) .t-header::before{opacity:1}
html:not(.scene) .rest{border-radius:0}
html:not(.scene) .hero-ui h1{max-width:8.4em}
