/* ========================================
   RESET & BASE STYLES
   ======================================== */

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

:root {
    --green-dark: #166534;
    --gold: #CA8A04;
    --cream: #FEFCE8;
    --green-700: #15803d;
    --green-600: #16a34a;
    --green-500: #22c55e;
    --green-400: #4ade80;
    --text-dark: #1a1a1a;
    --text-gray: #666;
    --bg-light: #fafaf9;
    --border: #e5e5e5;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background: var(--cream);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ========================================
   HEADER
   ======================================== */

header {
    background: white;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    gap: 32px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    font-size: 20px;
    color: var(--green-dark);
}

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

nav a {
    color: var(--text-gray);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: color 0.2s;
}

nav a:hover {
    color: var(--green-dark);
}

/* ========================================
   BUTTONS
   ======================================== */

.cta-button {
    background: var(--green-dark);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Inter', sans-serif;
}

.cta-button:hover {
    background: var(--green-700);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(22, 101, 52, 0.3);
}

.cta-button.large {
    padding: 16px 32px;
    font-size: 16px;
}

.secondary-button {
    background: white;
    color: var(--green-dark);
    border: 2px solid var(--green-dark);
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Inter', sans-serif;
}

.secondary-button:hover {
    background: var(--green-dark);
    color: white;
}

.secondary-button.large {
    padding: 16px 32px;
    font-size: 16px;
}

/* ========================================
   HERO SECTION
   ======================================== */

.hero {
    background: linear-gradient(135deg, var(--cream) 0%, #fef3c7 100%);
    padding: 120px 0 80px;
    text-align: center;
}

.hero h1 {
    font-size: 64px;
    font-weight: 800;
    color: var(--green-dark);
    line-height: 1.1;
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: 20px;
    color: var(--text-gray);
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.6;
}

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    align-items: center;
}

/* ========================================
   FEATURES SECTION
   ======================================== */

.features {
    padding: 80px 0;
    background: white;
}

.features h2 {
    text-align: center;
    font-size: 40px;
    font-weight: 800;
    color: var(--green-dark);
    margin-bottom: 64px;
}

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

.feature-card {
    text-align: center;
    padding: 40px 24px;
    border-radius: 16px;
    background: var(--bg-light);
    transition: all 0.3s;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.feature-card h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--green-dark);
    margin-bottom: 12px;
}

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

/* ========================================
   DEMO SECTION
   ======================================== */

.demo {
    padding: 80px 0;
    background: var(--bg-light);
}

.demo h2 {
    text-align: center;
    font-size: 40px;
    font-weight: 800;
    color: var(--green-dark);
    margin-bottom: 16px;
}

.section-subtitle {
    text-align: center;
    font-size: 18px;
    color: var(--text-gray);
    margin-bottom: 48px;
}

.demo-container {
    background: white;
    border-radius: 16px;
    padding: 48px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
}

.budget-section {
    margin-bottom: 48px;
}

.budget-section:last-child {
    margin-bottom: 0;
}

.budget-section h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--green-dark);
    margin-bottom: 24px;
}

