/* Expound Premium — Motion & micro-interactions */

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Scroll progress */
.ec-scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 2px;
    width: 0;
    z-index: 10000;
    background: linear-gradient(90deg, #155eef, #38bdf8);
    pointer-events: none;
    transition: width 0.08s linear;
}

/* Urgency top bar */
.ec-urgency-bar {
    background: #070b14;
    color: #e2e8f0;
    text-align: center;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.02em;
    position: relative;
    overflow: hidden;
}
.ec-urgency-bar::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.12), transparent);
    animation: ecShimmer 3s ease-in-out infinite;
}
.ec-urgency-bar a {
    color: #fde68a !important;
    font-weight: 800;
    text-decoration: underline !important;
    text-underline-offset: 2px;
}
.ec-urgency-bar__dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4ade80;
    margin-right: 8px;
    animation: ecPulse 1.5s ease infinite;
    vertical-align: middle;
}

/* Conversion guarantee band */
.ec-metrics-zone {
    position: relative;
    z-index: 12;
    margin-top: -40px;
    padding-bottom: 24px;
}
.ec-guarantee-band {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin: 0 auto 28px;
    max-width: 1000px;
}
.ec-guarantee-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    background: rgba(255,255,255,0.97);
    border: 1px solid rgba(37,99,235,0.12);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(15,23,42,0.08);
    backdrop-filter: blur(12px);
    transition: transform 0.35s cubic-bezier(0.22,1,0.36,1), box-shadow 0.35s ease;
}
.ec-guarantee-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(37,99,235,0.15);
}
.ec-guarantee-item__icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    background: linear-gradient(135deg, #eff6ff, #ede9fe);
}
.ec-guarantee-item strong {
    display: block;
    font-size: 14px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.2;
}
.ec-guarantee-item span {
    font-size: 12px;
    color: #64748b;
}

/* Marquee trust strip */
.ec-trust-marquee {
    overflow: hidden;
    padding: 20px 0;
    background: #fff;
    border-top: 1px solid rgba(15,23,42,0.06);
    border-bottom: 1px solid rgba(15,23,42,0.06);
}
.ec-trust-marquee__track {
    display: flex;
    width: max-content;
    animation: ecMarquee 40s linear infinite;
}
.ec-trust-marquee__track:hover {
    animation-play-state: paused;
}
.ec-trust-marquee__group {
    display: flex;
    gap: 32px;
    padding-right: 32px;
}
.ec-trust-marquee .ec-trust-badge {
    flex-shrink: 0;
    padding: 10px 20px;
    border-radius: 999px;
    background: #f8fafc;
    border: 1px solid rgba(15,23,42,0.08);
    font-size: 13px;
    font-weight: 700;
    color: #334155;
    white-space: nowrap;
}

/* Button shine */
.ec-btn--primary {
    position: relative;
    overflow: hidden;
}
.ec-btn--primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
    transform: skewX(-20deg);
    transition: left 0.6s ease;
}
.ec-btn--primary:hover::after {
    left: 150%;
}

/* Card premium hover */
.ec-product-card,
.ec-cat-card,
.ec-techtime-card,
.ec-portfolio-card,
.ec-portfolio-case--premium,
.ec-portfolio-grid__item,
.ec-appstore-card {
    will-change: transform;
}
.ec-product-card.ec-visible:hover,
.ec-cat-card.ec-visible:hover {
    transform: translateY(-8px) scale(1.01);
}

/* Gradient text accent */
.ec-gradient-text {
    background: linear-gradient(135deg, #2563eb 0%, #7c3aed 50%, #ec4899 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Floating action pulse */
.ec-floating-whatsapp {
    animation: ecFloatPulse 3s ease-in-out infinite;
}

/* CTA section glow */
.ec-cta-glow {
    position: relative;
    padding: 64px 0;
    overflow: hidden;
}
.ec-cta-glow::before {
    content: '';
    position: absolute;
    inset: -50%;
    background: radial-gradient(circle at 50% 50%, rgba(37,99,235,0.15), transparent 60%);
    animation: ecRotateGlow 12s linear infinite;
    pointer-events: none;
}

/* Stagger reveal children */
.ec-stagger-children.ec-visible > * {
    animation: ecFadeUp 0.6s cubic-bezier(0.22,1,0.36,1) backwards;
}
.ec-stagger-children.ec-visible > *:nth-child(1) { animation-delay: 0.05s; }
.ec-stagger-children.ec-visible > *:nth-child(2) { animation-delay: 0.1s; }
.ec-stagger-children.ec-visible > *:nth-child(3) { animation-delay: 0.15s; }
.ec-stagger-children.ec-visible > *:nth-child(4) { animation-delay: 0.2s; }
.ec-stagger-children.ec-visible > *:nth-child(5) { animation-delay: 0.25s; }
.ec-stagger-children.ec-visible > *:nth-child(6) { animation-delay: 0.3s; }
.ec-stagger-children.ec-visible > *:nth-child(7) { animation-delay: 0.35s; }
.ec-stagger-children.ec-visible > *:nth-child(8) { animation-delay: 0.4s; }
.ec-stagger-children.ec-visible > *:nth-child(9) { animation-delay: 0.45s; }
.ec-stagger-children.ec-visible > *:nth-child(10) { animation-delay: 0.5s; }
.ec-stagger-children.ec-visible > *:nth-child(11) { animation-delay: 0.55s; }
.ec-stagger-children.ec-visible > *:nth-child(12) { animation-delay: 0.6s; }

/* Portfolio grid stagger on filter */
.ec-portfolio-grid__item.is-filtered-in:nth-child(3n+1) { animation-delay: 0.02s; }
.ec-portfolio-grid__item.is-filtered-in:nth-child(3n+2) { animation-delay: 0.06s; }
.ec-portfolio-grid__item.is-filtered-in:nth-child(3n) { animation-delay: 0.1s; }

/* Page load */
.expound-premium .page-wrapper {
    animation: ecPageIn 0.5s ease;
}

@keyframes ecShimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}
@keyframes ecPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(0.85); }
}
@keyframes ecMarquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
@keyframes ecFloatPulse {
    0%, 100% { box-shadow: 0 4px 20px rgba(37,99,235,0.3); }
    50% { box-shadow: 0 4px 28px rgba(37,99,235,0.55), 0 0 0 8px rgba(37,99,235,0.08); }
}
@keyframes ecRotateGlow {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
@keyframes ecPageIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
