/* CSS Custom Properties (Variables) */
:root {
    --color-primary: #ffd700;
    --color-primary-hover: #ffb700;

    --bg-dark-deep: #0a0a0a;
    --bg-dark: #101010;
    --bg-dark-soft: #181818;
    --bg-dark-hover: #222;

    --border-color: #222;
    --border-color-faq: #232323;

    --text-light: #f5f5f5;
    --text-white: #fff;
    --text-gray: #888a8c;
    --text-gray-light: #a9a9a9;
    --text-dark: #101010;

    --font-sans: 'Inter', Arial, sans-serif;
    --section-padding: 48px 5vw;
    --section-margin: 48px auto 40px auto;
}

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: var(--font-sans);
    background: var(--bg-dark-deep);
    color: var(--text-white);
    line-height: 1.6;
    min-height: 100vh;
}

/* Navbar */
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 5vw;
    background: var(--bg-dark);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.logo img {
    height: 40px;
}
nav ul {
    display: flex;
    gap: 32px;
    list-style: none;
}
nav a {
    color: var(--text-white);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}
nav a:hover {
    color: var(--color-primary);
}
.header-icons {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-left: 32px;
}
.header-icons a img {
    display: block;
    height: 24px;
    width: 24px;
    filter: brightness(1.2);
    transition: filter 0.2s;
}
.header-icons a:hover img {
    filter: brightness(2);
}

/* Hero Section */
.hero {
    background: linear-gradient(180deg, var(--bg-dark-soft) 60%, var(--bg-dark-deep) 100%);
    padding: 80px 5vw 40px 5vw;
}
.hero-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 48px;
    max-width: 1100px;
    margin: 0 auto;
}
.hero-text {
    flex: 1;
    text-align: left;
}
.hero-text h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -2px;
}
.hero-text p:nth-child(2) {
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 18px;
    margin-top: 8px;
    letter-spacing: -1px;
}
.hero-text p:nth-child(3) {
    font-size: 1.15rem;
    font-weight: 400;
    color: var(--text-gray);
    margin-bottom: 28px;
    margin-top: 0;
    letter-spacing: 0;
    line-height: 1.7;
}
.hero-text .btn-primary {
    background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-primary-hover) 100%);
    color: var(--text-dark);
    padding: 10px 28px;
    border-radius: 24px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s, box-shadow 0.2s;
    border: none;
    box-shadow: 0 2px 12px rgba(255, 215, 0, 0.18);
    display: inline-block;
    font-size: 1.1rem;
    margin-top: 10px;
}
.hero-text .btn-primary:hover {
    background: linear-gradient(90deg, var(--color-primary-hover) 0%, var(--color-primary) 100%);
    box-shadow: 0 4px 24px rgba(255, 215, 0, 0.28);
    color: var(--text-dark);
}
.hero-image {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}
.hero-image img {
    max-width: 550px;
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.2), 0 0 20px rgba(255, 215, 0, 0.1);
}

/* Services Section */
.services-section, .faq-section {
    background: var(--bg-dark);
    border-radius: 16px;
    margin: var(--section-margin);
    padding: var(--section-padding);
    box-shadow: 0 2px 24px rgba(0,0,0,0.08);
    scroll-margin-top: 90px;
}
.services-section {
    max-width: 1100px;
}
.services-header {
    text-align: center;
    margin-bottom: 36px;
}
.services-header h2 {
    font-size: 2.2rem;
    color: var(--color-primary);
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: -1px;
}
.services-desc {
    color: var(--text-gray);
    font-size: 1.15rem;
    font-weight: 400;
    margin-bottom: 0;
    line-height: 1.7;
}
.services-stats {
    display: flex;
    justify-content: center;
    gap: 48px;
    margin-top: 24px;
    flex-wrap: wrap;
}
.service-stat {
    background: var(--bg-dark-soft);
    border-radius: 12px;
    padding: 32px 24px;
    text-align: center;
    min-width: 180px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    flex: 1 1 180px;
    max-width: 220px;
}
.service-stat p:first-of-type {
    font-size: 1.15rem;
    color: var(--text-light);
    font-weight: 700;
    margin-bottom: 6px;
    margin-top: 0;
    letter-spacing: -0.5px;
}
.service-stat h3 {
    font-size: 1.05rem;
    color: var(--color-primary);
    font-weight: 400;
    margin-bottom: 10px;
    margin-top: 0;
    letter-spacing: 0;
}
.service-stat p:last-of-type {
    font-size: 0.98rem;
    color: var(--text-gray);
    font-weight: 400;
    margin-top: 8px;
    margin-bottom: 0;
    line-height: 1.5;
}

