:root {
    --background: 210 25% 97%;
    --foreground: 215 30% 12%;
    --card: 0 0% 100%;
    --primary: 200 80% 30%;
    --primary-foreground: 0 0% 100%;
    --secondary: 180 45% 40%;
    --muted: 210 20% 93%;
    --muted-foreground: 215 15% 50%;
    --accent: 175 60% 45%;
    --accent-foreground: 0 0% 100%;
    --border: 210 20% 88%;
    --ring: 200 80% 30%;
    --radius: 0.75rem;
    --hero-overlay: linear-gradient(135deg, hsla(210, 50%, 8%, 0.85), hsla(195, 60%, 12%, 0.75));
    --gradient-primary: linear-gradient(135deg, hsl(200 80% 30%), hsl(175 60% 45%));
    --gradient-card: linear-gradient(180deg, hsl(0 0% 100%), hsl(210 25% 97%));
    --shadow-soft: 0 4px 24px -4px hsla(210, 30%, 10%, 0.08);
    --shadow-card: 0 8px 32px -8px hsla(210, 30%, 10%, 0.12);
    --shadow-glow: 0 0 40px -10px hsla(200, 80%, 30%, 0.25);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: hsl(var(--background));
    color: hsl(var(--foreground));
    font-family: "Inter", system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

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

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea,
select {
    font: inherit;
}

button {
    border: 0;
    background: none;
    color: inherit;
}

h1,
h2,
h3,
h4 {
    margin: 0;
    font-family: "Outfit", system-ui, sans-serif;
}

p {
    margin: 0;
}

ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

[hidden] {
    display: none !important;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.container {
    width: min(1400px, calc(100% - 2rem));
    margin: 0 auto;
}

.icon {
    width: 1.25rem;
    height: 1.25rem;
}

.text-gradient {
    color: transparent;
    background-image: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 2.75rem;
    padding: 0.75rem 1.25rem;
    border-radius: calc(var(--radius) - 0.125rem);
    border: 1px solid transparent;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease, border-color 160ms ease, color 160ms ease, opacity 160ms ease;
}

.button:hover {
    transform: translateY(-1px);
}

.button:focus-visible,
.mobile-nav-toggle:focus-visible,
.site-nav__link:focus-visible,
.mobile-menu__link:focus-visible,
.section-link:focus-visible,
.site-footer__links a:focus-visible,
.project-card__action:focus-visible {
    outline: 2px solid hsl(var(--ring));
    outline-offset: 3px;
}

.button--small {
    min-height: 2.25rem;
    padding: 0.65rem 1rem;
    font-size: 0.875rem;
}

.button--large {
    min-height: 3.25rem;
    padding: 1rem 2rem;
    font-size: 1rem;
}

.button--full {
    width: 100%;
}

.button--primary {
    background: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    box-shadow: var(--shadow-soft);
}

.button--primary:hover {
    background: hsl(200 80% 27%);
}

.button--ghost {
    color: hsl(var(--foreground));
}

.button--ghost:hover {
    background: hsla(175, 60%, 45%, 0.12);
    color: hsl(var(--foreground));
}

.button--hero {
    background-image: var(--gradient-primary);
    color: hsl(var(--primary-foreground));
    box-shadow: var(--shadow-glow);
}

.button--hero:hover {
    opacity: 0.92;
}

.button--hero-outline {
    border-width: 2px;
    border-color: hsla(0, 0%, 100%, 0.3);
    color: hsl(var(--primary-foreground));
    background: transparent;
}

.button--hero-outline:hover {
    background: hsla(0, 0%, 100%, 0.08);
}

.button__icon {
    width: 1.1rem;
    height: 1.1rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}

.brand__icon {
    width: 1.75rem;
    height: 1.75rem;
    color: hsl(var(--primary));
}

.brand__text {
    font-family: "Outfit", system-ui, sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
}

.site-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    border-bottom: 1px solid hsla(210, 20%, 88%, 0.5);
    background: hsla(210, 25%, 97%, 0.82);
    backdrop-filter: blur(16px);
}

.site-nav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    min-height: 4rem;
}

.site-nav__links,
.site-nav__actions {
    display: flex;
    align-items: center;
}

