/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #06B6D4;
    --primary-dark: #0891B2;
    --secondary: #0EA5E9;
    --dark-bg: #0F172A;
    --dark-card: #1E293B;
    --dark-border: #334155;
    --text-primary: #F1F5F9;
    --text-secondary: #94A3B8;
    --success: #10B981;
    --warning: #F59E0B;
    --danger: #EF4444;
    --gradient: linear-gradient(135deg, #0EA5E9 0%, #06B6D4 100%);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #FFFFFF;
    color: #1F2937;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #E5E7EB;
    z-index: 1000;
}

.nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    font-size: 20px;
    color: #111827;
}

.logo-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--gradient);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 25px -5px rgba(6, 182, 212, 0.4);
}

.btn-secondary {
    background: transparent;
    color: #111827;
    border: 2px solid #E5E7EB;
}

.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-lg {
    padding: 14px 32px;
    font-size: 16px;
}

/* Hero Section */
.hero {
    margin-top: 72px;
    padding: 120px 0 80px;
    background: linear-gradient(180deg, #F9FAFB 0%, #FFFFFF 100%);
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 56px;
    font-weight: 700;
    line-height: 1.1;
    color: #111827;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 20px;
    color: #4B5563;
    margin-bottom: 40px;
    line-height: 1.6;
}

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 32px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #F0FDFF;
    border: 1px solid #CFFAFE;
    border-radius: 100px;
    color: #0891B2;
    font-size: 14px;
    font-weight: 500;
}

/* Features Section */
.features {
    padding: 60px 0;
    background: white;
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-title {
    font-size: 40px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 16px;
    letter-spacing: -0.01em;
}

.section-subtitle {
    font-size: 18px;
    color: #6B7280;
    max-width: 600px;
    margin: 0 auto;
}

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

.feature-card {
    padding: 32px;
    background: #F9FAFB;
    border: 1px solid #E5E7EB;
    border-radius: 16px;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.1);
    border-color: var(--primary);
}

.feature-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient);
    border-radius: 12px;
    color: white;
    margin-bottom: 20px;
}

.feature-title {
    font-size: 20px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 12px;
}

.feature-description {
    font-size: 15px;
    color: #6B7280;
    line-height: 1.6;
}

/* Screenshots Section */
.screenshots {
    padding: 60px 0;
    background: #F9FAFB;
}

.screenshot-container {
    margin-bottom: 48px;
}

.screenshot-container:last-child {
    margin-bottom: 0;
}

.screenshot-mockup {
    background: #FFFFFF;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.15);
    border: 1px solid #E5E7EB;
    display: inline-block;
    width: auto;
}

.screenshot-container {
    text-align: center;
}

.mockup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    background: #F9FAFB;
    border-bottom: 1px solid #E5E7EB;
}

.mockup-header-left {
    display: flex;
    align-items: center;
    gap: 32px;
}

.mockup-logo {
    width: 32px;
    height: 32px;
    background: var(--gradient);
    border-radius: 6px;
}

.mockup-nav {
    display: flex;
    gap: 24px;
}

.mockup-nav-item {
    font-size: 13px;
    color: #6B7280;
    transition: color 0.2s;
    font-weight: 500;
}

.mockup-nav-item.active {
    color: #111827;
}

.mockup-header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.mockup-select {
    padding: 6px 12px;
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 6px;
    font-size: 12px;
    color: #111827;
    font-weight: 500;
}

.mockup-button {
    padding: 6px 12px;
    background: var(--gradient);
    border-radius: 6px;
    font-size: 13px;
    color: white;
    font-weight: 500;
}

.mockup-avatar {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #0EA5E9 0%, #06B6D4 100%);
    border-radius: 50%;
}

.mockup-body {
    padding: 24px;
    background: #FAFBFC;
    display: inline-block;
    width: auto;
}

/* Dashboard Overview Mockup */
.status-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.status-card {
    padding: 20px;
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 10px;
}

.status-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-bottom: 12px;
}

.status-on-track .status-indicator {
    background: #10B981;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.4);
}

.status-at-risk .status-indicator {
    background: #F59E0B;
    box-shadow: 0 0 8px rgba(245, 158, 11, 0.4);
}

