/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-green: #22c55e;
    --secondary-green: #16a34a;
    --dark-green: #15803d;
    --light-green: #dcfce7;
    --accent-blue: #3b82f6;
    
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-light: #94a3b8;
    --text-hero: #020617;
    
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-dark: #0f172a;
    
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
    --shadow-glow: 0 0 20px rgb(34 197 94 / 0.15);
    --shadow-glow-intense: 0 0 30px rgb(34 197 94 / 0.25), 0 0 60px rgb(34 197 94 / 0.1);
    
    /* Fluid Typography Scale */
    --font-size-xs: clamp(0.7rem, 0.65rem + 0.25vw, 0.75rem);
    --font-size-sm: clamp(0.8rem, 0.75rem + 0.25vw, 0.875rem);
    --font-size-base: clamp(0.9rem, 0.85rem + 0.25vw, 1rem);
    --font-size-lg: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
    --font-size-xl: clamp(1.1rem, 1rem + 0.5vw, 1.25rem);
    --font-size-2xl: clamp(1.25rem, 1.1rem + 0.75vw, 1.5rem);
    --font-size-3xl: clamp(1.5rem, 1.25rem + 1.25vw, 1.875rem);
    --font-size-4xl: clamp(1.875rem, 1.5rem + 1.875vw, 2.25rem);
    --font-size-5xl: clamp(2.25rem, 1.75rem + 2.5vw, 3rem);
    --font-size-6xl: clamp(2.5rem, 2rem + 2.5vw, 3.75rem);
    
    /* Line Heights */
    --leading-tight: 1.25;
    --leading-snug: 1.375;
    --leading-normal: 1.5;
    --leading-relaxed: 1.625;
    --leading-loose: 2;
    
    /* Letter Spacing */
    --tracking-tighter: -0.05em;
    --tracking-tight: -0.025em;
    --tracking-normal: 0em;
    --tracking-wide: 0.025em;
    --tracking-wider: 0.05em;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: var(--leading-relaxed);
    color: var(--text-primary);
    background-color: var(--bg-primary);
    font-feature-settings: 'liga' 1, 'kern' 1, 'cv05' 1, 'cv11' 1;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-size: var(--font-size-base);
    font-weight: 400;
    letter-spacing: var(--tracking-normal);
}

.container {
    max-width: min(1200px, 95vw);
    margin: 0 auto;
    padding: 0 clamp(1rem, 3vw, 1.5rem);
}

/* Fluid spacing system */
.section-spacing {
    padding: clamp(3rem, 5vw, 5rem) 0;
}

.section-spacing-sm {
    padding: clamp(2rem, 3vw, 3rem) 0;
}

.section-spacing-lg {
    padding: clamp(4rem, 7vw, 7rem) 0;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(34, 197, 94, 0.02) 50%, transparent 100%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.navbar:hover::before {
    opacity: 1;
}

.nav-container {
    max-width: min(1200px, 95vw);
    margin: 0 auto;
    padding: 0 clamp(1rem, 3vw, 1.5rem);
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: clamp(60px, 8vw, 70px);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.logo {
    height: 32px;
    width: 32px;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-green);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-green);
}

.download-btn {
    background: var(--primary-green);
    color: white !important;
    padding: clamp(0.5rem, 1.5vw, 0.75rem) clamp(1rem, 3vw, 1.5rem);
    border-radius: 0.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.download-btn:hover {
    background: var(--secondary-green);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    padding: clamp(80px, 15vw, 120px) 0 clamp(60px, 10vw, 80px);
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--light-green) 100%);
    overflow: hidden;
}

.hero-container {
    max-width: min(1200px, 95vw);
    margin: 0 auto;
    padding: 0 clamp(1rem, 3vw, 1.5rem);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 6vw, 4rem);
    align-items: center;
}

.hero-title {
    font-size: var(--font-size-6xl);
    font-weight: 800;
    line-height: var(--leading-tight);
    margin-bottom: 1.5rem;
    color: var(--text-hero);
    letter-spacing: var(--tracking-tighter);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
    font-variation-settings: 'wght' 800, 'slnt' 0;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary-green), var(--accent-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: var(--font-size-xl);
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: var(--leading-relaxed);
    font-weight: 450;
    letter-spacing: var(--tracking-wide);
    max-width: 32rem;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

.cta-primary {
    background: var(--primary-green);
    color: white;
    padding: clamp(0.875rem, 2vw, 1rem) clamp(1.5rem, 4vw, 2rem);
    border-radius: 0.75rem;
    text-decoration: none;
    font-weight: 650;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-md);
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.cta-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.cta-primary:hover::before {
    left: 100%;
}

.cta-primary:hover {
    background: var(--secondary-green);
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl), var(--shadow-glow-intense);
}

