/* ==========================================================================
   Earnova Global Styles & Variables
   ========================================================================== */
:root {
    /* Brand Colors */
    --primary: #2563EB;
    --primary-dark: #1e40af;
    --secondary: #10B981;
    --accent: #F59E0B;
    --bg-main: #F8FAFC;
    --bg-light: #FFFFFF;
    
    /* Text Colors */
    --text-dark: #111827;
    --text-grey: #6B7280;
    
    /* Layout & Effects */
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.5);
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
    --shadow-glow: 0 0 40px rgba(37, 99, 235, 0.15);
    --radius-md: 12px;
    --radius-lg: 24px;
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-main);
}

body { overflow-x: hidden; }

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
.bg-light { background-color: var(--bg-light); }

/* ==========================================================================
   Typography & Buttons
   ========================================================================== */
h1, h2, h3, h4 { font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-large { padding: 1rem 2rem; font-size: 1.1rem; }

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 14px 0 rgba(37, 99, 235, 0.39);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.23);
}

.btn-secondary {
    background: var(--bg-light);
    color: var(--text-dark);
    border: 1px solid #E5E7EB;
}

.btn-secondary:hover { background: #F3F4F6; }

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover { background: var(--primary); color: white; }

/* ==========================================================================
   Navigation
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0; width: 100%;
    padding: 1.25rem 0;
    z-index: 1000;
    transition: var(--transition);
    border-bottom: 1px solid transparent;
}

.navbar.scrolled {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--glass-border);
    padding: 1rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.brand-logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -1px;
}

.nav-links { display: flex; gap: 2rem; }
.nav-links a { font-weight: 500; color: var(--text-grey); transition: var(--transition); }
.nav-links a:hover { color: var(--primary); }

.nav-auth { display: flex; align-items: center; gap: 1.5rem; }
.btn-text { font-weight: 600; color: var(--text-dark); }

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    min-height: 100vh;
    padding-top: 120px;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg-elements {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: -1;
    overflow: hidden;
}

.glow-circle {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.4;
    animation: floatBg 15s infinite alternate ease-in-out;
}

.glow-circle.blue {
    width: 600px; height: 600px;
    background: var(--primary);
    top: -200px; right: -100px;
}

.glow-circle.green {
    width: 500px; height: 500px;
    background: var(--secondary);
    bottom: -100px; left: -100px;
    animation-delay: -5s;
}

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

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content h1 {
    font-size: 4.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.hero-content h1 span {
    background: linear-gradient(to right, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--text-grey);
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

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

/* Dashboard Mockup (Right Side) */
.hero-visual { position: relative; perspective: 1000px; }

.mockup-glass {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    transform: rotateY(-10deg) rotateX(5deg);
    transition: var(--transition);
}

.mockup-glass:hover { transform: rotateY(0deg) rotateX(0deg); }

.mockup-header .dot-group i {
    display: inline-block;
    width: 12px; height: 12px;
    border-radius: 50%;
    background: #E5E7EB;
    margin-right: 6px;
}

.mockup-body { margin-top: 1.5rem; }
.mockup-card { background: white; padding: 1.5rem; border-radius: var(--radius-md); box-shadow: var(--shadow-sm); }
.mockup-card span { color: var(--text-grey); font-size: 0.875rem; }
.mockup-card h3 { font-size: 2rem; color: var(--primary); margin-top: 0.5rem; }

/* Floating Cards */
.float-card {
    position: absolute;
    background: white;
    padding: 1rem;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: var(--shadow-lg);
    animation: float 6s infinite ease-in-out;
}

.fc-1 { top: 10%; right: -20px; }
.fc-2 { bottom: 10%; left: -40px; animation-delay: -3s; }
.fc-icon { font-size: 1.5rem; background: var(--bg-main); padding: 0.75rem; border-radius: 8px; }

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

/* ==========================================================================
   Sections General Setup
   ========================================================================== */
section { padding: 6rem 2rem; }
.section-header { text-align: center; margin-bottom: 4rem; max-width: 600px; margin-inline: auto; }
.section-header h2 { font-size: 2.5rem; margin-bottom: 1rem; }
.section-header p { color: var(--text-grey); font-size: 1.125rem; }

.grid-layout {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

/* Trust Section */
.trust-section { text-align: center; padding: 3rem 2rem; border-bottom: 1px solid #E5E7EB; }
.trust-section p { color: var(--text-grey); margin-bottom: 1.5rem; font-weight: 500; }
.trust-logos { display: flex; justify-content: center; gap: 4rem; flex-wrap: wrap; opacity: 0.6; font-weight: 700; font-size: 1.25rem; }

/* Timeline (How it works) */
.how-it-works { max-width: 1000px; margin: 0 auto; }
.timeline { display: flex; justify-content: space-between; align-items: flex-start; position: relative; }
.step { text-align: center; flex: 1; z-index: 2; position: relative; }
.step-number { width: 50px; height: 50px; background: var(--primary); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.25rem; font-weight: 700; margin: 0 auto 1.5rem auto; box-shadow: 0 0 0 8px rgba(37, 99, 235, 0.1); }
.step-connector { flex: 1; height: 2px; background: #E5E7EB; margin-top: 25px; z-index: 1; }

/* Features & Cards */
.feature-card { background: white; padding: 2.5rem; border-radius: var(--radius-lg); border: 1px solid #f1f5f9; transition: var(--transition); }
.glass-hover:hover { transform: translateY(-10px); box-shadow: var(--shadow-lg); border-color: var(--primary); }
.icon-wrap { font-size: 2rem; margin-bottom: 1.5rem; display: inline-block; padding: 1rem; background: var(--bg-main); border-radius: 12px; }

/* Stats Counter */
.statistics { background: var(--primary); color: white; text-align: center; padding: 4rem 2rem; }
.stat-grid { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; }
.stat-box h3 { font-size: 3.5rem; margin-bottom: 0.5rem; }
.stat-box p { color: rgba(255, 255, 255, 0.8); font-weight: 500; }

/* Pricing */
.pricing-grid { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; align-items: center; }
.pricing-card { background: white; padding: 3rem 2rem; border-radius: var(--radius-lg); text-align: center; border: 1px solid #E5E7EB; transition: var(--transition); position: relative; }
.pricing-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.pricing-card.recommended { border: 2px solid var(--primary); box-shadow: var(--shadow-glow); transform: scale(1.05); z-index: 10; }
.pricing-card.recommended:hover { transform: scale(1.05) translateY(-5px); }
.badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--primary); color: white; padding: 0.25rem 1rem; border-radius: 20px; font-size: 0.875rem; font-weight: 600; }
.price { font-size: 2.5rem; font-weight: 800; color: var(--text-dark); margin: 1rem 0; }
.reward { color: var(--secondary); margin-bottom: 1.5rem; }
.benefits { text-align: left; margin-bottom: 2rem; display: flex; flex-direction: column; gap: 1rem; }
.pricing-card .btn { width: 100%; }

/* FAQ Accordion */
.faq-container { max-width: 800px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid #E5E7EB; margin-bottom: 1rem; }
.faq-question { width: 100%; background: none; border: none; text-align: left; padding: 1.5rem 0; font-size: 1.125rem; font-weight: 600; cursor: pointer; display: flex; justify-content: space-between; align-items: center; color: var(--text-dark); }
.faq-question .icon { font-size: 1.5rem; font-weight: 400; transition: transform 0.3s; }
.faq-question.active .icon { transform: rotate(45deg); color: var(--primary); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; color: var(--text-grey); }
.faq-answer p { padding-bottom: 1.5rem; }

/* CTA Section */
.cta-glass { max-width: 1000px; margin: 0 auto; background: linear-gradient(135deg, var(--primary), var(--primary-dark)); padding: 5rem 2rem; border-radius: var(--radius-lg); text-align: center; color: white; position: relative; overflow: hidden; }
.justify-center { justify-content: center; margin-top: 2rem; }

/* Footer */
.footer { background: white; padding: 4rem 2rem 2rem; border-top: 1px solid #E5E7EB; }
.footer-grid { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 4rem; margin-bottom: 4rem; }
.footer h3, .footer h4 { margin-bottom: 1.5rem; color: var(--text-dark); }
.footer p, .footer a { color: var(--text-grey); margin-bottom: 0.75rem; display: block; transition: var(--transition); }
.footer a:hover { color: var(--primary); }
.newsletter-form { display: flex; gap: 0.5rem; }
.newsletter-form input { flex: 1; padding: 0.75rem 1rem; border: 1px solid #E5E7EB; border-radius: 8px; outline: none; }
.newsletter-form input:focus { border-color: var(--primary); }
.footer-bottom { text-align: center; padding-top: 2rem; border-top: 1px solid #E5E7EB; color: var(--text-grey); }

/* ==========================================================================
   Animations & Media Queries
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(40px); transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal.active { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.2s; }

@media (max-width: 992px) {
    .hero-container { grid-template-columns: 1fr; text-align: center; }
    .hero-cta { justify-content: center; }
    .hero-visual { margin-top: 3rem; }
    .timeline { flex-direction: column; align-items: center; gap: 2rem; }
    .step-connector { display: none; }
    .pricing-grid { grid-template-columns: 1fr; max-width: 400px; }
    .pricing-card.recommended { transform: scale(1); }
    .pricing-card.recommended:hover { transform: translateY(-5px); }
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; text-align: center; }
    .newsletter-form { justify-content: center; }
}

@media (max-width: 768px) {
    .nav-links { display: none; } /* Add hamburger logic in JS if needed */
    .hero-content h1 { font-size: 3rem; }
}
