/* ==========================================================================
   effects-3d.css  -  POLISH AND 3D EFFECTS (EFFECTS)
   Loaded late on purpose: it changes some styles made in the earlier files.
   (The colour palette now lives only in base.css.)
   The words are split into pieces by js/effects-3d.js. This file makes them fly in.
   ========================================================================== */

/* Highlighted heading words get a blue-to-cyan gradient fill. */
h1 em .fx-w, h2 em .fx-w, h1 em:not(.fx-split *){background:linear-gradient(100deg,var(--brand-blue) 0%,#3B82F6 45%,var(--brand-cyan) 100%);-webkit-background-clip:text;background-clip:text;color:transparent!important;padding-right:.08em}
/* On grey sections the gradient is dark blue instead. */
.paper h2 em .fx-w{background:linear-gradient(100deg,var(--text-main),var(--brand-blue-dark));-webkit-background-clip:text;background-clip:text}
/* Buttons: gradient, soft shadow and fully round ends. */
.btn{background:var(--brand-gradient);box-shadow:0 8px 24px -8px rgba(10,91,255,.55);border-radius:999px}
/* Button on hover: darker gradient and lifts 2px. */
.btn:hover{background:linear-gradient(135deg,#0848D6,#1D4ED8 60%,#0E7490);transform:translateY(-2px);box-shadow:0 14px 30px -10px rgba(10,91,255,.6)}
/* The photo gets rounded corners, a deep shadow and richer colours. */
.photo-card-inner img{border-radius:18px;box-shadow:0 30px 60px -25px rgba(11,18,32,.45);filter:saturate(1.08) contrast(1.04)}
/* Round corners for stat boxes and panels. */
.stat,.panel{border-radius:14px}
/* 3D WORD FLY-IN: the heading gets depth (perspective). */
.fx-split{perspective:900px}
/* Each word starts invisible, pushed back and tilted. The delay depends on its number (--i), so words arrive one after another.
   (No blur: blurring every word while it moves made scrolling lag.) */
.fx-w{display:inline-block;white-space:pre;transform-origin:50% 100% -40px;opacity:0;
 transform:translate3d(0,.6em,-260px) rotateX(-85deg);
 transition:transform 1s cubic-bezier(.2,.9,.25,1),opacity .8s ease;transition-delay:calc(var(--i)*55ms)}
/* When the heading scrolls into view (class "fx-in") each word moves to its normal place. */
.fx-in .fx-w{opacity:1;transform:none}
/* 3D CARD ENTRANCE: cards start low, tilted and invisible, then rise into place. */
.fx-card{opacity:0;transform:perspective(1000px) translate3d(0,60px,-120px) rotateX(18deg);transition:transform 1.1s cubic-bezier(.2,.9,.25,1),opacity .9s ease;transition-delay:calc(var(--i,0)*90ms)}
/* Final position of a card. */
.fx-card.fx-in{opacity:1;transform:none}
/* Smooth movement for the tilt-on-hover effect. */
.fx-tilt{transition:transform .25s ease;transform-style:preserve-3d;will-change:transform}
/* Turn off the old scroll fade-in (.rv) because the 3D effect replaces it. */
@supports (animation-timeline: view()){.rv{animation:none}}
/* Dark colour for the hero heading, and the gradient text must stay transparent so the gradient shows. */
.hero h1{color:#0B1220}h1 em .fx-w,h2 em .fx-w{-webkit-text-fill-color:transparent;padding-right:.06em}

/* ACCESSIBILITY: show everything immediately for reduced motion. */
@media (prefers-reduced-motion: reduce) {
  .fx-w,
  .fx-card {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    transition: none !important;
  }

  .panel:not(.on) {
    opacity: 0 !important;
  }
}

/* ==========================================================
   3D WAITLIST BUTTON EFFECTS
   ========================================================== */

.nav .btn,
.hero .actions .btn,
.foot-brand .btn,
#cta .field button {
  --waitlist-rx: 0deg;
  --waitlist-ry: 0deg;

  position: relative;
  transform-style: preserve-3d;

  transform:
    perspective(800px)
    rotateX(var(--waitlist-rx))
    rotateY(var(--waitlist-ry));

  transition:
    transform 0.25s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.25s ease,
    filter 0.25s ease;
}

/* Navigation button */

.nav .btn {
  box-shadow:
    0 4px 0 #024AA0,
    0 5px 0 #01356F,
    0 12px 22px rgba(2, 102, 214, 0.28);
}

/* Hero and footer buttons */

.hero .actions .btn,
.foot-brand .btn {
  box-shadow:
    0 6px 0 #024AA0,
    0 7px 0 #01356F,
    0 16px 28px rgba(2, 102, 214, 0.32);
}

/* Waitlist form button */

#cta .field button {
  box-shadow:
    0 5px 0 #024AA0,
    0 6px 0 #01356F,
    0 12px 22px rgba(2, 102, 214, 0.3);
}

/* Hover lift */

.nav .btn:hover,
.hero .actions .btn:hover,
.foot-brand .btn:hover,
#cta .field button:hover {
  opacity: 1;
  filter: brightness(1.06);

  transform:
    perspective(800px)
    rotateX(var(--waitlist-rx))
    rotateY(var(--waitlist-ry))
    translateY(-3px);
}

.nav .btn:hover {
  box-shadow:
    0 6px 0 #024AA0,
    0 7px 0 #01356F,
    0 17px 28px rgba(2, 102, 214, 0.4);
}

.hero .actions .btn:hover,
.foot-brand .btn:hover {
  box-shadow:
    0 8px 0 #024AA0,
    0 9px 0 #01356F,
    0 22px 36px rgba(2, 102, 214, 0.42);
}

#cta .field button:hover {
  box-shadow:
    0 7px 0 #024AA0,
    0 8px 0 #01356F,
    0 18px 28px rgba(2, 102, 214, 0.4);
}

/* Pressed button */

.nav .btn:active,
.hero .actions .btn:active,
.foot-brand .btn:active,
#cta .field button:active {
  transform: perspective(800px) translateY(3px) scale(0.98);
  transition-duration: 0.08s;
}