.cta-secondary {
    background: transparent;
    color: var(--text-primary);
    padding: clamp(0.875rem, 2vw, 1rem) clamp(1.5rem, 4vw, 2rem);
    border: 2px solid var(--border-color);
    border-radius: 0.75rem;
    text-decoration: none;
    font-weight: 650;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.cta-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--primary-green);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.cta-secondary:hover {
    border-color: var(--primary-green);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.cta-secondary:hover::before {
    opacity: 1;
}

.hero-stats {
    display: flex;
    gap: 2rem;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-green);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-align: center;
}

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

.phone-mockup {
    position: relative;
    max-width: min(300px, 80vw);
}

.app-screenshot {
    width: 100%;
    height: auto;
    border-radius: 2rem;
    box-shadow: var(--shadow-2xl);
}

.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.earning-bubble {
    position: absolute;
    top: 20%;
    right: -20px;
    background: var(--primary-green);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-weight: 600;
    font-size: 0.875rem;
    opacity: 0;
    transform: scale(0.8) translateY(10px);
    animation: earningSyncSequence 12s ease-in-out infinite;
}

@keyframes earningSyncSequence {
    0%, 88%, 100% { 
        opacity: 0; 
        transform: scale(0.8) translateY(10px); 
    }
    8%, 15% { 
        opacity: 1; 
        transform: scale(1) translateY(-5px); 
    }
    18% {
        opacity: 0; 
        transform: scale(0.8) translateY(10px); 
    }
}

.gyro-earning {
    animation-delay: 0s;
}

.accel-earning {
    animation-delay: 4s;
}

.mag-earning {
    animation-delay: 8s;
}

.sensor-data {
    position: absolute;
    bottom: 15%;
    left: -45px;
    background: var(--accent-blue);
    color: white;
    padding: 0.3rem 0.7rem;
    border-radius: 1rem;
    font-weight: 500;
    font-size: 0.7rem;
    font-family: 'Courier New', monospace;
    opacity: 0;
    transform: scale(0.8) translateY(10px);
    animation: sensorSequence 12s ease-in-out infinite;
}

@keyframes sensorSequence {
    0%, 88%, 100% { 
        opacity: 0; 
        transform: scale(0.8) translateY(10px); 
    }
    8%, 15% { 
        opacity: 1; 
        transform: scale(1) translateY(0); 
    }
    18% {
        opacity: 0; 
        transform: scale(0.8) translateY(10px); 
    }
}

.gyro-data {
    animation-delay: 0s;
    background: var(--accent-blue);
}

.accel-data {
    animation-delay: 4s;
    background: var(--primary-green);
    top: 40%;
    left: -50px;
    bottom: auto;
}

.mag-data {
    animation-delay: 8s;
    background: #8b5cf6;
    top: 60%;
    right: -40px;
    left: auto;
    bottom: auto;
}

.sensor-indicator {
    position: absolute;
    bottom: 30%;
    left: -30px;
    width: 12px;
    height: 12px;
    background: var(--accent-blue);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

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

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

/* Features Section */
.features {
    padding: clamp(3rem, 8vw, 5rem) 0;
    background: var(--bg-primary);
}

.section-header {
    text-align: center;
    margin-bottom: clamp(3rem, 8vw, 5rem);
}

.section-title {
    font-size: var(--font-size-4xl);
    font-weight: 750;
    margin-bottom: 1rem;
    color: var(--text-primary);
    letter-spacing: var(--tracking-tight);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    line-height: var(--leading-tight);
    font-variation-settings: 'wght' 750;
}

.section-subtitle {
    font-size: var(--font-size-lg);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: var(--leading-relaxed);
    font-weight: 450;
    letter-spacing: var(--tracking-wide);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(350px, 100%), 1fr));
    gap: clamp(1.5rem, 4vw, 2.5rem);
}

