:root {
    --bg: #ffffff;
    --funding-fill: #000000;
    --bg-soft: #f4f4f4;
    --surface: #ffffff;
    --glass: rgba(255, 255, 255, 0.42);
    --text: #111111;
    --muted: #5c5c5c;
    --border: #e3e3e3;
    --accent: #2b2b2b;
    --accent-soft: #ededed;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.06), 0 8px 24px rgba(0, 0, 0, 0.05);
    --focus: #333333;

    --font-body: Arial, Helvetica, sans-serif;
    --font-ui: "Segoe UI", Arial, sans-serif;

    --radius: 12px;
    --radius-sm: 8px;
    --wrap: 1080px;
    --nav-h: 68px;

    color-scheme: light;
}

[data-theme="dark"] {
    --bg: #0d0d0d;
    --funding-fill: #ffffff;
    --bg-soft: #141414;
    --surface: #161616;
    --glass: rgba(22, 22, 22, 0.42);
    --text: #f2f2f2;
    --muted: #a0a0a0;
    --border: #272727;
    --accent: #e8e8e8;
    --accent-soft: #1f1f1f;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.5), 0 8px 24px rgba(0, 0, 0, 0.35);
    --focus: #cccccc;

    color-scheme: dark;
}

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

html {
    background: var(--bg);
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--nav-h) + 16px);
    -webkit-text-size-adjust: 100%;
}

body {
    isolation: isolate;
    position: relative;
    margin: 0;
    background: transparent;
    color: var(--text);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
    font-family: var(--font-ui);
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin: 0;
}

p {
    margin: 0;
}

ul,
ol,
dl,
dd {
    margin: 0;
    padding: 0;
}

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

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

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

:focus-visible {
    outline: 2px solid var(--focus);
    outline-offset: 3px;
    border-radius: 4px;
}

.ambient-background {
    position: absolute;
    inset: 0;
    overflow: clip;
    pointer-events: none;
    z-index: -1;
}

