/* =================================================================
   Home Page Styles - FULLY THEME COMPATIBLE
   ================================================================= */

/* =================================================================
   CLEAN BACKGROUND - NO GRADIENTS
   ================================================================= */

/* Skeleton Loading Styles for Home Page */
.skeleton {
    background: linear-gradient(
        90deg,
        var(--bg-secondary) 0%,
        var(--bg-hover) 50%,
        var(--bg-secondary) 100%
    );
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
    border-radius: var(--radius-sm);
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.skeleton-stat-number {
    display: inline-block;
}

.skeleton-text {
    display: block;
}



/* =================================================================
   RESPONSIVE DESIGN - Mobile First
   ================================================================= */

/* Mobile (< 768px) - Base styles above are mobile-first */

/* Tablet and up (>= 768px) */
@media (min-width: 768px) {
    .hero-main-heading {
        font-size: 4rem;
    }
    
    .hero-main-subtitle {
        font-size: 1.5rem;
    }
}

/* Desktop and up (>= 1024px) */
@media (min-width: 1024px) {
    .hero-main-heading {
        font-size: 4.5rem;
    }
    
    .hero-main-subtitle {
        font-size: 1.75rem;
    }
}

/* Large Desktop (>= 1920px) */
@media (min-width: 1920px) {
    .hero-main-heading {
        font-size: 5rem;
    }
}

/* Mobile specific overrides (< 768px) */
@media (max-width: 767px) {
    .hero-gradient-background {
        height: 100vh;
    }
    
    .hero-main-heading {
        font-size: 2.5rem;
        line-height: 1.2;
    }
    
    .hero-main-subtitle {
        font-size: 1rem;
        padding: 0 var(--spacing-md);
    }
    
    /* Stack any grid layouts vertically on mobile */
    .skeleton-stat-number {
        font-size: 1.5rem;
    }
}

/* Small mobile (< 480px) */
@media (max-width: 480px) {
    .hero-main-heading {
        font-size: 2rem;
    }
    
    .hero-main-subtitle {
        font-size: 0.875rem;
    }
}


/* =================================================================
   CSS Grid Fallbacks with @supports
   ================================================================= */

/* Fallback for browsers without CSS Grid support */
@supports not (display: grid) {
    /* Any grid layouts in home page would use flexbox fallback */
    .hero-stats-floating {
        display: flex;
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .hero-stats-floating > * {
        flex: 1 1 calc(50% - 0.5rem);
        min-width: 200px;
    }
}

/* =================================================================
   Backdrop Filter Fallbacks
   ================================================================= */

/* Fallback for browsers without backdrop-filter support */
@supports not (backdrop-filter: blur(10px)) {
    /* Increase background opacity for elements that use backdrop-filter */
    .glass-hero-card,
    .floating-stat-card {
        background: rgba(255, 255, 255, 0.1) !important;
    }
}

/* =================================================================
   Reduced Motion Support
   ================================================================= */

@media (prefers-reduced-motion: reduce) {
    /* Disable all animations for users who prefer reduced motion */
    .skeleton,
    .floating-stat-card,
    .hero-gradient-background::before {
        animation: none !important;
    }
    
    @keyframes skeleton-loading {
        0%, 100% { background-position: 0% 0; }
    }
    
    @keyframes float-gentle {
        0%, 100% { transform: translateY(0px); }
    }
}

/* =================================================================
   Browser-Specific Fixes
   ================================================================= */

/* Safari-specific fixes */
@supports (-webkit-appearance: none) {
    /* Fix for Safari's handling of gradient backgrounds */
    .hero-gradient-background {
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
    }
}

/* =================================================================
   Accessibility - Focus Styles for Home Page Elements
   ================================================================= */

/* Hero action buttons focus */
.hero-actions-modern .btn:focus-visible {
    outline: 3px solid var(--primary-400);
    outline-offset: 4px;
    box-shadow: 0 0 0 6px rgba(99, 102, 241, 0.3);
}

/* Floating stat cards focus (when interactive) */
.floating-stat-card:focus-visible {
    outline: 2px solid var(--primary-500);
    outline-offset: 3px;
    border-color: var(--primary-500);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.2), 0 16px 48px rgba(0, 0, 0, 0.4);
}

/* Hero badge focus (if interactive) */
.hero-badge:focus-visible {
    outline: 2px solid var(--primary-500);
    outline-offset: 3px;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

/* =================================================================
   Reduced Motion - Home Page Specific
   ================================================================= */

@media (prefers-reduced-motion: reduce) {
    /* Disable skeleton loading animation */
    .skeleton {
        animation: none !important;
        background: var(--bg-secondary);
    }

    /* Disable floating stat animations */
    .floating-stat-1,
    .floating-stat-2,
    .floating-stat-3,
    .floating-stat-4 {
        animation: none !important;
    }

    /* Disable hero particles animation */
    .hero-particles {
        animation: none !important;
    }

    /* Remove hover transforms on home page */
    .floating-stat-card:hover {
        transform: none !important;
    }

    .hero-actions-modern .btn:hover {
        transform: none !important;
    }

    /* Keep glow effect but remove animation */
    .btn-glow-effect {
        transition: none !important;
    }

    .btn-hero-primary:hover .btn-glow-effect {
        left: 0 !important;
    }
}

/* =================================================================
   REDESIGNED HERO SECTION - MODERN SPLIT LAYOUT
   ================================================================= */

.hero-section-redesigned {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: var(--spacing-4xl) 0;
    position: relative;
}

/* Hero Grid Layout */
.hero-grid-modern {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-4xl);
    align-items: center;
}

/* ===== LEFT SIDE: CONTENT ===== */
.hero-content-side {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xl);
}