.status-label {
    font-size: 12px;
    color: #6B7280;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.status-value {
    font-size: 28px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 4px;
}

.status-change {
    font-size: 13px;
    color: #10B981;
    font-weight: 500;
}

.charts-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}

.chart-card {
    padding: 16px;
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 10px;
}

.chart-header {
    font-size: 13px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 16px;
}

.chart-area {
    height: 120px;
}

.chart-svg {
    width: 100%;
    height: 100%;
}

.chart-bars {
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    height: 120px;
    gap: 12px;
}

.bar-group {
    display: flex;
    gap: 4px;
    align-items: flex-end;
    flex: 1;
}

.bar {
    width: 100%;
    border-radius: 4px 4px 0 0;
}

.bar-budget {
    background: #CBD5E1;
    height: 60%;
}

.bar-actual {
    background: #06B6D4;
    height: 70%;
}

/* Financial Table Mockup */
.table-mockup {
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 10px;
    overflow: hidden;
    display: inline-block;
    width: auto;
}

.table-header {
    display: flex;
    gap: 0;
    padding: 6px 12px;
    background: #F9FAFB;
    border-bottom: 2px solid #E5E7EB;
    white-space: nowrap;
    overflow-x: hidden;
}

.table-row {
    display: flex;
    gap: 0;
    padding: 4px 12px;
    border-bottom: 1px solid #F3F4F6;
    transition: background 0.15s ease;
    white-space: nowrap;
    overflow-x: hidden;
}

.table-row:hover {
    background: #F9FAFB;
}

.table-row:last-child {
    border-bottom: none;
}

.table-row.table-section {
    background: #F3F4F6;
    font-weight: 700;
}

.table-row.dense-row {
    padding: 1px 12px;
}

.table-row.dense-row .table-cell {
    font-size: 11px;
    padding: 2px 6px;
    line-height: 1.4;
}

.table-cell {
    font-size: 12px;
    color: #111827;
    padding: 2px 8px;
    flex-shrink: 0;
    min-width: 80px;
    text-align: right;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.table-cell:first-child {
    min-width: 180px;
    flex: 1 1 auto;
    text-align: left;
}

.table-cell.text-left {
    text-align: left;
}

.table-header .table-cell {
    font-weight: 600;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6B7280;
    padding: 2px 8px;
}

.table-cell.positive {
    color: #10B981;
    font-weight: 600;
}

/* Historical Data: compact monthly columns so all months + Total fit without overflow */
.historical-table .table-cell {
    min-width: 60px !important;
    max-width: 60px !important;
    flex: 0 0 60px !important;
    text-align: right !important;
    text-overflow: clip !important;
}
.historical-table .table-cell:first-child {
    min-width: 140px !important;
    max-width: 140px !important;
    flex: 0 0 140px !important;
    text-align: left !important;
}
.historical-table .table-cell:last-child {
    min-width: 70px !important;
    max-width: 70px !important;
    flex: 0 0 70px !important;
}

/* Transaction Detail: tighten Description + Vendor so Credit column is fully visible */
.dense-table .table-cell:nth-child(2) {
    min-width: 200px !important;
    max-width: 200px !important;
    flex: 0 0 200px !important;
    text-align: left !important;
}
.dense-table .table-cell:nth-child(3) {
    min-width: 148px !important;
    max-width: 148px !important;
    flex: 0 0 148px !important;
    text-align: left !important;
}
.dense-table .table-cell:nth-child(7) {
    min-width: 75px !important;
    max-width: 75px !important;
    flex: 0 0 75px !important;
    text-align: right !important;
}

.table-cell.negative {
    color: #F59E0B;
    font-weight: 600;
}

/* Board Report Mockup */
.report-preview {
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 10px;
    padding: 24px;
}

.report-header {
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 2px solid #F3F4F6;
}

.report-title {
    font-size: 22px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 6px;
}

.report-date {
    font-size: 13px;
    color: #6B7280;
}

.report-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.summary-item {
    padding: 16px;
    background: #F9FAFB;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
}

.summary-label {
    font-size: 11px;
    color: #6B7280;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.summary-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
}

.summary-badge.on-track {
    background: #D1FAE5;
    color: #065F46;
}

.summary-value {
    font-size: 22px;
    font-weight: 700;
    color: #111827;
}

.report-alerts {
    margin-bottom: 24px;
}

.alert-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    margin-bottom: 10px;
    background: #F9FAFB;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
}

