/* Premium Design System - Blue Theme */
:root {
    --primary-color: #0066ff;
    /* Vibrant Cobalt Blue */
    --primary-hover: #0052cc;
    --secondary-color: #00c6ff;
    /* Electric Cyan/Blue Accent */
    --dark-navy: #0a192f;
    --light-navy: #112240;
    --text-dark: #1e293b;
    --text-muted: #64748b;
    --white: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(0, 102, 255, 0.15);
    --transition: all 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    background-color: #f8fbff;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    color: var(--dark-navy);
    letter-spacing: -0.02em;
}

.text-muted-custom {
    color: var(--text-muted) !important;
}

/* Section Divider Utility */
.section-divider {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 4px;
    margin: 0.75rem auto 2.5rem;
}

/* Glassmorphism Utilities */
.glass-effect {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid var(--glass-border);
}

.glass-card {
    background: var(--white);
    border: 1px solid rgba(0, 102, 255, 0.1);
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    transition: var(--transition);
}

.glass-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 102, 255, 0.12);
    border-color: rgba(0, 102, 255, 0.3);
}

/* Dark Glassmorphism Cards for Dark Section Contrast */
.dark-glass-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(12px);
    transition: var(--transition);
}

.dark-glass-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary-color);
    box-shadow: 0 20px 45px rgba(0, 102, 255, 0.3);
}

/* Hero Section, Ambient Glows & Market Dashboard */
#hero {
    padding-top: 130px !important;
    padding-bottom: 5.5rem !important;
    background: linear-gradient(135deg, #f0f6ff 0%, #e8f2ff 50%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

.hero-glow-1 {
    position: absolute;
    top: -5%;
    left: -5%;
    width: 480px;
    height: 480px;
    background: radial-gradient(circle, rgba(0, 102, 255, 0.15) 0%, rgba(0, 102, 255, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
}

.hero-glow-2 {
    position: absolute;
    bottom: 5%;
    right: -5%;
    width: 520px;
    height: 520px;
    background: radial-gradient(circle, rgba(0, 198, 255, 0.18) 0%, rgba(0, 198, 255, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
}

.hero-title {
    font-size: clamp(1.6rem, 3.15vw, 2.95rem);
    line-height: 1.15;
    margin-bottom: 1.25rem;
    letter-spacing: -0.5px;
    white-space: nowrap;
    background: linear-gradient(135deg, var(--dark-navy) 20%, var(--primary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-badge-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 102, 255, 0.18);
    border-radius: 16px;
    padding: 12px 18px;
    box-shadow: 0 12px 30px rgba(0, 102, 255, 0.12);
    display: inline-flex;
    align-items: center;
    gap: 12px;
    z-index: 6;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: #10b981;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

.market-dashboard-card {
    background: #ffffff;
    border-radius: 24px;
    border: 1px solid rgba(0, 102, 255, 0.18);
    box-shadow: 0 25px 60px rgba(10, 25, 47, 0.12);
    overflow: hidden;
    position: relative;
    z-index: 2;
}

.stock-preview-card {
    background: #f8fafc;
    border: 1px solid rgba(0, 102, 255, 0.1);
    border-radius: 16px;
    padding: 12px 14px;
    transition: var(--transition);
}

.stock-preview-card:hover {
    background: #ffffff;
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 102, 255, 0.15);
    border-color: var(--primary-color);
}

/* Stats Counter Grid */
.stat-box {
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 16px;
    border: 1px solid rgba(0, 102, 255, 0.08);
    transition: var(--transition);
}

.stat-box:hover {
    background: var(--white);
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.stat-number {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
    font-family: 'Outfit', sans-serif;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 6px;
}

/* Navbar Upgrade */
#main-header {
    transition: var(--transition);
    z-index: 1030;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.04);
}

.navbar {
    padding: 0.85rem 0;
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 0.55rem 0;
    background: rgba(255, 255, 255, 0.98) !important;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.08);
}

.navbar-brand img {
    transition: var(--transition);
}

.nav-link {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--dark-navy) !important;
    position: relative;
    transition: var(--transition);
    white-space: nowrap;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
    transition: var(--transition);
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 60%;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

/* Button Refinement */
.btn {
    padding: 12px 28px;
    font-weight: 700;
    border-radius: 50px;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 0.85rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    border: none;
    color: var(--white);
    box-shadow: 0 4px 15px rgba(0, 102, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 8px 25px rgba(0, 102, 255, 0.45);
    background: linear-gradient(135deg, var(--primary-hover), var(--primary-color));
    color: var(--white);
}

.btn-secondary {
    background: var(--dark-navy);
    color: var(--white);
    border: none;
    box-shadow: 0 4px 15px rgba(10, 25, 47, 0.2);
}

.btn-secondary:hover {
    background: var(--light-navy);
    color: var(--white);
    transform: translateY(-2px) scale(1.03);
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
}

/* Get Started Steps Styling */
.step-item {
    transition: var(--transition);
}

.step-indicator {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
    font-size: 1.4rem;
    font-family: 'Outfit', sans-serif;
    box-shadow: 0 8px 20px rgba(0, 102, 255, 0.3);
    flex-shrink: 0;
}

.step-card {
    border: 1px solid rgba(0, 102, 255, 0.12);
    position: relative;
    overflow: hidden;
    background: var(--white);
}

.step-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
    opacity: 0;
    transition: var(--transition);
}

.step-card:hover::before {
    opacity: 1;
}

/* Interactive Tabs ("Why Invest With Us") */
.interactive-card {
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
    outline: none;
    width: 100%;
    background: var(--white);
}

.interactive-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 102, 255, 0.1);
}

.interactive-card.active {
    border-color: var(--primary-color);
    background: var(--white) !important;
    box-shadow: 0 12px 30px rgba(0, 102, 255, 0.18);
    transform: translateY(-4px);
}

.interactive-card.active h5 {
    color: var(--primary-color);
}

.content-box {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.content-box.d-none {
    display: none !important;
    opacity: 0;
    transform: translateY(10px);
}

.content-box:not(.d-none) {
    display: block !important;
    opacity: 1;
    transform: translateY(0);
}

/* Pricing Card Styling & Fixes */
.pricing-card {
    border-radius: 24px;
    overflow: hidden;
    transition: var(--transition);
    background: var(--white);
    border: 1px solid rgba(0, 102, 255, 0.15);
}

.pricing-card .card-body {
    padding: 2.25rem 1.75rem 2.25rem 1.75rem;
}

@media (min-width: 992px) {
    .pricing-card .card-body {
        padding: 2.5rem 2.25rem 2.5rem 2.25rem;
    }
}

@media (min-width: 992px) {
    .pricing-card.featured {
        border: 2.5px solid var(--primary-color);
        transform: scale(1.04);
        box-shadow: 0 20px 45px rgba(0, 102, 255, 0.18);
        z-index: 10;
    }

    .pricing-card.featured:hover {
        transform: scale(1.06) translateY(-8px);
        box-shadow: 0 25px 50px rgba(0, 102, 255, 0.25);
    }
}

@media (max-width: 991.98px) {
    .pricing-card.featured {
        border: 2.5px solid var(--primary-color);
        box-shadow: 0 15px 35px rgba(0, 102, 255, 0.15);
    }
}

/* Accordion Enhancements */
.accordion-button:not(.collapsed) {
    color: var(--primary-color);
    background-color: rgba(0, 102, 255, 0.05);
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: none;
    border-color: rgba(0, 102, 255, 0.3);
}

/* Footer Styling */
#main-footer {
    background-color: var(--dark-navy);
}

#main-footer a {
    text-decoration: none;
    transition: var(--transition);
}

#main-footer a:hover {
    color: var(--secondary-color) !important;
}

