:root {
    --vainio-ink: #15201b;
    --vainio-muted: #647068;
    --vainio-soft: #f3f5f0;
    --vainio-line: #dfe4dd;
    --vainio-field: #dfe8d8;
    --vainio-field-deep: #677d5f;
    --vainio-cream: #fbfcf8;
    --vainio-dark: #17201c;
}

html {
    scroll-behavior: smooth;
}

body {
    color: var(--vainio-ink);
    background: var(--vainio-cream);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
}

    body::selection {
        background: var(--vainio-field);
    }

a {
    color: inherit;
}

.vainio-navbar {
    background: rgba(251, 252, 248, .91);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(21, 32, 27, .08);
}

.navbar-brand {
    text-decoration: none;
}

.brand-mark {
    width: 2.25rem;
    height: 2.25rem;
    display: inline-grid;
    place-items: center;
    border-radius: .7rem;
    background: var(--vainio-ink);
    color: white;
    font-weight: 800;
    letter-spacing: -.05em;
}

.brand-mark-sm {
    width: 1.9rem;
    height: 1.9rem;
    border-radius: .55rem;
}

.brand-name {
    font-size: 1.08rem;
    letter-spacing: -.025em;
}

.nav-link {
    color: #435048;
    font-weight: 600;
    font-size: .94rem;
}

    .nav-link:hover,
    .nav-link:focus {
        color: #111915;
    }

.hero-section {
    position: relative;
    overflow: hidden;
    padding-top: 4.5rem;
    background: radial-gradient(circle at 75% 25%, rgba(178, 197, 164, .42), transparent 33rem), linear-gradient(180deg, #fbfcf8 0%, #f5f7f1 100%);
}

.min-vh-85 {
    min-height: 85vh;
}

.hero-grid {
    position: absolute;
    width: 32rem;
    height: 32rem;
    right: -7rem;
    bottom: -7rem;
    opacity: .22;
    background-image: linear-gradient(rgba(21,32,27,.18) 1px, transparent 1px), linear-gradient(90deg, rgba(21,32,27,.18) 1px, transparent 1px);
    background-size: 34px 34px;
    transform: perspective(500px) rotateX(57deg) rotateZ(-18deg);
}

.eyebrow,
.section-kicker {
    text-transform: uppercase;
    letter-spacing: .16em;
    font-size: .77rem;
    font-weight: 800;
    color: var(--vainio-field-deep);
}

.hero-title {
    max-width: 13ch;
    font-weight: 750;
    letter-spacing: -.065em;
    line-height: .95;
}

.hero-lead {
    max-width: 46rem;
    color: #4e5a52;
    font-size: clamp(1.14rem, 2vw, 1.35rem);
    line-height: 1.65;
}

.hero-subline {
    font-size: 1.08rem;
    font-weight: 700;
}

.section {
    padding: clamp(5rem, 9vw, 8rem) 0;
}

.section-soft {
    background: var(--vainio-soft);
}

.section-dark {
    background: var(--vainio-dark);
    color: #e9efe9;
}

.section-title {
    margin-top: .65rem;
    font-size: clamp(2.3rem, 5vw, 4.25rem);
    line-height: 1.02;
    letter-spacing: -.055em;
    font-weight: 730;
}

.section-lead {
    font-size: clamp(1.12rem, 2vw, 1.35rem);
    line-height: 1.65;
    color: #4e5a52;
}

.section-dark .section-lead {
    color: #c9d3cc;
}

.principle-card,
.deployment-card {
    border: 1px solid var(--vainio-line);
    border-radius: 1.25rem;
    padding: 2rem;
    background: rgba(255,255,255,.65);
    box-shadow: 0 .75rem 2.5rem rgba(30, 43, 35, .045);
}

    .principle-card h3,
    .deployment-card h3 {
        font-size: 1.35rem;
        margin-bottom: 1rem;
    }

    .principle-card p,
    .deployment-card p {
        color: var(--vainio-muted);
        line-height: 1.7;
        margin-bottom: 0;
    }

.principle-number {
    font-size: .75rem;
    letter-spacing: .14em;
    font-weight: 800;
    color: var(--vainio-field-deep);
    margin-bottom: 2rem;
}

.temporal-section {
    background: #e7ecdf;
}

.temporal-demo {
    background: #fcfdf9;
    border: 1px solid rgba(21, 32, 27, .12);
    border-radius: 1.35rem;
    overflow: hidden;
    box-shadow: 0 1.5rem 4rem rgba(30, 43, 35, .12);
}

.demo-toolbar {
    padding: 1rem 1.25rem;
    background: #202a25;
    color: #edf3ed;
    font-size: .86rem;
}

.demo-date {
    color: #cbd7cc;
}

.demo-body {
    padding: 2rem;
}

.demo-label {
    color: var(--vainio-field-deep);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.demo-body h3 {
    margin: .55rem 0 1.25rem;
    font-size: 1.75rem;
}

.demo-body p {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.18rem;
    line-height: 1.7;
}

.demo-body mark {
    background: #e2edd8;
    border-radius: .25rem;
    padding: .08rem .22rem;
}

.demo-meta-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: .8rem;
    margin-top: 2rem;
}

    .demo-meta-grid > div {
        padding: .9rem 1rem;
        border-radius: .8rem;
        background: #f0f3ed;
    }

    .demo-meta-grid span,
    .demo-meta-grid strong {
        display: block;
    }

    .demo-meta-grid span {
        color: var(--vainio-muted);
        font-size: .75rem;
        margin-bottom: .2rem;
    }

.timeline-wrap {
    padding: 1.1rem 2rem 1.55rem;
    background: #f2f5ef;
    border-top: 1px solid var(--vainio-line);
}

.timeline-labels {
    display: flex;
    justify-content: space-between;
    color: var(--vainio-muted);
    font-size: .7rem;
    margin-bottom: .6rem;
}

.timeline-line {
    position: relative;
    height: 3px;
    background: #aeb9af;
    border-radius: 99px;
}

.timeline-knob {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--vainio-ink);
    transform: translate(-50%, -50%);
    box-shadow: 0 0 0 5px rgba(21,32,27,.09);
}

