:root {
    --bg: #f5f1e8;
    --bg-strong: #0f2722;
    --surface: rgba(255, 250, 241, 0.88);
    --surface-strong: #fffaf1;
    --surface-muted: rgba(16, 42, 36, 0.06);
    --text: #122620;
    --text-soft: #566660;
    --text-invert: #f8f4ea;
    --line: rgba(18, 38, 32, 0.12);
    --line-strong: rgba(18, 38, 32, 0.18);
    --teal: #0f766e;
    --teal-deep: #155e57;
    --amber: #c56a2c;
    --amber-soft: rgba(197, 106, 44, 0.14);
    --ok: #236c57;
    --warn: #8b4a20;
    --shadow: 0 24px 70px rgba(18, 38, 32, 0.12);
    --radius-xl: 28px;
    --radius-lg: 20px;
    --radius-md: 14px;
    --container: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "IBM Plex Sans", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(15, 118, 110, 0.12), transparent 34%),
        radial-gradient(circle at top right, rgba(197, 106, 44, 0.14), transparent 28%),
        linear-gradient(180deg, #fbf7ef 0%, var(--bg) 44%, #ede6d8 100%);
    min-height: 100vh;
}

a {
    color: inherit;
}

button,
input,
textarea {
    font: inherit;
}

code,
pre {
    font-family: "IBM Plex Mono", monospace;
}

.site-shell {
    position: relative;
    overflow-x: hidden;
}

.container {
    width: min(var(--container), calc(100% - 40px));
    margin: 0 auto;
}

.section {
    padding: 92px 0;
    position: relative;
}

.section-alt {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0.18));
    border-top: 1px solid rgba(255, 255, 255, 0.45);
    border-bottom: 1px solid rgba(18, 38, 32, 0.08);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    padding: 18px 0;
    background: rgba(245, 241, 232, 0.72);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid transparent;
    transition: background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.site-header.scrolled {
    background: rgba(248, 244, 234, 0.92);
    border-bottom-color: rgba(18, 38, 32, 0.1);
    box-shadow: 0 10px 30px rgba(18, 38, 32, 0.08);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    min-width: 0;
}

.brand-mark {
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--bg-strong), #173932);
    color: var(--text-invert);
    font-family: "Space Grotesk", sans-serif;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.brand-copy {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.brand-copy strong {
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.05rem;
}

.brand-copy span {
    color: var(--text-soft);
    font-size: 0.88rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-soft);
    font-weight: 500;
}

.nav-links a:hover {
    color: var(--text);
}

.nav-cta {
    padding: 10px 16px;
    border-radius: 999px;
    background: var(--bg-strong);
    color: var(--text-invert) !important;
}

.hero {
    padding-top: 74px;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
    gap: 28px;
    align-items: stretch;
}

.hero-copy,
.hero-panel,
.story-card,
.milestone-card,
.support-card,
.evidence-card,
.vision-card,
.install-shell,
.docs-card,
.final-cta-shell {
    background: var(--surface);
    border: 1px solid rgba(255, 255, 255, 0.56);
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
}

.hero-copy,
.hero-panel,
.install-shell,
.final-cta-shell {
    border-radius: var(--radius-xl);
    padding: 34px;
}

.hero-copy {
    position: relative;
    overflow: hidden;
}

.hero-copy::after {
    content: "";
    position: absolute;
    inset: auto -10% -24% 44%;
    height: 240px;
    background: radial-gradient(circle, rgba(15, 118, 110, 0.14), transparent 65%);
    pointer-events: none;
}

.eyebrow {
    margin: 0 0 16px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.76rem;
    color: var(--teal);
    font-weight: 700;
}

h1,
h2,
h3 {
    margin: 0;
    font-family: "Space Grotesk", sans-serif;
    line-height: 1.04;
}

h1 {
    font-size: clamp(3rem, 7vw, 5.3rem);
    max-width: 11ch;
}

h2 {
    font-size: clamp(2rem, 4vw, 3.2rem);
}

h3 {
    font-size: 1.35rem;
}