/* FAQ Section */
.faq-section {
    max-width: 900px;
}
.faq-header {
    text-align: center;
    margin-bottom: 36px;
}
.faq-header h2 {
    font-size: 2rem;
    color: var(--color-primary);
    font-weight: 800;
    margin-bottom: 8px;
    letter-spacing: -1px;
}
.faq-desc {
    color: var(--text-gray);
    font-size: 1.1rem;
    font-weight: 400;
    margin-bottom: 0;
    line-height: 1.7;
}

/* FAQ Collapse Styles - bm.finance style */
.faq-list {
    display: flex;
    flex-direction: column;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color-faq);
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}
.faq-item {
    background: var(--bg-dark-soft);
    padding: 0;
    transition: box-shadow 0.2s, border-color 0.2s;
}
.faq-item:not(:last-child) {
    border-bottom: 1px solid var(--border-color-faq);
}
.faq-item:first-child {
    border-radius: 12px 12px 0 0;
}
.faq-item.active {
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
}
.faq-question {
    font-size: 1rem;
    color: var(--text-light);
    font-weight: 500;
    padding: 18px 24px;
    margin: 0;
    cursor: pointer;
    user-select: none;
    position: relative;
    transition: background 0.2s;
}
.faq-question:hover {
    color: var(--color-primary);
    background: var(--bg-dark-hover);
}
.faq-question::after {
    content: '';
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%) rotate(0deg);
    border: solid var(--text-gray-light);
    border-width: 0 2px 2px 0;
    display: inline-block;
    padding: 4px;
    transition: transform 0.2s;
    /* Arrow down */
    transform: translateY(-50%) rotate(45deg);
}
.faq-item.active .faq-question::after {
    transform: translateY(-50%) rotate(-135deg);
}
.faq-answer {
    font-size: 1rem;
    color: var(--text-gray);
    font-weight: 400;
    line-height: 1.7;
    padding: 0 24px 20px 24px;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease;
}
.faq-item.active .faq-answer {
    max-height: 500px;
    opacity: 1;
    padding-top: 0;
}

/* Footer */
footer {
    text-align: center;
    padding: 32px 0 16px 0;
    background: var(--bg-dark);
    color: var(--text-gray);
    font-size: 0.95rem;
    margin-top: 40px;
    border-top: 1px solid var(--border-color);
}

/* Responsive Styles */
@media (max-width: 900px) {
    .hero-content {
        flex-direction: column;
        gap: 32px;
        text-align: center;
    }
    .hero-text {
        text-align: center;
    }
    .hero-image {
        justify-content: center;
    }
    .hero-image img {
        max-width: 90vw;
    }
    .services-stats {
        flex-direction: column;
        gap: 24px;
        align-items: center;
    }
    .services-section {
        padding: 32px 3vw;
    }
    .faq-section {
        padding: 32px 3vw;
    }
}
@media (max-width: 600px) {
    .navbar {
        flex-direction: column;
        gap: 16px;
        padding: 16px 2vw;
    }
    .header-icons {
        margin-left: 0;
        margin-top: 8px;
        justify-content: flex-end;
    }
    .hero-text h1 {
        font-size: 2.1rem;
    }    
    .community-links {
        flex-direction: column;
        gap: 16px;
    }
    .faq-header h2 {
        font-size: 1.2rem;
    }
    .faq-question {
        font-size: 1rem;
    }
    .faq-answer {
        font-size: 0.95rem;
    }
}