/* ===== CSS Variables & Reset ===== */
:root {
    --bg-primary: #0a0f1a;
    --bg-secondary: #111827;
    --bg-card: rgba(17, 24, 39, 0.7);
    --bg-glass: rgba(255, 255, 255, 0.04);
    --border-glass: rgba(255, 255, 255, 0.08);
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --accent: #10b981;
    --accent-light: #34d399;
    --accent-glow: rgba(16, 185, 129, 0.15);
    --accent-2: #06b6d4;
    --accent-gold: #f59e0b;
    --danger: #ef4444;
    --radius: 16px;
    --radius-sm: 10px;
    --radius-xs: 6px;
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 40px rgba(16, 185, 129, 0.08);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--font);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== Background Particles ===== */
.bg-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.bg-particles::before,
.bg-particles::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.15;
    animation: float 20s ease-in-out infinite;
}

.bg-particles::before {
    width: 600px;
    height: 600px;
    background: var(--accent);
    top: -200px;
    right: -200px;
}

.bg-particles::after {
    width: 500px;
    height: 500px;
    background: var(--accent-2);
    bottom: -150px;
    left: -150px;
    animation-delay: -10s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.05); }
    66% { transform: translate(-20px, 20px) scale(0.95); }
}

/* ===== Header ===== */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10, 15, 26, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-glass);
}

.header-content {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

.logo-icon svg {
    width: 100%;
    height: 100%;
}

.logo-text {
    font-size: 1.3rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent-light), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}

.logo-sub {
    font-size: 0.7rem;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-weight: 500;
}

.nav-links {
    display: flex;
    gap: 8px;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: var(--radius-xs);
    font-size: 0.875rem;
    font-weight: 500;
    transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
    color: var(--text-primary);
    background: var(--bg-glass);
}

/* ===== Hero ===== */
.hero {
    position: relative;
    padding: 80px 24px 60px;
    text-align: center;
    z-index: 1;
}

.hero-content {
    max-width: 700px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-block;
    padding: 6px 16px;
    background: var(--accent-glow);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--accent-light);
    margin-bottom: 24px;
    letter-spacing: 0.03em;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 20px;
    letter-spacing: -0.03em;
}

.gradient-text {
    background: linear-gradient(135deg, var(--accent-light) 0%, var(--accent-2) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-desc {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 36px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: linear-gradient(135deg, var(--accent), #059669);
    color: white;
    text-decoration: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.3);
}

.hero-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(16, 185, 129, 0.4);
}

.hero-cta .arrow {
    transition: transform 0.3s;
}

.hero-cta:hover .arrow {
    transform: translateX(4px);
}

/* ===== Tool Section ===== */
.tool-section {
    position: relative;
    z-index: 1;
    padding: 0 0 80px;
}

.tool-grid {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 24px;
    align-items: start;
}

/* ===== Panel (Glass Cards) ===== */
.panel {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow);
}

.panel-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
}

.panel-header h3 {
    font-size: 1.05rem;
    font-weight: 600;
    flex: 1;
}

.panel-icon {
    font-size: 1.2rem;
}

/* ===== Input Panel ===== */
.input-panel {
    position: sticky;
    top: 96px;
}

.input-group {
    margin-bottom: 22px;
}

.input-group label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.input-badge {
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    padding: 3px 10px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent-light);
    font-variant-numeric: tabular-nums;
}

.optional-tag {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 400;
    font-style: italic;
    margin-left: 6px;
}

/* Slider */
.slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 3px;
    outline: none;
    cursor: pointer;
    transition: var(--transition);
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--accent);
    cursor: pointer;
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.4);
    transition: var(--transition);
}

.slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.6);
}

.slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--accent);
    cursor: pointer;
    border: none;
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.4);
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 6px;
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* Select */
.select-input {
    width: 100%;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-xs);
    color: var(--text-primary);
    font-family: var(--font);
    font-size: 0.88rem;
    cursor: pointer;
    outline: none;
    transition: var(--transition);
}

.select-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.select-input option {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

/* Price buttons */
.price-inputs {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.price-btn {
    padding: 7px 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-xs);
    color: var(--text-secondary);
    font-family: var(--font);
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.price-btn:hover {
    background: var(--accent-glow);
    border-color: rgba(16, 185, 129, 0.3);
    color: var(--accent-light);
}

.price-btn.active {
    background: var(--accent-glow);
    border-color: var(--accent);
    color: var(--accent-light);
}

.price-custom {
    width: 70px;
    padding: 7px 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-xs);
    color: var(--text-primary);
    font-family: var(--font);
    font-size: 0.82rem;
    outline: none;
    transition: var(--transition);
}

.price-custom:focus {
    border-color: var(--accent);
}

/* Calculate Button */
.calculate-btn {
    width: 100%;
    padding: 14px 24px;
    background: linear-gradient(135deg, var(--accent), #059669);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-family: var(--font);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.25);
    margin-top: 8px;
}

.calculate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(16, 185, 129, 0.4);
}

.calculate-btn:active {
    transform: translateY(0);
}

/* ===== Results Area ===== */
.results-area {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Metric Cards */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.metric-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius);
    padding: 22px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.metric-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0;
    transition: var(--transition);
}

