@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
    --bg-dark: #0A0B10;
    --bg-card: #12131A;
    --border-color: rgba(255, 255, 255, 0.07);
    --primary-purple: #8C52FF;
    --primary-purple-hover: #773FD2;
    --accent-violet: #5F33E1;
    --text-primary: #FFFFFF;
    --text-secondary: #9B9C9F;
    --text-muted: #64748B;
    --neon-green: #00FFB2;
}

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

/* Header Styling */
section#header {
    border-bottom: 1px solid var(--border-color);
    padding: 20px 0;
    background-color: rgba(10, 11, 16, 0.8);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

img.logo {
    width: 38px;
    height: 38px;
}

h1.brand-title {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0;
    letter-spacing: -0.5px;
}

h1.brand-title span {
    color: var(--primary-purple);
}

h3.headline {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 400;
    margin-top: 2px;
    margin-bottom: 0;
}

.menu {
    gap: 32px;
}

.menu-item {
    font-weight: 500;
    font-size: 15px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
    cursor: pointer;
}

.menu-item:hover {
    color: var(--primary-purple);
}

.download-btn {
    background-color: var(--primary-purple);
    border: none;
    border-radius: 10px;
    padding: 10px 22px;
    font-weight: 600;
    font-size: 15px;
    color: white;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 14px rgba(140, 82, 255, 0.25);
}

.download-btn:hover {
    background-color: var(--primary-purple-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(140, 82, 255, 0.35);
}

/* Sections Styling */
section:not(#header):not(footer) {
    margin-top: 100px;
    margin-bottom: 100px;
}

/* Hero Section */
#hero h2 {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -1.5px;
    color: var(--text-primary);
    margin-bottom: 8px;
}

#hero h3 {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-purple);
    margin-bottom: 24px;
}

#hero p.description {
    color: var(--text-secondary);
    font-size: 18px;
    font-weight: 400;
    line-height: 1.6;
    margin-bottom: 36px;
    max-width: 90%;
}

.hero-image-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image-glow {
    position: absolute;
    width: 70%;
    height: 70%;
    background: radial-gradient(circle, rgba(140, 82, 255, 0.2) 0%, rgba(140, 82, 255, 0) 70%);
    z-index: 1;
    pointer-events: none;
}

.hero-image {
    position: relative;
    z-index: 2;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    max-width: 60%;
}

.hero-image-glow.green {
    background: radial-gradient(circle, rgba(0, 255, 178, 0.18) 0%, rgba(0, 255, 178, 0) 70%);
}

/* Feature Showcase Sections (Heatmap, Analytics) */
.showcase-heading {
    font-size: 36px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -1px;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.showcase-text {
    color: var(--text-secondary);
    font-size: 17px;
    font-weight: 400;
    line-height: 1.6;
    max-width: 90%;
}

/* Budget Details (Reimagined) Section */
.section-header h2 {
    font-size: 44px;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 8px;
}

.section-header p.subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 48px;
}

.feature-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 40px 32px;
    height: 100%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(140, 82, 255, 0.3);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4), 0 0 2px rgba(140, 82, 255, 0.2);
}

