/*
 * Hero Section Styles - Cloudridge Studios
 * Landing hero area with animations
 */

/* ===== HERO SECTION ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 120px;
    padding-bottom: var(--space-16);
    overflow: hidden;
}

.hero > .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-12);
    align-items: center;
    position: relative;
    z-index: 2;
}

/* ===== HERO BACKGROUND ===== */
.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    overflow: hidden;
}

.hero-gradient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(30, 58, 95, 0.03) 0%, 
        rgba(44, 122, 123, 0.05) 50%, 
        rgba(217, 119, 6, 0.03) 100%
    );
}

[data-theme="dark"] .hero-gradient {
    background: linear-gradient(135deg, 
        rgba(30, 58, 95, 0.1) 0%, 
        rgba(44, 122, 123, 0.15) 50%, 
        rgba(217, 119, 6, 0.1) 100%
    );
}

.hero-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.4;
}

.hero-glow-1 {
    top: -200px;
    right: -100px;
    background: var(--color-primary);
}

.hero-glow-2 {
    bottom: -200px;
    left: -100px;
    background: var(--color-secondary);
}

/* ===== HERO CONTENT ===== */
.hero-content {
    max-width: 600px;
}

/* Badge */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    background: var(--bg-tertiary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    color: var(--text-secondary);
    margin-bottom: var(--space-6);
    transition: all var(--transition-base);
    cursor: default;
}

.hero-badge:hover {
    border-color: var(--color-success);
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.2);
    transform: translateY(-2px);
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--color-success);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

/* Title */
.hero-title {
    font-family: var(--font-display);
    font-size: var(--text-6xl);
    font-weight: var(--font-extrabold);
    line-height: 1.1;
    letter-spacing: var(--tracking-tight);
    color: var(--text-primary);
    margin-bottom: var(--space-6);
}

/* Subtitle */
.hero-subtitle {
    font-size: var(--text-xl);
    line-height: var(--leading-relaxed);
    color: var(--text-secondary);
    margin-bottom: var(--space-8);
}

.hero-subtitle strong {
    color: var(--color-primary);
    font-weight: var(--font-semibold);
}

/* Actions */
.hero-actions {
    display: flex;
    gap: var(--space-4);
    margin-bottom: var(--space-12);
}

.btn-icon {
    width: 20px;
    height: 20px;
    transition: transform var(--transition-fast);
}

.btn:hover .btn-icon {
    transform: translateX(4px);
}

/* Stats */
.hero-stats {
    display: flex;
    align-items: center;
    gap: var(--space-6);
}

.hero-stat {
    text-align: center;
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
    cursor: default;
}

.hero-stat:hover {
    background: var(--bg-tertiary);
    transform: translateY(-3px);
}

.hero-stat-number {
    display: block;
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    font-weight: var(--font-bold);
    color: var(--text-primary);
    transition: all var(--transition-base);
}

.hero-stat:hover .hero-stat-number {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-stat-label {
    font-size: var(--text-sm);
    color: var(--text-tertiary);
}

.hero-stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border-light);
}

/* ===== HERO VISUAL ===== */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-device {
    position: relative;
}

/* Device Frame */
.device-frame {
    position: relative;
    width: 280px;
    height: 560px;
    background: linear-gradient(145deg, #1b263b, #0d1b2a);
    border-radius: 40px;
    padding: 12px;
    box-shadow: 
        0 50px 100px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.device-screen {
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #0d1b2a 0%, #1b263b 100%);
    border-radius: 30px;
    overflow: hidden;
    position: relative;
}

/* App Preview Mockup */
.app-preview {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: var(--space-4);
}

.app-header-mock {
    padding: var(--space-4) 0;
    text-align: center;
}

.app-title-mock {
    font-family: var(--font-display);
    font-size: var(--text-lg);
    font-weight: var(--font-bold);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.app-globe-mock {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.globe-sphere {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: linear-gradient(135deg, 
        rgba(30, 58, 95, 0.3) 0%, 
        rgba(44, 122, 123, 0.4) 50%, 
        rgba(217, 119, 6, 0.3) 100%
    );
    border: 2px solid rgba(255, 255, 255, 0.1);
    animation: float 4s ease-in-out infinite;
    box-shadow: 
        inset 0 0 60px rgba(30, 58, 95, 0.3),
        0 0 40px rgba(44, 122, 123, 0.2);
}

.globe-ring {
    position: absolute;
    width: 200px;
    height: 200px;
    border: 2px dashed rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: spin 20s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.app-card-mock {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    padding: var(--space-4);
    margin-bottom: var(--space-4);
}

.card-line {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    margin-bottom: var(--space-2);
}

.card-line.short {
    width: 60%;
    margin-bottom: 0;
}

.app-nav-mock {
    display: flex;
    justify-content: center;
    gap: var(--space-4);
    padding: var(--space-3) 0;
}

.nav-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
}

.nav-dot.active {
    background: var(--color-primary);
    box-shadow: 0 0 10px var(--color-primary);
}

/* Floating Cards */
.floating-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-4);
    background: var(--bg-elevated);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    white-space: nowrap;
    animation: float 3s ease-in-out infinite;
}

.floating-icon {
    font-size: var(--text-lg);
}

.floating-card-1 {
    top: 60px;
    left: -80px;
    animation-delay: 0s;
}

.floating-card-2 {
    bottom: 120px;
    right: -60px;
    animation-delay: 1s;
}

.floating-card-3 {
    bottom: 40px;
    left: -40px;
    animation-delay: 2s;
}

/* ===== SCROLL INDICATOR ===== */
.scroll-indicator {
    position: absolute;
    bottom: var(--space-8);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2);
    color: var(--text-tertiary);
    font-size: var(--text-sm);
    animation: fadeIn 1s ease forwards;
    animation-delay: 1.5s;
    opacity: 0;
}

.scroll-mouse {
    width: 24px;
    height: 40px;
    border: 2px solid var(--border-medium);
    border-radius: 12px;
    position: relative;
}

.scroll-wheel {
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--color-primary);
    border-radius: var(--radius-full);
    animation: scrollWheel 2s ease-in-out infinite;
}

@keyframes scrollWheel {
    0%, 100% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    50% {
        opacity: 0.5;
        transform: translateX(-50%) translateY(10px);
    }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .hero > .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-title {
        font-size: var(--text-5xl);
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-visual {
        order: -1;
        margin-bottom: var(--space-8);
    }

    .device-frame {
        width: 240px;
        height: 480px;
    }

    .floating-card {
        display: none;
    }
}

@media (max-width: 768px) {
    .hero {
        padding-top: 100px;
    }

    .hero-title {
        font-size: var(--text-4xl);
    }

    .hero-subtitle {
        font-size: var(--text-lg);
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-stats {
        flex-wrap: wrap;
        gap: var(--space-4);
    }

    .hero-stat-divider {
        display: none;
    }

    .scroll-indicator {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: var(--text-3xl);
    }

    .device-frame {
        width: 200px;
        height: 400px;
    }

    .globe-sphere {
        width: 120px;
        height: 120px;
    }

    .globe-ring {
        width: 160px;
        height: 160px;
    }
}
