*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{font-family:'Segoe UI',system-ui,-apple-system,Roboto,Helvetica,Arial,sans-serif;
-webkit-font-smoothing:antialiased;min-height:100vh}
img{max-width:100%;display:block}
a{text-decoration:none;color:inherit}
button{font-family:inherit;cursor:pointer;border:none}
ul{list-style:none}

body{min-height:100vh;display:grid;place-items:center;background:#111827}
.scene{perspective:1200px}
.card{width:300px;height:400px;position:relative;transform-style:preserve-3d;transition:transform .8s cubic-bezier(.65,0,.35,1)}
.scene:hover .card{transform:rotateY(180deg)}
.face{position:absolute;inset:0;border-radius:22px;backface-visibility:hidden;display:grid;place-content:center;text-align:center;color:#fff;padding:30px;box-shadow:0 25px 60px rgba(0,0,0,.5)}
.front{background:linear-gradient(135deg,#6366f1,#8b5cf6)}
.front h3{font-size:1.8rem}.front p{font-size:4rem;margin-top:12px}
.back{background:linear-gradient(135deg,#ec4899,#f59e0b);transform:rotateY(180deg)}
.back h3{font-size:1.8rem;margin-bottom:12px}.back p{opacity:.95;line-height:1.6;margin-bottom:20px}
.back button{padding:12px 28px;border-radius:30px;background:#fff;color:#ec4899;font-weight:700}