/* Brand Badge */
.hero-brand-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-sm) var(--spacing-lg);
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: var(--radius-2xl);
    width: fit-content;
}

.brand-icon {
    color: #6366f1;
}

.brand-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

/* Main Heading */
.hero-main-heading {
    margin: 0;
    line-height: 1.1;
}

.heading-line-1,
.heading-line-2 {
    display: block;
    font-size: 4rem;
    font-weight: 800;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a78bfa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.heading-line-2 {
    margin-top: -0.5rem;
}

.heading-accent {
    display: block;
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--text-secondary);
    font-style: italic;
    margin-top: var(--spacing-sm);
}

/* Description */
.hero-main-description {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin: 0;
    max-width: 540px;
}

/* CTA Buttons */
.hero-cta-buttons {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

.btn-hero-primary-new {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-lg);
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.3);
}

.btn-hero-primary-new:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.4);
}

.btn-hero-secondary-new {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-hero-secondary-new:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(99, 102, 241, 0.5);
    transform: translateY(-2px);
}

/* Trust Indicators */
.hero-trust-indicators {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    padding-top: var(--spacing-md);
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9375rem;
    color: var(--text-secondary);
}

.trust-item svg {
    color: #10b981;
    flex-shrink: 0;
}

/* ===== RIGHT SIDE: STATS CARDS ===== */
.hero-stats-side {
    position: relative;
}

.stats-cards-stack {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.stat-card-new {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
    padding: var(--spacing-xl);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card-new::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--card-accent), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stat-card-new:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateX(8px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.stat-card-new:hover::before {
    opacity: 1;
}

.stat-card-1 {
    --card-accent: #6366f1;
}

.stat-card-2 {
    --card-accent: #8b5cf6;
}

.stat-card-3 {
    --card-accent: #a78bfa;
}

.stat-card-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(139, 92, 246, 0.2));
    border-radius: var(--radius-lg);
    flex-shrink: 0;
}

.stat-card-icon svg {
    color: #8b5cf6;
}

.stat-card-content {
    flex: 1;
}

.stat-card-number {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-card-label {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

/* Scroll Indicator */
.scroll-indicator-new {
    position: absolute;
    bottom: var(--spacing-2xl);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.6;
    animation: bounce-scroll 2s infinite;
}

@keyframes bounce-scroll {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(-10px);
    }
}

.scroll-text {
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.scroll-icon {
    color: var(--text-secondary);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
    .hero-grid-modern {
        grid-template-columns: 1fr;
        gap: var(--spacing-3xl);
    }
    
    .heading-line-1,
    .heading-line-2 {
        font-size: 3rem;
    }
    
    .hero-stats-side {
        order: -1;
    }
}

@media (max-width: 768px) {
    .heading-line-1,
    .heading-line-2 {
        font-size: 2.5rem;
    }
    
    .heading-accent {
        font-size: 1.25rem;
    }
    
    .hero-main-description {
        font-size: 1rem;
    }
    
    .hero-cta-buttons {
        flex-direction: column;
    }
    
    .btn-hero-primary-new,
    .btn-hero-secondary-new {
        width: 100%;
        justify-content: center;
    }
    
    .stat-card-new {
        padding: var(--spacing-lg);
    }
    
    .stat-card-icon {
        width: 56px;
        height: 56px;
    }
    
    .stat-card-number {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .heading-line-1,
    .heading-line-2 {
        font-size: 2rem;
    }
    
    .hero-brand-badge {
        padding: var(--spacing-xs) var(--spacing-md);
    }
    
    .brand-name {
        font-size: 1rem;
    }
    
    .stat-card-new {
        flex-direction: column;
        text-align: center;
    }
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
    .scroll-indicator-new {
        animation: none !important;
    }
    
    .stat-card-new:hover {
        transform: none !important;
    }
    
    .btn-hero-primary-new:hover,
    .btn-hero-secondary-new:hover {
        transform: none !important;
    }
}