.hero-text,
.section-head p,
.story-card p,
.milestone-card p,
.card-copy,
.vision-card p,
.docs-card p,
.final-cta-shell p,
.install-shell p,
.support-summary,
.panel-summary {
    color: var(--text-soft);
    line-height: 1.72;
}

.hero-text {
    max-width: 62ch;
    margin: 22px 0 28px;
    font-size: 1.08rem;
}

.hero-actions,
.final-cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 22px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background: linear-gradient(135deg, var(--teal), var(--teal-deep));
    color: var(--text-invert);
    box-shadow: 0 18px 34px rgba(15, 118, 110, 0.22);
}

.btn-secondary {
    border: 1px solid var(--line-strong);
    background: rgba(255, 255, 255, 0.56);
    color: var(--text);
}

.hero-list {
    margin: 26px 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 10px;
}

.hero-list li {
    position: relative;
    padding-left: 18px;
    color: var(--text);
}

.hero-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.7em;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--amber), var(--teal));
}

.panel-heading {
    margin-bottom: 22px;
}

.panel-heading h2 {
    font-size: 2.1rem;
}

.metric-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 22px;
}

.metric-card {
    padding: 18px;
    border-radius: var(--radius-md);
    background: rgba(16, 42, 36, 0.06);
    border: 1px solid rgba(18, 38, 32, 0.08);
}

.metric-value {
    display: block;
    font-family: "Space Grotesk", sans-serif;
    font-size: 2.15rem;
    color: var(--text);
}

.metric-label {
    display: block;
    color: var(--text-soft);
    margin-top: 6px;
}

.generated-at {
    margin: 18px 0 0;
    color: var(--text-soft);
    font-size: 0.88rem;
}

.section-head {
    max-width: 760px;
    margin-bottom: 34px;
}

.section-head h2 {
    margin-bottom: 14px;
}

.story-grid,
.milestone-grid,
.support-grid,
.evidence-grid,
.vision-grid,
.docs-grid {
    display: grid;
    gap: 20px;
}

.story-grid,
.milestone-grid,
.vision-grid,
.docs-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.support-grid,
.evidence-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.story-card,
.milestone-card,
.support-card,
.evidence-card,
.vision-card,
.docs-card {
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.story-card h3,
.milestone-card h3,
.support-card h3,
.evidence-card h3,
.vision-card h3,
.docs-card h3 {
    margin-bottom: 10px;
}

.story-card:hover,
.milestone-card:hover,
.support-card:hover,
.evidence-card:hover,
.vision-card:hover,
.docs-card:hover {
    transform: translateY(-4px);
}

.milestone-card {
    position: relative;
}

.milestone-tag {
    display: inline-flex;
    align-items: center;
    margin-bottom: 14px;
    padding: 6px 10px;
    border-radius: 999px;
    background: var(--amber-soft);
    color: var(--amber);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.support-summary {
    padding: 18px 22px;
    border-radius: var(--radius-md);
    background: rgba(15, 118, 110, 0.08);
    border: 1px solid rgba(15, 118, 110, 0.14);
    margin-bottom: 22px;
}

.evidence-head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 20px;
    margin: 30px 0 22px;
}

.evidence-head h3 {
    margin-top: 6px;
}

.card-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.kind-badge,
.level-badge,
.evidence-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.kind-badge.official_adapter {
    background: rgba(15, 118, 110, 0.12);
    color: var(--teal);
}

.kind-badge.preview_runtime {
    background: rgba(197, 106, 44, 0.14);
    color: var(--amber);
}

.level-badge {
    background: rgba(18, 38, 32, 0.07);
    color: var(--text-soft);
}

.evidence-badge.ok {
    background: rgba(35, 108, 87, 0.12);
    color: var(--ok);
}

.evidence-badge.warn {
    background: rgba(139, 74, 32, 0.12);
    color: var(--warn);
}

.module-name {
    margin: 0 0 14px;
    color: var(--text-soft);
    font-size: 0.92rem;
}

.capability-meta {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin: 18px 0 14px;
}

.capability-meta strong {
    font-family: "Space Grotesk", sans-serif;
    font-size: 2rem;
}

.tag-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tag {
    display: inline-flex;
    align-items: center;
    padding: 7px 11px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.56);
    font-size: 0.86rem;
    color: var(--text);
}