.metric-card:hover::before {
    opacity: 1;
}

.metric-card:hover {
    border-color: rgba(16, 185, 129, 0.2);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.metric-card.highlight {
    border-color: rgba(16, 185, 129, 0.25);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.08), var(--bg-card));
}

.metric-card.highlight::before {
    opacity: 1;
}

.metric-card.accent {
    border-color: rgba(245, 158, 11, 0.2);
}

.metric-card.accent::before {
    background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
}

.metric-icon {
    font-size: 1.3rem;
    margin-bottom: 12px;
}

.metric-data {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 6px;
}

.metric-value {
    font-size: 1.7rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
    color: var(--text-primary);
}

.metric-unit {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 500;
}

.metric-label {
    font-size: 0.78rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* ===== Chart ===== */
.chart-panel {
    min-height: 400px;
}

.chart-toggle {
    display: flex;
    gap: 4px;
    background: rgba(255, 255, 255, 0.04);
    padding: 3px;
    border-radius: var(--radius-xs);
}

.toggle-btn {
    padding: 6px 14px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-family: var(--font);
    font-size: 0.78rem;
    font-weight: 500;
    cursor: pointer;
    border-radius: 4px;
    transition: var(--transition);
}

.toggle-btn.active {
    background: var(--accent-glow);
    color: var(--accent-light);
}

.chart-container {
    position: relative;
    height: 360px;
    margin-top: 8px;
}

/* ===== Simulation Controls ===== */
.sim-controls {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border-glass);
}

.sim-top-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
}

.sim-btn {
    padding: 10px 24px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-family: var(--font);
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.25);
    white-space: nowrap;
}

.sim-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.4);
}

.sim-btn.simulating {
    background: linear-gradient(135deg, #ef4444, #f43f5e);
    box-shadow: 0 4px 20px rgba(239, 68, 68, 0.25);
    animation: simPulse 1.5s ease-in-out infinite;
}

@keyframes simPulse {
    0%, 100% { box-shadow: 0 4px 20px rgba(239, 68, 68, 0.25); }
    50% { box-shadow: 0 4px 30px rgba(239, 68, 68, 0.5); }
}

.sim-speed-control {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    color: var(--text-secondary);
}

.sim-speed-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 80px;
    height: 4px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 2px;
    outline: none;
    cursor: pointer;
}

.sim-speed-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #8b5cf6;
    cursor: pointer;
}

.sim-speed-label {
    font-size: 0.72rem;
    color: var(--text-muted);
    min-width: 40px;
}

.sim-display {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sim-year-box, .sim-carbon-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 60px;
}

.sim-label {
    font-size: 0.68rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
}

.sim-year {
    font-size: 1.8rem;
    font-weight: 800;
    color: #8b5cf6;
    font-variant-numeric: tabular-nums;
    transition: transform 0.15s ease;
}

.sim-year.pulse {
    transform: scale(1.15);
}

.sim-carbon {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent-light);
    font-variant-numeric: tabular-nums;
}

.sim-progress-track {
    flex: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 3px;
    overflow: hidden;
}

.sim-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #6366f1, #8b5cf6, var(--accent-light));
    border-radius: 3px;
    transition: width 0.1s linear;
}

/* ===== Comparison Table ===== */
.table-wrapper {
    overflow-x: auto;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.84rem;
}

.comparison-table thead th {
    text-align: left;
    padding: 12px 14px;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--border-glass);
    white-space: nowrap;
}

.comparison-table tbody td {
    padding: 12px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.comparison-table tbody tr {
    transition: var(--transition);
}

.comparison-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

.comparison-table tbody tr.best-row {
    background: var(--accent-glow);
}

.comparison-table tbody tr.best-row td {
    color: var(--accent-light);
    font-weight: 500;
}

.tag {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: 600;
}

.tag-best {
    background: rgba(16, 185, 129, 0.15);
    color: var(--accent-light);
}

.tag-good {
    background: rgba(6, 182, 212, 0.12);
    color: var(--accent-2);
}

.tag-caution {
    background: rgba(245, 158, 11, 0.12);
    color: var(--accent-gold);
}

.tag-poor {
    background: rgba(239, 68, 68, 0.12);
    color: var(--danger);
}

/* ===== Recommendations ===== */
.reco-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.reco-placeholder {
    color: var(--text-muted);
    font-size: 0.9rem;
    text-align: center;
    padding: 30px;
}

.reco-item {
    display: flex;
    gap: 14px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--accent);
    transition: var(--transition);
}

.reco-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.reco-item.warning {
    border-left-color: var(--accent-gold);
}

.reco-item.info {
    border-left-color: var(--accent-2);
}