/* Income Display */
.income-display {
    background: linear-gradient(135deg, var(--green-dark) 0%, var(--green-700) 100%);
    padding: 32px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.income-display .amount {
    font-size: 48px;
    font-weight: 800;
    color: white;
}

.income-display .label {
    font-size: 16px;
    color: rgba(255,255,255,0.8);
}

/* Overview Grid */
.overview-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.overview-card {
    background: var(--bg-light);
    padding: 24px;
    border-radius: 12px;
}

.overview-card.full-width {
    grid-column: 1 / -1;
}

.overview-label {
    font-size: 14px;
    color: var(--text-gray);
    margin-bottom: 8px;
    font-weight: 500;
}

.overview-amount {
    font-size: 32px;
    font-weight: 800;
}

.overview-amount.spent {
    color: var(--gold);
}

.overview-amount.remaining {
    color: var(--green-dark);
}

.progress-bar {
    background: #e5e5e5;
    height: 24px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-fill {
    background: linear-gradient(90deg, var(--green-dark) 0%, var(--green-600) 100%);
    height: 100%;
    border-radius: 12px;
    transition: width 0.3s ease;
}

.progress-label {
    text-align: center;
    font-weight: 600;
    color: var(--green-dark);
}

/* Pie Chart - CSS Only! */
.chart-container {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 48px;
    align-items: center;
}

.pie-chart {
    position: relative;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: conic-gradient(
        #166534 0% 31.11%,
        #15803d 31.11% 57.78%,
        #16a34a 57.78% 75.56%,
        #22c55e 75.56% 88.89%,
        #4ade80 88.89% 100%
    );
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.pie-center {
    width: 180px;
    height: 180px;
    background: white;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.pie-total {
    font-size: 36px;
    font-weight: 800;
    color: var(--green-dark);
}

.pie-label {
    font-size: 14px;
    color: var(--text-gray);
    font-weight: 500;
}

.chart-legend {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
    font-weight: 500;
}

.legend-color {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    flex-shrink: 0;
}

/* Category Details */
.categories {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.category-item {
    background: var(--bg-light);
    padding: 20px;
    border-radius: 12px;
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.category-name {
    font-weight: 600;
    font-size: 16px;
}

.category-amount {
    font-weight: 700;
    color: var(--green-dark);
    font-size: 15px;
}

.category-bar {
    background: #e5e5e5;
    height: 12px;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 8px;
}

.category-fill {
    height: 100%;
    border-radius: 6px;
    transition: width 0.3s ease;
}

.category-percent {
    text-align: right;
    font-size: 13px;
    color: var(--text-gray);
    font-weight: 500;
}

/* ========================================
   SIGNUP SECTION
   ======================================== */

.signup {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--green-dark) 0%, var(--green-700) 100%);
}

.signup-card {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.signup h2 {
    font-size: 40px;
    font-weight: 800;
    color: white;
    margin-bottom: 16px;
}

.signup p {
    font-size: 18px;
    color: rgba(255,255,255,0.9);
    margin-bottom: 32px;
}

.signup-form {
    display: flex;
    gap: 12px;
    max-width: 500px;
    margin: 0 auto 16px;
}

.signup-form input {
    flex: 1;
    padding: 16px 20px;
    border: 2px solid white;
    border-radius: 8px;
    font-size: 16px;
    font-family: 'Inter', sans-serif;
    background: white;
}

.signup-form input:focus {
    outline: none;
    border-color: var(--gold);
}

.signup-form button {
    background: var(--gold);
    color: white;
}

.signup-form button:hover {
    background: #b87903;
}

.signup-note {
    font-size: 14px;
    color: rgba(255,255,255,0.7);
}

/* ========================================
   FOOTER
   ======================================== */

footer {
    background: white;
    border-top: 1px solid var(--border);
    padding: 48px 0 24px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    flex-wrap: wrap;
    gap: 24px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    color: var(--green-dark);
}

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

.footer-links a {
    color: var(--text-gray);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--green-dark);
}

.footer-credit {
    color: var(--text-gray);
    font-size: 14px;
}

.footer-credit a {
    color: var(--green-dark);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.footer-credit a:hover {
    color: var(--gold);
}

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    color: var(--text-gray);
    font-size: 14px;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 968px) {
    .header-content nav {
        display: none;
    }

    .hero h1 {
        font-size: 48px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .hero-cta {
        flex-direction: column;
    }

    .chart-container {
        grid-template-columns: 1fr;
        justify-items: center;
    }

    .pie-chart {
        margin-bottom: 24px;
    }

    .demo-container {
        padding: 32px 24px;
    }

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

    .signup-form {
        flex-direction: column;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 640px) {
    .hero {
        padding: 80px 0 60px;
    }

    .hero h1 {
        font-size: 36px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .features h2,
    .demo h2,
    .signup h2 {
        font-size: 32px;
    }

    .demo-container {
        padding: 24px 16px;
    }

    .pie-chart {
        width: 250px;
        height: 250px;
    }

    .pie-center {
        width: 150px;
        height: 150px;
    }

    .pie-total {
        font-size: 28px;
    }

    .income-display .amount {
        font-size: 36px;
    }

    .overview-amount {
        font-size: 24px;
    }

    .header-content .cta-button {
        padding: 10px 16px;
        font-size: 14px;
    }
}