.feature-card {
    background: var(--bg-primary);
    padding: clamp(1.5rem, 4vw, 2.5rem);
    border-radius: 1rem;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    cursor: default;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 0%, rgba(34, 197, 94, 0.03) 0%, transparent 70%);
    pointer-events: none;
    transition: opacity 0.3s ease;
    opacity: 0;
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-green);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-title {
    font-size: var(--font-size-xl);
    font-weight: 650;
    margin-bottom: 1rem;
    color: var(--text-primary);
    letter-spacing: var(--tracking-tight);
    line-height: var(--leading-snug);
}

.feature-description {
    color: var(--text-secondary);
    line-height: var(--leading-relaxed);
    font-weight: 400;
    letter-spacing: var(--tracking-normal);
    font-size: var(--font-size-base);
}

/* How It Works Section */
.how-it-works {
    padding: 5rem 0;
    background: var(--bg-secondary);
}

.steps-container {
    display: flex;
    flex-direction: column;
    gap: clamp(2.5rem, 6vw, 4rem);
    max-width: min(800px, 90vw);
    margin: 0 auto;
}

.step {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.step-number {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: var(--primary-green);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
}

.step-title {
    font-size: var(--font-size-2xl);
    font-weight: 650;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    letter-spacing: var(--tracking-tight);
    line-height: var(--leading-snug);
}

.step-description {
    color: var(--text-secondary);
    line-height: var(--leading-relaxed);
    font-weight: 400;
    letter-spacing: var(--tracking-normal);
    font-size: var(--font-size-base);
}

/* FAQ Section */
.faq {
    padding: 5rem 0;
    background: var(--bg-secondary);
}

.faq-container {
    max-width: min(800px, 90vw);
    margin: 0 auto;
}

.faq-item {
    background: white;
    border-radius: 0.75rem;
    margin-bottom: 1rem;
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.faq-item:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.faq-question {
    width: 100%;
    padding: 1.5rem;
    background: none;
    border: none;
    text-align: left;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: var(--bg-secondary);
    color: var(--primary-green);
}

.faq-icon {
    width: 20px;
    height: 20px;
    stroke-width: 2;
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: 1rem;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    background: var(--bg-primary);
}

.faq-item.active .faq-answer {
    max-height: 200px;
}

.faq-answer p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
    padding: 1.5rem;
    border-top: 1px solid var(--border-color);
}

/* Download Section */
.download {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--primary-green), var(--secondary-green));
    color: white;
    text-align: center;
}

.download-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.download-subtitle {
    font-size: 1.125rem;
    margin-bottom: 3rem;
    opacity: 0.9;
}

.download-buttons {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.download-btn img {
    height: 60px;
    transition: transform 0.3s ease;
}

.download-btn:hover img {
    transform: scale(1.05);
}

.download-note {
    opacity: 0.8;
    font-size: 0.875rem;
}

/* Footer */
.footer {
    background: var(--bg-dark);
    color: white;
    padding: 3rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.footer-description {
    opacity: 0.8;
    line-height: 1.6;
}

.footer-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: white;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-links a:hover {
    opacity: 1;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
    opacity: 0.6;
}

/* Tablet Breakpoint */
@media (min-width: 769px) and (max-width: 1024px) {
    .hero-container {
        gap: clamp(2rem, 4vw, 3rem);
        padding: 0 clamp(1.5rem, 4vw, 2rem);
    }
    
    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
        gap: clamp(2rem, 3vw, 2.5rem);
    }
    
    .container {
        padding: 0 clamp(1.5rem, 4vw, 2rem);
    }
    
    .steps-container {
        gap: clamp(2.5rem, 4vw, 3rem);
    }
}

/* Mobile Breakpoint */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow-md);
        padding: 2rem 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: clamp(1.5rem, 6vw, 2rem);
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
        gap: clamp(0.75rem, 3vw, 1rem);
    }
    
    .hero-stats {
        justify-content: center;
        gap: clamp(1rem, 4vw, 1.5rem);
        flex-wrap: wrap;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .step {
        flex-direction: column;
        text-align: center;
        gap: clamp(1rem, 4vw, 1.5rem);
    }
    
    .download-buttons {
        align-items: center;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: clamp(1.5rem, 4vw, 2rem);
    }
}

@media (max-width: 480px) {
    .feature-card {
        padding: clamp(1rem, 6vw, 1.5rem);
    }
    
    .hero-stats {
        gap: clamp(0.75rem, 4vw, 1rem);
    }
    
    .phone-mockup {
        max-width: min(250px, 85vw);
    }
}