.reco-icon {
    font-size: 1.3rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.reco-text h4 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.reco-text p {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ===== About Section ===== */
.about-section {
    position: relative;
    z-index: 1;
    padding: 60px 0 80px;
    border-top: 1px solid var(--border-glass);
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.about-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius);
    padding: 28px;
}

.about-card h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.about-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.about-card em {
    color: var(--accent-light);
    font-style: italic;
}

/* ===== Footer ===== */
.footer {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 32px 24px;
    border-top: 1px solid var(--border-glass);
    font-size: 0.82rem;
    color: var(--text-muted);
}

.footer-sub {
    margin-top: 6px;
    font-size: 0.75rem;
    color: var(--text-muted);
    opacity: 0.6;
}

/* ===== Animations ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.metric-card {
    animation: fadeInUp 0.6s ease forwards;
}

.metric-card:nth-child(1) { animation-delay: 0s; }
.metric-card:nth-child(2) { animation-delay: 0.08s; }
.metric-card:nth-child(3) { animation-delay: 0.16s; }
.metric-card:nth-child(4) { animation-delay: 0.24s; }
.metric-card:nth-child(5) { animation-delay: 0.32s; }
.metric-card:nth-child(6) { animation-delay: 0.4s; }

/* ===== Policy Panel ===== */
.policy-panel {
    border-color: rgba(245, 158, 11, 0.15);
}

.policy-badge {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--accent-gold);
    background: rgba(245, 158, 11, 0.12);
    padding: 4px 10px;
    border-radius: 50px;
    letter-spacing: 0.03em;
}

.policy-intro {
    font-size: 0.88rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.6;
}

.policy-inputs {
    margin-bottom: 20px;
}

.policy-input-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.policy-field {
    width: 100%;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-xs);
    color: var(--text-primary);
    font-family: var(--font);
    font-size: 0.88rem;
    font-variant-numeric: tabular-nums;
    outline: none;
    transition: var(--transition);
}

.policy-field:focus {
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.12);
}

.field-hint {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.policy-actions {
    display: flex;
    gap: 12px;
}

.policy-btn {
    background: linear-gradient(135deg, var(--accent-gold), #d97706) !important;
    box-shadow: 0 4px 20px rgba(245, 158, 11, 0.25) !important;
    flex: 1;
}

.policy-btn:hover {
    box-shadow: 0 8px 30px rgba(245, 158, 11, 0.4) !important;
}

.export-btn {
    padding: 14px 24px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-family: var(--font);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.export-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent);
    color: var(--text-primary);
}

/* Policy Results */
.policy-results {
    margin-top: 20px;
}

.policy-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.policy-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius);
    padding: 22px;
    text-align: center;
    transition: var(--transition);
}

.policy-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.12);
}

.policy-card.national { border-top: 3px solid var(--accent); }
.policy-card.ndc { border-top: 3px solid var(--accent-gold); }
.policy-card.redd { border-top: 3px solid var(--danger); }

.policy-card-icon {
    font-size: 1.6rem;
    margin-bottom: 8px;
}

.policy-card h4 {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.policy-stat {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 6px;
    margin-bottom: 10px;
}

.policy-big {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
}

.policy-card.national .policy-big { color: var(--accent-light); }
.policy-card.ndc .policy-big { color: var(--accent-gold); }
.policy-card.redd .policy-big { color: var(--danger); }

.policy-unit {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
}

.policy-card p {
    font-size: 0.78rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.policy-sub {
    margin-top: 10px;
    font-size: 0.72rem;
    color: var(--text-muted);
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* Scenario Comparison */
.scenario-compare {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius);
    padding: 24px;
}

.scenario-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.scenario-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 16px;
    align-items: start;
}

.scenario-col {
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.scenario-header {
    padding: 12px 16px;
    font-size: 0.82rem;
    font-weight: 600;
    text-align: center;
}

.scenario-header.short {
    background: rgba(245, 158, 11, 0.12);
    color: var(--accent-gold);
}

.scenario-header.long {
    background: rgba(16, 185, 129, 0.12);
    color: var(--accent-light);
}

.scenario-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 16px;
    font-size: 0.82rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.scenario-row span { color: var(--text-secondary); }
.scenario-row strong { color: var(--text-primary); font-variant-numeric: tabular-nums; }

.scenario-vs {
    display: flex;
    align-items: center;
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--text-muted);
    padding-top: 50px;
}

.scenario-gain {
    margin-top: 16px;
    padding: 14px 18px;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    color: var(--accent-light);
    text-align: center;
}

/* About grid — updated for 6 cards */
.about-grid {
    grid-template-columns: repeat(3, 1fr);
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .tool-grid {
        grid-template-columns: 1fr;
    }

    .input-panel {
        position: static;
    }

    .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero {
        padding: 50px 24px 40px;
    }

    .metrics-grid {
        grid-template-columns: 1fr 1fr;
    }

    .header-content {
        height: 60px;
    }

    .nav-links {
        display: none;
    }

    .panel {
        padding: 20px;
    }

    .chart-container {
        height: 280px;
    }
}

@media (max-width: 480px) {
    .metrics-grid {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: 1.6rem;
    }

    .metric-value {
        font-size: 1.4rem;
    }
}
