/* Hand-coded effects, inspired by GetLayers templates (no code copied).
   1) hero stage: 3D tilt that follows the cursor and a slow float
   2) problem tiles: cursor spotlight
   3) hero: drifting type strip */

/* 1 */
.hero .stage{perspective:1000px}
.hero .hvid{transform:rotateX(var(--rx,0deg)) rotateY(var(--ry,0deg));transition:transform .5s cubic-bezier(.2,.7,.2,1);transform-style:preserve-3d;animation:gl-float 7s ease-in-out infinite}
@keyframes gl-float{0%,100%{translate:0 0}50%{translate:0 -10px}}

/* 2 */
#problems .tile{position:relative;overflow:hidden}
#problems .tile::before{content:"";position:absolute;inset:0;pointer-events:none;opacity:0;transition:opacity .4s;background:radial-gradient(260px circle at var(--sx,50%) var(--sy,50%),rgba(45,212,191,.16),transparent 70%)}
#problems .tile:hover::before{opacity:1}

/* 3 */
.gl-strip{overflow:hidden;white-space:nowrap;margin:34px 0 0;border-top:1px solid rgba(255,255,255,.1);border-bottom:1px solid rgba(255,255,255,.1);background:#07080b;padding:18px 0}
.gl-strip .track{display:inline-block;animation:gl-drift 38s linear infinite;font-size:clamp(28px,4.5vw,56px);font-weight:700;letter-spacing:-.02em;color:rgba(255,255,255,.88)}
.gl-strip .track span{margin:0 .5em}
.gl-strip .track em{font-style:normal;color:#2dd4bf}
@keyframes gl-drift{to{transform:translateX(-50%)}}

@media (prefers-reduced-motion:reduce){
  .hero .hvid{animation:none;transition:none!important;transform:none!important}
  #problems .tile::before{display:none}
  .gl-strip .track{animation:none}
}

/* Research change 1: hero paints at once, no blank black before the fade */
.hero .rv,.hero .rv.d1,.hero .rv.d2,.hero .rv.d3{opacity:1!important;transform:none!important;transition:none!important}

/* Research change 3: one header bar, not two */
.snav{display:none!important}

/* Research change 4 and 5: proof strap, hook line and chips under the headline */
.hero .hook{margin:22px auto 0;font-size:clamp(18px,2.2vw,22px);color:#f5f5f7;text-align:center}
.hero .hook b{font-weight:700}
.hero .chips{display:flex;flex-wrap:wrap;gap:8px;justify-content:center;margin:14px auto 0}
.hero .chips span{font-size:14px;color:#a1a1a6;border:1px solid rgba(255,255,255,.16);border-radius:999px;padding:7px 14px}
.hero .strap{margin:26px auto 0;font-size:14px;color:#8a8f99;text-align:center;letter-spacing:.02em}

/* Phone beside the headline (desktop) and under the buttons (phone) */
.hero .wrap{position:relative}
.hero-phone{margin:34px auto 0;width:min(240px,70vw)}
.hp-frame{border:8px solid #1d1d1f;border-radius:32px;overflow:hidden;background:#000;box-shadow:0 30px 60px rgba(0,0,0,.5)}
.hp-frame img{display:block;width:100%;height:auto}
.hero-phone figcaption{font-size:13px;color:#8a8f99;text-align:center;margin-top:10px}
@media (min-width:1100px){
  .hero .wrap{display:grid;grid-template-columns:minmax(0,1fr) 300px;column-gap:56px;align-items:center}
  .hero .wrap > *{grid-column:1}
  .hero .wrap > .hero-phone{grid-column:2;grid-row:1 / span 6;margin:0;width:300px;justify-self:center}
  .hero .wrap > .where,.hero .wrap > h1,.hero .wrap > .lede,.hero .wrap > .hook,.hero .wrap > .chips,.hero .wrap > .ctas,.hero .wrap > .strap,.hero .wrap > .offer{text-align:left;justify-content:flex-start;margin-left:0;margin-right:0}
  .hero .wrap > .facts{justify-content:flex-start}
}
