/* Basic Reset & Root Variables */
:root {
    --primary-color: #007AFF; /* WealthWise Blue */
    --secondary-color: #F0F4F8; /* Light Gray Blue */
    --accent-color: #34C759; /* Green for positive indicators */
    --text-color: #1D2329; /* Dark Gray */
    --text-light-color: #5A6470;
    --bg-color: #FFFFFF;
    --bg-light-section: #F9FAFB; /* Very light gray for alternating sections */
   
    --font-family: 'Inter', sans-serif;
    --container-width: 1140px;
    --header-height: 70px;

    --primary-color: #007AFF;
    --primary-color-dark: #0056b3; /* Same as your general primary button hover */
    --primary-color-rgb: 0, 122, 255;
    
    --primary-color-rgb: 0, 122, 255;
   
    --text-color-dark: #212529;
    
    --border-color: #ced4da;
    --border-color-light: #e9ecef;
    --border-color-dark: #adb5bd;
    --danger-color: #dc3545;
    --bg-color-card: #ffffff;
    --shadow-sm: 0 0.125rem 0.25rem rgba(0,0,0,.075);
}



* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    font-size: 16px;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    margin-bottom: 0.75em;
    line-height: 1.3;
}

h1 { font-size: 2.8rem; font-weight: 700; } /* Larger for Hero */
h2 { font-size: 2.2rem; }
h3 { font-size: 1.4rem; }

p {
    margin-bottom: 1em;
    color: var(--text-light-color);
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

a:hover {
    color: #0056b3; /* Darker primary */
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 15px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 500;
    text-align: center;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
}
.btn-primary:hover {
    background-color: #0056b3;
    color: #fff;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}
.btn-secondary:hover {
    background-color: var(--primary-color);
    color: #fff;
}

.btn-large {
    padding: 16px 36px;
    font-size: 1.1rem;
}

/* Header & Navigation */
header {
    background-color: var(--bg-color);
    border-bottom: 1px solid var(--border-color);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    height: var(--header-height);
}

header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
}
.logo img {
    height: 2.25rem;      /* = 36px based on 16px root */
    max-height: 48px;
    width: auto;
    margin-right: 12px;
    vertical-align: middle;
  }
.logo:hover {
    color: var(--text-color);
}

.nav-links {
    display: flex;
    gap: 30px;
}
.nav-links a {
    color: var(--text-light-color);
    font-weight: 500;
    padding: 5px 0;
    position: relative;
}
.nav-links a:hover, .nav-links a.active {
    color: var(--primary-color);
}
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}
.nav-links a:hover::after, .nav-links a.active::after {
    width: 100%;
}


.nav-auth {
    display: flex;
    gap: 15px;
}

.hamburger {
    display: none; /* Hidden by default, shown on mobile */
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}
.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin: 5px 0;
    transition: all 0.3s ease-in-out;
}


/* Hero Section */
.hero-section {
    background-color: var(--secondary-color); /* Light background for hero */
    padding: calc(var(--header-height) + 60px) 0 60px; /* Adjust for fixed header */
    text-align: center;
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.hero-content h1 {
    color: var(--text-color);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}
.hero-content .subtitle {
    font-size: 1.2rem;
    color: var(--text-light-color);
    max-width: 650px;
    margin: 20px auto 30px;
}
.hero-image-container {
    margin-top: 50px;
}
.hero-image {
    max-width: 700px; /* Adjust as needed */
    margin: 0 auto;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.07);
}

/* Features Section */
.features-section, .how-it-works-section, .ai-guidance-section, .cta-section {
    padding: 80px 0;
    text-align: center;
}
.features-section, .ai-guidance-section {
    background-color: var(--bg-light-section);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-light-color);
    max-width: 600px;
    margin: 0 auto 50px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    text-align: left;
}

.feature-item {
    background-color: var(--bg-color);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}
.feature-icon {
    height: 50px; /* Adjust */
    margin-bottom: 20px;
}

/* How It Works Section */
.steps-container {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    margin-top: 50px;
}

.step-item {
    flex-basis: 30%;
    padding: 25px;
    background-color: var(--bg-color);
    border-radius: 8px;
    /* box-shadow: 0 5px 15px rgba(0,0,0,0.05); */
    border: 1px solid var(--border-color);
}
.step-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    background-color: var(--secondary-color);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}
.step-item h3 {
    margin-bottom: 10px;
}

/* AI Guidance Section */
.ai-guidance-content {
    display: flex;
    align-items: center;
    gap: 50px;
    text-align: left;
}
.ai-guidance-text {
    flex: 1;
}
.ai-guidance-text ul {
    margin-top: 20px;
    margin-bottom: 30px;
}
.ai-guidance-text ul li {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    color: var(--text-light-color);
}
.ai-guidance-text ul li img { /* Assuming ai-check.svg */
    height: 20px;
    margin-right: 10px;
    filter: invert(48%) sepia(61%) saturate(4000%) hue-rotate(180deg) brightness(95%) contrast(100%); /* To color it blue */
}
.ai-guidance-image {
    flex: 0 0 40%; /* Adjust size as needed */
    max-width: 400px;
}
.ai-guidance-image img {
    border-radius: 8px;
}

