/* ==========================================
   Home Page Styles - AutoSaline
   ========================================== */

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
    background: linear-gradient(180deg, #FAFBFC 0%, #EFF6FF 50%, #FAFBFC 100%);
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    z-index: 0;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(250, 251, 252, 0.7) 0%, rgba(239, 246, 255, 0.5) 50%, rgba(250, 251, 252, 0.7) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: var(--spacing-lg);
    align-items: center;
    max-width: 1400px;
    width: 100%;
    padding: 0 var(--spacing-md);
}

.hero-text {
    animation-delay: 0.2s;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: var(--spacing-sm);
    background: linear-gradient(135deg, var(--color-text-primary) 0%, var(--color-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(1.125rem, 2vw, 1.5rem);
    color: var(--color-text-secondary);
    margin-bottom: var(--spacing-lg);
    line-height: 1.6;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.stat-item {
    text-align: center;
    padding: var(--spacing-sm);
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    transition: var(--transition-base);
}

.stat-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--color-primary);
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--color-text-secondary);
    line-height: 1.4;
}

.hero-cta {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

/* Hero Visual */
.hero-visual {
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation-delay: 0.4s;
}

.device-mockup {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.device-glow {
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(96, 165, 250, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulse 4s ease-in-out infinite;
}

.device-frame {
    position: relative;
    width: 300px;
    height: 400px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(239, 246, 255, 0.8) 100%);
    border-radius: var(--radius-xl);
    border: 2px solid var(--color-border);
    box-shadow: var(--shadow-xl);
    animation: float 6s ease-in-out infinite;
    backdrop-filter: blur(20px);
    overflow: hidden;
}

.device-frame::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    opacity: 0.8;
}

.device-frame::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(180deg, transparent 0%, rgba(96, 165, 250, 0.1) 100%);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.scroll-arrow {
    width: 30px;
    height: 50px;
    border: 2px solid var(--color-primary);
    border-radius: 20px;
    position: relative;
}

.scroll-arrow::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: var(--color-primary);
    border-radius: 50%;
    animation: scroll 2s ease-in-out infinite;
}

@keyframes scroll {
    0% {
        top: 8px;
        opacity: 1;
    }
    100% {
        top: 32px;
        opacity: 0;
    }
}

/* Mission Section */
.mission {
    background: var(--color-white);
    position: relative;
}

.mission-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.mission-card {
    background: var(--color-bg-secondary);
    padding: var(--spacing-md);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.mission-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: var(--gradient-primary);
    transition: height var(--transition-base);
}

.mission-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    background: var(--color-white);
}

.mission-card:hover::before {
    height: 100%;
}

.card-icon {
    width: 64px;
    height: 64px;
    background: var(--color-bg-accent);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-sm);
    transition: var(--transition-base);
}

.card-icon svg {
    width: 32px;
    height: 32px;
    color: var(--color-primary);
}

.mission-card:hover .card-icon {
    background: var(--gradient-primary);
    transform: scale(1.1) rotate(5deg);
}

.mission-card:hover .card-icon svg {
    color: var(--color-white);
}

.mission-card h3 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
    color: var(--color-text-primary);
}

.mission-card p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-text-secondary);
}

/* Features Section */
.features {
    background: var(--gradient-soft);
    position: relative;
    overflow: hidden;
}

.features-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
}

.features-text {
    animation: fadeInUp 1s ease forwards;
}

.feature-list {
    margin: var(--spacing-md) 0 var(--spacing-lg);
}

.feature-item {
    display: flex;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
    padding: var(--spacing-sm);
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    transition: var(--transition-base);
}

.feature-item:hover {
    transform: translateX(8px);
    box-shadow: var(--shadow-md);
    background: var(--color-white);
}

.feature-icon {
    width: 32px;
    height: 32px;
    background: var(--gradient-primary);
    color: var(--color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.feature-item h4 {
    font-size: 1.125rem;
    margin-bottom: 0.25rem;
    color: var(--color-text-primary);
}

.feature-item p {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    line-height: 1.5;
}

/* Tech Diagram */
.features-visual {
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tech-diagram {
    position: relative;
    width: 400px;
    height: 400px;
}

.diagram-layer {
    position: absolute;
    border-radius: 50%;
    border: 2px solid;
    animation: rotate 20s linear infinite;
}

.layer-1 {
    width: 100%;
    height: 100%;
    border-color: rgba(96, 165, 250, 0.3);
    top: 0;
    left: 0;
}

.layer-2 {
    width: 70%;
    height: 70%;
    border-color: rgba(103, 232, 249, 0.3);
    top: 15%;
    left: 15%;
    animation-duration: 15s;
    animation-direction: reverse;
}

.layer-3 {
    width: 40%;
    height: 40%;
    border-color: rgba(94, 234, 212, 0.3);
    top: 30%;
    left: 30%;
    animation-duration: 10s;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.pulse-indicator {
    position: absolute;
    width: 12px;
    height: 12px;
    background: var(--color-primary);
    border-radius: 50%;
    animation: pulse-dot 2s ease-in-out infinite;
}

.p1 {
    top: 10%;
    left: 50%;
}

.p2 {
    top: 50%;
    right: 10%;
    animation-delay: 0.7s;
}

.p3 {
    bottom: 10%;
    left: 30%;
    animation-delay: 1.4s;
}

@keyframes pulse-dot {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.5);
        opacity: 0.5;
    }
}

/* Impact Numbers */
.impact-numbers {
    background: var(--color-white);
    padding: var(--spacing-xl) 0;
}

.numbers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md);
}

.number-card {
    text-align: center;
    padding: var(--spacing-lg) var(--spacing-md);
    background: var(--gradient-soft);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    transition: var(--transition-base);
}

.number-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.number-value {
    font-size: 3.5rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.number-unit {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: var(--spacing-sm);
}

.number-label {
    font-size: 1rem;
    color: var(--color-text-secondary);
}

/* CTA Section */
.cta-section {
    background: var(--gradient-primary);
    padding: var(--spacing-xl) 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: wave 15s ease-in-out infinite;
}

.cta-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.cta-title {
    color: var(--color-white);
    margin-bottom: var(--spacing-sm);
    font-size: clamp(2rem, 4vw, 3rem);
}

.cta-description {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.25rem;
    line-height: 1.8;
    margin-bottom: var(--spacing-md);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--spacing-md);
    }
    
    .hero-visual {
        height: 400px;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .hero-cta {
        justify-content: center;
    }
    
    .features-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .features-visual {
        height: 400px;
    }
}

@media (max-width: 768px) {
    .hero {
        min-height: auto;
        padding: 100px 0 var(--spacing-lg);
    }
    
    .hero-stats {
        grid-template-columns: 1fr;
        gap: var(--spacing-sm);
    }
    
    .stat-number {
        font-size: 1.75rem;
    }
    
    .device-frame {
        width: 250px;
        height: 350px;
    }
    
    .device-glow {
        width: 300px;
        height: 300px;
    }
    
    .mission-grid {
        grid-template-columns: 1fr;
    }
    
    .tech-diagram {
        width: 300px;
        height: 300px;
    }
    
    .numbers-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .number-value {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .hero-cta {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-cta .btn {
        width: 100%;
    }
    
    .numbers-grid {
        grid-template-columns: 1fr;
    }
}