.site-nav__links {
    gap: 2rem;
}

.site-nav__actions {
    gap: 0.75rem;
}

.site-nav__link,
.mobile-menu__link {
    color: hsl(var(--muted-foreground));
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 160ms ease;
}

.site-nav__link:hover,
.mobile-menu__link:hover {
    color: hsl(var(--foreground));
}

.mobile-nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: calc(var(--radius) - 0.125rem);
    cursor: pointer;
}

.mobile-nav-toggle:hover {
    background: hsla(210, 20%, 88%, 0.45);
}

.mobile-nav-toggle__icon {
    display: inline-flex;
}

.mobile-menu {
    border-top: 1px solid hsla(210, 20%, 88%, 0.4);
    background: hsl(var(--card));
    box-shadow: var(--shadow-soft);
}

.mobile-menu__inner {
    display: grid;
    gap: 0.75rem;
    padding: 0 0 1rem;
}

.mobile-menu__link {
    display: block;
    padding: 0.75rem 0;
}

.mobile-menu__actions {
    display: grid;
    gap: 0.75rem;
    padding-top: 0.5rem;
}

.hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 90vh;
    padding: 7rem 0 4rem;
    overflow: hidden;
}

.hero__image,
.hero__overlay {
    position: absolute;
    inset: 0;
}

.hero__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero__overlay {
    background: var(--hero-overlay);
}

.hero__content {
    position: relative;
    z-index: 1;
    max-width: 64rem;
    text-align: center;
}

.hero__eyebrow,
.section-kicker {
    margin-bottom: 1rem;
    color: hsl(var(--accent));
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.28em;
    text-transform: uppercase;
}

.hero__title {
    margin-bottom: 1.5rem;
    color: hsl(var(--primary-foreground));
    font-size: clamp(2.75rem, 7vw, 4.85rem);
    line-height: 1.05;
    font-weight: 700;
}

.hero__description {
    max-width: 42rem;
    margin: 0 auto 2.5rem;
    color: hsla(0, 0%, 100%, 0.72);
    font-size: clamp(1rem, 2.6vw, 1.3rem);
    line-height: 1.7;
}

.hero__actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.section {
    padding: 6rem 0;
}

.section--background {
    background: hsl(var(--background));
}

.section--card {
    background: hsl(var(--card));
}

.section-heading {
    margin-bottom: 3rem;
}

.section-heading--split {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
}

.section-heading--center {
    max-width: 44rem;
    margin: 0 auto 3.5rem;
    text-align: center;
}

.section-title {
    font-size: clamp(2rem, 4.8vw, 3rem);
    line-height: 1.1;
    font-weight: 700;
}

.section-copy {
    max-width: 40rem;
    margin: 1rem auto 0;
    color: hsl(var(--muted-foreground));
    font-size: 1rem;
    line-height: 1.75;
}

.section-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: hsl(var(--primary));
    font-size: 0.95rem;
    font-weight: 600;
}

.section-link:hover {
    text-decoration: underline;
}

.section-link__icon {
    width: 1rem;
    height: 1rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2rem;
}

.stat-card {
    text-align: center;
}

.stat-card__icon-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    margin-bottom: 1rem;
    border-radius: 1rem;
    background: hsla(200, 80%, 30%, 0.1);
    transition: box-shadow 180ms ease;
}

.stat-card:hover .stat-card__icon-wrap {
    box-shadow: var(--shadow-glow);
}

.stat-card__icon {
    width: 1.75rem;
    height: 1.75rem;
    color: hsl(var(--primary));
}

.stat-card__value {
    font-family: "Outfit", system-ui, sans-serif;
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 700;
}

.stat-card__label {
    margin-top: 0.45rem;
    color: hsl(var(--muted-foreground));
    font-size: 0.95rem;
}

.insights-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

.insight-card {
    padding: 1.75rem;
    border: 1px solid hsla(210, 20%, 88%, 0.6);
    border-radius: 1rem;
    background: hsl(var(--card));
    transition: box-shadow 200ms ease, transform 200ms ease, border-color 200ms ease;
}

.insight-card:hover {
    transform: translateY(-2px);
    border-color: hsla(200, 80%, 30%, 0.18);
    box-shadow: var(--shadow-card);
}

