/* ============================================================
   CybberLyft — 3D Layer (WebGL background, depth cards, Home button)
   ============================================================ */

/* ---------- Fixed WebGL background canvas ---------- */
#cl3d-canvas{
  position:fixed;
  inset:0;
  width:100%;
  height:100%;
  z-index:0;
  pointer-events:none;
  opacity:0;
  transition:opacity 1.2s ease;
}
html.cl3d-ready #cl3d-canvas{opacity:.72;}
@media (max-width:760px){html.cl3d-ready #cl3d-canvas{opacity:.5;}}

/* Keep page chrome above the 3D layer */
#site-header{z-index:300;}
main{position:relative;z-index:1;}
footer{position:relative;z-index:1;}
.sticky-cta-cluster{z-index:320;}

/* Old flat decorations step back once real 3D is running */
html.cl3d-ready .globe{opacity:0;transition:opacity .8s ease;}
html.cl3d-ready #particle-canvas{opacity:0.18;}
html.cl3d-ready .glow-orb{opacity:.55;}

/* Hero copy needs a readable plate over a moving 3D field */
html.cl3d-ready .hero .wrap > h1,
html.cl3d-ready .hero .wrap > .hero-sub{
  text-shadow:0 2px 26px rgba(5,14,28,0.85);
}

/* ---------- 3D depth cards (mouse-driven tilt) ---------- */
.cl3d-tilt{
  transform-style:preserve-3d;
  will-change:transform;
  transition:transform .45s cubic-bezier(.16,1,.3,1), box-shadow .45s ease;
}
.cl3d-tilt.cl3d-tilting{
  transition:transform .08s linear, box-shadow .3s ease;
  box-shadow:0 26px 60px -24px rgba(46,92,255,0.55), 0 0 0 1px rgba(34,217,238,0.22) inset;
}
.cl3d-tilt > *{transform:translateZ(0.01px);}

/* ---------- Floating Home button ---------- */
.cl3d-home{
  position:fixed;
  left:22px;
  bottom:22px;
  z-index:330;
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:13px 20px 13px 16px;
  border-radius:100px;
  font-family:'Sora',sans-serif;
  font-weight:700;
  font-size:14px;
  letter-spacing:.01em;
  color:#050E1C;
  text-decoration:none;
  background:linear-gradient(90deg,#2E5CFF,#22D9EE);
  border:1px solid rgba(255,255,255,0.28);
  box-shadow:
    0 10px 0 -4px rgba(11,32,66,0.9),
    0 22px 44px -18px rgba(34,217,238,0.75),
    inset 0 1px 0 rgba(255,255,255,0.45);
  transform:perspective(600px) translateZ(0) rotateX(0deg);
  transform-style:preserve-3d;
  transition:transform .28s cubic-bezier(.16,1,.3,1), box-shadow .28s ease, filter .28s ease;
}
.cl3d-home svg{width:18px;height:18px;flex:0 0 auto;}
.cl3d-home:hover,
.cl3d-home:focus-visible{
  transform:perspective(600px) translateY(-4px) rotateX(-12deg) scale(1.04);
  box-shadow:
    0 14px 0 -4px rgba(11,32,66,0.92),
    0 30px 60px -18px rgba(34,217,238,0.9),
    inset 0 1px 0 rgba(255,255,255,0.55);
  filter:saturate(1.12);
}
.cl3d-home:focus-visible{outline:2px solid #fff;outline-offset:3px;}
.cl3d-home:active{
  transform:perspective(600px) translateY(1px) rotateX(-4deg) scale(.98);
  box-shadow:0 4px 0 -2px rgba(11,32,66,0.9), 0 10px 22px -12px rgba(34,217,238,0.6);
}
/* On the homepage itself the button acts as a scroll-to-top */
.cl3d-home.is-home .cl3d-home-label{letter-spacing:.02em;}

@media (max-width:760px){
  .cl3d-home{
    left:14px;
    bottom:16px;
    padding:12px 16px 12px 13px;
    font-size:13px;
  }
}
/* Clear the full-width mobile action dock */
@media (max-width:640px){
  .cl3d-home{
    left:12px;
    bottom:calc(80px + env(safe-area-inset-bottom));
    padding:11px 15px 11px 12px;
    font-size:12.5px;
  }
  .cl3d-home svg{width:16px;height:16px;}
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion:reduce){
  #cl3d-canvas{opacity:.5 !important;}
  .cl3d-tilt,.cl3d-home{transition:none !important;}
  .cl3d-tilt.cl3d-tilting{transform:none !important;}
}

/* ============================================================
   Delivery timeline chips on service process steps
   ============================================================ */
.service-process-mini .step { position: relative; }
.stage-chip{
  display:inline-block;
  margin:0 0 8px 10px;
  padding:3px 10px;
  border-radius:999px;
  font-family:"JetBrains Mono", ui-monospace, monospace;
  font-size:10.5px;
  font-weight:600;
  letter-spacing:.06em;
  text-transform:uppercase;
  color:#22D9EE;
  background:rgba(34,217,238,.10);
  border:1px solid rgba(34,217,238,.32);
  vertical-align:middle;
}
.service-process-mini .step .n{ display:inline-block; vertical-align:middle; }

/* ============================================================
   3D Growth Dashboard section
   ============================================================ */
.dash-section{ position:relative; padding-top:88px; }
@media (max-width:900px){ .dash-section{ padding-top:56px; } }
.dash-grid{
  display:grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap:48px;
  align-items:center;
}
.dash-copy .eyebrow{ margin-bottom:14px; }
.dash-copy h2{ font-size:clamp(26px,3vw,38px); line-height:1.15; margin:0 0 16px; }
.dash-copy > p{ color:rgba(255,255,255,.62); font-size:15.5px; line-height:1.7; margin:0 0 26px; max-width:46ch; }
.dash-points{ list-style:none; padding:0; margin:0 0 30px; display:grid; gap:14px; }
.dash-points li{
  display:flex; gap:13px; align-items:flex-start;
  font-size:14.5px; line-height:1.6; color:rgba(255,255,255,.78);
}
.dash-points li .tick{
  flex:none; width:22px; height:22px; border-radius:7px; margin-top:1px;
  display:grid; place-items:center;
  background:rgba(34,217,238,.12); border:1px solid rgba(34,217,238,.34);
  color:#22D9EE; font-size:12px; font-weight:800;
}
.dash-points li b{ color:#fff; font-weight:650; }

#cl-dash{
  position:relative;
  width:100%;
  aspect-ratio: 4 / 3;
  min-height:340px;
  opacity:0;
  transition:opacity .7s ease;
}
#cl-dash.is-ready{ opacity:1; }
#cl-dash .cl-dash-canvas{
  position:absolute; inset:0;
  width:100%; height:100%;
  display:block;
  touch-action:pan-y;
}
.dash-fallback{
  position:absolute; inset:0;
  display:grid; place-items:center;
  color:rgba(255,255,255,.3); font-size:13px;
}
#cl-dash.is-ready .dash-fallback{ display:none; }

@media (max-width: 900px){
  .dash-grid{ grid-template-columns:1fr; gap:30px; }
  #cl-dash{ aspect-ratio: 5 / 4; min-height:330px; order:-1; }
}
@media (max-width: 480px){
  #cl-dash{ min-height:300px; }
}


/* ---------- v2-quiet-home: the utility recedes, the CTA leads ---------- */
.cl3d-home{
  left:auto;
  right:22px;
  bottom:80px;
  padding:10px 17px 10px 14px;
  font-weight:600;
  font-size:13px;
  color:#9AA5B8;
  background:rgba(255,255,255,0.05);
  border:1px solid rgba(255,255,255,0.10);
  -webkit-backdrop-filter:blur(14px);
  backdrop-filter:blur(14px);
  box-shadow:0 6px 22px rgba(0,0,0,0.28);
}
.cl3d-home:hover,
.cl3d-home:focus-visible{
  color:#FFFFFF;
  background:rgba(255,255,255,0.09);
  border-color:rgba(34,217,238,0.45);
  box-shadow:0 8px 26px rgba(0,0,0,0.34);
}
.cl3d-home svg{width:16px;height:16px;opacity:0.85;}
@media (max-width:640px){ .cl3d-home{display:none;} }
