/* 
   SyncReverse - Premium Design System
   Color Palette:
   - Deep Background: #1F261D
   - Accent Green: #3BDB7E
   - Pure White: #FFFFFF
   - Text Secondary: rgba(255, 255, 255, 0.7)
   - Glass Surface: rgba(255, 255, 255, 0.05)
*/

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
    --bg-color: #1F261D;
    --accent-color: #3BDB7E;
    --text-primary: #FFFFFF;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-blur: blur(12px);
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: 'Manrope', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3 {
    font-family: 'Manrope', sans-serif;
    font-weight: 800;
}

/* Glassmorphism Utility */
.glass {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
}

/* Background Animations */
.bg-blobs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    filter: blur(80px);
    opacity: 0.4;
}

.blob {
    position: absolute;
    border-radius: 50%;
    background: var(--accent-color);
    animation: float 20s infinite alternate;
}

.blob-1 {
    width: 400px;
    height: 400px;
    top: -100px;
    right: -100px;
    background: #2a3d2a;
}

.blob-2 {
    width: 300px;
    height: 300px;
    bottom: -50px;
    left: -50px;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(50px, 50px) scale(1.1); }
}

/* App Store CTA Styling */
.cta-area {
    margin-top: 40px;
    display: flex;
    justify-content: center;
}

.appstore-badge {
    height: 56px;
    transition: var(--transition-smooth);
    display: block;
}

.appstore-link:hover .appstore-badge {
    transform: translateY(-4px);
    filter: brightness(1.1);
}

/* World Record Inline */
.world-record-inline {
    margin-top: 48px;
    font-size: 1.2rem;
    color: var(--text-secondary);
    letter-spacing: 0.5px;
    text-align: center;
    width: 100%;
    max-width: 500px;
}

.world-record-inline #recordPoints {
    color: var(--accent-color);
    font-weight: 700;
    font-size: 1.4rem;
}

.flag-icon {
    font-size: 1.3rem;
    margin-left: 6px;
}

/* Navigation */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 40px 8%;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition-smooth);
}

nav.scrolled {
    padding: 10px 8%;
    background: rgba(31, 38, 29, 0.85);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.logo img {
    height: 60px;
    filter: drop-shadow(0 0 10px rgba(59, 219, 126, 0.3));
    transition: var(--transition-smooth);
}

nav.scrolled .logo img {
    height: 48px;
}

.nav-cta {
    display: flex;
    align-items: center;
}

.appstore-badge-sm {
    height: 52px;
    transition: var(--transition-smooth);
    display: block;
}

nav.scrolled .appstore-badge-sm {
    height: 44px;
}

.appstore-link-sm:hover .appstore-badge-sm {
    transform: translateY(-2px);
    filter: brightness(1.1);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 140px 8% 80px;
    gap: 60px;
    position: relative;
}

.hero-content {
    flex: 1;
}

.hero-tagline {
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 4px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 20px;
    display: block;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    line-height: 1.1;
    margin-bottom: 24px;
}

.hero-p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 540px;
    margin-bottom: 40px;
}

.hero-video {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
}

.video-container {
    width: 100%;
    max-width: 450px;
    position: relative;
    border-radius: 40px;
    padding: 10px;
    background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0));
    box-shadow: 0 30px 60px rgba(0,0,0,0.5);
}

.video-container video {
    width: 100%;
    border-radius: 32px;
    display: block;
}

/* Features Section */
.features {
    padding: 100px 8%;
    text-align: center;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.feature-card {
    padding: 40px;
    text-align: left;
    transition: var(--transition-smooth);
}

.feature-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.05);
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: rgba(59, 219, 126, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: var(--accent-color);
}

.feature-card h3 {
    margin-bottom: 16px;
}

.feature-card p {
    color: var(--text-secondary);
}

/* How It Works Section */
.how-it-works {
    padding: 100px 8%;
    background: linear-gradient(180deg, rgba(59, 219, 126, 0.02), transparent);
}

.how-it-works h2 {
    text-align: center;
    margin-bottom: 80px;
    font-size: clamp(2rem, 4vw, 3rem);
}

.steps-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 120px;
}

.step-card {
    display: flex;
    align-items: center;
    gap: 80px;
    opacity: 0;
    transform: translateY(40px);
    transition: var(--transition-smooth);
}

.step-card.active {
    opacity: 1;
    transform: translateY(0);
}

.step-card:nth-child(even) {
    flex-direction: row-reverse;
}

.step-text {
    flex: 1;
}

.step-number {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 12px;
    display: block;
}

.step-text h3 {
    font-size: 2.2rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.step-text p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 480px;
}

.step-video {
    flex: 1;
    display: flex;
    justify-content: center;
}

.tutorial-video-container {
    width: 100%;
    max-width: 300px; /* Portrait 9:16 standard width */
    aspect-ratio: 9 / 16;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    padding: 8px;
    position: relative;
    box-shadow: 0 30px 60px rgba(0,0,0,0.4);
}

.tutorial-video-container::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(59, 219, 126, 0.1) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    z-index: -1;
    pointer-events: none;
}

.tutorial-video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 24px;
    display: block;
}

/* Benefits Section */
.benefits {
    padding: 100px 8%;
    background: linear-gradient(180deg, transparent, rgba(59, 219, 126, 0.02));
}

.benefits h2 {
    text-align: center;
    margin-bottom: 60px;
    font-size: clamp(2rem, 4vw, 3rem);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 30px;
}

.benefit-card {
    padding: 30px;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.benefit-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(59, 219, 126, 0.3);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.benefit-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(59, 219, 126, 0.2), rgba(59, 219, 126, 0.05));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: var(--accent-color);
}

.benefit-card h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

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

/* Challenge Section */
.challenge {
    padding: 100px 8%;
    text-align: center;
}

.challenge-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 40px;
    background: linear-gradient(135deg, rgba(59, 219, 126, 0.1), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(59, 219, 126, 0.2);
    border-radius: 32px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.challenge-content h2 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    margin-bottom: 24px;
    color: var(--text-primary);
}

.challenge-content p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* Footer */
footer {
    padding: 60px 8%;
    border-top: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-logo img {
    height: 30px;
}

.copyright {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Reveal Animations */
@keyframes revealUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-tagline { animation: revealUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.hero h1 { animation: revealUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.1s forwards; opacity: 0; }
.hero-p { animation: revealUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards; opacity: 0; }
.cta-area { animation: revealUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards; opacity: 0; }
.hero-video { animation: revealUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.4s forwards; opacity: 0; }

/* Scroll Animations Utility */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: var(--transition-smooth);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 1024px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 160px;
        padding-bottom: 100px;
    }
    
    .hero-p {
        margin-left: auto;
        margin-right: auto;
    }
    
    .video-container {
        max-width: 320px;
    }

    .step-card, .step-card:nth-child(even) {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }

    .cta-area {
        justify-content: center;
    }

    .tutorial-video-container {
        max-width: 260px;
    }
}

@media (max-width: 768px) {
    nav {
        padding: 30px 8%;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .challenge {
        padding: 60px 4%;
    }

    .challenge-content {
        padding: 40px 20px;
        border-radius: 24px;
    }

    .challenge-content h2 {
        font-size: 1.8rem;
    }

    .challenge-content p {
        font-size: 1.1rem;
    }

    footer {
        flex-direction: column;
        gap: 20px;
    }
}