.aurora,
.particles {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.aurora {
    z-index: 1;
    inset: -192px;
    bottom: auto;
    width: calc(100% + 384px);
    height: calc(100vh + 384px);
    filter: blur(28px);
}

.particles {
    z-index: 0;
    top: -128px;
    bottom: auto;
    height: calc(100vh + 256px);
}

.visually-hidden,
.skip-link:not(:focus) {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.skip-link:focus {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 100;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    font-family: var(--font-ui);
    font-weight: 600;
}

.wrap {
    width: 100%;
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 0 24px;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--glass);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}

.nav {
    display: flex;
    align-items: center;
    gap: 24px;
    max-width: var(--wrap);
    min-height: var(--nav-h);
    margin: 0 auto;
    padding: 0 24px;
}

.nav__brand {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.brand-logo {
    display: block;
    transition: opacity 0.15s ease;
}

.brand-logo--dark {
    display: none;
}

.brand-logo--light {
    display: block;
}

[data-theme="dark"] .brand-logo--light {
    display: none;
}

[data-theme="dark"] .brand-logo--dark {
    display: block;
}

.nav__links {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
    margin-left: 12px;
}

.nav__link {
    display: block;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    font-family: var(--font-ui);
    font-size: 15px;
    background: transparent;
    backdrop-filter: blur(14px);
    color: var(--text);
    transition:
        background 0.15s ease,
        color 0.15s ease;
}

.nav__link:hover,
.nav__link:focus-visible {
    background: var(--text);
    color: var(--bg);
}

.nav__actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.icon {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    margin: 0;
    background: none;
    border: 0;
    border-radius: 0;
    color: var(--muted);
    cursor: pointer;
    transition:
        color 0.15s ease,
        transform 0.15s ease;
}

.theme-toggle:hover {
    color: var(--text);
}

.theme-toggle:active {
    transform: scale(0.92);
}

.nav__menu {
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    background: var(--glass);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition:
        background 0.15s ease,
        border-color 0.15s ease,
        transform 0.15s ease;
}

.nav__menu:hover {
    background: var(--glass);
    border-color: var(--accent);
}

.nav__menu:active {
    transform: scale(0.96);
}

.icon--sun {
    display: none;
}

[data-theme="dark"] .icon--moon {
    display: none;
}

[data-theme="dark"] .icon--sun {
    display: block;
}

.hero {
    padding: 96px 0 72px;
    border-bottom: 1px solid var(--border);
}

.hero__inner {
    max-width: 760px;
    text-align: center;
}

.eyebrow {
    font-family: var(--font-ui);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 20px;
}

.hero__title {
    font-size: clamp(34px, 6vw, 58px);
    font-weight: 700;
    margin-bottom: 20px;
}

.hero__lede {
    font-size: clamp(17px, 2.2vw, 20px);
    color: var(--muted);
    max-width: 620px;
    margin: 0 auto 32px;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

button {
    background: var(--glass);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border: 1px solid var(--border);
    color: var(--text);
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 22px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--glass);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    font-family: var(--font-ui);
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    transition:
        background 0.15s ease,
        border-color 0.15s ease,
        color 0.15s ease;
}

.button:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.button--primary {
    background: var(--glass);
    border-color: var(--border);
    color: var(--text);
}

.button--primary:hover {
    background: var(--glass);
    border-color: var(--text);
    color: var(--text);
}

.button:hover,
.button:focus-visible {
    background: var(--glass);
    border-color: var(--text);
    color: var(--text);
}

.section {
    padding: 80px 0;
}

.section--soft {
    background: transparent;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.section__title {
    text-align: center;
    font-size: clamp(26px, 4vw, 34px);
    font-weight: 700;
    margin-bottom: 12px;
}

#search-index .section__title a {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 6px;
}

#search-index .section__title a:hover,
#search-index .section__title a:focus-visible {
    text-decoration-thickness: 2px;
}

.section__lede {
    text-align: center;
    font-size: 18px;
    color: var(--muted);
    max-width: 640px;
    margin: 0 auto 40px;
}

.section__note {
    margin-top: 18px;
    max-width: 620px;
    font-size: 14px;
    color: var(--muted);
}

.prose {
    max-width: 680px;
    display: grid;
    gap: 18px;
    font-size: 17px;
    margin: 0 auto 48px;
    text-align: center;
}

.card,
.stat,
.features__item,
.funding {
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.stat {
    outline: 1px solid var(--border);
    background: var(--glass);
    padding: 24px;
    min-width: 0;
}

.stat__label {
    font-family: var(--font-ui);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}

.stat__value {
    display: block;
    font-family: var(--font-ui);
    font-size: clamp(26px, 3.4vw, 34px);
    font-weight: 700;
    letter-spacing: -0.03em;
    overflow-wrap: break-word;
    margin: 6px 0 2px;
}

.stat__note {
    display: block;
    font-size: 14px;
    color: var(--muted);
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 26px;
    box-shadow: var(--shadow);
    transition:
        transform 0.15s ease,
        border-color 0.15s ease;
}

.card:hover {
    transform: translateY(-2px);
    border-color: var(--accent);
}

.card__title {
    text-align: center;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
}

.card__body {
    color: var(--muted);
    margin-bottom: 22px;
}

.card__meta {
    margin-top: auto;
    border-top: 1px solid var(--border);
    padding-top: 14px;
    display: grid;
    gap: 8px;
}

.card__row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    font-size: 14px;
}

.card__row dt {
    color: var(--muted);
}

.card__row dd {
    font-family: var(--font-ui);
    font-weight: 600;
    text-align: right;
    overflow-wrap: break-word;
    min-width: 0;
}

.badge {
    align-self: center;
    max-width: 100%;
    font-family: var(--font-ui);
    font-size: 12px;
    font-weight: 400;
    padding: 0;
    background: transparent;
    border: 0;
    color: var(--muted);
    text-align: center;
    margin-bottom: 16px;
}

.badge--live {
    color: var(--muted);
}

.features {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.features__item {
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px;
    min-width: 0;
}

.features__title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
}

.features__body {
    color: var(--muted);
    font-size: 15px;
}

.timeline {
    list-style: none;
    display: grid;
    gap: 0;
    border-left: 2px solid var(--border);
    margin-left: 6px;
}

.timeline__item {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 24px;
    padding: 0 0 36px 28px;
    position: relative;
}

.timeline__item:last-child {
    padding-bottom: 0;
}

.timeline__item::before {
    content: "";
    position: absolute;
    left: -7px;
    top: 6px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent);
    border: 2px solid var(--bg);
}

