/* Home page: 3D "tap, then a review" scene. Same style as the NFC tap demo (dark navy, cyan accents, CSS-only 3D).
   Remove this file and its <link> and <section id="reviews"> to take it off the page. */
@property --rvt{syntax:'<integer>';inherits:false;initial-value:7}
@property --rvc{syntax:'<integer>';inherits:false;initial-value:3}

.rv-section{display:grid;grid-template-columns:.85fr 1.15fr;gap:40px;align-items:center}
.rv-copy h2{margin:14px 0 16px}
.rv-copy p{color:var(--muted);max-width:430px;margin:0 0 24px}

.rv-stage{position:relative;height:500px;display:grid;place-items:center;perspective:1300px;overflow:hidden;border-radius:26px;background:radial-gradient(ellipse at 50% 62%,rgba(40,110,230,.22),transparent 62%),var(--panel);border:1px solid var(--line)}
.rv-world{position:relative;width:360px;height:360px;transform-style:preserve-3d;transform:rotateX(58deg) rotateZ(-28deg)}
.rv-table{position:absolute;inset:-70px;border-radius:40px;background:repeating-linear-gradient(0deg,rgba(255,255,255,.04) 0 1px,transparent 1px 28px),repeating-linear-gradient(90deg,rgba(255,255,255,.04) 0 1px,transparent 1px 28px);transform:translateZ(-2px)}

/* the review card: dark, like the black NUVOTAP card */
.rv-card{position:absolute;left:50px;top:95px;width:260px;height:165px;border-radius:16px;background:linear-gradient(135deg,#1a2442,#0b1226);box-shadow:0 0 0 1px rgba(120,170,255,.25),0 2px 0 #060a18,0 4px 0 #050814,0 6px 0 #04060f;translate:0 0 6px;display:grid;place-items:center;text-align:center;color:#eaf2ff;font:800 15px/1.25 Manrope,Arial,sans-serif}
.rv-card svg{display:block;margin:0 auto 6px}
.rv-card .rv-st{display:block;margin-top:4px;color:#f2a900;font-size:17px;letter-spacing:2px}

/* rings that pulse out of the card on each tap (starting state is correct, so nothing sticks out before the animation runs) */
.rv-ring{position:absolute;left:140px;top:140px;width:80px;height:80px;border-radius:50%;border:2px solid var(--cyan);opacity:0;translate:0 0 8px;scale:.3}

/* review bubbles stand up and face the viewer */
.rv-bub{position:absolute;width:160px;padding:9px 12px;border-radius:14px;background:rgba(255,255,255,.95);color:#10213d;text-align:center;font:700 12px/1.3 Manrope,Arial,sans-serif;box-shadow:0 10px 24px rgba(0,0,0,.35);transform:rotateZ(28deg) rotateX(-58deg);translate:0 0 120px}
.rv-bub b{display:block;color:#f2a900;font-size:16px;letter-spacing:2px;margin-bottom:2px}
.rv-b1{left:-30px;top:230px;translate:0 0 165px}
.rv-b2{left:200px;top:170px;translate:0 0 120px}
.rv-b3{left:95px;top:60px;translate:0 0 190px}

.rv-hud{position:absolute;left:18px;bottom:18px;display:grid;gap:2px;padding:12px 16px;border-radius:16px;border:1px solid var(--line);background:rgba(11,20,43,.85);font:700 12px/1.35 'DM Sans',Arial,sans-serif;color:var(--muted)}
.rv-hud strong{font:800 30px/1.1 Manrope,Arial,sans-serif;color:var(--text);letter-spacing:-.03em}
.rv-hud em{font-style:normal;color:var(--cyan)}
.rv-t{counter-reset:rvt var(--rvt,7)}.rv-t::after{content:counter(rvt)}
.rv-c{counter-reset:rvc var(--rvc,3)}.rv-c::after{content:counter(rvc)}

@media (prefers-reduced-motion:no-preference){
@keyframes rv-bub{0%{opacity:0;translate:0 0 20px}10%{opacity:1}34%{opacity:1}44%{opacity:0;translate:0 0 var(--top,190px)}100%{opacity:0;translate:0 0 var(--top,190px)}}
@keyframes rv-ring{0%{opacity:.9;scale:.3}22%{opacity:0;scale:3.4}100%{opacity:0;scale:3.4}}
@keyframes rv-bob{from{translate:0 0 6px}to{translate:0 0 16px}}
@keyframes rv-t{0%,30%{--rvt:1}33%,63%{--rvt:3}66%,96%{--rvt:5}99%,100%{--rvt:7}}
@keyframes rv-c{0%,30%{--rvc:0}33%,63%{--rvc:1}66%,96%{--rvc:2}99%,100%{--rvc:3}}
.rv-card{animation:rv-bob 4.5s ease-in-out infinite alternate}
.rv-ring{animation:rv-ring 9s ease-out infinite both}
.rv-ring.r2{animation-delay:3s}.rv-ring.r3{animation-delay:6s}
.rv-bub{animation:rv-bub 9s cubic-bezier(.25,.6,.3,1) infinite both}
.rv-b1{--top:150px}.rv-b2{animation-delay:3s;--top:200px}.rv-b3{animation-delay:6s;--top:250px}
.rv-t{animation:rv-t 9s linear infinite}
.rv-c{animation:rv-c 9s linear infinite}
}
@media(max-width:900px){.rv-section{grid-template-columns:1fr}.rv-stage{height:420px}.rv-world{scale:.76}}