/* Floating Animations & Scroll Effects */
.floating {
    animation: floating 3.5s ease-in-out infinite;
}

@keyframes floating {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-12px);
    }
    100% {
        transform: translateY(0px);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(35px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Back to Top Button */
#backToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    border: none;
    box-shadow: 0 8px 25px rgba(0, 102, 255, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 1000;
}

#backToTop.show {
    opacity: 1;
    visibility: visible;
}

#backToTop:hover {
    background: var(--dark-navy);
    transform: translateY(-5px);
}

/* Mobile Responsive Adjustments */
@media (max-width: 991.98px) {
    #hero {
        padding-top: 105px !important;
        padding-bottom: 3.5rem !important;
    }

    .hero-title {
        font-size: clamp(1.35rem, 4.5vw, 2.2rem);
        white-space: nowrap;
    }

    .hero-badge-card {
        padding: 8px 14px;
        font-size: 0.8rem;
    }

    .navbar-collapse {
        background: var(--white);
        padding: 1.5rem;
        border-radius: 20px;
        margin-top: 0.75rem;
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
        border: 1px solid rgba(0, 102, 255, 0.1);
    }

    .stat-number {
        font-size: 1.8rem;
    }
}

@media (max-width: 575.98px) {
    #hero {
        padding-top: 95px !important;
    }

    .hero-title {
        font-size: clamp(1.1rem, 5.1vw, 1.45rem);
        white-space: nowrap;
    }
}
