/* ==========================================================================
   Echo Risk - Final Polished Stylesheet
   ========================================================================== */

/* 1. Global Setup */
:root {
    --primary-color: #007bff;
    --secondary-color: #a0a8b1; /* Slightly lighter for better contrast */
    --accent-color: #28a745;
    --dark-bg: #0d1117;
    --glass-bg: rgba(16, 20, 27, 0.65);
    --light-text-color: #f0f6fc;
    --border-color: rgba(137, 146, 155, 0.2);
    --shadow-light: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

* { margin: 0; padding: 0; box-sizing: border-box; text-align: center;}

html { scroll-behavior: smooth; }

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.7;
    color: var(--light-text-color);
    background-color: var(--dark-bg);
    overflow-x: hidden;
}

#three-canvas { position: fixed; top: 0; left: 0; z-index: -1; outline: none; }
#content-container { width: 100%; position: relative; z-index: 1; }

.content-section {
    max-width: 900px;
    margin: 0 auto 30vh auto;
    padding: 60px 40px;
    background: var(--glass-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: var(--shadow-light);
}
.section-description { color: var(--secondary-color); text-align: center; max-width: 600px; margin: -1rem auto 3rem auto; }

/* 2. Core Components */

/* --- Navbar --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 1000;
    background: linear-gradient(180deg, rgba(13, 17, 23, 0.9) 0%, rgba(13, 17, 23, 0) 100%);
    transition: background-color 0.3s ease;
}
.navbar.scrolled {
    background-color: var(--dark-bg);
    border-bottom: 1px solid var(--border-color);
}
.navbar .container { display: flex; justify-content: space-between; align-items: center; max-width: 1200px; padding: 0 0 0 230px; }
.navbar-brand {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--light-text-color);
    text-decoration: none;
}
.navbar nav ul { list-style: none; display: flex; gap: 40px; margin: 0; }
.navbar nav a { color: var(--secondary-color); text-decoration: none; font-weight: 500; transition: color 0.3s ease; }
.navbar nav a:hover, .navbar nav a.active { color: var(--light-text-color); }
.header-controls { display: flex; align-items: center; gap: 20px; }

/* --- Mobile Navigation --- */
.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--light-text-color);
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1001;
    padding: 5px;
}
.mobile-nav-close {
    display: none;
    position: absolute;
    top: 30px;
    right: 30px;
    background: none;
    border: none;
    color: var(--light-text-color);
    font-size: 2.5rem;
    cursor: pointer;
}

/* --- Buttons --- */
.btn-primary, .btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-decoration: none;
}
.btn-primary { background: var(--primary-color); color: white !important; }
.btn-primary:hover { transform: translateY(-3px) scale(1.05); box-shadow: 0 10px 20px rgba(0, 123, 255, 0.3); }
.btn-secondary { background: transparent; border: 2px solid var(--primary-color); color: var(--primary-color); }
.btn-secondary:hover { background: var(--primary-color); color: white; transform: translateY(-3px); }

/* 3. Page Sections */
.hero-content {
    background: none; border: none; box-shadow: none; backdrop-filter: none;
    text-align: center;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-bottom: 30vh;
}
.main-title {
    font-size: 4.5rem;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -2px;
    margin-bottom: 1rem;
    background: linear-gradient(90deg, #fff, #aaa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.subtitle { font-size: 1.3rem; color: var(--secondary-color); margin-bottom: 2.5rem; max-width: 500px; margin-left: auto; margin-right: auto; }
.hero-buttons { display: flex; gap: 20px; justify-content: center; }

.feature-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; }
.card {
    background: none; border: none; box-shadow: none; backdrop-filter: none;
    padding: 20px; text-align: center; transition: transform 0.3s ease;
}
.card:hover { transform: translateY(-10px); }
.card-icon { font-size: 2rem; color: var(--primary-color); margin-bottom: 15px; }
.card h3 { font-size: 1.25rem; color: var(--light-text-color); margin-bottom: 10px; }
.card p { font-size: 0.95rem; color: var(--secondary-color); }

.how-it-works-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; text-align: center; }
.step h3 { font-size: 1.25rem; margin: 15px 0 10px 0; }
.step p { font-size: 0.95rem; color: var(--secondary-color); }
.step-icon { font-size: 2rem; color: var(--accent-color); }

.cta-section { text-align: center; }
.cta-section h2 { font-size: 2.2rem; }
.cta-section p { font-size: 1.1rem; color: var(--secondary-color); margin: -1rem auto 2rem auto; max-width: 600px; }
.btn-cta { padding: 15px 35px; font-size: 1.1rem; }

/* ==========================================================================
   4. Responsive Styles
   ========================================================================== */
@media (max-width: 992px) {
    .main-title { font-size: 3.5rem; }
    .content-section { margin-left: 20px; margin-right: 20px; margin-bottom: 25vh; }
    
    /* Mobile Navigation Activation */
    #main-nav {
        position: fixed;
        top: 0;
        right: 0;
        width: 100%;
        height: 100%;
        background: var(--glass-bg);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
        z-index: 2000;
    }
    #main-nav.nav-open {
        transform: translateX(0);
    }
    #main-nav ul {
        flex-direction: column;
        align-items: center;
        gap: 40px;
    }
    #main-nav a {
        font-size: 2rem;
        font-weight: 600;
    }
    .mobile-nav-toggle {
        display: block;
    }
    .mobile-nav-close {
        display: block;
        z-index: 2001;
    }
    .desktop-only {
        display: none !important; /* Hide 'Get Started' on mobile */
    }
}

@media (max-width: 768px) {
    .main-title { font-size: 2.8rem; letter-spacing: -1px; }
    .subtitle { font-size: 1.1rem; }
    .content-section { padding: 40px 30px; }
    .feature-cards, .how-it-works-steps {
        grid-template-columns: 1fr;
        gap: 50px;
    }
}

@media (max-width: 576px) {
    body { font-size: 14px; }
    .navbar .container { padding: 0 15px; }
    
    .main-title { font-size: 2.2rem; }
    .subtitle { font-size: 1rem; }
    .content-section { padding: 30px 20px; margin-bottom: 20vh; }
    
    .hero-buttons { flex-direction: column; gap: 15px; align-items: center; }
    .btn-primary, .btn-secondary { width: 100%; max-width: 300px; }
    
    .card h3, .step h3 { font-size: 1.1rem; }
    .card p, .step p { font-size: 0.9rem; }
    
    .cta-section h2 { font-size: 1.8rem; }
}