.feature-card .icon-box {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.feature-card .icon-box.purple {
    background-color: rgba(140, 82, 255, 0.15);
    color: #A78BFA;
}

.feature-card .icon-box.blue {
    background-color: rgba(59, 130, 246, 0.15);
    color: #60A5FA;
}

.feature-card .icon-box.grey {
    background-color: rgba(156, 163, 175, 0.15);
    color: #D1D5DB;
}

.feature-card h4 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.feature-card p {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0;
}

/* Full Width Banner (Marquee) */
#full-width-cta {
    position: relative;
    background: linear-gradient(135deg, #150E28 0%, #201140 100%);
    padding: 60px 0;
    overflow: hidden;
    width: 100%;
    border-top: 1px solid rgba(140, 82, 255, 0.2);
    border-bottom: 1px solid rgba(140, 82, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 180px;
}

.marquee-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 110px;
    font-weight: 900;
    letter-spacing: 0.1em;
    color: rgba(140, 82, 255, 0.05);
    white-space: nowrap;
    pointer-events: none;
    user-select: none;
    text-transform: uppercase;
    width: 120%;
    text-align: center;
    display: flex;
    justify-content: center;
    gap: 40px;
}

.marquee-text {
    position: relative;
    z-index: 2;
    font-size: 38px;
    font-weight: 800;
    letter-spacing: -0.5px;
    text-align: center;
    color: var(--text-primary);
    text-transform: uppercase;
}

.marquee-text span.accent {
    color: #A78BFA;
    font-style: italic;
    background: linear-gradient(135deg, #C084FC 0%, #8C52FF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Dashboard Grid Section */
.dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
}

.dashboard-card-large {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 48px;
    position: relative;
    overflow: hidden;
    min-height: 420px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.dashboard-card-large .content-wrapper {
    position: relative;
    z-index: 2;
    max-width: 57%;
}

.dashboard-card-large h3 {
    font-size: 36px;
    font-weight: 800;
    letter-spacing: -1px;
    background: linear-gradient(135deg, #FFFFFF 0%, #C084FC 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 16px;
}

.dashboard-card-large p {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-secondary);
}

.dashboard-card-large .chart-overlay {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 55%;
    height: 100%;
    background-image: url('images/budget_details.jpg');
    background-size: 80%;
    background-position: 50% 55%;
    background-repeat: no-repeat;
    z-index: 1;
    pointer-events: none;
    mask-image: linear-gradient(to left, rgba(0, 0, 0, 1) 50%, rgba(0, 0, 0, 0) 100%);
    -webkit-mask-image: linear-gradient(to left, rgba(0, 0, 0, 1) 50%, rgba(0, 0, 0, 0) 100%);
}

.dashboard-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.dashboard-card-small {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: calc(50% - 12px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.dashboard-card-small:hover {
    transform: translateY(-2px);
    border-color: rgba(140, 82, 255, 0.2);
}

.dashboard-card-small.gradient-bg {
    background: linear-gradient(135deg, #8C52FF 0%, #5F33E1 100%);
    border: none;
    box-shadow: 0 10px 25px rgba(140, 82, 255, 0.2);
}

.dashboard-card-small h4 {
    font-size: 38px;
    font-weight: 900;
    letter-spacing: -1px;
    margin: 0 0 8px 0;
}

.dashboard-card-small.local-card h4 {
    background: linear-gradient(135deg, #A78BFA 0%, #8C52FF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.dashboard-card-small.gradient-bg h4 {
    color: white;
}

.dashboard-card-small p {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin: 0;
}

.dashboard-card-small.local-card p {
    color: var(--text-secondary);
}

.dashboard-card-small.gradient-bg p {
    color: rgba(255, 255, 255, 0.8);
}

/* Footer Styling */
footer.site-footer {
    background-color: #050608;
    border-top: 1px solid var(--border-color);
    padding: 40px 0;
    margin-top: 120px;
}

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

footer .brand-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

footer .brand-name {
    font-size: 18px;
    font-weight: 800;
    color: var(--text-primary);
}

footer .brand-name span {
    color: var(--primary-purple);
}

footer .copyright {
    font-size: 13px;
    color: var(--text-muted);
}

footer .footer-links {
    display: flex;
    gap: 24px;
}

footer .footer-link {
    font-size: 13px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
}

footer .footer-link:hover {
    color: var(--primary-purple);
}

footer .social-links {
    display: flex;
    gap: 12px;
}

footer .social-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s ease;
}

footer .social-icon:hover {
    border-color: var(--primary-purple);
    color: var(--primary-purple);
    background-color: rgba(140, 82, 255, 0.05);
}

/* Subpage Common layout */
.subpage-container {
    max-width: 800px;
    margin: 60px auto 120px auto;
    padding: 0 24px;
}

.subpage-container h1 {
    font-size: 40px;
    font-weight: 800;
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.subpage-container .last-updated {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 40px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 20px;
}

.subpage-content h2 {
    font-size: 24px;
    font-weight: 700;
    margin-top: 36px;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.subpage-content p {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.subpage-content ul {
    margin-bottom: 24px;
    padding-left: 20px;
}

.subpage-content li {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.subpage-content h3 {
    font-size: 18px;
    font-weight: 700;
    margin-top: 24px;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.legal-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.highlight-box {
    background-color: rgba(140, 82, 255, 0.1);
    border-left: 4px solid var(--primary-purple);
    padding: 16px 20px;
    border-radius: 12px;
    margin: 24px 0 32px 0;
}

.highlight-box p {
    margin: 0;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 15px;
}

/* Responsive design */
@media (max-width: 991px) {
    #hero h2 {
        font-size: 44px;
    }

    #hero p.description {
        font-size: 16px;
        max-width: 100%;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-card-large {
        min-height: 380px;
    }

    .dashboard-card-large .content-wrapper {
        max-width: 100%;
    }

    .dashboard-card-large .chart-overlay {
        opacity: 0.25;
        width: 100%;
    }

    .dashboard-sidebar {
        flex-direction: row;
        height: 200px;
    }

    .dashboard-card-small {
        width: 50%;
        height: 100%;
    }

    .menu {
        display: none !important;
    }
}

@media (max-width: 767px) {
    section:not(#header):not(footer) {
        margin-top: 60px;
        margin-bottom: 60px;
    }

    footer.site-footer {
        margin-top: 60px;
    }

    #hero {
        text-align: center;
    }

    #hero p.description {
        margin-left: auto;
        margin-right: auto;
    }

    #hero .download-btn {
        margin: 0 auto;
    }

    #hero .hero-image-container {
        margin-top: 40px;
    }

    .feature-showcase {
        text-align: center;
    }

    .showcase-text {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .section-header h2 {
        font-size: 32px;
    }

    .section-header p.subtitle {
        font-size: 16px;
        margin-bottom: 32px;
    }

    .marquee-text {
        font-size: 24px;
    }

    .marquee-bg {
        font-size: 60px;
    }

    .dashboard-sidebar {
        flex-direction: column;
        height: auto;
    }

    .dashboard-card-small {
        width: 100%;
        height: 180px;
    }

    footer .footer-container {
        flex-direction: column;
        gap: 24px;
        text-align: center;
    }

    footer .footer-links {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }
}

/* ==========================================================================
   Savings Goal Calculator Custom Styles
   ========================================================================== */

/* Active menu navigation link styling */
.menu-item.active {
    color: var(--primary-purple) !important;
    font-weight: 700;
}

.calculator-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 36px;
    height: 100%;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.form-group-custom {
    margin-bottom: 24px;
}

.form-label-custom {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-secondary);
    margin-bottom: 10px;
    display: block;
}

.input-group-custom {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.input-icon-custom {
    position: absolute;
    left: 16px;
    color: var(--text-muted);
    font-size: 16px;
    font-weight: 600;
    pointer-events: none;
    z-index: 5;
}

.form-control-custom {
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-primary);
    padding: 14px 18px;
    font-size: 16px;
    width: 100%;
    transition: all 0.2s ease;
    font-weight: 500;
}

.form-control-custom.has-icon {
    padding-left: 36px;
}

.form-control-custom:focus {
    background-color: rgba(255, 255, 255, 0.04);
    border-color: var(--primary-purple);
    outline: none;
    box-shadow: 0 0 0 3px rgba(140, 82, 255, 0.15);
}

.form-control-custom::placeholder {
    color: var(--text-muted);
}

/* Outputs & Results */
.velocity-display-box {
    background: linear-gradient(135deg, rgba(140, 82, 255, 0.12) 0%, rgba(95, 51, 225, 0.03) 100%);
    border: 1px solid rgba(140, 82, 255, 0.2);
    border-radius: 20px;
    padding: 36px;
    text-align: center;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.velocity-display-box::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(140, 82, 255, 0.07) 0%, rgba(0, 0, 0, 0) 65%);
    pointer-events: none;
}

.velocity-label {
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    color: var(--text-muted);
    margin-bottom: 12px;
    position: relative;
    z-index: 2;
}

.velocity-amount-wrapper {
    position: relative;
    z-index: 2;
    margin-bottom: 8px;
}

.velocity-amount {
    font-size: 52px;
    font-weight: 900;
    letter-spacing: -2px;
    background: linear-gradient(135deg, #FFFFFF 0%, #D8B4FE 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.velocity-unit {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-purple);
    margin-left: 4px;
}

.velocity-subtext {
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 14px;
    line-height: 1.6;
    position: relative;
    z-index: 2;
}

/* Breakdown Grid */
.breakdown-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.breakdown-card {
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.breakdown-card:hover {
    border-color: rgba(140, 82, 255, 0.2);
    background-color: rgba(255, 255, 255, 0.04);
    transform: translateY(-2px);
}

.breakdown-title {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.breakdown-value {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

/* Feasibility Check */
.feasibility-box {
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--text-muted);
    border-radius: 16px;
    padding: 16px 20px;
    margin-bottom: 24px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    transition: all 0.2s ease;
}

.feasibility-box .feasibility-icon {
    font-size: 18px;
    line-height: 1.4;
    flex-shrink: 0;
}

.feasibility-box p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-secondary);
}

.feasibility-box p strong {
    color: var(--text-primary);
}

.feasibility-box.good {
    border-left-color: var(--neon-green);
    background-color: rgba(0, 255, 178, 0.05);
}

.feasibility-box.warn {
    border-left-color: #FBBF24;
    background-color: rgba(251, 191, 36, 0.05);
}

.feasibility-box.bad {
    border-left-color: #F87171;
    background-color: rgba(248, 113, 113, 0.05);
}

/* App CTA Promo Box */
.promo-box {
    background: linear-gradient(135deg, rgba(21, 14, 40, 0.6) 0%, rgba(10, 11, 16, 0.8) 100%);
    border: 1px solid rgba(140, 82, 255, 0.2);
    border-radius: 24px;
    padding: 36px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.promo-text {
    max-width: 65%;
}

.promo-text h5 {
    font-size: 22px;
    font-weight: 800;
    margin: 0 0 10px 0;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.promo-text h5 span {
    color: var(--primary-purple);
}

.promo-text p {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0;
}

.promo-btn-wrapper {
    flex-shrink: 0;
}

/* Responsive Overrides for Calculator */
@media (max-width: 767px) {
    .calculator-card {
        padding: 24px;
    }

    .breakdown-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .velocity-amount {
        font-size: 40px;
    }

    .promo-box {
        flex-direction: column;
        text-align: center;
        padding: 28px;
        gap: 20px;
    }

    .promo-text {
        max-width: 100%;
    }
}