/* Large screens optimization */
@media (min-width: 1440px) {
    .container,
    .hero-container,
    .nav-container {
        max-width: min(1400px, 90vw);
    }
    
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: clamp(2.5rem, 3vw, 3rem);
    }
    
    .hero-container {
        gap: clamp(4rem, 5vw, 5rem);
    }
}

/* Scroll to Top Button */
.scroll-top-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--primary-green);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    z-index: 1000;
}

.scroll-top-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top-btn:hover {
    background: var(--secondary-green);
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl), var(--shadow-glow);
}

.scroll-top-btn:active {
    transform: translateY(0);
}

/* Enhanced Hover Effects for Stats */
.hero-stats .stat {
    transition: all 0.3s ease;
    cursor: default;
}

.hero-stats .stat:hover {
    transform: translateY(-4px);
}

.hero-stats .stat:hover .stat-number {
    color: var(--secondary-green);
    text-shadow: 0 0 10px rgba(34, 197, 94, 0.3);
}

/* Enhanced Floating Elements */
.floating-elements::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -40px;
    width: 8px;
    height: 8px;
    background: var(--primary-green);
    border-radius: 50%;
    animation: pulse 2.5s ease-in-out infinite;
    animation-delay: 0.5s;
}

.floating-elements::after {
    content: '';
    position: absolute;
    bottom: 20%;
    right: -25px;
    width: 6px;
    height: 6px;
    background: var(--accent-blue);
    border-radius: 50%;
    animation: float 4s ease-in-out infinite;
    animation-delay: 1s;
}

/* Additional sensor indicators */
.sensor-indicator::before {
    content: '';
    position: absolute;
    top: 40%;
    right: -50px;
    width: 10px;
    height: 10px;
    background: linear-gradient(45deg, var(--primary-green), var(--accent-blue));
    border-radius: 50%;
    animation: pulse 3s ease-in-out infinite;
    animation-delay: 1.5s;
}

/* Loading states for download buttons */
.download-btn {
    position: relative;
    overflow: hidden;
}

.download-btn.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: loading-shimmer 1.5s infinite;
}

