:root {
    --primary-navy: #0f172a;
    --navy-light: #1e293b;
    --accent-emerald: #10b981;
    --accent-blue: #4f46e5;
    --soft-white: #f8fafc;
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    --hover-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- GLOBAL SECTION RESET & SPACING --- */
section {
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

[data-aos] {
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition);
}

[data-aos].aos-animate {
    opacity: 1;
    transform: translateY(0);
}

/* --- HERO SECTION --- */
.hero-new {
    background: linear-gradient(135deg, white 60%, #f1f5f9 100%);
    padding-top: 40px;
    padding-bottom: 80px;
}

.hero-new .badge-trust {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    background: rgba(79, 70, 229, 0.08);
    color: var(--accent-blue);
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 24px;
}

.hero-new .hero-headline {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    color: var(--primary-navy);
    margin-bottom: 24px;
    letter-spacing: -2px;
}

.hero-new .hero-subheadline {
    font-size: 1.15rem;
    color: #64748b;
    margin-bottom: 30px;
    max-width: 580px;
}

.hero-search-box {
    max-width: 500px;
    margin-bottom: 40px;
}

.hero-search-box .form-control {
    height: 55px;
    border-radius: 12px;
    padding-left: 50px;
    border: 2px solid #e2e8f0;
    font-size: 1rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.02);
}

.hero-search-box .bi-search {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent-blue);
    font-size: 1.2rem;
}

.hover-blue {
    transition: var(--transition);
}

.hover-blue:hover {
    background-color: var(--accent-blue) !important;
    color: white !important;
    border-color: var(--accent-blue) !important;
    transform: translateY(-2px);
}

.hero-mockup-wrapper {
    position: relative;
    z-index: 2;
}

.hero-mockup-image {
    width: 120%;
    margin-left: -10%;
    box-shadow: 0 30px 60px rgba(15, 23, 42, 0.15);
    border-radius: 24px;
    transform: perspective(1000px) rotateY(-5deg) rotateX(2deg);
    transition: var(--transition);
}

.hero-mockup-image:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

/* --- USER SEGMENTATION --- */
.segmentation-bg {
    background-color: var(--soft-white);
}

.seg-card {
    background: white;
    border-radius: 30px;
    padding: 50px 40px;
    border: 1px solid #e2e8f0;
    transition: var(--transition);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.seg-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(79, 70, 229, 0.05) 0%, transparent 70%);
}

.seg-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--hover-shadow);
    border-color: var(--accent-blue);
}

.seg-card.dominant {
    background: var(--primary-navy);
    color: white;
    box-shadow: 0 30px 60px rgba(15, 23, 42, 0.1);
    border: none;
}

.seg-card.dominant .seg-title {
    color: white;
}

.seg-card.dominant .seg-desc {
    color: rgba(255, 255, 255, 0.7);
}

.seg-card.dominant .seg-btn {
    background: var(--accent-emerald);
    color: white;
}

.seg-card .seg-icon {
    font-size: 3rem;
    margin-bottom: 24px;
    display: block;
}

.seg-card .seg-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 16px;
}

/* --- WEALTH FEATURE SHOWCASE --- */
.feature-showcase-bg {
    background: white;
}

.wealth-feature-card {
    padding: 30px;
    border-radius: 20px;
    background: #fcfdfe;
    border: 1px solid #f1f5f9;
    transition: var(--transition);
}

.wealth-feature-card:hover {
    background: white;
    box-shadow: var(--card-shadow);
    transform: scale(1.02);
}

.wealth-icon-box {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: rgba(79, 70, 229, 0.1);
    color: var(--accent-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

/* --- FINANCIAL HEALTH SCORE --- */
.health-score-section {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: white;
    border-radius: 60px;
    margin: 0 40px;
    padding: 100px 80px;
}

.health-score-preview {
    background: white;
    border-radius: 30px;
    padding: 40px;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.3);
}

/* --- CATEGORY GRID --- */
.category-bubble {
    padding: 24px;
    border-radius: 24px;
    background: #ffffff;
    border: 1px solid #eef2f6;
    text-align: center;
    transition: var(--transition);
}

.category-bubble:hover {
    border-color: var(--accent-blue);
    background: #f8fbff;
    transform: translateY(-5px);
}

/* --- TRUST & SECURITY --- */
.trust-shield-card {
    text-align: center;
    padding: 40px;
}

.shield-icon {
    font-size: 4rem;
    color: var(--accent-emerald);
    margin-bottom: 20px;
    filter: drop-shadow(0 0 20px rgba(16, 185, 129, 0.2));
}

/* --- SOCIAL PROOF --- */
.metric-counter {
    text-align: center;
    padding: 40px 0;
}

.metric-number {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--primary-navy);
    line-height: 1;
    margin-bottom: 10px;
}

.metric-label {
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- HABIT BUILDING --- */
.habit-habit-card {
    background: white;
    border-radius: 24px;
    padding: 40px;
    border-left: 5px solid var(--accent-emerald);
    box-shadow: var(--card-shadow);
}

/* --- HELPER CLASSES --- */
.text-emerald {
    color: var(--accent-emerald) !important;
}

.bg-emerald {
    background-color: var(--accent-emerald) !important;
}

.btn-emerald {
    background-color: var(--accent-emerald);
    color: white;
    border: none;
    transition: var(--transition);
}

.btn-emerald:hover {
    background-color: #059669;
    /* darker emerald */
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(16, 185, 129, 0.2);
}

.text-navy {
    color: var(--primary-navy) !important;
}

.fw-800 {
    font-weight: 800;
}

/* --- RESPONSIVE MODS --- */
@media (max-width: 991px) {
    .hero-new .hero-headline {
        font-size: 2.5rem;
    }

    .hero-mockup-image {
        width: 100%;
        margin: 40px 0;
        transform: none;
    }

    .health-score-section {
        margin: 0;
        border-radius: 0;
        padding: 60px 30px;
    }
}