﻿/* DollarHub-style platinum hero animation (machine only — layout in website.css) */
.page-home .dh-hero-anim-col {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    min-height: 420px;
}

.platinum-animation {
    height: 520px;
    width: 100%;
    max-width: 420px;
    position: relative;
    margin: 0 auto;
}
.platinum-animation .base {
    position: absolute;
    bottom: 0;
    left: 50%;
    height: 0;
    opacity: 0;
    width: 280px;
    background: url(../img/anim/platinum-base.png) no-repeat scroll 0 0;
    background-size: 100% auto;
    transform: translateX(-50%);
}
.platinum-animation .base:before {
    background: url(../img/anim/platinum-base-line.png) no-repeat scroll 0 0;
    content: "";
    position: absolute;
    bottom: -55px;
    left: 50%;
    background-size: cover;
    height: 120px;
    width: 390px;
    transform: translateX(-50%);
}
.platinum-animation.start-animation .base {
    transition: all 1450ms ease;
    height: 210px;
    opacity: 1;
}
.platinum-animation .millde-part {
    position: absolute;
    bottom: 175px;
    left: 0;
    right: 0;
    margin: auto;
    height: 0;
    width: 0;
    background: url(../img/anim/platinum-waves.png) no-repeat scroll center center;
    background-size: cover;
    z-index: 2;
    opacity: 0;
    visibility: hidden;
    transition: all 500ms ease;
}
.platinum-animation.start-animation .millde-part {
    height: 260px;
    width: 165px;
    opacity: 1;
    visibility: visible;
    transition: all 2500ms 1s ease;
}
.platinum-animation .top-part {
    height: 300px;
    width: 300px;
    position: absolute;
    left: 50%;
    top: 20px;
    transform: translateX(-50%);
    z-index: 5;
}
.platinum-animation .top-part:before {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    margin: auto;
    height: 300px;
    width: 300px;
    background: url(../img/anim/coin-bg-icon.png) no-repeat scroll center center;
    background-size: cover;
    z-index: 3;
    opacity: 0;
    visibility: hidden;
    transform: scale(0);
    transition: all 500ms ease;
    content: "";
}
.platinum-animation.start-animation .top-part:before {
    transform: scale(1);
    opacity: 1;
    visibility: visible;
    transition: all 1000ms 2.5s ease;
    animation: SpinCoin1 4s linear infinite;
}
@keyframes SpinCoin1 {
    0% { transform: rotate(0deg) scale(1); }
    100% { transform: rotate(360deg) scale(1); }
}
/* Recolor DollarHub gold PNGs → header logo dual (silver + electric blue) */
.platinum-animation .base,
.platinum-animation .base:before,
.platinum-animation .millde-part,
.platinum-animation .top-part:before,
.platinum-animation .lines span,
.platinum-move-1,
.platinum-move-2,
.platinum-move-3,
.platinum-move-4,
.platinum-move-5 {
    filter: hue-rotate(172deg) saturate(1.15) brightness(1.12) contrast(1.06);
}
.platinum-animation .coin-icon {
    height: 120px;
    width: 120px;
    background: url(../img/qai-logo-bubble.png?v=10) no-repeat center center;
    background-size: contain !important;
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, -50%) scale(0);
    transition: all 500ms ease;
    left: 50%;
    top: 50%;
    position: absolute;
    z-index: 6;
    filter: drop-shadow(0 6px 18px rgba(0, 174, 239, 0.45));
    border-radius: 50%;
    overflow: hidden;
}
.platinum-animation.start-animation .coin-icon {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    visibility: visible;
    transition: all 1000ms 2.5s ease;
}
.platinum-animation .lines {
    position: absolute;
    width: 100%;
    margin: auto;
    height: 190px;
    bottom: 110px;
}
.platinum-animation .lines span {
    width: 3px;
    height: 180px;
    background: url(../img/anim/platinum-top-lines.png) no-repeat scroll 0 0;
    position: absolute;
    transition: all 2s ease;
    transform: scaleY(0);
    transform-origin: bottom;
}
.platinum-animation .lines.active span {
    transform: scaleY(1);
}
.platinum-animation .lines span.l-1 { bottom: 40px; left: 16px; }
.platinum-animation .lines span.l-2 { bottom: 18px; left: 44px; }
.platinum-animation .lines span.l-3 { bottom: 8px; left: 138px; }
.platinum-animation .lines span.l-4 { bottom: 18px; right: 50px; }
.platinum-animation .lines span.l-5 { bottom: 40px; right: 16px; }
.platinum-animation .lines.active span.l-1 { transition: all 2s ease 100ms; }
.platinum-animation .lines.active span.l-2 { transition: all 2s ease 400ms; }
.platinum-animation .lines.active span.l-3 { transition: all 2s ease 800ms; }
.platinum-animation .lines.active span.l-4 { transition: all 2s ease 1200ms; }
.platinum-animation .lines.active span.l-5 { transition: all 2s ease 1600ms; }