.governance-steps {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
    gap: .75rem;
    align-items: center;
}

.governance-step {
    padding: 1.2rem;
    border: 1px solid var(--vainio-line);
    border-radius: 1rem;
    background: white;
}

    .governance-step.active {
        border-color: #83987b;
        box-shadow: inset 0 0 0 1px #83987b;
    }

    .governance-step span,
    .governance-step small {
        display: block;
    }

    .governance-step span {
        font-weight: 800;
        margin-bottom: .35rem;
    }

    .governance-step small {
        color: var(--vainio-muted);
        line-height: 1.45;
    }

.governance-arrow {
    color: #91a08f;
    font-size: 1.35rem;
}

.not-list {
    border-top: 1px solid rgba(255,255,255,.15);
}

    .not-list > div {
        display: grid;
        grid-template-columns: minmax(13rem, .75fr) 1.25fr;
        gap: 1.5rem;
        padding: 1.45rem 0;
        border-bottom: 1px solid rgba(255,255,255,.15);
    }

    .not-list strong {
        color: white;
    }

    .not-list span {
        color: #bdc9c1;
    }

.preview-form {
    background: white;
    border: 1px solid var(--vainio-line);
    border-radius: 1.25rem;
    padding: clamp(1.5rem, 4vw, 2.5rem);
    box-shadow: 0 1rem 3rem rgba(30, 43, 35, .07);
}

.form-label {
    font-size: .88rem;
    font-weight: 700;
}

.form-control,
.form-select {
    border-color: #ccd4cc;
    background: #fcfdfa;
}

    .form-control:focus,
    .form-select:focus {
        border-color: #72866c;
        box-shadow: 0 0 0 .2rem rgba(114, 134, 108, .14);
    }

.form-note {
    color: var(--vainio-muted);
    font-size: .8rem;
    max-width: 38rem;
}

.site-footer {
    background: #f8f9f5;
    border-top: 1px solid var(--vainio-line);
}

.footer-copy {
    color: var(--vainio-muted);
}

.footer-link {
    display: inline-block;
    margin-left: 1.4rem;
    color: #4c5850;
    text-decoration: none;
    font-weight: 600;
    font-size: .9rem;
}

    .footer-link:hover {
        color: var(--vainio-ink);
    }

.footer-rule {
    margin: 2.5rem 0 1.5rem;
    border-color: var(--vainio-line);
    opacity: 1;
}

.page-top {
    padding-top: 10rem;
}

.narrow-copy {
    max-width: 54rem;
}

@media (max-width: 991.98px) {
    .hero-grid {
        opacity: .12;
    }

    .governance-steps {
        grid-template-columns: 1fr;
    }

    .governance-arrow {
        transform: rotate(90deg);
        justify-self: center;
    }

    .not-list > div {
        grid-template-columns: 1fr;
        gap: .35rem;
    }

    .navbar-collapse {
        padding: 1rem 0 1.25rem;
    }
}

@media (max-width: 575.98px) {
    .hero-title {
        font-size: 3.5rem;
    }

    .demo-meta-grid {
        grid-template-columns: 1fr;
    }

    .footer-link {
        margin: 0 1rem .5rem 0;
    }
}
