:root {
    --primary: #1565C0;
    --primary-dark: #0D47A1;
    --emergency: #D32F2F;
    --planned: #F57C00;
    --deferred: #1976D2;
    --bg: #fafafa;
    --card-bg: #ffffff;
    --text: #212121;
    --text-muted: #757575;
    --border: #e0e0e0;
    --shadow: 0 2px 8px rgba(0,0,0,0.1);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

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

/* Navigation */
.nav {
    background: var(--card-bg);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--text);
    font-weight: 600;
}

.logo-icon {
    font-family: 'Courier New', monospace;
    font-weight: bold;
    color: var(--primary);
}

.logo-text {
    font-size: 1.1em;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.95em;
    transition: color 0.2s;
}

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

.nav-signin {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.95em;
    transition: color 0.2s;
}

.nav-signin:hover {
    color: var(--text);
}

/* Hero */
.hero {
    padding: 80px 24px;
    text-align: center;
    background: var(--card-bg);
    border-bottom: 1px solid var(--border);
}

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

.hero h1 {
    font-size: 2.8em;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text);
}

.hero-subtitle {
    font-size: 1.3em;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.scan-form {
    margin-bottom: 24px;
}

.scan-input-group {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
    background: var(--card-bg);
    border: 2px solid var(--border);
    border-radius: 6px;
    overflow: hidden;
    transition: border-color 0.2s;
}

.scan-input-group:focus-within {
    border-color: var(--primary);
}

.scan-input-group input {
    flex: 1;
    padding: 16px 20px;
    border: none;
    font-size: 1.1em;
    outline: none;
}

.scan-input-group input::placeholder {
    color: #bbb;
}

.btn-scan {
    padding: 16px 32px;
    background: var(--primary);
    color: white;
    border: none;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}

.btn-scan:hover {
    background: var(--primary-dark);
}

.scan-options {
    margin-top: 12px;
}

.scan-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85em;
    color: var(--text-muted);
    cursor: pointer;
}

.scan-checkbox input[type="checkbox"] {
    cursor: pointer;
}

.scan-note {
    font-size: 0.85em;
    color: var(--text-muted);
    margin-top: 8px;
}

.hero-features {
    font-size: 0.95em;
    color: var(--text-muted);
    letter-spacing: 0.02em;
}

/* Trajectory Section */
.trajectory-section {
    padding: 60px 0;
    background: var(--bg);
}

.trajectory-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 24px;
    box-shadow: var(--shadow);
}

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

.trajectory-title {
    font-size: 0.85em;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}

.trajectory-status {
    font-size: 0.8em;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 4px;
}

.trajectory-status.improving {
    background: #E8F5E9;
    color: #2E7D32;
}

.trajectory-chart {
    display: grid;
    grid-template-columns: 40px 1fr;
    grid-template-rows: 1fr auto;
    gap: 8px;
    margin-bottom: 20px;
}

.chart-y-axis {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    font-size: 0.75em;
    color: var(--text-muted);
    text-align: right;
    padding-right: 8px;
}

.chart-area {
    background: #f8f9fa;
    border-radius: 4px;
    padding: 10px;
    height: 200px;
}

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

.chart-x-axis {
    grid-column: 2;
    display: flex;
    justify-content: space-between;
    font-size: 0.75em;
    color: var(--text-muted);
    padding: 0 10px;
}

.trajectory-metrics {
    display: flex;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    font-size: 0.9em;
    color: var(--text-muted);
}

.trajectory-metrics strong {
    color: var(--text);
}

.example-label {
    font-size: 0.75em;
    color: var(--text-muted);
    text-align: center;
    margin-top: 16px;
    font-style: italic;
}

/* Priority Buckets */
.buckets-section {
    padding: 40px 0 60px;
    background: var(--bg);
}

.buckets-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.bucket {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 20px;
    box-shadow: var(--shadow);
}

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