/* CTA Section */
.cta-section {
    background-color: var(--primary-color);
    color: #fff;
}
.cta-section h2, .cta-section p {
    color: #fff;
}
.cta-section .btn-primary {
    background-color: #fff;
    color: var(--primary-color);
    font-weight: 600;
}
.cta-section .btn-primary:hover {
    background-color: #e9ecef;
    color: var(--primary-color);
}

/* Footer */
footer {
    background-color: var(--text-color);
    color: #a0aec0; /* Lighter gray for footer text */
    padding: 60px 0 30px;
}
.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 40px;
}
.footer-logo {
    flex-basis: 30%;
    min-width: 250px;
}
.footer-logo .logo {
    color: #fff;
    margin-bottom: 10px;
}
.footer-logo .logo:hover { color: #fff; }
.footer-logo .logo img { filter: brightness(0) invert(1); } /* White logo */
.footer-logo .tagline {
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: 50px;
    flex-wrap: wrap;
}
.footer-links h4 {
    color: #fff;
    font-size: 1rem;
    margin-bottom: 15px;
}
.footer-links ul li a {
    color: #a0aec0;
    font-size: 0.9rem;
    display: block;
    padding: 5px 0;
}
.footer-links ul li a:hover {
    color: #fff;
}
.copyright {
    text-align: center;
    font-size: 0.85rem;
    border-top: 1px solid #3b4552;
    padding-top: 30px;
}
.copyright .disclaimer {
    font-size: 0.75rem;
    margin-top: 10px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 992px) {
    h1 { font-size: 2.4rem; }
    h2 { font-size: 2rem; }
    .nav-auth { margin-left: auto; } /* Push auth buttons right before hamburger */
}

@media (max-width: 768px) {
    .nav-links, .nav-auth {
        display: none; /* Hide normal nav links and auth buttons */
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: var(--header-height);
        left: 0;
        background-color: var(--bg-color);
        border-top: 1px solid var(--border-color);
        padding: 20px 0;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    }
    .nav-links.active, .nav-auth.active { /* .active class toggled by JS */
        display: flex;
    }
    .nav-links li { width: 100%; text-align: center; }
    .nav-links a {
        display: block;
        padding: 15px;
        width: 100%;
    }
    .nav-links a::after { display: none; } /* No underline for mobile menu items */

    .nav-auth { /* Reposition for mobile menu */
        position: static;
        border-top: 1px solid var(--border-color);
        padding-top: 15px;
        margin-top: 15px;
        align-items: center;
    }
     .nav-auth .btn { width: 80%; margin-bottom: 10px; }


    .hamburger {
        display: block; /* Show hamburger */
        z-index: 1001; /* Above the mobile menu background */
    }
    .hamburger.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    h1 { font-size: 2rem; }
    h2 { font-size: 1.8rem; }

    .features-grid {
        grid-template-columns: 1fr; /* Stack features */
    }
    .steps-container {
        flex-direction: column;
    }
    .ai-guidance-content {
        flex-direction: column-reverse; /* Image on top on mobile */
        text-align: center;
    }
    .ai-guidance-text ul li { justify-content: center; }
    .ai-guidance-image { margin-bottom: 30px; }

    .footer-content { flex-direction: column; text-align: center; }
    .footer-logo { margin: 0 auto 30px; }
    .footer-links { justify-content: center; }
}

/* SVG Icon Styling */
.inline-svg-icon {
    display: inline-block;
    vertical-align: middle;
}

.feature-icon.inline-svg-icon {
    width: 48px;  /* Slightly smaller for a cleaner look */
    height: 48px;
    margin-bottom: 20px;
    stroke: var(--primary-color); /* Make feature icons blue by default */
    stroke-width: 1.5; /* Ensure consistent stroke width for features */
}

.ai-check-icon.inline-svg-icon {
    width: 20px; /* Smaller checkmark */
    height: 20px;
    margin-right: 10px;
    stroke: var(--primary-color);
    stroke-width: 2.5; /* Bolder checkmark for visibility */
}

.ai-main-icon.inline-svg-icon {
    width: 100%;
    max-width: 200px; /* Made the AI Chip icon smaller */
    height: auto;
    stroke: var(--primary-color);
    stroke-width: 1; /* Thinner lines for the AI chip icon for a more delicate look */
    margin: 0 auto; /* Center it if its container is wider */
}

.ai-guidance-image {
    flex: 0 0 35%; /* Adjust size as needed */
    max-width: 300px; /* Container for the AI icon */
    display: flex;      /* Added for centering the icon */
    align-items: center;/* Added for centering the icon */
    justify-content: center;/* Added for centering the icon */
}