.platinum-move-1,
.platinum-move-2,
.platinum-move-3 {
    width: 10px;
    height: 90px;
    background: url(../img/anim/platinum-move-1.png) no-repeat scroll center center / cover;
    animation: bottomTotop 15s linear 0s infinite;
    position: absolute;
    z-index: 0;
}
.platinum-move-1 { left: 19%; animation-duration: 15s; }
.platinum-move-2 { left: 60%; animation-duration: 18s; }
.platinum-move-3 { left: 64%; top: -20px; animation-duration: 18s; }
.platinum-move-4 {
    width: 38px;
    height: 160px;
    background: url(../img/anim/platinum-move-2.png) no-repeat scroll center center / cover;
    position: absolute;
    right: 10px;
    bottom: 120px;
    z-index: 0;
    opacity: 0;
    visibility: hidden;
}
.platinum-move-5 {
    width: 30px;
    height: 100px;
    background: url(../img/anim/platinum-move-3.png) no-repeat scroll center center / cover;
    position: absolute;
    left: 18px;
    bottom: 145px;
    z-index: 0;
    opacity: 0;
    visibility: hidden;
}
.platinum-animation.start-animation .platinum-move-5 {
    opacity: 1;
    visibility: visible;
    transition: all 1000ms 1s ease;
}
.platinum-animation.start-animation .platinum-move-4 {
    opacity: 1;
    visibility: visible;
    transition: all 1000ms 1.5s ease;
}

@keyframes bottomTotop {
    0% { transform: translateY(1000%); opacity: 0; }
    50% { transform: translateY(300%); opacity: 1; }
    100% { transform: translateY(-400%); opacity: 0; }
}

.dh-about-logo-spin,
.dh-cta-spin {
    animation: SpinCoin1 10s linear infinite;
}

.benefit-section.start-animation .dh-benefit-grid article {
    animation: benefitPop 0.7s ease both;
}
.benefit-section.start-animation .dh-benefit-grid article:nth-child(2) { animation-delay: 0.1s; }
.benefit-section.start-animation .dh-benefit-grid article:nth-child(3) { animation-delay: 0.2s; }
.benefit-section.start-animation .dh-benefit-grid article:nth-child(4) { animation-delay: 0.3s; }
.benefit-section.start-animation .dh-benefit-grid article:nth-child(5) { animation-delay: 0.4s; }
.benefit-section.start-animation .dh-benefit-grid article:nth-child(6) { animation-delay: 0.5s; }

@keyframes benefitPop {
    from { opacity: 0; transform: translateY(24px) scale(0.96); }
    to { opacity: 1; transform: none; }
}

@media (max-width: 980px) {
    .dh-hero-grid { grid-template-columns: 1fr; }
    .platinum-animation { height: 420px; max-width: 340px; }
    .platinum-animation .top-part,
    .platinum-animation .top-part:before { width: 240px; height: 240px; }
    .platinum-animation .coin-icon { width: 100px; height: 100px; }
    .dh-hero-anim-col { min-height: 380px; order: -1; }
}
@media (max-width: 640px) {
    .platinum-animation { height: 360px; }
    .platinum-animation .base { width: 220px; }
    .platinum-animation.start-animation .base { height: 160px; }
    .platinum-animation .base:before { width: 300px; height: 90px; bottom: -40px; }
}
