/* ===== Reset & Base ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-bg: #0b0b0f;
    --color-surface: #141419;
    --color-surface-2: #1c1c24;
    --color-border: #2a2a35;
    --color-text: #e8e8ed;
    --color-text-muted: #9a9aab;
    --color-accent: #3e68ff;
    --color-accent-hover: #5a82ff;
    --color-red: #e82127;
    --color-red-hover: #ff3b3f;
    --color-green: #22c55e;
    --color-gold: #f59e0b;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 4px 24px rgba(0,0,0,0.3);
    --transition: 0.2s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.7;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--color-accent-hover);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ===== Language Bar ===== */
.lang-bar {
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background: rgba(20, 20, 25, 0.92);
}

.lang-bar-inner {
    display: flex;
    align-items: center;
    gap: 12px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.lang-bar-inner::-webkit-scrollbar {
    display: none;
}

.lang-label {
    font-size: 18px;
    flex-shrink: 0;
}

.lang-links {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

.lang-links a {
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    color: var(--color-text-muted);
    transition: all var(--transition);
    white-space: nowrap;
    border: 1px solid transparent;
}

.lang-links a:hover {
    color: var(--color-text);
    background: var(--color-surface-2);
}

.lang-links a.active {
    color: var(--color-text);
    background: var(--color-accent);
    border-color: var(--color-accent);
}

/* ===== Hero ===== */
.hero {
    text-align: center;
    padding: 0;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--color-border);
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.25;
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 80px 24px 60px;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #fff 0%, #c0c0d0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: var(--color-text-muted);
    margin-bottom: 32px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-subtitle strong {
    color: var(--color-green);
    font-weight: 600;
}

.hero-shortlink {
    margin-top: 16px;
    font-size: 14px;
    color: var(--color-text-muted);
}

.hero-updated {
    margin-top: 10px;
    font-size: 13px;
    color: var(--color-text-muted);
    opacity: 0.7;
    font-style: italic;
}

/* ===== CTA Button ===== */
.cta-button {
    display: inline-block;
    padding: 14px 36px;
    background: var(--color-red);
    color: #fff;
    font-weight: 600;
    font-size: 16px;
    border-radius: 50px;
    transition: all var(--transition);
    border: none;
    cursor: pointer;
    text-decoration: none;
}

.cta-button:hover {
    background: var(--color-red-hover);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(232, 33, 39, 0.3);
}

.cta-large {
    padding: 18px 48px;
    font-size: 18px;
}

/* ===== Sections ===== */
.section {
    padding: 64px 0;
}

.section h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    margin-bottom: 32px;
    letter-spacing: -0.01em;
}

/* ===== Key Facts (GEO TL;DR) ===== */
.keyfacts-section {
    padding: 48px 0 0;
}

.keyfacts-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 32px;
    border-left: 4px solid var(--color-green);
}

.keyfacts-card h2 {
    font-size: clamp(1.2rem, 2.5vw, 1.6rem);
    margin-bottom: 16px;
}

.keyfacts-card > p {
    color: var(--color-text-muted);
    line-height: 1.8;
    margin-bottom: 20px;
}

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

.keyfact {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    padding: 16px;
    text-align: center;
}

.keyfact-value {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: var(--color-green);
    margin-bottom: 4px;
}

.keyfact-label {
    font-size: 12px;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.keyfacts-source {
    font-size: 12px;
    color: var(--color-text-muted);
    margin-bottom: 0;
}

/* ===== Summary Card ===== */
.summary-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 32px;
}

.summary-card h2 {
    margin-bottom: 16px;
}

.summary-card > p {
    color: var(--color-text-muted);
    margin-bottom: 24px;
    line-height: 1.8;
}

.benefit-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.benefit-item {
    background: var(--color-surface-2);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    padding: 20px;
    text-align: center;
}

.benefit-item .benefit-icon {
    font-size: 28px;
    margin-bottom: 8px;
}

.benefit-item .benefit-label {
    font-size: 13px;
    color: var(--color-text-muted);
    margin-bottom: 4px;
}

.benefit-item .benefit-value {
    font-size: 16px;
    font-weight: 600;
    color: var(--color-green);
}

.summary-note {
    font-size: 14px;
    color: var(--color-text-muted);
    font-style: italic;
}

.solar-banner {
    margin-top: 20px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--color-border);
}

.solar-banner img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.solar-banner p {
    padding: 14px 20px;
    font-size: 14px;
    color: var(--color-text-muted);
    background: var(--color-surface-2);
}

/* ===== Vehicle Grid ===== */
.vehicle-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin-bottom: 24px;
}

