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

:root {
    --brand: #1a365d;
    --brand-light: #2a4a7f;
    --accent: #3b82f6;
    --accent-hover: #2563eb;
    --text: #1f2937;
    --text-muted: #6b7280;
    --bg: #ffffff;
    --bg-alt: #f8fafc;
    --bg-dark: #0f172a;
    --border: #e5e7eb;
    --radius: 10px;
    --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.08);
}

html { scroll-behavior: smooth; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* ── Navigation ────────────────────────────────────────────────── */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}
.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.nav-brand { display: flex; align-items: center; text-decoration: none; }
.nav-logo {
    height: 36px;
}
.nav-links { display: flex; gap: 32px; }
.nav-links a {
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    transition: color 0.15s;
}
.nav-links a:hover { color: var(--text); }
.nav-actions { display: flex; gap: 12px; align-items: center; }

/* ── Buttons ───────────────────────────────────────────────────── */
.btn-primary {
    background: var(--accent);
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
}
.btn-primary:hover { background: var(--accent-hover); }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; }

.btn-ghost {
    background: none;
    border: none;
    color: var(--text);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    padding: 10px 16px;
    border-radius: 8px;
    transition: background 0.15s;
}
.btn-ghost:hover { background: #f3f4f6; }

.btn-outline {
    background: none;
    border: 2px solid var(--accent);
    color: var(--accent);
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
}
.btn-outline:hover { background: var(--accent); color: white; }

.btn-lg { padding: 14px 36px; font-size: 16px; }
.btn-full { width: 100%; }

/* ── Hero ──────────────────────────────────────────────────────── */
.hero {
    padding: 140px 32px 80px;
    text-align: center;
    background: linear-gradient(165deg, #0f172a 0%, #1e3a5f 50%, #1a365d 100%);
    color: white;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(ellipse at 30% 20%, rgba(59,130,246,0.15) 0%, transparent 60%),
                radial-gradient(ellipse at 70% 80%, rgba(59,130,246,0.1) 0%, transparent 50%);
    pointer-events: none;
}
.hero-inner {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}
.hero-badge {
    display: inline-block;
    background: rgba(59,130,246,0.2);
    border: 1px solid rgba(59,130,246,0.3);
    color: #93c5fd;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.02em;
    margin-bottom: 24px;
}
.hero h1 {
    font-size: 52px;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}
.hero-sub {
    font-size: 18px;
    color: #cbd5e1;
    max-width: 600px;
    margin: 0 auto 36px;
    line-height: 1.7;
}
.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 56px;
}
.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    padding-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.12);
}
.hero-stat { text-align: center; }
.hero-stat-num {
    display: block;
    font-size: 32px;
    font-weight: 800;
    color: white;
}
.hero-stat-label {
    font-size: 13px;
    color: #94a3b8;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.hero-stat-sep {
    width: 1px;
    height: 40px;
    background: rgba(255,255,255,0.15);
}

/* ── Sections ──────────────────────────────────────────────────── */
.section-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 32px;
}
.section-inner h2 {
    font-size: 36px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}
.section-sub {
    text-align: center;
    color: var(--text-muted);
    font-size: 17px;
    max-width: 600px;
    margin: 0 auto 48px;
}

/* ── Features ──────────────────────────────────────────────────── */
.features {
    padding: 96px 32px;
    background: var(--bg);
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.feature-card {
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    transition: box-shadow 0.2s, transform 0.2s;
}
.feature-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}
.feature-icon {
    font-size: 28px;
    margin-bottom: 16px;
}
.feature-card h3 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--brand);
}
.feature-card p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.65;
}

/* ── Coverage ──────────────────────────────────────────────────── */
.coverage {
    padding: 96px 32px;
    background: var(--bg-alt);
}
.metro-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.metro-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
}
.metro-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 14px;
    color: var(--brand);
}
.metro-counties {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.county-tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
}
.county-tag.active {
    background: #dbeafe;
    color: #1d4ed8;
    border: 1px solid #93c5fd;
}
.county-tag.coming {
    background: #f3f4f6;
    color: #9ca3af;
    border: 1px solid #e5e7eb;
}
.coverage-legend {
    display: flex;
    gap: 32px;
    justify-content: center;
    margin-top: 36px;
}
.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-muted);
}

/* ── About ─────────────────────────────────────────────────────── */
.about {
    padding: 96px 32px;
    background: var(--bg);
}
.about-content {
    max-width: 720px;
    margin: 0 auto;
}
.about-content h2 {
    text-align: left;
    margin-bottom: 24px;
}
.about-content p {
    font-size: 16px;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 20px;
}
.about-brand {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    font-size: 14px;
    color: var(--text-muted);
}
.about-nvest {
    width: 24px;
    height: 24px;
    opacity: 0.5;
}

/* ── Footer ────────────────────────────────────────────────────── */
.footer {
    padding: 48px 32px;
    background: var(--bg-dark);
    color: #94a3b8;
}
.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.footer-brand { display: flex; flex-direction: column; gap: 10px; }
.footer-logo-row { display: flex; align-items: center; gap: 10px; }
.footer-logo-icon { height: 32px; }
.footer-logo-text { font-size: 20px; font-weight: 700; color: #e2e8f0; letter-spacing: 0.5px; }
.footer-brand p { font-size: 13px; }
.footer-right { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.footer-links { display: flex; gap: 20px; }
.footer-links a { font-size: 13px; color: #94a3b8; text-decoration: none; }
.footer-links a:hover { color: #e2e8f0; }
.footer-copy { font-size: 13px; }

/* ── Modal ─────────────────────────────────────────────────────── */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
}
.modal-card {
    background: white;
    border-radius: 16px;
    padding: 40px;
    width: 440px;
    max-width: 95vw;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 25px 50px rgba(0,0,0,0.25);
}
.modal-close {
    position: absolute;
    top: 16px; right: 20px;
    background: none; border: none;
    font-size: 24px; color: #9ca3af;
    cursor: pointer;
    line-height: 1;
}
.modal-close:hover { color: var(--text); }
.modal-logo {
    display: block;
    height: 36px;
    margin: 0 auto 24px;
}
.modal-card h2 {
    font-size: 22px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 4px;
}
.modal-sub {
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 24px;
}

/* ── Forms ──────────────────────────────────────────────────────── */
.form-group {
    margin-bottom: 16px;
}
.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
}
.form-group .optional {
    font-weight: 400;
    color: var(--text-muted);
}
.form-group input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.15s, box-shadow 0.15s;
    outline: none;
}
.form-group input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(59,130,246,0.1);
}
.form-row {
    margin-bottom: 20px;
}
.form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-muted);
    cursor: pointer;
}
.checkbox-label input { width: auto; }
.form-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 16px;
}
.form-switch {
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 20px;
}
.form-switch a {
    color: var(--accent);
    font-weight: 600;
    text-decoration: none;
}
.form-switch a:hover { text-decoration: underline; }

/* ── Responsive ────────────────────────────────────────────────── */
@media (max-width: 900px) {
    .features-grid, .metro-grid { grid-template-columns: repeat(2, 1fr); }
    .hero h1 { font-size: 36px; }
    .nav-links { display: none; }
}
@media (max-width: 600px) {
    .features-grid, .metro-grid { grid-template-columns: 1fr; }
    .hero h1 { font-size: 28px; }
    .hero-stats { flex-direction: column; gap: 20px; }
    .hero-stat-sep { width: 40px; height: 1px; }
    .footer-inner { flex-direction: column; gap: 16px; text-align: center; }
    .hero-actions { flex-direction: column; align-items: center; }
}