.alert-icon {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.alert-icon.success {
    background: #10B981;
}

.alert-icon.warning {
    background: #F59E0B;
}

.alert-icon.info {
    background: #06B6D4;
}

.alert-text {
    font-size: 13px;
    color: #374151;
}

.report-chart {
    height: 80px;
}

.screenshot-caption {
    text-align: center;
    margin-top: 20px;
    font-size: 15px;
    color: #6B7280;
}

/* Charter Schools Section */
.charter-schools {
    padding: 60px 0;
    background: white;
}

.charter-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.charter-description {
    font-size: 16px;
    color: #4B5563;
    margin-bottom: 20px;
    line-height: 1.7;
}

.charter-features {
    margin-top: 32px;
}

.charter-feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 15px;
    color: #374151;
}

.charter-visual {
    display: grid;
    gap: 20px;
}

.charter-stat-card {
    padding: 32px;
    background: linear-gradient(135deg, #0EA5E9 0%, #06B6D4 100%);
    border-radius: 16px;
    text-align: center;
    color: white;
}

.stat-number {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 16px;
    opacity: 0.9;
}

/* CTA Section */
.cta {
    padding: 60px 0;
    background: linear-gradient(135deg, #0EA5E9 0%, #06B6D4 100%);
    text-align: center;
    color: white;
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
}

.cta-title {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 16px;
}

.cta-subtitle {
    font-size: 18px;
    margin-bottom: 32px;
    opacity: 0.95;
}

.cta-note {
    margin-top: 24px;
    font-size: 15px;
    opacity: 0.9;
}

.cta-note a {
    color: white;
    text-decoration: underline;
}

/* Footer */
.footer {
    padding: 64px 0 32px;
    background: #111827;
    color: var(--text-secondary);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    margin-bottom: 48px;
}

.footer-brand {
    max-width: 300px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    font-size: 18px;
    color: white;
    margin-bottom: 12px;
}

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

.footer-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 48px;
}

.footer-heading {
    font-size: 14px;
    font-weight: 600;
    color: white;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-link {
    display: block;
    font-size: 15px;
    color: var(--text-secondary);
    text-decoration: none;
    margin-bottom: 12px;
    transition: color 0.2s;
}

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

.footer-bottom {
    padding-top: 32px;
    border-top: 1px solid var(--dark-border);
    text-align: center;
}

.footer-copyright {
    font-size: 14px;
}

.footer-copyright a {
    color: var(--primary);
    text-decoration: none;
}

.footer-copyright a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .charter-content {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 48px;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 40px;
    }

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

    .hero-cta {
        flex-direction: column;
        align-items: stretch;
    }

    .section-title {
        font-size: 32px;
    }

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

    .status-cards {
        grid-template-columns: 1fr;
    }

    .charts-row {
        grid-template-columns: 1fr;
    }

    .table-header,
    .table-row {
        font-size: 11px;
        padding: 3px 8px;
    }

    .report-summary {
        grid-template-columns: 1fr;
    }

    .charter-visual {
        grid-template-columns: 1fr;
    }

    .cta-title {
        font-size: 32px;
    }

    .footer-links {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .mockup-header {
        padding: 12px 16px;
    }

    .mockup-nav {
        display: none;
    }

    .mockup-body {
        padding: 20px;
    }
}

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

    .hero-title {
        font-size: 32px;
    }

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

    .features,
    .screenshots,
    .charter-schools,
    .cta {
        padding: 60px 0;
    }

    .section-title {
        font-size: 28px;
    }

    .table-header .table-cell,
    .table-cell {
        font-size: 11px;
    }

    .mockup-select {
        font-size: 11px;
        padding: 4px 8px;
    }

    .mockup-avatar {
        width: 24px;
        height: 24px;
    }
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content,
.feature-card,
.screenshot-container {
    animation: fadeInUp 0.6s ease-out;
}