.insight-card__tag {
    display: inline-flex;
    margin-bottom: 1rem;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    background: hsla(175, 60%, 45%, 0.1);
    color: hsl(var(--accent));
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.insight-card__title {
    margin-bottom: 0.8rem;
    font-size: 1.15rem;
    line-height: 1.45;
    font-weight: 600;
    transition: color 180ms ease;
}

.insight-card:hover .insight-card__title {
    color: hsl(var(--primary));
}

.insight-card__excerpt {
    margin-bottom: 1rem;
    color: hsl(var(--muted-foreground));
    font-size: 0.95rem;
    line-height: 1.7;
}

.insight-card__date {
    color: hsl(var(--muted-foreground));
    font-size: 0.8rem;
}

.project-list {
    display: grid;
    gap: 1.5rem;
}

.project-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.75rem 2rem;
    border: 1px solid hsla(210, 20%, 88%, 0.6);
    border-radius: 1rem;
    background: var(--gradient-card);
    transition: box-shadow 200ms ease, transform 200ms ease, border-color 200ms ease;
}

.project-card:hover {
    transform: translateY(-2px);
    border-color: hsla(200, 80%, 30%, 0.18);
    box-shadow: var(--shadow-card);
}

.project-card__content {
    flex: 1;
}

.project-card__header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
}

.project-card__title {
    font-size: 1.3rem;
    font-weight: 600;
    transition: color 180ms ease;
}

.project-card:hover .project-card__title {
    color: hsl(var(--primary));
}

.project-card__status {
    display: inline-flex;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    background: hsla(175, 60%, 45%, 0.15);
    color: hsl(var(--accent));
    font-size: 0.78rem;
    font-weight: 600;
}

.project-card__description {
    margin-bottom: 0.75rem;
    color: hsl(var(--muted-foreground));
    font-size: 0.95rem;
    line-height: 1.75;
}

.project-card__partners {
    color: hsl(var(--muted-foreground));
    font-size: 0.82rem;
}

.project-card__partners span {
    color: hsla(215, 30%, 12%, 0.7);
    font-weight: 600;
}

.project-card__action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 999px;
    color: hsl(var(--foreground));
    cursor: pointer;
    transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.project-card__action:hover {
    background: hsla(175, 60%, 45%, 0.12);
    color: hsl(var(--primary));
    transform: translateX(1px);
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.5rem;
}

.partner-card {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 6rem;
    padding: 1rem;
    border: 1px solid hsla(210, 20%, 88%, 0.6);
    border-radius: 1rem;
    background: hsl(var(--card));
    color: hsla(215, 15%, 50%, 0.86);
    font-family: "Outfit", system-ui, sans-serif;
    font-size: 1.15rem;
    font-weight: 600;
    text-align: center;
    transition: box-shadow 180ms ease, transform 180ms ease;
}

.partner-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
}

.site-footer {
    padding: 4rem 0 2rem;
    border-top: 1px solid hsl(var(--border));
    background: hsl(var(--card));
}

.site-footer__grid {
    display: grid;
    grid-template-columns: 1.3fr repeat(3, 1fr);
    gap: 2.5rem;
}

.brand--footer {
    margin-bottom: 1rem;
}

.site-footer__copy {
    max-width: 20rem;
    color: hsl(var(--muted-foreground));
    font-size: 0.95rem;
    line-height: 1.75;
}

.site-footer__heading {
    margin-bottom: 1rem;
    font-size: 0.92rem;
    font-weight: 600;
}

.site-footer__links {
    display: grid;
    gap: 0.7rem;
}

.site-footer__links a {
    color: hsl(var(--muted-foreground));
    font-size: 0.92rem;
    transition: color 160ms ease;
}

.site-footer__links a:hover {
    color: hsl(var(--foreground));
}

.site-footer__bottom {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid hsl(var(--border));
    color: hsl(var(--muted-foreground));
    font-size: 0.8rem;
    text-align: center;
}

/* Modal Styles */
.modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: grid;
    place-items: center;
    padding: 1.5rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 200ms ease;
}

.modal--open {
    opacity: 1;
    pointer-events: auto;
}

