:root {
    --bg: #000000;
    --surface: #000000;
    --surface-muted: #000000;
    --border: rgba(255, 255, 255, 0.25);
    --text-primary: #ffffff;
    --text-muted: #f5f5f5;
    --accent: #1ca350;
    --accent-hover: #29b675;
    --shadow: 0 25px 75px rgba(0, 0, 0, 0.55);
    --shadow-lg: 0 35px 100px rgba(0, 0, 0, 0.7);
    font-family: 'Lato', sans-serif;
    --font-heading: 'Instrument Sans', sans-serif;
    --font-body: 'Lato', sans-serif;
    line-height: 1.6;
    color-scheme: dark;
}

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

body {
    min-height: 100vh;
    background-color: var(--bg);
    background: var(--bg);
    color: var(--text-primary);
}

nav {
    position: sticky;
    top: 1rem;
    z-index: 50;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem clamp(1.5rem, 4vw, 3.5rem);
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border);
    border-radius: 999px;
    backdrop-filter: blur(4px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav img.nav-logo {
    height: 22px;
    width: auto;
    display: block;
    object-fit: contain;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    justify-content: flex-end;
}

nav a {
    color: var(--text-muted);
    font-family: var(--font-heading);
    font-weight: 500;
    letter-spacing: 0.02em;
    text-decoration: none;
    transition: color 0.2s ease;
}

nav a:hover {
    color: var(--text-primary);
    text-decoration: underline;
}

    @media (max-width: 900px) {
        .discover-grid {
            grid-template-columns: 1fr;
        }
        .discover-right { grid-template-rows: auto auto; }
        .discover-card { min-height: 0; }
    }

.hero {
    min-height: 85vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: clamp(3rem, 8vw, 6rem) clamp(1.5rem, 4vw, 3.5rem);
    max-width: 1200px;
    margin: 0 auto;
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 7vw, 5rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.04em;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.hero > p {
    font-family: var(--font-body);
    font-size: clamp(1.25rem, 2vw, 1.5rem);
    font-weight: 400;
    margin-bottom: 2.5rem;
    max-width: 60ch;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    color: var(--text-muted);
}

.button-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.cta {
    font-family: var(--font-heading);
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
}

.cta-primary {
    background: rgba(28, 163, 80, 0.15);
    border: 2px solid #0d7a3d;
    color: var(--accent);
}

.cta-primary:hover {
    background: rgba(28, 163, 80, 0.25);
    transform: translateY(-2px);
}

.cta-secondary {
    background: #000000;
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
}

.cta-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}

.cta a,
.cta a:visited,
.cta a:hover,
.cta a:active {
    color: inherit;
    text-decoration: none;
}

.hero > p:last-of-type {
    margin-top: 0.5rem;
    margin-bottom: 0;
}

.hero p {
    color: var(--text-primary);
    font-weight: 200;
}

.hero p strong {
    font-weight: 200;
}

section {
    padding: clamp(4rem, 8vw, 6rem) clamp(1.5rem, 4vw, 3.5rem);
    max-width: 1200px;
    margin: 0 auto;
}

.discover {
    padding: clamp(4rem, 8vw, 6rem) clamp(1.5rem, 4vw, 3.5rem);
    max-width: 1200px;
    margin: 0 auto;
}

section h2 {
    font-family: var(--font-heading);
    font-size: clamp(2.25rem, 5vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 2rem;
    text-align: left;
    color: var(--text-primary);
}

.discover-grid {
    display: grid;
    grid-template-columns: 0.9fr 1fr; /* narrower left column so text wraps more and extends vertically */
    gap: 1.5rem;
    align-items: stretch;
    max-width: 1100px; /* recenter the discover grid within the section */
    margin-left: auto;
    margin-right: auto;
}

.discover-left { display: block; }
.discover-right { display: grid; grid-template-rows: 1fr 1fr; gap: 1.5rem; }

.discover-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    box-shadow: var(--shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
}

.discover-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(83, 209, 137, 0.3);
}

.discover-card h3 {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
    color: var(--accent);
}

.discover-card p {
    font-family: var(--font-body);
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.discover-card-large {
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* align text to the top */
    align-items: flex-start;
    min-height: 100%;
    padding-top: 2.5rem; /* give breathing room at the top */
}

.discover-card-large h3 { margin-top: 0; }
.discover-card-large p { margin-top: 1.25rem; }

.discover-card-small {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Ensure left large card fills the full grid height and right small cards stretch evenly */
.discover-left .discover-card-large { height: 100%; }
.discover-right .discover-card-small { height: 100%; }

.why-matters {
    border-radius: 32px;
    margin: 4rem auto;
    padding: clamp(4rem, 8vw, 6rem) clamp(2rem, 5vw, 4rem);
}

.why-matters-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.why-matters-text h2 {
    margin-bottom: 1.5rem;
}

.why-matters-text p {
    font-family: var(--font-body);
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    text-align: left;
    line-height: 1.6;
}

.accordion {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.accordion-item {
    border-bottom: 1px solid var(--border);
}

.accordion-item:first-child {
    border-top: 1px solid var(--border);
}

.accordion-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    background: transparent;
    border: none;
    text-align: left;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 1.2rem;
    color: var(--text-primary);
    transition: color 0.2s ease;
}

.accordion-header:hover {
    color: var(--accent);
}

.accordion-header span:first-child {
    flex: 1;
    font-weight: 500;
    line-height: 1.5;
}

.accordion-icon {
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--accent);
    transition: transform 0.3s ease;
    min-width: 24px;
    text-align: right;
}

.accordion-item.active .accordion-icon {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0;
}

.accordion-item.active .accordion-content {
    max-height: 500px;
    padding-bottom: 1.5rem;
}

.accordion-content p {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.category-card {
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.category-card:hover {
    transform: translateY(-4px);
    border-color: rgba(83, 209, 137, 0.3);
}

.category-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.category-card h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--accent);
}

.category-card p {
    color: var(--text-muted);
    line-height: 1.7;
}

.map-preview {
    background: var(--surface-muted);
    border-radius: 32px;
    margin: 4rem auto;
    padding: clamp(3.5rem, 8vw, 6rem) clamp(2rem, 5vw, 4rem);
}

.preview-container {
    text-align: center;
    padding: 3rem 2rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 24px;
    box-shadow: var(--shadow);
}

.preview-placeholder {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 3.5rem;
    padding: 4rem 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    border: 2px dashed var(--border);
}

.use-case-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.use-case-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.use-case-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(83, 209, 137, 0.3);
}

.use-case-item h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--accent);
}