.bucket-title {
    font-size: 0.85em;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.bucket-emergency .bucket-title { color: var(--emergency); }
.bucket-planned .bucket-title { color: var(--planned); }
.bucket-deferred .bucket-title { color: var(--deferred); }

.bucket-count {
    font-size: 0.85em;
    color: var(--text-muted);
}

.bucket-divider {
    height: 1px;
    background: var(--border);
    margin-bottom: 16px;
}

.bucket-list {
    list-style: none;
    margin-bottom: 16px;
}

.bucket-list li {
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    color: var(--text);
    padding: 6px 0;
}

.bucket-note {
    font-size: 0.8em;
    color: var(--text-muted);
}

.bucket-emergency .bucket-note::before {
    content: "\26A0";
    margin-right: 6px;
}

.bucket-planned .bucket-note::before {
    content: "\25CB";
    margin-right: 6px;
}

/* Features Section */
.features-section {
    padding: 60px 0;
    background: var(--card-bg);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 60px;
}

.feature h3 {
    font-size: 1.1em;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text);
    border-bottom: 1px solid var(--border);
    padding-bottom: 12px;
}

.feature-content {
    color: var(--text-muted);
    font-size: 0.95em;
}

.feature-content code {
    display: block;
    font-family: 'Courier New', monospace;
    background: #f5f5f5;
    padding: 12px 16px;
    border-radius: 4px;
    margin-bottom: 12px;
    color: var(--text);
    font-size: 0.95em;
}

.feature-content p {
    margin-bottom: 6px;
}

.feature-content strong {
    color: var(--text);
}

/* Pricing Section */
.pricing-section {
    padding: 40px 0 60px;
    background: var(--bg);
}

.pricing-title {
    text-align: center;
    font-size: 1.4em;
    font-weight: 600;
    margin-bottom: 24px;
    color: var(--text);
}

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

.pricing-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 20px;
    box-shadow: var(--shadow);
}

.pricing-card-featured {
    border: 2px solid var(--primary);
}

.pricing-header {
    margin-bottom: 12px;
}

.pricing-card h3 {
    font-size: 0.85em;
    font-weight: 700;
    letter-spacing: 0.03em;
    color: var(--primary);
    margin-bottom: 4px;
}

.pricing-price {
    font-size: 1.5em;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 12px;
}

.pricing-price span {
    font-size: 0.5em;
    color: var(--text-muted);
    font-weight: 400;
}

.pricing-divider {
    height: 1px;
    background: var(--border);
    margin-bottom: 16px;
}

.pricing-features {
    list-style: none;
    margin-bottom: 16px;
}

.pricing-features li {
    font-size: 0.9em;
    color: var(--text);
    padding: 6px 0;
}

.btn-pricing {
    display: block;
    padding: 10px 16px;
    background: var(--primary);
    color: white;
    text-decoration: none;
    font-size: 0.85em;
    font-weight: 600;
    border-radius: 4px;
    text-align: center;
    transition: background 0.2s;
}

.btn-pricing:hover {
    background: var(--primary-dark);
}

/* CTA Section */
.cta-section {
    padding: 60px 0;
    text-align: center;
    background: var(--bg);
}

.btn-cta {
    display: inline-block;
    padding: 16px 48px;
    background: var(--primary);
    color: white;
    text-decoration: none;
    font-size: 1.1em;
    font-weight: 600;
    border-radius: 6px;
    transition: background 0.2s, transform 0.2s;
}

.btn-cta:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

/* Footer */
.footer {
    padding: 40px 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9em;
    border-top: 1px solid var(--border);
    background: var(--card-bg);
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero {
        padding: 50px 20px;
    }

    .hero h1 {
        font-size: 2em;
    }

    .hero-subtitle {
        font-size: 1.1em;
    }

    .scan-input-group {
        flex-direction: column;
        border-radius: 6px;
    }

    .scan-input-group input {
        border-bottom: 1px solid var(--border);
    }

    .btn-scan {
        border-radius: 0;
    }

    .hero-features {
        font-size: 0.85em;
    }

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

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

    .trajectory-metrics {
        flex-direction: column;
        gap: 8px;
    }

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

@media (min-width: 769px) and (max-width: 1024px) {
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