.vehicle-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition);
}

.vehicle-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.vehicle-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.vehicle-card h3 {
    padding: 16px 20px 8px;
    font-size: 18px;
    font-weight: 600;
}

.vehicle-card p {
    padding: 0 20px 16px;
    font-size: 14px;
    color: var(--color-text-muted);
}

.badge {
    display: inline-block;
    margin: 0 20px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-fsd {
    background: rgba(34, 197, 94, 0.15);
    color: var(--color-green);
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.not-eligible {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    padding: 16px 24px;
}

.not-eligible p {
    color: var(--color-text-muted);
    font-size: 14px;
}

/* ===== Table ===== */
.table-wrapper {
    overflow-x: auto;
    border-radius: var(--radius);
    border: 1px solid var(--color-border);
    margin-bottom: 16px;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

thead {
    background: var(--color-surface-2);
}

th {
    padding: 14px 20px;
    text-align: left;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-muted);
    border-bottom: 1px solid var(--color-border);
}

td {
    padding: 14px 20px;
    border-bottom: 1px solid var(--color-border);
}

tr:last-child td {
    border-bottom: none;
}

tbody tr {
    background: var(--color-surface);
    transition: background var(--transition);
}

tbody tr:hover {
    background: var(--color-surface-2);
}

.table-note {
    font-size: 13px;
    color: var(--color-text-muted);
    font-style: italic;
}

/* ===== Steps ===== */
.steps-section {
    background: var(--color-surface);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.step {
    display: flex;
    gap: 24px;
    margin-bottom: 40px;
    align-items: flex-start;
}

.step:last-child {
    margin-bottom: 0;
}

.step-number {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: var(--color-accent);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 20px;
}

.step-content h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.step-content p {
    color: var(--color-text-muted);
    margin-bottom: 12px;
}

.referral-box {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    margin-bottom: 12px;
    overflow-x: auto;
}

.referral-box code {
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 14px;
    color: var(--color-accent);
    flex: 1;
    word-break: break-all;
}

.url-check code {
    color: var(--color-green);
    font-weight: 600;
}

.copy-btn {
    flex-shrink: 0;
    padding: 6px 16px;
    background: var(--color-surface-2);
    color: var(--color-text);
    border: 1px solid var(--color-border);
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
}

.copy-btn:hover {
    background: var(--color-accent);
    border-color: var(--color-accent);
}

.step-alt {
    font-size: 14px;
}

.info-box {
    background: rgba(62, 104, 255, 0.08);
    border: 1px solid rgba(62, 104, 255, 0.2);
    border-radius: var(--radius-sm);
    padding: 16px;
}

.info-box p {
    color: var(--color-text);
    margin-bottom: 0;
    font-size: 14px;
}

/* ===== FAQ ===== */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 20px 24px;
    background: none;
    border: none;
    color: var(--color-text);
    font-size: 16px;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    font-family: inherit;
    transition: background var(--transition);
}

.faq-question:hover {
    background: var(--color-surface-2);
}

.faq-question::after {
    content: '+';
    font-size: 22px;
    font-weight: 300;
    color: var(--color-text-muted);
    flex-shrink: 0;
    transition: transform var(--transition);
}

.faq-item.open .faq-question::after {
    content: '−';
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-answer-inner {
    padding: 0 24px 20px;
    color: var(--color-text-muted);
    line-height: 1.8;
    font-size: 15px;
}

.faq-item.open .faq-answer {
    max-height: 500px;
}

/* ===== CTA Section ===== */
.cta-section {
    text-align: center;
    background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-surface) 100%);
    padding: 80px 0;
}

.cta-section h2 {
    margin-bottom: 16px;
}

.cta-section p {
    color: var(--color-text-muted);
    margin-bottom: 32px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== Footer ===== */
.footer {
    border-top: 1px solid var(--color-border);
    padding: 40px 0;
    text-align: center;
}

.footer p {
    font-size: 13px;
    color: var(--color-text-muted);
    margin-bottom: 8px;
    line-height: 1.6;
}

.footer-copy {
    margin-top: 16px;
    font-size: 12px;
    color: var(--color-text-muted);
    opacity: 0.6;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .hero-content {
        padding: 60px 24px 40px;
    }

    .section {
        padding: 48px 0;
    }

    .step {
        flex-direction: column;
        gap: 12px;
    }

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

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

    table {
        font-size: 13px;
    }

    th, td {
        padding: 10px 14px;
    }

    .referral-box {
        flex-direction: column;
        align-items: stretch;
    }

    .copy-btn {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .lang-links a {
        padding: 4px 8px;
        font-size: 12px;
    }
}