.timeline__year {
    font-family: var(--font-ui);
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.timeline__title {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 6px;
}

.timeline__body {
    min-width: 0;
}

.timeline__body p {
    color: var(--muted);
}

.funding {
    margin-top: 28px;
    display: flex;
    align-items: baseline;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--glass);
    padding: 32px;
    box-shadow: var(--shadow);
}

.funding__amount {
    font-family: var(--font-ui);
    font-size: clamp(28px, 8vw, 76px);
    font-weight: 700;
    letter-spacing: -0.05em;
    line-height: 1;
}

.site-footer {
    background: var(--glass);
    backdrop-filter: blur(12px);
    padding: 56px 0 32px;
}

.footer__inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 32px;
    padding-bottom: 36px;
}

.footer__brand {
    max-width: 340px;
}

.footer__brand .brand-logo {
    margin-bottom: 14px;
}

.footer__tagline {
    color: var(--muted);
    font-size: 15px;
}

.footer__links {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    font-family: var(--font-ui);
    font-size: 15px;
}

.footer__links a {
    color: var(--muted);
}

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

.footer__base {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    border-top: 1px solid var(--border);
    padding-top: 24px;
    font-size: 14px;
    color: var(--muted);
}

.footer__legal {
    max-width: 620px;
}

@media (max-width: 900px) {
    .hero {
        padding: 64px 0 56px;
    }

    .section {
        padding: 56px 0;
    }

    .nav__menu {
        display: inline-flex;
    }

    .nav__links {
        position: absolute;
        top: var(--nav-h);
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
        margin: 0;
        padding: 12px 24px 20px;
        background: var(--glass);
        backdrop-filter: blur(14px);
        border-bottom: 1px solid var(--border);
        display: none;
    }

    .nav--open .nav__links {
        display: flex;
    }

    .nav__link {
        padding: 12px;
        font-size: 16px;
    }

    .timeline__item {
        grid-template-columns: 1fr;
        gap: 4px;
    }
}

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

    *,
    *::before,
    *::after {
        transition-duration: 0.001ms !important;
        animation-duration: 0.001ms !important;
    }
}

.funding__progress {
    flex: 1 0 100%;
    min-width: 0;
}

.funding__status {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
    font-variant-numeric: tabular-nums;
}

.funding__bar {
    display: block;
    appearance: none;
    width: 100%;
    height: 16px;
    border: 0;
    border-radius: 999px;
    overflow: hidden;
    background: var(--border);
    color: var(--funding-fill);
    accent-color: var(--funding-fill);
}

.funding__bar::-webkit-progress-bar {
    background: var(--border);
    border-radius: 999px;
}

.funding__bar::-webkit-progress-value {
    background: var(--funding-fill);
    border-radius: 999px;
}

.funding__bar::-moz-progress-bar {
    background: var(--funding-fill);
    border-radius: 999px;
}

.funding__milestones {
    position: relative;
    height: 40px;
    margin: 20px 0 0;
    padding: 0;
    list-style: none;
    font-variant-numeric: tabular-nums;
}

.funding__milestones li {
    position: absolute;
    top: 0;
    padding-top: 12px;
    white-space: nowrap;
    transform: translateX(-50%);
}

.funding__milestones li::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    height: 8px;
    border-left: 1px solid var(--border);
}

.funding__milestones li:nth-child(1) {
    left: 16.6667%;
}

.funding__milestones li:nth-child(2) {
    left: 33.3333%;
}

.funding__milestones li:nth-child(3) {
    left: 66.6667%;
}

.funding__milestones li:nth-child(4) {
    left: 100%;
    transform: translateX(-100%);
}

.funding__milestones li:nth-child(4)::before {
    left: 100%;
}

@media (max-width: 600px) {
    .funding {
        padding: 24px;
    }

    .funding__milestones {
        height: 72px;
    }

    .funding__milestones li:nth-child(even) {
        padding-top: 44px;
    }
}