.use-case-item p {
    color: var(--text-muted);
    line-height: 1.7;
}

.methodology-footer {
    padding: clamp(4rem, 8vw, 6rem) clamp(2rem, 5vw, 4rem);
    border-top: 1px solid var(--border);
    background: var(--surface-muted);
    margin-top: 4rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 4rem;
    align-items: start;
}

.footer-logo {
    display: flex;
    align-items: flex-start;
}

.footer-logo-img {
    height: 24px;
    width: auto;
    margin-top: 10px;
}

.footer-methodology {
    text-align: left;
}

.footer-methodology h2 {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.footer-methodology p {
    font-family: var(--font-body);
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    max-width: 800px;
    line-height: 1.7;
}

.methodology-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: color 0.2s ease, transform 0.2s ease;
}

.methodology-link:hover {
    color: var(--accent-hover);
    transform: translateX(4px);
}


@media (max-width: 768px) {
    nav ul {
        justify-content: center;
        flex-wrap: wrap;
    }

    .hero {
        min-height: 75vh;
    }

    .why-matters-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .discover-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .category-grid,
    .use-case-grid {
        grid-template-columns: 1fr;
    }

    .discover-card {
        min-height: 240px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    .discover-grid {
        grid-template-columns: 1fr;
    }
}

#previewMap {
    width: 100%;
    height: 500px;
    margin-bottom: 2rem;
}
