/**
 * Homepage premium motion & effects
 */

/* ── Hero ambient layer ── */
.hero-fx-layer {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.45;
    animation: heroOrbDrift var(--orb-dur, 14s) ease-in-out infinite;
}

.hero-orb--1 {
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.35), transparent 70%);
    top: -8%;
    left: -6%;
    --orb-dur: 16s;
}

.hero-orb--2 {
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.2), transparent 70%);
    bottom: 10%;
    right: 5%;
    animation-delay: -4s;
    --orb-dur: 12s;
}

.hero-orb--3 {
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08), transparent 70%);
    top: 40%;
    left: 45%;
    animation-delay: -7s;
    --orb-dur: 18s;
}

@keyframes heroOrbDrift {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(24px, -18px) scale(1.06); }
    66% { transform: translate(-16px, 12px) scale(0.94); }
}

.hero-bg {
    transition: transform 0.1s linear;
}

/* Kicker shimmer */
.hero-text .section-kicker,
.place-order-header .section-kicker {
    position: relative;
    display: inline-block;
    background: linear-gradient(
        90deg,
        var(--color-gold) 0%,
        #f5e6a8 35%,
        var(--color-gold) 50%,
        #c9a030 65%,
        var(--color-gold) 100%
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: kickerShimmer 4s linear infinite;
}

@keyframes kickerShimmer {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

/* Hero headline word reveal */
.hero-text h1 .word {
    display: inline-block;
    opacity: 0;
    transform: translateY(28px) rotateX(12deg);
    filter: blur(6px);
    animation: heroWordIn 0.75s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    animation-delay: calc(var(--wi, 0) * 0.07s + 0.15s);
    margin-right: 0.28em;
}

.hero-text h1 .word:last-child {
    margin-right: 0;
}

@keyframes heroWordIn {
    to {
        opacity: 1;
        transform: translateY(0) rotateX(0);
        filter: blur(0);
    }
}

.hero-text p,
.hero-actions,
.hero-trust-row,
.hero-stats {
    opacity: 0;
    transform: translateY(20px);
    animation: heroBlockIn 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero-text p { animation-delay: 0.55s; }
.hero-actions { animation-delay: 0.7s; }
.hero-trust-row { animation-delay: 0.85s; }
.hero-stats { animation-delay: 1s; }

@keyframes heroBlockIn {
    to { opacity: 1; transform: translateY(0); }
}

.hero-trust-item {
    opacity: 0;
    transform: translateX(-12px);
    animation: trustSlideIn 0.5s ease forwards;
    animation-delay: calc(var(--ti, 0) * 0.1s + 0.95s);
}

@keyframes trustSlideIn {
    to { opacity: 1; transform: translateX(0); }
}

/* Hero buttons glow */
.hero-actions .btn-gold,
.hero-actions .btn-white {
    position: relative;
    overflow: hidden;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.35s ease;
}

.hero-actions .btn-gold::after,
.hero-actions .btn-white::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.25) 50%, transparent 60%);
    transform: translateX(-120%);
    transition: transform 0.6s ease;
}

.hero-actions .btn-gold:hover,
.hero-actions .btn-white:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 12px 32px rgba(212, 175, 55, 0.35);
}

.hero-actions .btn-gold:hover::after,
.hero-actions .btn-white:hover::after {
    transform: translateX(120%);
}

/* Brand cards 3D tilt */
.hero-brands .brand-card {
    transform-style: preserve-3d;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease, border-color 0.4s ease;
}

.hero-brands .brand-card.is-tilting {
    transition: transform 0.08s linear;
}

/* Stats glow pulse */
.stat-value {
    text-shadow: 0 0 24px rgba(212, 175, 55, 0.4);
    animation: statGlow 3s ease-in-out infinite;
}

@keyframes statGlow {
    0%, 100% { text-shadow: 0 0 16px rgba(212, 175, 55, 0.3); }
    50% { text-shadow: 0 0 32px rgba(212, 175, 55, 0.55); }
}

/* Section headers reveal line */
.section-header.reveal-active h2::after {
    content: '';
    display: block;
    width: 64px;
    height: 3px;
    margin: 14px auto 0;
    background: var(--gradient-gold-line, linear-gradient(90deg, var(--color-gold-dark), var(--color-gold)));
    border-radius: 2px;
    animation: lineGrow 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    transform-origin: center;
    transform: scaleX(0);
}

.section-header.reveal-active h2::after {
    animation-name: lineGrow;
}

@keyframes lineGrow {
    to { transform: scaleX(1); }
}

/* Product grid stagger reveal */
.product-grid [data-reveal] {
    opacity: 0;
    transform: translateY(36px) scale(0.96);
    transition:
        opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.product-grid [data-reveal].is-revealed {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.product-card {
    transition:
        transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.45s ease;
}

.product-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent 42%, rgba(255, 255, 255, 0.12) 50%, transparent 58%);
    transform: translateX(-130%);
    transition: transform 0.7s ease;
    pointer-events: none;
    z-index: 2;
    border-radius: inherit;
}

.product-card {
    position: relative;
}

.product-card:hover::after {
    transform: translateX(130%);
}

.product-card:hover {
    transform: translateY(-10px) scale(1.01);
    box-shadow: 0 24px 48px rgba(26, 24, 20, 0.14);
}

/* Feature cards enhanced */
.features-grid .feature-card {
    transition:
        transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.35s ease,
        opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.features-grid .feature-card:hover {
    transform: translateY(-8px) scale(1.02);
}

.features-grid .feature-card:hover .feature-icon {
    animation: iconPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes iconPop {
    0% { transform: scale(1); }
    50% { transform: scale(1.15) rotate(-4deg); }
    100% { transform: scale(1.08); }
}

/* Scroll-triggered blur-in upgrade */
.blur-in.visible {
    animation: blurReveal 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes blurReveal {
    from { opacity: 0; filter: blur(12px); transform: translateY(24px); }
    to { opacity: 1; filter: blur(0); transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
    .hero-orb,
    .hero-text .section-kicker,
    .place-order-header .section-kicker,
    .stat-value {
        animation: none;
    }

    .hero-text h1 .word,
    .hero-text p,
    .hero-actions,
    .hero-trust-row,
    .hero-stats,
    .hero-trust-item {
        opacity: 1;
        transform: none;
        animation: none;
        filter: none;
    }
}