.modal__overlay {
    position: absolute;
    inset: 0;
    background: hsla(210, 50%, 8%, 0.4);
    backdrop-filter: blur(4px);
}

.modal__content {
    position: relative;
    width: min(100%, 28rem);
    background: hsl(var(--card));
    border-radius: 1.25rem;
    padding: 2.5rem;
    box-shadow: 0 20px 50px -12px hsla(210, 30%, 10%, 0.25);
    transform: translateY(10px);
    transition: transform 200ms ease;
}

.modal--open .modal__content {
    transform: translateY(0);
}

.modal__close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    width: 2rem;
    height: 2rem;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: hsl(var(--muted-foreground));
    cursor: pointer;
    transition: background 160ms ease, color 160ms ease;
}

.modal__close:hover {
    background: hsl(var(--muted));
    color: hsl(var(--foreground));
}

.modal__title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-align: center;
}

.modal__description {
    color: hsl(var(--muted-foreground));
    text-align: center;
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.form-input {
    width: 100%;
    height: 2.75rem;
    padding: 0 1rem;
    border-radius: var(--radius);
    border: 1px solid hsl(var(--border));
    background: hsl(var(--background));
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

.form-input:focus {
    outline: none;
    border-color: hsl(var(--primary));
    box-shadow: 0 0 0 3px hsla(200, 80%, 30%, 0.1);
}

.modal__footer {
    margin-top: 1.5rem;
    text-align: center;
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
}

.modal__footer a {
    color: hsl(var(--primary));
    font-weight: 600;
}

.modal__footer a:hover {
    text-decoration: underline;
}

.not-found {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 2rem;
    background: hsl(var(--muted));
}

.not-found__section {
    width: min(100%, 34rem);
}

.not-found__panel {
    padding: 3rem 2rem;
    border: 1px solid hsla(210, 20%, 88%, 0.8);
    border-radius: 1.25rem;
    background: hsl(var(--card));
    box-shadow: var(--shadow-card);
    text-align: center;
}

.not-found__code {
    margin-bottom: 0.75rem;
    color: hsl(var(--primary));
    font-family: "Outfit", system-ui, sans-serif;
    font-size: 3rem;
    font-weight: 700;
}

.not-found__title {
    margin-bottom: 1rem;
    font-size: 2rem;
    font-weight: 700;
}

.not-found__description {
    margin-bottom: 1.75rem;
    color: hsl(var(--muted-foreground));
    line-height: 1.7;
}

@keyframes fade-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-up {
    animation: fade-up 0.6s ease-out forwards;
}

.animate-fade-up-delay-1,
.animate-fade-up-delay-2,
.animate-fade-up-delay-3 {
    opacity: 0;
}

.animate-fade-up-delay-1 {
    animation: fade-up 0.6s ease-out 0.1s forwards;
}

.animate-fade-up-delay-2 {
    animation: fade-up 0.6s ease-out 0.2s forwards;
}

.animate-fade-up-delay-3 {
    animation: fade-up 0.6s ease-out 0.3s forwards;
}

@media (max-width: 960px) {
    .site-nav__links,
    .site-nav__actions {
        display: none;
    }

    .mobile-nav-toggle {
        display: inline-flex;
    }

    .stats-grid,
    .insights-grid,
    .partners-grid,
    .site-footer__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .project-card,
    .section-heading--split {
        flex-direction: column;
        align-items: flex-start;
    }

    .project-card__action {
        align-self: flex-start;
    }
}

@media (max-width: 720px) {
    .container {
        width: min(1400px, calc(100% - 1.5rem));
    }

    .hero {
        min-height: 42rem;
        padding-top: 6.5rem;
    }

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

    .hero__actions .button {
        width: 100%;
    }

    .stats-grid,
    .partners-grid,
    .site-footer__grid {
        grid-template-columns: 1fr;
    }

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

    .section {
        padding: 5rem 0;
    }

    .section-link {
        display: none;
    }

    .project-card {
        padding: 1.5rem;
    }
}

@media (max-width: 560px) {
    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.5rem;
    }

    .hero__title {
        font-size: clamp(2.45rem, 14vw, 3.4rem);
    }

    .hero__description {
        font-size: 1rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
