:root {
    color-scheme: light dark;
    --bg-top: #f2f5f0;
    --bg-bottom: #e5ebe5;
    --surface: rgba(255, 255, 255, 0.92);
    --surface-strong: rgba(245, 247, 250, 0.96);
    --surface-soft: rgba(237, 242, 244, 0.92);
    --text: #1c231f;
    --muted: #5c665e;
    --accent: #126b8f;
    --accent-soft: rgba(212, 235, 245, 0.95);
    --success: #1c8c54;
    --warning: #d9862a;
    --stroke: rgba(0, 0, 0, 0.08);
    --shadow: 0 18px 44px rgba(12, 22, 18, 0.08);
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg-top: #000000;
        --bg-bottom: #000000;
        --surface: rgba(13, 15, 20, 0.94);
        --surface-strong: rgba(20, 25, 31, 0.98);
        --surface-soft: rgba(16, 22, 28, 0.96);
        --text: #e0e8f0;
        --muted: #8c94a1;
        --accent: #1aa0bc;
        --accent-soft: rgba(20, 43, 56, 0.95);
        --success: #3cbc75;
        --warning: #f09b38;
        --stroke: rgba(255, 255, 255, 0.10);
        --shadow: 0 18px 44px rgba(0, 0, 0, 0.38);
    }
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    padding: 24px 16px 40px;
    background:
        radial-gradient(circle at top left, rgba(18, 107, 143, 0.18), transparent 26%),
        radial-gradient(circle at top right, rgba(28, 140, 84, 0.10), transparent 22%),
        linear-gradient(180deg, var(--bg-top), var(--bg-bottom));
    color: var(--text);
    font: 16px/1.6 "SF Pro Rounded", ui-rounded, "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.page {
    display: grid;
    gap: 14px;
    max-width: 860px;
    margin: 0 auto;
}

.shell,
.hero,
.card {
    border: 1px solid var(--stroke);
    border-radius: 18px;
    background: var(--surface);
    backdrop-filter: blur(14px);
    box-shadow: var(--shadow);
}

.shell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 18px;
}

.brand-lockup {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-mark {
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--accent), var(--success));
    box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 12%, transparent);
}

.brand-copy strong,
.brand-copy span {
    display: block;
    line-height: 1.1;
}

.brand-copy strong {
    font-size: 0.98rem;
}

.brand-copy span {
    margin-top: 3px;
    color: var(--muted);
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.shell-nav,
.footer-nav,
.pill-row,
.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hero {
    position: relative;
    overflow: hidden;
    padding: 28px;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), var(--success));
}

.hero::after {
    content: "";
    position: absolute;
    inset: auto -80px -120px auto;
    width: 280px;
    height: 280px;
    border-radius: 999px;
    background: radial-gradient(circle, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%);
    pointer-events: none;
}

.hero-copy {
    position: relative;
    z-index: 1;
    max-width: 680px;
}

.hero-meta {
    position: relative;
    z-index: 1;
}

.card {
    padding: 22px;
}

.grid {
    display: grid;
    gap: 12px;
}

@media (min-width: 720px) {
    .grid {
        grid-template-columns: 1fr 1fr;
    }
}

.card-grid {
    display: grid;
    gap: 12px;
}

@media (min-width: 640px) {
    .card-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.eyebrow {
    margin: 0 0 10px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

h1 {
    margin: 0 0 10px;
    font-size: clamp(2.15rem, 4.6vw, 3rem);
    line-height: 1.02;
    letter-spacing: -0.03em;
}

h2 {
    margin: 0 0 8px;
    font-size: 1.05rem;
    line-height: 1.2;
}

h3 {
    margin: 0 0 6px;
    font-size: 0.95rem;
    line-height: 1.25;
}

p,
ul {
    margin: 0;
}

.subhead,
.meta,
li,
.supporting,
.section-label,
.card p,
.card li {
    color: var(--muted);
}

.section-label {
    margin-bottom: 10px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.meta {
    margin-top: 14px;
    font-size: 0.95rem;
}

.pill-row {
    margin: 18px 0 0;
}

.button-row {
    margin-top: 18px;
}

.nav-link,
.button-row a,
.footer-nav a,
.pill,
.inline-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 13px;
    border: 1px solid var(--stroke);
    border-radius: 999px;
    background: var(--surface-strong);
    color: var(--text);
    font-size: 0.92rem;
    text-decoration: none;
    transition: border-color 140ms ease, background-color 140ms ease, transform 140ms ease;
}

.nav-link.is-active,
.button-row a.primary {
    background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 64%, var(--success)));
    border-color: transparent;
    color: #ffffff;
}

.pill {
    min-height: 32px;
    background: var(--accent-soft);
    font-size: 0.8rem;
    font-weight: 600;
}

.metric-grid {
    display: grid;
    gap: 10px;
    margin-top: 16px;
}

@media (min-width: 640px) {
    .metric-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.metric,
.feature-card {
    padding: 14px;
    border: 1px solid var(--stroke);
    border-radius: 16px;
    background: var(--surface-strong);
}

.metric-label {
    margin: 0 0 4px;
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.metric-value {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text);
}

.site-footer {
    text-align: center;
}

.site-footer .footer-nav {
    justify-content: center;
    margin-top: 18px;
}

.footer-brand strong,
.footer-brand span {
    display: block;
}

.footer-brand strong {
    color: var(--text);
    font-size: 1.02rem;
    line-height: 1.15;
}

.footer-brand span {
    margin-top: 5px;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.footer-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 14px;
    margin-top: 14px;
}

.footer-meta span {
    color: var(--muted);
    font-size: 0.92rem;
}

.footer-meta span::before {
    content: "•";
    margin-right: 8px;
    color: color-mix(in srgb, var(--accent) 70%, var(--muted));
}

.footer-meta span:first-child::before {
    content: "";
    margin-right: 0;
}

ul {
    padding-left: 18px;
}

li + li {
    margin-top: 8px;
}

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

a:hover {
    text-decoration: underline;
}

.nav-link:hover,
.button-row a:hover,
.inline-link:hover {
    text-decoration: none;
    border-color: color-mix(in srgb, var(--accent) 35%, var(--stroke));
    transform: translateY(-1px);
}

.contact,
.feature-card.is-emphasis {
    background: var(--surface-soft);
}

.stack {
    display: grid;
    gap: 10px;
}

.link-list {
    display: grid;
    gap: 10px;
    margin-top: 14px;
}

.link-list a {
    color: var(--text);
}

.inline-link {
    justify-content: flex-start;
    width: fit-content;
    padding: 0 14px;
}

.inline-link::after {
    content: "↗";
    margin-left: 8px;
    color: var(--muted);
    font-size: 0.85rem;
}

@media (max-width: 719px) {
    body {
        padding-top: 18px;
    }

    .shell {
        align-items: flex-start;
        flex-direction: column;
    }

    .shell-nav {
        width: 100%;
    }

    .shell-nav .nav-link {
        flex: 1 1 auto;
    }

    .hero,
    .card {
        padding: 20px;
    }

    .footer-meta {
        flex-direction: column;
        gap: 6px;
    }

    .footer-meta span::before {
        content: "";
        margin-right: 0;
    }
}
