/* assets/css/index.css
   INDEX-PAGE ONLY styles — loaded only on the homepage. */

/* Hero Animated Background */
.hero-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 20%, rgba(79, 70, 229, 0.10) 0%, transparent 40%),
                radial-gradient(circle at 80% 30%, rgba(139, 92, 246, 0.10) 0%, transparent 45%),
                radial-gradient(circle at 50% 80%, rgba(59, 130, 246, 0.06) 0%, transparent 40%);
    z-index: 1;
    animation: pulse-bg 10s infinite alternate;
}
.dark .hero-bg {
    background: radial-gradient(circle at 20% 20%, rgba(79, 70, 229, 0.18) 0%, transparent 40%),
                radial-gradient(circle at 80% 30%, rgba(139, 92, 246, 0.18) 0%, transparent 45%),
                radial-gradient(circle at 50% 80%, rgba(59, 130, 246, 0.12) 0%, transparent 40%);
}
@keyframes pulse-bg {
    0% { transform: scale(1); opacity: 0.85; }
    100% { transform: scale(1.1); opacity: 1; }
}

/* Subtle grid texture overlay for hero */
.hero-grid {
    position: absolute;
    inset: 0;
    z-index: 1;
    background-image:
        linear-gradient(to right, rgba(100,116,139,0.06) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(100,116,139,0.06) 1px, transparent 1px);
    background-size: 44px 44px;
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%);
    mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%);
}
.dark .hero-grid {
    background-image:
        linear-gradient(to right, rgba(148,163,184,0.07) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(148,163,184,0.07) 1px, transparent 1px);
}

/* Staggered hero entrance */
.hero-stagger > * { opacity: 0; transform: translateY(20px); animation: heroIn 0.8s ease-out forwards; }
.hero-stagger > *:nth-child(1) { animation-delay: 0.05s; }
.hero-stagger > *:nth-child(2) { animation-delay: 0.18s; }
.hero-stagger > *:nth-child(3) { animation-delay: 0.31s; }
.hero-stagger > *:nth-child(4) { animation-delay: 0.44s; }
.hero-stagger > *:nth-child(5) { animation-delay: 0.57s; }
@keyframes heroIn { to { opacity: 1; transform: translateY(0); } }

/* FAQ Accordion — uses .is-open (decoupled from reveal's .active) */
.faq-item.is-open .faq-toggle i.faq-icon { transform: rotate(45deg); }
.faq-item.is-open { border-color: rgba(79, 70, 229, 0.4); }
.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
}

/* Testimonial Dots */
.testimonial-dot.active { width: 2rem; background-color: var(--color-primary); }
.dark .testimonial-dot.active { background-color: #818cf8; }

/* Testimonial avatar ring */
.tm-avatar { box-shadow: 0 0 0 3px #fff, 0 0 0 5px rgba(79,70,229,0.35); }
.dark .tm-avatar { box-shadow: 0 0 0 3px #0f172a, 0 0 0 5px rgba(129,140,248,0.4); }

/* Reduced motion (hero-specific) */
@media (prefers-reduced-motion: reduce) {
    .hero-stagger > * { opacity: 1 !important; transform: none !important; animation: none !important; }
    .hero-bg { animation: none !important; }
}


/* ==========================================
   HERO SECTION: 3D GLASS DASHBOARD & FLOATING CARDS
   ========================================== */

/* 3D Perspective Container */
.perspective-1000 { perspective: 1000px; }

/* Glassmorphism Main Card */
.glass-card {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1);
    transform-style: preserve-3d;
}
.dark .glass-card {
    background: rgba(30, 41, 59, 0.5);
    border-color: rgba(51, 65, 85, 0.5);
}

/* Glassmorphism Floating Cards */
.glass-float-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.08);
    padding: 0.6rem 0.9rem;
    border-radius: 0.85rem;
    z-index: 10;
}
.dark .glass-float-card {
    background: rgba(15, 23, 42, 0.75);
    border-color: rgba(51, 65, 85, 0.8);
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.3);
}

/* Continuous 3D Tilt Animation for Dashboard */
@keyframes tilt-3d {
    0%, 100% { transform: perspective(1000px) rotateY(-4deg) rotateX(2deg); }
    50% { transform: perspective(1000px) rotateY(4deg) rotateX(-2deg); }
}
.animate-tilt-3d { animation: tilt-3d 8s ease-in-out infinite; }

