/* v3-home.css - High-End Premium v3.2 */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Outfit:wght@600;700;800&display=swap');

:root {
    --p-indigo: #4f46e5;
    --p-indigo-dark: #3730a3;
    --p-emerald: #10b981;
    --p-slate-900: #0f172a;
    --p-slate-700: #334155;
    --p-slate-400: #94a3b8;
    --p-slate-50: #f8fafc;
    --v3-glass: rgba(255, 255, 255, 0.75);
}

.v3-main {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--p-slate-900);
    background: #ffffff;
    background-image: radial-gradient(#e2e8f0 1px, transparent 1px);
    background-size: 40px 40px;
    overflow-x: hidden;
}

.v3-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 40px;
}

/* 1. GLASSMORPHISM FIXED HEADER */
.main-header {
    position: fixed;
    top: 44px; /* Matches top bar height */
    left: 0;
    right: 0;
    background: var(--v3-glass) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border-bottom: 1px solid rgba(0,0,0,0.05) !important;
    z-index: 1000;
    transition: all 0.3s ease;
}

/* 2. TOP BAR REFINEMENT */
.v3-top-bar {
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(90deg, #1e1b4b, #4338ca);
    color: white;
    font-size: 0.85rem;
    font-weight: 500;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 2000;
}

/* 3. HERO (V3.2 Premium) */
.v3-hero {
    padding: 160px 0 120px; /* Offset for fixed header */
    display: flex;
    align-items: center;
    gap: 80px;
}

.v3-hero-title {
    font-family: 'Outfit', sans-serif;
    font-size: 3.8rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.05em;
    margin-bottom: 24px;
}

.v3-hero-title .gradient-text {
    background: linear-gradient(135deg, #4f46e5, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.v3-btn-primary {
    display: inline-flex;
    align-items: center;
    background: var(--p-indigo);
    color: white;
    padding: 18px 36px;
    border-radius: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 15px -3px rgba(79, 70, 229, 0.4);
}
.v3-btn-primary:hover {
    transform: translateY(-2px);
    background: var(--p-indigo-dark);
    box-shadow: 0 20px 25px -5px rgba(79, 70, 229, 0.5);
}

/* 4. ANIMATED PROCESSING MOCKUP */
.v3-mockup-window {
    background: white;
    border-radius: 16px;
    box-shadow: 0 50px 100px -20px rgba(0,0,0,0.12), 0 30px 60px -30px rgba(0,0,0,0.15);
    border: 1px solid rgba(0,0,0,0.05);
}

.v3-pulse-glow {
    position: absolute;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(79, 70, 229, 0.15) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: glow-pulse 3s infinite ease-in-out;
}

@keyframes glow-pulse {
    0%, 100% { opacity: 0.3; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 1; transform: translate(-50%, -50%) scale(1.4); }
}

.loading-bar-engine {
    height: 100%;
    background: linear-gradient(90deg, #4f46e5, #10b981);
    animation: bar-load 2s infinite linear;
    width: 0%;
}

@keyframes bar-load {
    0% { width: 0%; opacity: 1; }
    80% { width: 100%; opacity: 1; }
    100% { width: 100%; opacity: 0; }
}

/* 5. BENTO GRID (2025 Standard) */
.v3-bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: repeat(2, 320px);
    gap: 32px;
    margin-top: 80px;
}

.v3-bento-card {
    background: white;
    border-radius: 24px;
    padding: 32px;
    border: 1px solid rgba(0,0,0,0.04);
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.02), 0 4px 6px -2px rgba(0,0,0,0.01);
    transition: all 0.4s ease;
    overflow: hidden;
    position: relative;
}
.v3-bento-card:hover { transform: translateY(-8px); border-color: var(--p-indigo); }

.v3-bento-card.wide { grid-column: span 8; }
.v3-bento-card.small { grid-column: span 4; }

.bento-icon {
    font-size: 24px;
    margin-bottom: 20px;
    display: block;
}

.bento-title { font-family: 'Outfit', sans-serif; font-size: 1.4rem; font-weight: 700; margin-bottom: 12px; }
.bento-desc { color: var(--p-slate-700); font-size: 0.95rem; line-height: 1.6; }

/* Mini Charts in Bento */
.mini-chart {
    height: 60px;
    margin-top: 24px;
    display: flex;
    align-items: flex-end;
    gap: 4px;
}
.bar { flex: 1; background: #e2e8f0; border-radius: 4px 4px 0 0; }
.bar.active { background: var(--p-indigo); }

/* 6. SECTION DIVIDER */
.v3-section-title {
    font-family: 'Outfit', sans-serif;
    font-size: 3rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

/* Cleanup: Fixed positioning for entire main to prevent content jump */
.v3-main { padding-top: 44px; }

/* 7. WORKFLOW RESTORED */
.v3-workflow {
    display: flex;
    justify-content: space-between;
    gap: 32px;
    position: relative;
    padding: 40px 0;
}
.v3-workflow::before {
    content: '';
    position: absolute;
    top: 80px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: #e2e8f0;
    z-index: 0;
}
.v3-step { flex: 1; text-align: center; position: relative; z-index: 1; }
.v3-step-number {
    width: 80px;
    height: 80px;
    background: white;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 800;
    color: var(--p-indigo);
    margin: 0 auto 24px;
}
.v3-step-title { font-family: 'Outfit'; font-size: 1.25rem; font-weight: 700; margin-bottom: 8px; }
.v3-step-desc { color: var(--p-slate-700); font-size: 0.95rem; }

/* 8. STATS REFINEMENT */
.v3-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 80px;
}
.v3-stat-card {
    padding: 40px;
    background: white;
    border-radius: 24px;
    text-align: center;
    border: 1px solid rgba(0,0,0,0.04);
}
.v3-stat-num { font-family: 'Outfit'; font-size: 3rem; font-weight: 800; color: var(--p-indigo); }

/* Animation Utils */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.scroll-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile Fixes */
@media (max-width: 1000px) {
    .v3-hero { flex-direction: column; text-align: center; padding: 120px 20px 60px; }
    .v3-hero-title { font-size: 2.8rem; }
    .v3-bento-grid { display: flex; flex-direction: column; }
    .v3-bento-card { grid-column: auto !important; }
    .v3-workflow { flex-direction: column; align-items: center; }
    .v3-workflow::before { display: none; }
}