.evidence-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 16px 0;
    color: var(--text);
}

.evidence-stats span {
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(18, 38, 32, 0.06);
}

.case-list {
    display: grid;
    gap: 10px;
}

.case-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding-top: 10px;
    border-top: 1px solid var(--line);
}

.roadmap-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 14px;
}

.roadmap-item {
    display: grid;
    grid-template-columns: 80px minmax(0, 1fr);
    gap: 18px;
    padding: 22px 24px;
    border-radius: var(--radius-lg);
    background: var(--surface);
    border: 1px solid rgba(255, 255, 255, 0.56);
    box-shadow: var(--shadow);
}

.roadmap-index {
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.65rem;
    color: var(--amber);
}

.roadmap-item h3 {
    margin-bottom: 8px;
}

.roadmap-item p {
    margin: 0;
    color: var(--text-soft);
    line-height: 1.68;
}

.install-shell pre {
    margin: 0;
    padding: 18px;
    border-radius: var(--radius-md);
    background: var(--bg-strong);
    color: var(--text-invert);
    overflow-x: auto;
}

.tab-buttons {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 8px;
    border-radius: 999px;
    background: rgba(18, 38, 32, 0.06);
    margin-bottom: 20px;
}

.tab-btn {
    border: 0;
    background: transparent;
    color: var(--text-soft);
    padding: 10px 14px;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 600;
}

.tab-btn.active {
    background: var(--bg-strong);
    color: var(--text-invert);
}

.tab-panel {
    display: none;
    gap: 16px;
}

.tab-panel.active {
    display: grid;
}

.docs-card {
    text-decoration: none;
}

.docs-card p {
    margin: 0;
}

.final-cta-shell {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 24px;
    background: linear-gradient(135deg, var(--bg-strong), #173832);
    color: var(--text-invert);
}

.final-cta-shell .eyebrow,
.final-cta-shell p {
    color: rgba(248, 244, 234, 0.78);
}

.final-cta-shell h2 {
    margin-bottom: 14px;
    max-width: 13ch;
}

.site-footer {
    padding: 0 0 42px;
}

.footer-shell {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: center;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    color: var(--text-soft);
}

.footer-shell p {
    margin: 0;
}

.footer-links {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
}

.footer-links a {
    text-decoration: none;
}

.reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 520ms ease, transform 520ms ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

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

    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .btn,
    .story-card,
    .milestone-card,
    .support-card,
    .evidence-card,
    .vision-card,
    .docs-card {
        transition: none;
    }
}

@media (max-width: 1040px) {
    .hero-grid,
    .support-grid,
    .evidence-grid,
    .story-grid,
    .milestone-grid,
    .vision-grid,
    .docs-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

@media (max-width: 820px) {
    .section {
        padding: 78px 0;
    }

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

    .nav-links {
        width: 100%;
        justify-content: flex-start;
        gap: 14px;
    }

    .hero-grid,
    .story-grid,
    .milestone-grid,
    .support-grid,
    .evidence-grid,
    .vision-grid,
    .docs-grid {
        grid-template-columns: 1fr;
    }

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

    .evidence-head,
    .footer-shell {
        flex-direction: column;
        align-items: start;
    }
}

@media (max-width: 560px) {
    .container {
        width: min(var(--container), calc(100% - 24px));
    }

    .hero-copy,
    .hero-panel,
    .story-card,
    .milestone-card,
    .support-card,
    .evidence-card,
    .vision-card,
    .install-shell,
    .docs-card,
    .final-cta-shell {
        padding: 22px;
    }

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

    .roadmap-item {
        grid-template-columns: 1fr;
    }

    .hero-actions,
    .final-cta-actions {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
    }
}