/* Gentle Floating Animation for Cards */
@keyframes float-y-1 { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes float-y-2 { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes float-y-3 { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes float-y-4 { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

.animate-float-y-1 { animation: float-y-1 4s ease-in-out infinite; }
.animate-float-y-2 { animation: float-y-2 5s ease-in-out infinite; animation-delay: 0.5s; }
.animate-float-y-3 { animation: float-y-3 4.5s ease-in-out infinite; animation-delay: 1s; }
.animate-float-y-4 { animation: float-y-4 5.5s ease-in-out infinite; animation-delay: 1.5s; }

/* Slow Background Pulse */
@keyframes pulse-slow {
    0%, 100% { opacity: 0.2; transform: scale(1); }
    50% { opacity: 0.35; transform: scale(1.1); }
}
.animate-pulse-slow { animation: pulse-slow 6s ease-in-out infinite; }

/* Status Ping */
@keyframes ping-slow {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(2.5); opacity: 0; }
}
.animate-ping-slow { animation: ping-slow 1.5s cubic-bezier(0, 0, 0.2, 1) infinite; }

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .animate-tilt-3d, .animate-float-y-1, .animate-float-y-2, 
    .animate-float-y-3, .animate-float-y-4, .animate-pulse-slow, .animate-ping-slow {
        animation: none !important;
    }
}




/* ==========================================
   SECTION 7: ERP GROWTH ENGINE — LIVE DASHBOARD MOCKUP
   (replaces the old static stock photo)
   ========================================== */

.erp-mock { transform-style: preserve-3d; }

/* Module tabs */
.erp-tab {
    flex-shrink: 0;
    font-size: 0.68rem;
    font-weight: 600;
    color: #64748b;
    padding: 0.35rem 0.7rem;
    border-radius: 0.5rem;
    white-space: nowrap;
    transition: all var(--transition-base);
}
.dark .erp-tab { color: #94a3b8; }
.erp-tab-active {
    background: #4f46e5;
    color: #ffffff;
}
.dark .erp-tab-active { background: #6366f1; color: #ffffff; }

/* Mini stat cards */
.erp-stat {
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    border-radius: 0.75rem;
    padding: 0.6rem 0.5rem;
    text-align: center;
}
.dark .erp-stat { background: rgba(30, 41, 59, 0.4); border-color: #1e293b; }
.erp-stat i { font-size: 1rem; }
.erp-stat-num {
    font-size: 1rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.3;
    margin-top: 0.15rem;
}
.dark .erp-stat-num { color: #f1f5f9; }
.erp-stat-label {
    font-size: 0.58rem;
    color: #94a3b8;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

/* Animated revenue bars — grow from 0 to their target height on load,
   then gently breathe to feel "live". */
.erp-bar {
    flex: 1;
    height: var(--h, 50%);
    background: #cbd5e1;
    border-radius: 4px 4px 0 0;
    transform-origin: bottom;
    animation: erp-bar-grow 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) both,
               erp-bar-breathe 3.2s ease-in-out infinite;
    animation-delay: inherit;
}
.erp-bar-accent { background: #4f46e5; }
.dark .erp-bar { background: #334155; }
.dark .erp-bar-accent { background: #818cf8; }

@keyframes erp-bar-grow {
    from { transform: scaleY(0); opacity: 0; }
    to   { transform: scaleY(1); opacity: 1; }
}
@keyframes erp-bar-breathe {
    0%, 100% { transform: scaleY(1); }
    50%      { transform: scaleY(0.92); }
}

/* Incoming WhatsApp order notification bubble */
.erp-chat-bubble {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    border-radius: 0.75rem;
    padding: 0.6rem 0.75rem;
    animation: erp-bubble-in 0.6s ease-out both;
    animation-delay: 0.4s;
}
.dark .erp-chat-bubble { background: rgba(30, 41, 59, 0.4); border-color: #1e293b; }

@keyframes erp-bubble-in {
    from { transform: translateY(10px); opacity: 0; }
    to   { transform: translateY(0); opacity: 1; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .erp-bar, .erp-chat-bubble {
        animation: none !important;
        transform: none !important;
        opacity: 1 !important;
    }
}


/* ==========================================
   SECTION: E-COMMERCE + ERP COMPLETE SOLUTION (flagship offer)
   ========================================== */

/* --- Store mockup card --- */
.ecom-store-mock { transform-style: preserve-3d; }

.ecom-cart-wrap {
    position: relative;
    margin-left: 0.4rem;
    font-size: 0.95rem;
    line-height: 1;
}
.ecom-cart-badge {
    position: absolute;
    top: -6px;
    right: -8px;
    background: #ef4444;
    color: #fff;
    font-size: 0.55rem;
    font-weight: 700;
    line-height: 1;
    padding: 2px 4px;
    border-radius: 9999px;
    min-width: 14px;
    text-align: center;
}

.ecom-product {
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    border-radius: 0.7rem;
    padding: 0.6rem;
    animation: ecom-product-in 0.6s ease-out both;
}
.dark .ecom-product { background: rgba(30, 41, 59, 0.4); border-color: #1e293b; }
.ecom-product:nth-child(1) { animation-delay: 0.05s; }
.ecom-product:nth-child(2) { animation-delay: 0.18s; }
.ecom-product:nth-child(3) { animation-delay: 0.31s; }

@keyframes ecom-product-in {
    from { transform: translateY(10px); opacity: 0; }
    to   { transform: translateY(0); opacity: 1; }
}

.ecom-product-img {
    height: 2.75rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #eef2ff, #e0e7ff);
    color: #6366f1;
    font-size: 1.1rem;
}
.ecom-product-img-alt { background: linear-gradient(135deg, #f5f3ff, #ede9fe); color: #8b5cf6; }
.dark .ecom-product-img { background: linear-gradient(135deg, rgba(99,102,241,0.15), rgba(99,102,241,0.05)); }
.dark .ecom-product-img-alt { background: linear-gradient(135deg, rgba(139,92,246,0.15), rgba(139,92,246,0.05)); }

.ecom-order-strip {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    border-radius: 0.75rem;
    padding: 0.6rem 0.75rem;
    animation: ecom-bubble-in 0.6s ease-out both;
    animation-delay: 0.5s;
}
.dark .ecom-order-strip { background: rgba(30, 41, 59, 0.4); border-color: #1e293b; }
@keyframes ecom-bubble-in {
    from { transform: translateY(10px); opacity: 0; }
    to   { transform: translateY(0); opacity: 1; }
}

/* --- "Includes" chips --- */
.ecom-include {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    border-radius: 0.65rem;
    padding: 0.6rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #334155;
    transition: all var(--transition-base);
}
.ecom-include i { color: #4f46e5; font-size: 0.95rem; flex-shrink: 0; }
.ecom-include:hover { border-color: rgba(79,70,229,0.35); transform: translateY(-2px); }
.dark .ecom-include { background: rgba(30, 41, 59, 0.4); border-color: #1e293b; color: #cbd5e1; }
.dark .ecom-include i { color: #818cf8; }

/* --- Offer / price card --- */
.ecom-offer-card {
    position: relative;
    background: linear-gradient(150deg, #4f46e5 0%, #4338ca 45%, #312e81 100%);
    border-radius: 1.5rem;
    padding: 2.25rem 2rem;
    color: #fff;
    box-shadow: 0 30px 60px -20px rgba(79, 70, 229, 0.5);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.ecom-offer-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    align-self: flex-start;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3);
    color: #fde047;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    padding: 0.4rem 0.8rem;
    border-radius: 9999px;
    margin-bottom: 1.25rem;
    animation: ecom-badge-pulse 2.4s ease-in-out infinite;
}
@keyframes ecom-badge-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(253, 224, 71, 0.35); }
    50%      { box-shadow: 0 0 0 8px rgba(253, 224, 71, 0); }
}

.ecom-offer-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #c7d2fe;
    margin-bottom: 0.5rem;
}

.ecom-offer-price {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    margin-bottom: 0.35rem;
}
.ecom-offer-strike {
    font-size: 1.15rem;
    font-weight: 600;
    color: rgba(255,255,255,0.5);
    text-decoration: line-through;
}
.ecom-offer-now {
    font-size: 2.75rem;
    font-weight: 800;
    line-height: 1;
    color: #ffffff;
}

.ecom-offer-sub {
    font-size: 0.75rem;
    color: #a5b4fc;
    margin-bottom: 1.5rem;
}

.ecom-offer-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.75rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}
.ecom-offer-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-size: 0.85rem;
    color: #e0e7ff;
    line-height: 1.4;
}
.ecom-offer-list li i { color: #86efac; margin-top: 0.15rem; flex-shrink: 0; }

.ecom-offer-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    color: #4338ca;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 0.85rem 1.5rem;
    border-radius: 0.75rem;
    transition: all var(--transition-base);
    margin-top: auto;
}
.ecom-offer-cta:hover {
    background: #eef2ff;
    transform: translateY(-2px);
    box-shadow: 0 10px 24px -8px rgba(0,0,0,0.35);
}

.ecom-offer-note {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.7rem;
    color: #a5b4fc;
    margin-top: 0.85rem;
    text-align: center;
    justify-content: center;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .ecom-product, .ecom-order-strip, .ecom-offer-badge {
        animation: none !important;
        transform: none !important;
        opacity: 1 !important;
    }
}