/* =========================================
   1. Core Design Tokens (Dark Theme Only)
   ========================================= */
:root {
    --brand-primary: #017745;
    --brand-hover: #019858;
    --brand-light: rgba(1, 119, 69, 0.15);
    
    --bg-main: #0a0a0c;       /* Deepest black for main background */
    --bg-surface: #121214;    /* Slightly lighter for cards */
    --bg-elevated: #1a1a1e;   /* For hovers and elevated elements */
    --bg-nav: rgba(10, 10, 12, 0.85);
    
    --border-color: #26262b;
    --text-primary: #ffffff;
    --text-secondary: #a1a4b6;
    
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    
    --transition: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* =========================================
   2. Reset & Base Setup
   ========================================= */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: var(--font-main);
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; transition: color var(--transition); }

/* =========================================
   3. Interactive Components
   ========================================= */
.btn {
    display: inline-flex; justify-content: center; align-items: center;
    padding: 12px 24px; border-radius: var(--radius-sm);
    font-weight: 600; font-size: 0.95rem; cursor: pointer;
    transition: all var(--transition); border: 1px solid transparent;
}

.btn-primary { background-color: var(--brand-primary); color: #fff; }
.btn-primary:hover { background-color: var(--brand-hover); transform: translateY(-2px); box-shadow: 0 4px 16px rgba(1, 119, 69, 0.4); }

.btn-secondary { background-color: var(--bg-elevated); color: #fff; border: 1px solid var(--border-color); }
.btn-secondary:hover { background-color: #232328; transform: translateY(-2px); }

.btn-outline { background-color: transparent; border-color: var(--border-color); color: var(--text-primary); }
.btn-outline:hover { background-color: var(--bg-elevated); border-color: var(--text-secondary); }

.btn-large { padding: 16px 36px; font-size: 1.1rem; border-radius: var(--radius-md); }

/* =========================================
   4. Navigation Navigation
   ========================================= */
.TopNavigation {
    position: fixed; top: 0; left: 0; width: 100%; height: 76px;
    background-color: transparent; /* Starts transparent */
    border-bottom: 1px solid transparent; z-index: 1000;
    transition: all var(--transition);
}

.TopNavigation.scrolled {
    background-color: var(--bg-nav); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
}

.nav-container {
    max-width: 1400px; margin: 0 auto; padding: 0 24px; height: 100%;
    display: flex; justify-content: space-between; align-items: center;
}

.brand-logo img { height: 40px; display: block; }

.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-link { font-weight: 500; font-size: 0.95rem; color: var(--text-secondary); }
.nav-link:hover { color: var(--text-primary); }

.nav-actions { display: flex; align-items: center; gap: 16px; margin-left: 16px; }

/* =========================================
   5. Hero Section
   ========================================= */
.hero-section {
    position: relative; min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    padding: 120px 24px 60px; text-align: center; overflow: hidden;
}

.hero-bg-image {
    position: absolute; inset: 0; background-size: cover; background-position: center;
    filter: grayscale(100%) opacity(0.4); z-index: 0;
}

.hero-overlay {
    position: absolute; inset: 0; z-index: 1;
    background: radial-gradient(circle at center, transparent 0%, var(--bg-main) 100%), 
                linear-gradient(180deg, rgba(10,10,12,0.2) 0%, var(--bg-main) 100%);
}

.hero-content { position: relative; z-index: 2; max-width: 800px; }

.hero-badge {
    display: inline-block; padding: 6px 16px; border-radius: 100px;
    background: var(--brand-light); color: var(--brand-primary);
    font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px;
    margin-bottom: 24px; border: 1px solid rgba(1, 119, 69, 0.3);
}

.hero-title { font-size: clamp(3rem, 6vw, 5rem); font-weight: 900; line-height: 1.1; margin-bottom: 24px; letter-spacing: -0.02em; }
.hero-subtitle { font-size: 1.25rem; font-weight: 400; color: var(--text-secondary); margin-bottom: 40px; max-width: 600px; margin-inline: auto; }
.hero-buttons { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }

/* =========================================
   6. Trust Banner
   ========================================= */
.trust-banner { border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color); background-color: var(--bg-surface); }
.trust-container {
    max-width: 1000px; margin: 0 auto; padding: 40px 24px;
    display: flex; justify-content: space-around; flex-wrap: wrap; gap: 32px;
}
.trust-item { display: flex; flex-direction: column; align-items: center; text-align: center; }
.trust-number { font-size: 2.5rem; font-weight: 900; color: var(--text-primary); line-height: 1; margin-bottom: 8px; }
.trust-label { font-size: 0.9rem; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 1px; font-weight: 600; }

/* =========================================
   7. Features Section
   ========================================= */
.features-section { padding: 120px 24px; max-width: 1400px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 64px; }
.section-header h2 { font-size: 2.5rem; font-weight: 800; margin-bottom: 16px; }
.section-header p { font-size: 1.1rem; color: var(--text-secondary); max-width: 600px; margin: 0 auto; }

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

.feature-card {
    background-color: var(--bg-surface); border: 1px solid var(--border-color);
    padding: 40px 32px; border-radius: var(--radius-md);
    transition: all var(--transition);
}
.feature-card:hover { transform: translateY(-8px); background-color: var(--bg-elevated); border-color: var(--brand-primary); }

.feature-icon {
    width: 48px; height: 48px; border-radius: var(--radius-sm);
    background: var(--brand-light); color: var(--brand-primary);
    display: flex; justify-content: center; align-items: center; margin-bottom: 24px;
}
.feature-card h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 12px; }
.feature-card p { font-size: 1rem; color: var(--text-secondary); line-height: 1.6; }

/* =========================================
   8. How It Works (Steps)
   ========================================= */
.steps-section { padding: 120px 24px; background-color: var(--bg-surface); border-top: 1px solid var(--border-color); }
.steps-container {
    max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px; position: relative;
}
.step-item { text-align: center; padding: 24px; }
.step-number {
    width: 64px; height: 64px; border-radius: 50%; background: var(--brand-primary); color: #fff;
    display: flex; justify-content: center; align-items: center; font-size: 1.5rem; font-weight: 900;
    margin: 0 auto 24px; box-shadow: 0 0 0 8px var(--brand-light);
}
.step-item h3 { font-size: 1.5rem; margin-bottom: 16px; }
.step-item p { color: var(--text-secondary); }

/* =========================================
   9. CTA & Footer
   ========================================= */
.cta-section { padding: 120px 24px; text-align: center; }
.cta-content {
    max-width: 800px; margin: 0 auto; background: linear-gradient(135deg, var(--bg-surface) 0%, #101e17 100%);
    border: 1px solid var(--brand-primary); padding: 80px 40px; border-radius: var(--radius-lg);
}
.cta-content h2 { font-size: 3rem; font-weight: 900; margin-bottom: 16px; }
.cta-content p { font-size: 1.2rem; color: var(--text-secondary); margin-bottom: 40px; }

.site-footer { background-color: #050506; border-top: 1px solid var(--border-color); padding: 80px 24px 24px; }
.footer-container { max-width: 1400px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 60px; }
.footer-logo { height: 32px; margin-bottom: 24px; }
.footer-brand p { color: var(--text-secondary); font-size: 0.95rem; margin-bottom: 24px; max-width: 300px; }
.footer-apps img { height: 40px; margin-right: 12px; cursor: pointer; opacity: 0.8; transition: opacity var(--transition); }
.footer-apps img:hover { opacity: 1; }

.footer-links-group h4 { font-size: 1.1rem; margin-bottom: 24px; color: var(--text-primary); }
.footer-links-group a { display: block; color: var(--text-secondary); margin-bottom: 12px; font-size: 0.95rem; }
.footer-links-group a:hover { color: var(--brand-primary); }

.footer-bottom { text-align: center; padding-top: 24px; border-top: 1px solid var(--border-color); color: var(--text-secondary); font-size: 0.85rem; }

/* =========================================
   10. Animations & Responsive
   ========================================= */
.fade-in-up { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease, transform 0.8s ease; }
.fade-in-up.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 900px) {
    .nav-links > .nav-link { display: none; } /* Hide text links on mobile */
    .hero-buttons { flex-direction: column; width: 100%; }
    .hero-buttons .btn { width: 100%; }
    .footer-container { grid-template-columns: 1fr; gap: 40px; }
    .cta-content { padding: 40px 24px; }
    .cta-content h2 { font-size: 2rem; }
}