/* Reduced motion accessibility */

@media (prefers-reduced-motion: reduce) {
  .nav .btn,
  .hero .actions .btn,
  .foot-brand .btn,
  #cta .field button {
    transform: none !important;
    transition: none !important;
  }
}


/* 3D effects for the How it works and transparent action buttons */

.ais-left .actions .btn,
.hero .actions .link,
.ais-left .actions .link {
  --waitlist-rx: 0deg;
  --waitlist-ry: 0deg;

  position: relative;
  transform-style: preserve-3d;

  transform:
    perspective(800px)
    rotateX(var(--waitlist-rx))
    rotateY(var(--waitlist-ry));

  transition:
    transform 0.25s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.25s ease,
    filter 0.25s ease;
}

/* Blue How it works button */

.ais-left .actions .btn {
  box-shadow:
    0 6px 0 #024AA0,
    0 7px 0 #01356F,
    0 16px 28px rgba(2, 102, 214, 0.32);
}

/* Keep the two secondary buttons transparent */

.hero .actions .link,
.ais-left .actions .link {
  background: transparent;
  box-shadow:
    0 4px 0 rgba(2, 102, 214, 0.18),
    0 12px 22px rgba(2, 102, 214, 0.12);
}

/* Hover effect */

.ais-left .actions .btn:hover,
.hero .actions .link:hover,
.ais-left .actions .link:hover {
  opacity: 1;
  filter: brightness(1.06);

  transform:
    perspective(800px)
    rotateX(var(--waitlist-rx))
    rotateY(var(--waitlist-ry))
    translateY(-3px);
}

/* Keep transparent buttons transparent on hover */

.hero .actions .link:hover,
.ais-left .actions .link:hover {
  background: transparent;
  box-shadow:
    0 6px 0 rgba(2, 102, 214, 0.22),
    0 17px 28px rgba(2, 102, 214, 0.18);
}

/* Pressed effect */

.ais-left .actions .btn:active,
.hero .actions .link:active,
.ais-left .actions .link:active {
  transform: perspective(800px) translateY(3px) scale(0.98);
  transition-duration: 0.08s;
}

/* Reduced motion accessibility */

@media (prefers-reduced-motion: reduce) {
  .ais-left .actions .btn,
  .hero .actions .link,
  .ais-left .actions .link {
    transform: none !important;
    transition: none !important;
  }
}

