/* ===========================================
   UI/UX Enhancements for Synko Landing Page
   World-Class Best Practices
   =========================================== */

/* Improved Visual Hierarchy */
.hero-text > * {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
}

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

.hero-subheadline {
    animation-delay: 0.4s;
}

.platform-logos {
    animation-delay: 0.6s;
}

.primary-cta {
    animation-delay: 0.8s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Smooth Header Appearance */
.top-header {
    animation: slideDown 0.5s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Better Focus States for Accessibility */
.lang-btn:focus-visible,
.cta-button:focus-visible,
a:focus-visible {
    outline: 3px solid var(--primary-color);
    outline-offset: 3px;
}

/* Improved Platform Logo Animations */
.platform-logo {
    animation: popIn 0.5s ease-out backwards;
}

.platform-logo:nth-child(1) { animation-delay: 0.7s; }
.platform-logo:nth-child(2) { animation-delay: 0.8s; }
.platform-logo:nth-child(3) { animation-delay: 0.9s; }
.platform-logo:nth-child(4) { animation-delay: 1s; }
.platform-logo:nth-child(5) { animation-delay: 1.1s; }

@keyframes popIn {
    0% {
        opacity: 0;
        transform: scale(0.5);
    }
    70% {
        transform: scale(1.1);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Better Typography for Readability */
.hero-headline {
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.hero-subheadline {
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

/* Improved Hover States */
.lang-btn {
    position: relative;
}

.lang-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 80%;
    height: 2px;
    background: var(--primary-color);
    transition: transform 0.3s ease;
}

.lang-btn.active::after {
    transform: translateX(-50%) scaleX(1);
}

/* Better Mobile Spacing */
@media (max-width: 768px) {
    .hero-text > * {
        animation: fadeInUp 0.6s ease-out forwards;
    }
    
    .hero-headline {
        animation-delay: 0.1s;
    }
    
    .hero-subheadline {
        animation-delay: 0.2s;
    }
    
    .platform-logos {
        animation-delay: 0.3s;
        text-align: center;
    }
    
    .primary-cta {
        animation-delay: 0.4s;
    }
}

/* Improved Loading State */
body {
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Better Visual Feedback */
.cta-button:active {
    transform: translateY(-2px) scale(0.98);
}

.lang-btn:active {
    transform: scale(0.95);
}

.platform-logo:active {
    transform: scale(0.95);
}

/* Improved Contrast for Better Readability */
.platforms-label {
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Better Section Transitions */
section {
    scroll-margin-top: 80px;
}

/* Improved Mobile Header */
@media (max-width: 480px) {
    .top-header {
        padding: 12px 0;
    }
    
    .logo-text {
        font-size: 1.6rem;
    }
    
    .beta-badge {
        font-size: 0.6rem;
        padding: 2px 6px;
    }
    
    .lang-btn {
        padding: 8px 14px;
        font-size: 0.85rem;
    }
}

/* Better CTA Button Responsiveness */
@media (max-width: 768px) {
    .cta-button {
        padding: 16px 28px;
        font-size: 1.05rem;
    }
}

@media (max-width: 480px) {
    .cta-button {
        padding: 15px 24px;
        font-size: 1rem;
        gap: 10px;
    }
}

/* Improved Visual Depth */
.hero {
    position: relative;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.05));
    pointer-events: none;
}

/* Better Platform Logo Layout on Mobile */
@media (max-width: 480px) {
    .logos-row {
        gap: 12px;
    }
    
    .platform-logo {
        width: 46px;
        height: 46px;
        font-size: 1.2rem;
    }
    
    .platform-logo img {
        width: 24px;
        height: 24px;
    }
}

/* Smooth Scroll Behavior Enhancement */
html {
    scroll-padding-top: 90px;
}

/* Better Loading Performance */
.hero-visual * {
    will-change: transform;
}

/* Reduced Motion for Accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
