/* ============================================================
   RESET & BASE STYLES
============================================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9fafb;
}

/* ============================================================
   INTRO HERO SECTION
============================================================ */
.intro-hero {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 100px 20px 120px;
    background: linear-gradient(135deg, #020617, #0f172a);
    color: #fff;
    border-bottom-left-radius: 60px;
    border-bottom-right-radius: 60px;
    overflow: hidden;
}

/* Canvas for particle flow */
#market-flow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.intro-text {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

/* ============================================================
   TABS STYLES
============================================================ */
.tabs-container {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 20px;
}

.tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    border-bottom: 2px solid #e2e8f0;
    margin-bottom: 2rem;
}

.tab-btn {
    flex: 1;
    padding: 14px 20px;
    cursor: pointer;
    font-weight: 600;
    text-align: center;
    background: #f1f5f9;
    border: none;
    border-radius: 0.5rem 0.5rem 0 0;
    transition: all 0.2s ease;
    color: #1a202c;
}

.tab-btn.active {
    background: #6366f1;
    color: #fff;
}

.tab-btn:hover:not(.active) {
    background: #e5e7eb;
}

/* Tab content container */
.tab-content {
    display: none;
    padding: 2rem 0;
    animation: fadeIn 0.4s ease forwards;
    justify-content: center;
}

.tab-content.active {
    display: flex;
}

/* Tab cards */
.tab-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 2rem;
    background: #f9fafb;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.05);
    text-align: center;
    width: 90%;
    max-width: 1000px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tab-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.1);
}

/* Tab icons */
.tab-icon i {
    font-size: 3rem;
    color: #5b5f76; /* muted blue-gray */
}

/* Headings */
.tab-text h3 {
    font-size: 1.8rem;
    margin-bottom: 0.8rem;
    color: #1a202c;
}

/* Paragraphs */
.tab-text p {
    font-size: 1rem;
    color: #4b5563;
    line-height: 1.5;
}

/* Responsive adjustments */
@media (max-width: 900px) {
    .tab-card {
        width: 100%;
        padding: 1.5rem;
    }
    .tab-icon i {
        font-size: 2.5rem;
        margin-bottom: 0.8rem;
    }
    .tab-text h3 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .tabs {
        flex-direction: column;
    }
    .tab-btn {
        flex: 100%;
    }
}

/* ============================================================
   BENEFITS SECTION HEADER
============================================================ */
.benefits-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem auto;
}

.benefits-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a202c; 
    margin-bottom: 0.75rem;
}

.benefits-header p {
    font-size: 1.2rem;
    color: #4b5563; 
    line-height: 1.6;
    opacity: 0.9;
}

/* ============================================================
   BENEFITS SECTION (ZIG-ZAG LAYOUT)
============================================================ */
.benefits-grid {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 20px;
}

.benefit-card {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 1.5rem 2rem;
    background: #fff;
    border-radius: 1rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.benefit-card.reverse {
    flex-direction: row-reverse;
}

.benefit-card i {
    font-size: 2.5rem;
    color: #6366f1;
    flex-shrink: 0;
    background: #e0e3f0;
    padding: 12px;
    border-radius: 12px;
}

/* Text inside cards */
.benefit-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.benefit-card p {
    font-size: 1rem;
    color: #4b5563;
    line-height: 1.5;
}

/* ============================================================
   FINAL CTA SECTION
============================================================ */
.final-cta {
    background: linear-gradient(135deg, #1e293b, #0f172a);
    color: #fff;
    padding: 4rem 2rem;
    border-radius: 2rem;
    margin: 4rem 2rem;
    text-align: center;
}

.final-cta h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.final-cta p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

/* Smooth CTA button */
.final-cta .btn-primary {
    padding: 0.85rem 2rem;
    font-weight: 600;
    border-radius: 0.5rem;
    background: linear-gradient(135deg, #6366f1, #7c7f96);
    color: #fff;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.final-cta .btn-primary:hover {
    background: linear-gradient(135deg, #4f46e5, #6366f1);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(79, 70, 229, 0.3);
}

/* ============================================================
   ANIMATIONS
============================================================ */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px);}
    to { opacity: 1; transform: translateY(0);}
}

/* ============================================================
   RESPONSIVE DESIGN
============================================================ */
@media (max-width: 900px) {
    .tab-content {
        flex-direction: column;
        text-align: center;
    }

    .tab-content .feature-text,
    .tab-content .feature-image {
        flex: 1 1 100%;
    }

    .benefit-card,
    .benefit-card.reverse {
        flex-direction: column;
        text-align: center;
    }

    .benefit-card i {
        margin-bottom: 1rem;
    }
}

@media (max-width: 480px) {
    .intro-hero .intro-text h1 {
        font-size: 2rem;
    }

    .intro-hero .intro-text p {
        font-size: 1rem;
    }
}