@keyframes loading-shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Touch-friendly button sizes for mobile */
@media (max-width: 768px) {
    .cta-primary,
    .cta-secondary,
    .download-btn {
        min-height: 48px;
        min-width: 48px;
        padding: 1rem 1.5rem;
    }
    
    .nav-link {
        padding: 1rem;
        min-height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .scroll-top-btn {
        width: 56px;
        height: 56px;
        bottom: 1.5rem;
        right: 1.5rem;
    }
    
    /* Enhanced mobile hero spacing */
    .hero {
        padding: 100px 0 60px;
    }
    
    .hero-container {
        gap: 3rem;
        padding: 0 1rem;
    }
    
    .hero-stats {
        gap: 1.5rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .stat {
        min-width: 100px;
    }
    
    /* Mobile floating elements optimization */
    .earning-bubble {
        right: -10px;
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
    }
    
    .sensor-indicator {
        left: -20px;
        width: 10px;
        height: 10px;
    }
    
    .floating-elements::before {
        left: -25px;
        width: 6px;
        height: 6px;
    }
    
    .floating-elements::after {
        right: -15px;
        width: 5px;
        height: 5px;
    }
    
    .sensor-indicator::before {
        right: -30px;
        width: 8px;
        height: 8px;
    }
}

/* Typography Enhancements */
.hero-subtitle {
    line-height: 1.7;
    letter-spacing: 0.01em;
}

.section-subtitle {
    line-height: 1.7;
    letter-spacing: 0.005em;
}

.feature-description {
    line-height: 1.7;
    letter-spacing: 0.002em;
}

/* Section Background Patterns and Transitions */
.features {
    position: relative;
    overflow: hidden;
}

.features::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 20%, rgba(34, 197, 94, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(59, 130, 246, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

.how-it-works {
    position: relative;
    overflow: hidden;
}

.how-it-works::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(45deg, rgba(34, 197, 94, 0.02) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(34, 197, 94, 0.02) 25%, transparent 25%);
    background-size: 60px 60px;
    background-position: 0 0, 30px 30px;
    pointer-events: none;
}

/* Section Fade Transitions - Disabled */
section {
    opacity: 1;
    transform: translateY(0);
}

/* Interactive Button Press Animations */
.cta-primary,
.cta-secondary,
.download-btn,
.scroll-top-btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
}

.cta-primary:active {
    transform: translateY(1px) scale(0.98);
}

.cta-secondary:active {
    transform: translateY(1px) scale(0.98);
}

.download-btn:active {
    transform: translateY(1px) scale(0.98);
}

.nav-link {
    position: relative;
    transition: all 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-green);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Easter Egg Stats Interactions */
.stat {
    position: relative;
    cursor: pointer;
}

.stat.clicked {
    animation: statBounce 0.6s ease-in-out;
}

@keyframes statBounce {
    0%, 100% { transform: translateY(0) scale(1); }
    25% { transform: translateY(-10px) scale(1.1); }
    50% { transform: translateY(-5px) scale(1.05); }
    75% { transform: translateY(-8px) scale(1.08); }
}

.stat::after {
    content: '✨';
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s ease;
}

.stat.sparkle::after {
    opacity: 1;
    animation: sparkleFloat 1s ease-out forwards;
}

@keyframes sparkleFloat {
    0% { transform: translateX(-50%) translateY(0) scale(0); opacity: 1; }
    100% { transform: translateX(-50%) translateY(-30px) scale(1.5); opacity: 0; }
}

/* Skeleton Loaders */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
}

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

.skeleton-text {
    height: 1em;
    border-radius: 4px;
    margin-bottom: 0.5em;
}

.skeleton-title {
    height: 2em;
    border-radius: 8px;
    margin-bottom: 1em;
    width: 60%;
}

.skeleton-card {
    height: 200px;
    border-radius: 1rem;
    margin-bottom: 2rem;
}

/* Progressive Image Loading - Disabled */
.progressive-img {
    position: relative;
    overflow: hidden;
}

.credits-overlay {
    position: absolute;
    top: 27%;
    left: 50%;
    transform: translateX(-50%);
    color: #22c55e;
    font-family: Arial, sans-serif;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    z-index: 10;
    pointer-events: none;
}

.progressive-img img {
    filter: none;
}

/* Enhanced Feature Card Animations */
.feature-card {
    will-change: transform, box-shadow;
    backface-visibility: hidden;
    perspective: 1000px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card:hover .feature-icon {
    transform: scale(1.15) rotateY(15deg);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card:hover .feature-title {
    color: var(--primary-green);
    transition: color 0.3s ease;
}

/* Improved Mobile Touch Interactions */
@media (max-width: 768px) {
    .stat:active {
        transform: scale(0.95);
    }
    
    .feature-card:active {
        transform: scale(0.98);
    }
    
    .cta-primary:active,
    .cta-secondary:active {
        transform: scale(0.96);
    }
}

/* Performance Optimizations */
* {
    will-change: auto;
}

.hero-visual,
.floating-elements,
.feature-card,
.phone-mockup {
    will-change: transform;
}

/* Enhanced Navbar Transition */
.navbar {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Enhanced loading states */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .parallax {
        transform: none !important;
    }
}

/* Legal Pages Styles */
.legal-page {
    padding-top: 120px;
    padding-bottom: 4rem;
    min-height: calc(100vh - 120px);
}

.legal-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--border-color);
}

.legal-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.last-updated {
    color: var(--text-secondary);
    font-size: 1rem;
    font-style: italic;
}

.legal-content {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

.legal-section {
    margin-bottom: 3rem;
}

.legal-section h2 {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
    border-left: 4px solid var(--primary-green);
    padding-left: 1rem;
}

.legal-section h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 1.5rem 0 0.75rem 0;
}

.legal-section p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.legal-section ul {
    margin: 1rem 0 1rem 2rem;
    color: var(--text-secondary);
}

.legal-section li {
    margin-bottom: 0.5rem;
}

.legal-section a {
    color: var(--primary-green);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease;
}

.legal-section a:hover {
    border-bottom-color: var(--primary-green);
}

.legal-section strong {
    color: var(--text-primary);
    font-weight: 600;
}

@media (max-width: 768px) {
    .legal-page {
        padding-top: 100px;
    }
    
    .legal-header h1 {
        font-size: 2rem;
    }
    
    .legal-section h2 {
        font-size: 1.5rem;
    }
    
    .legal-content {
        padding: 0 1rem;
    }
}