:root {
    --bg-main: #09090b;
    --bg-surface: #121214;
    --bg-surface-hover: #1c1c1f;
    --border-color: rgba(255, 255, 255, 0.08);
    --accent-blue: #3b82f6;
    --accent-green: #10b981;
    --accent-red: #ef4444;
    --text-primary: #ffffff;
    --text-muted: #a1a1aa;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background: var(--bg-main);
    color: var(--text-primary);
    overflow-x: hidden;
}

.container {
    width: min(1200px, 90%);
    margin: auto;
}

/* Navbar Modernized */
.navbar {
    padding: 16px 0;
    position: fixed;
    width: 100%;
    top: 0;
    background: rgba(9, 9, 11, 0.7);
    backdrop-filter: blur(12px);
    border-bottom: var(--border-color) 1px solid;
    z-index: 1000;
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.logo span {
    color: var(--accent-blue);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-menu a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-menu a:hover {
    color: var(--text-primary);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
}

.menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s ease;
}

/* Button UI Definitions */
.btn-primary, .btn-secondary, .btn-outline {
    display: inline-flex;
    align-items: center;
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary {
    background: var(--accent-blue);
    color: white;
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
}

.btn-outline {
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text-primary);
    padding: 8px 18px;
}

.btn-outline:hover {
    background: white;
    color: var(--bg-main);
}

/* Hero Section */
.hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    padding: 80px 0;
    background: radial-gradient(circle at 85% 15%, rgba(59, 130, 246, 0.15), transparent 50%);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 64px;
    align-items: center;
}

.badge {
    background: rgba(59, 130, 246, 0.1);
    color: var(--accent-blue);
    padding: 6px 14px;
    border-radius: 99px;
    font-size: 13px;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 20px;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.1;
}

.hero-content h1 span {
    background: linear-gradient(to right, #ffffff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    margin: 24px 0 36px 0;
    color: var(--text-muted);
    font-size: 18px;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: 16px;
}

/* Dashboard Mockup Preview */
.hero-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    padding: 24px;
    border-radius: 20px;
    backdrop-filter: blur(20px);
}

.dashboard-preview {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.stat-card {
    background: #161619;
    border: 1px solid var(--border-color);
    padding: 20px;
    border-radius: 16px;
}

.stat-card h4 {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.stat-card .value {
    font-size: 22px;
    font-weight: 700;
}

.value.income { color: var(--accent-green); }
.value.expense { color: var(--accent-red); }

/* Features Layout */
.features, .showcase, .budgets {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 40px auto;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.section-header p {
    color: var(--text-muted);
    margin-top: 12px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.feature-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    padding: 24px;
    border-radius: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card:hover {
    background: var(--bg-surface-hover);
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.15);
}

.feature-icon {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-blue);
    margin-bottom: 20px;
}

.feature-icon svg {
    width: 22px;
    height: 22px;
}

.feature-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.5;
}

/* Showcase - Savings Metric Component */
.showcase-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    padding: 36px;
    border-radius: 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.showcase-content h2 {
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 16px;
}

.showcase-content p {
    color: var(--text-muted);
    line-height: 1.6;
}

.progress-box {
    background: rgba(255, 255, 255, 0.02);
    padding: 28px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
}

.progress-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 99px;
}

.progress-fill {
    height: 100%;
    background: var(--accent-green);
    border-radius: 99px;
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.4);
}

/* CTA Footer section */
.cta {
    padding: 80px 0;
    background: radial-gradient(circle at center, rgba(59, 130, 246, 0.08), transparent 70%);
}

.cta-container {
    text-align: center;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    padding: 48px;
    border-radius: 24px;
}

.cta h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.cta p {
    color: var(--text-muted);
    margin-bottom: 32px;
}

/* Animations Trigger */
.hidden {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Structural Breakdowns */
@media (max-width: 992px) {
    .hero-grid, .showcase-card {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.6rem;
    }
    .feature-grid {
        grid-template-columns: 1fr;
    }

    /* Responsive Navigation Trigger */
    .menu-toggle {
        display: flex;
    }
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--bg-main);
        border-bottom: 1px solid var(--border-color);
        flex-direction: column;
        padding: 24px;
        gap: 20px;
        display: none;
    }
    .nav-menu.active {
        display: flex;
    }

    .menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(6px, 5px); }
    .menu-toggle.active span:nth-child(2) { opacity: 0; }
    .menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(6px, -5px); }
}
