/* ==========================================================================
   1. Global Styles & Variables
   ========================================================================== */
:root {
    --bg-color: #121417;
    --text-color: #E0E0E0;
    --primary-color: #00B894;
    --secondary-color: #2D3436;
    --border-color: #4B4B4B;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.7;
}

/* ==========================================================================
   2. Reusable Components & Utilities
   ========================================================================== */
.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #121417;
}

.btn-primary:hover {
    background-color: #00a082;
    transform: translateY(-2px);
}

.bg-light {
    background-color: var(--secondary-color);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

/* ==========================================================================
   3. Main Structure: Header, Sections, Footer
   ========================================================================== */
header {
    padding: 15px 0;
    border-bottom: 1px solid var(--secondary-color);
    background-color: var(--bg-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: box-shadow 0.3s ease;
}

header.scrolled {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link {
    text-decoration: none;
    color: var(--text-color);
}

header h1.logo {
    font-size: 20px;
    font-weight: 600;
}

.main-nav {
    display: flex;
    gap: 20px;
}

.main-nav a {
    text-decoration: none;
    color: #A0A0E0;
    font-weight: 600;
    font-size: 15px;
    transition: color 0.3s ease;
}

.main-nav a:hover {
    color: var(--text-color);
}

.header-cta {
    padding: 10px 20px;
    font-size: 14px;
}

section {
    padding: 80px 0;
    scroll-margin-top: 75px;
}

footer {
    text-align: center;
    padding: 40px 0;
    margin-top: 40px;
    border-top: 1px solid var(--secondary-color);
    color: #A0A0A0;
    font-size: 14px;
}

/* ==========================================================================
   4. Section-Specific Styles
   ========================================================================== */

/* --- 4.1 Hero Section --- */
.hero {
    min-height: calc(100vh - 71px);
    display: flex;
}

.hero .container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.hero h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -1px;
}

.hero h2 {
    font-size: 20px;
    font-weight: 400;
    max-width: 600px;
    margin: 0 auto 32px;
    color: #A0A0A0;
}

.metrics {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 40px 0;
    flex-wrap: wrap;
    align-items: stretch;
    width: 100%;
}

.metric-item {
    background-color: var(--secondary-color);
    padding: 20px 30px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    text-align: center;
    flex-grow: 1;
    flex-basis: 240px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.metric-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.metric-item .label {
    font-size: 14px;
    color: #A0A0A0;
    margin-bottom: 8px;
}

.metric-item .value {
    font-size: 28px;
    font-weight: 600;
    color: var(--text-color);
}

.metric-item .value span {
    color: var(--primary-color);
}

.scroll-indicator {
    text-align: center;
    margin-top: 80px;
}

.scroll-indicator a {
    color: var(--text-color);
    font-size: 32px;
    text-decoration: none;
    transition: color 0.3s ease;
}

.scroll-indicator a:hover {
    color: var(--primary-color);
}

.scroll-indicator i {
    animation: bounce 2.5s infinite;
}

/* --- 4.2 Content Sections (General Styles) --- */
.content-section h3 {
    font-size: 32px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 16px;
}

.content-section p {
    max-width: 720px;
    margin: 0 auto 16px;
    text-align: center;
    color: #B0B0B0;
}

/* --- 4.3 Methodology & Risks Section --- */
.risk-methodology-grid {
    display: flex;
    gap: 40px;
    margin-top: 40px;
    align-items: stretch;
}

.grid-item {
    flex: 1;
    background: var(--secondary-color);
    padding: 40px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.grid-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.icon-wrapper-top {
    text-align: center;
    margin-bottom: 25px;
}

.icon-wrapper-top .fas {
    font-size: 40px;
    color: var(--primary-color);
}

.grid-item h4 {
    text-align: center;
    font-size: 20px;
    margin-bottom: 20px;
}

.grid-item p, .grid-item li {
    font-size: 15px;
    text-align: left;
    color: #B0B0B0;
}

.grid-item ul {
    list-style-position: outside;
    padding-left: 20px;
}

.grid-item li {
    margin-bottom: 12px;
}

.grid-item li:last-child {
    margin-bottom: 0;
}

/* --- 4.4 FAQ Section --- */
.faq-accordion {
    max-width: 720px;
    margin: 40px auto 0;
}

.faq-accordion details {
    background-color: var(--secondary-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 10px;
    overflow: hidden;
    transition: border-color 0.3s ease;
}

.faq-accordion details:hover {
    border-color: var(--primary-color); 
}

.faq-accordion summary {
    padding: 20px;
    font-weight: 600;
    cursor: pointer;
    outline: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.2s ease;
}

.faq-accordion summary::-webkit-details-marker {
    display: none;
}

.faq-accordion summary:hover, .faq-accordion details[open] summary {
    background-color: #3a4244;
}

.faq-accordion p {
    padding: 20px;
    margin: 0;
    color: #B0B0B0;
    border-top: 1px solid var(--border-color);
}

.faq-accordion summary::after {
    content: '+';
    font-size: 24px;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.faq-accordion details[open] summary::after {
    content: '−';
    transform: rotate(180deg);
}

/* --- 4.5 How-to Section (3 steps) --- */
.steps {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    margin-top: 50px;
    text-align: center;
    align-items: stretch;
}

.step {
    flex: 1;
    transition: transform 0.3s ease;
}

.step:hover {
    transform: translateY(-5px);
}

.step .step-number {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 12px;
    display: inline-block;
    border: 2px solid var(--primary-color);
    width: 50px;
    height: 50px;
    line-height: 46px;
    border-radius: 50%;
}

.step h4 {
    font-size: 20px;
    margin-bottom: 8px;
}

.final-cta {
    text-align: center;
    margin-top: 80px;
}

.final-cta .btn {
    padding: 18px 40px;
    font-size: 18px;
    font-weight: 700;
    box-shadow: 0 0 15px rgba(0, 184, 148, 0.2);
    transition: all 0.3s ease;
}

.final-cta .btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 0 25px rgba(0, 184, 148, 0.4);
}

/* --- 4.6 Disclaimer Section --- */
.disclaimer-section {
    padding-top: 60px;
    padding-bottom: 20px;
    text-align: center;
}

.disclaimer-section h4 {
    font-size: 16px;
    margin-bottom: 10px;
    color: #aaa;
    font-weight: 600;
}

.disclaimer-section p {
    font-size: 13px;
    color: #666;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ==========================================================================
   5. Animations
   ========================================================================== */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-15px);
    }
    60% {
        transform: translateY(-10px);
    }
}

/* ==========================================================================
   6. Responsive Design
   ========================================================================== */
@media (max-width: 768px) {
    /* General */
    section {
        padding: 60px 0;
    }
    .risk-methodology-grid, .steps {
        flex-direction: column;
    }

    /* Header */
    .main-nav {
        display: none;
    }
    header h1.logo {
        font-size: 18px;
    }
    
    /* Hero Section */
    .hero h1 { 
        font-size: 36px; 
    }
    .hero h2 { 
        font-size: 18px; 
    }
    
    /* --- KEY FIX FOR MOBILE --- */
    .metrics {
        display: block; /* Disable Flex, switch to block model */
    }
    .metric-item {
        margin: 0 auto; /* Center the block */
        margin-bottom: 20px; /* Add bottom margin */
        width: 100%;
        max-width: 320px;
    }
    .metric-item:last-child {
        margin-bottom: 0; /* Remove margin from the last item */
    }
}