:root {
    color-scheme: light;
    --paper: #f4f1e8;
    --paper-bright: #fffdf7;
    --ink: #11141b;
    --ink-soft: #343944;
    --line: rgba(17, 20, 27, 0.16);
    --blue: #2c5cff;
    --blue-dark: #173bb7;
    --acid: #c8f23d;
    --cream: #e8e2d3;
    --mono: "SFMono-Regular", "Cascadia Code", "Roboto Mono", Consolas, monospace;
    --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --max: 1240px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 96px;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.6;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

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

button,
a {
    -webkit-tap-highlight-color: transparent;
}

a:focus-visible,
button:focus-visible {
    outline: 3px solid var(--acid);
    outline-offset: 4px;
}

.skip-link {
    position: fixed;
    z-index: 100;
    top: 10px;
    left: 10px;
    padding: 10px 14px;
    background: var(--ink);
    color: white;
    transform: translateY(-160%);
    transition: transform 160ms ease;
}

.skip-link:focus {
    transform: translateY(0);
}

.section-shell {
    width: min(calc(100% - 48px), var(--max));
    margin-inline: auto;
}

.section-space {
    padding-block: 136px;
}

.site-header {
    position: relative;
    z-index: 20;
    display: flex;
    width: min(calc(100% - 48px), var(--max));
    min-height: 88px;
    margin-inline: auto;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--line);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.brand-mark {
    position: relative;
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    overflow: hidden;
    border: 1px solid var(--ink);
    background: var(--ink);
    color: white;
    font-family: var(--mono);
    font-size: 18px;
    font-weight: 700;
}

.brand-mark::after {
    position: absolute;
    width: 52px;
    height: 8px;
    background: var(--blue);
    content: "";
    transform: rotate(-42deg) translateY(13px);
}

.brand-mark span {
    position: relative;
    z-index: 1;
}

.brand-name {
    font-family: var(--mono);
    font-size: 19px;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 30px;
    font-size: 13px;
    font-weight: 650;
}

.site-nav a {
    transition: color 160ms ease;
}

.site-nav a:hover {
    color: var(--blue);
}

.site-nav .nav-docs {
    padding: 10px 14px;
    border: 1px solid var(--ink);
}

.hero {
    display: grid;
    min-height: 680px;
    padding-block: 88px 104px;
    align-items: center;
    grid-template-columns: minmax(0, 1.02fr) minmax(420px, 0.98fr);
    gap: 72px;
}

.release-pill {
    display: inline-flex;
    margin-bottom: 36px;
    align-items: center;
    gap: 9px;
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.release-pill span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--blue);
    box-shadow: 0 0 0 5px rgba(44, 92, 255, 0.12);
}

.eyebrow {
    margin: 0 0 18px;
    color: var(--blue);
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.16em;
}

.eyebrow-light {
    color: var(--acid);
}

.hero h1,
.section-heading h2,
.architecture h2,
.quickstart h2,
.ecosystem h2,
.closing-cta h2,
.not-found h1 {
    margin: 0;
    font-size: clamp(52px, 6.2vw, 92px);
    font-weight: 760;
    letter-spacing: -0.07em;
    line-height: 0.95;
}

.hero h1 em {
    color: var(--blue);
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 500;
}

.hero-lede {
    max-width: 640px;
    margin: 34px 0 0;
    color: var(--ink-soft);
    font-size: 19px;
    line-height: 1.65;
}

.hero-actions {
    display: flex;
    margin-top: 38px;
    flex-wrap: wrap;
    gap: 12px;
}

.button {
    display: inline-flex;
    min-height: 52px;
    padding: 0 21px;
    align-items: center;
    justify-content: center;
    gap: 22px;
    border: 1px solid var(--ink);
    font-size: 13px;
    font-weight: 750;
    transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

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

.button-primary {
    background: var(--blue);
    color: white;
    border-color: var(--blue);
}

.button-primary:hover {
    background: var(--blue-dark);
}

.button-secondary:hover {
    background: var(--ink);
    color: white;
}

.button-light {
    border-color: white;
    background: white;
    color: var(--ink);
}

.button-outline-light {
    border-color: rgba(255, 255, 255, 0.5);
    color: white;
}

.button-outline-light:hover {
    background: white;
    color: var(--ink);
}

.hero-note {
    display: flex;
    margin: 28px 0 0;
    flex-wrap: wrap;
    gap: 20px;
    color: #686b72;
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-note span::before {
    margin-right: 8px;
    color: var(--blue);
    content: "/";
}

.hero-visual {
    position: relative;
    min-width: 0;
}

.code-window {
    position: relative;
    z-index: 3;
    overflow: hidden;
    border: 1px solid #303746;
    background: #111722;
    box-shadow: 26px 30px 0 var(--blue), 52px 58px 0 rgba(17, 20, 27, 0.08);
    color: #dbe4f3;
}

.code-window-bar,
.code-footer {
    display: flex;
    min-height: 48px;
    padding-inline: 18px;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #293141;
    color: #aeb8c8;
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.window-dots {
    display: flex;
    gap: 6px;
}

.window-dots i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #596273;
}

.window-dots i:first-child {
    background: var(--acid);
}

.code-status {
    color: var(--acid);
}

.code-window pre {
    min-height: 390px;
    margin: 0;
    padding: 34px 28px;
    overflow: auto;
    font-family: var(--mono);
    font-size: clamp(11px, 1.05vw, 14px);
    line-height: 1.9;
    tab-size: 4;
}

.code-window code {
    font-family: inherit;
}

.code-keyword {
    color: #c49cff;
}

.code-type {
    color: #66d9c7;
}

.code-method {
    color: #79a6ff;
}

.code-footer {
    border-top: 1px solid #293141;
    border-bottom: 0;
}

.code-footer span:first-child {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.code-footer i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--acid);
}

.orbit {
    position: absolute;
    z-index: 1;
    border: 1px solid rgba(17, 20, 27, 0.15);
    border-radius: 50%;
}

.orbit-one {
    width: 270px;
    height: 270px;
    top: -100px;
    right: -90px;
}

.orbit-two {
    width: 160px;
    height: 160px;
    right: -34px;
    bottom: -120px;
}

.visual-stamp {
    position: absolute;
    z-index: 4;
    right: -30px;
    bottom: 24px;
    display: grid;
    width: 58px;
    min-height: 112px;
    padding: 10px;
    place-items: center;
    background: var(--acid);
    color: var(--ink);
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.2em;
    line-height: 1.6;
}

.signal-strip {
    display: grid;
    border-block: 1px solid var(--line);
    grid-template-columns: repeat(4, 1fr);
}

.signal-strip > div {
    display: grid;
    min-height: 126px;
    padding: 25px max(24px, calc((100vw - var(--max)) / 8));
    align-content: center;
    border-right: 1px solid var(--line);
}

.signal-strip > div:last-child {
    border-right: 0;
}

.signal-strip span,
.card-index,
.capability-number {
    color: var(--blue);
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 800;
}

.signal-strip strong {
    margin-top: 4px;
    font-size: 15px;
}

.signal-strip small {
    color: #73767d;
    font-size: 12px;
}

.section-heading {
    display: grid;
    margin-bottom: 62px;
    grid-template-columns: 1.1fr 0.7fr;
    align-items: end;
    gap: 80px;
}

.section-heading h2,
.architecture h2,
.quickstart h2,
.ecosystem h2 {
    font-size: clamp(42px, 5vw, 70px);
}

.section-heading > p,
.section-heading-row > p {
    max-width: 520px;
    margin: 0 0 6px;
    color: var(--ink-soft);
    font-size: 17px;
}

.principle-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.principle-card {
    position: relative;
    display: flex;
    min-height: 510px;
    padding: 30px;
    flex-direction: column;
    border: 1px solid var(--ink);
}

.principle-card + .principle-card {
    border-left: 0;
}

.principle-card-blue {
    background: var(--blue);
    color: white;
}

.principle-card-dark {
    background: var(--ink);
    color: white;
}

.principle-card-paper {
    background: var(--paper-bright);
}

.principle-card-blue .card-index,
.principle-card-dark .card-index {
    color: rgba(255, 255, 255, 0.55);
}

.card-symbol {
    display: grid;
    width: 82px;
    height: 82px;
    margin: 62px 0 42px;
    place-items: center;
    border: 1px solid currentColor;
    font-family: var(--mono);
    font-size: 25px;
}

.principle-card h3 {
    margin: 0 0 16px;
    font-size: 27px;
    letter-spacing: -0.035em;
}

.principle-card p {
    margin: 0;
    opacity: 0.76;
    font-size: 14px;
}

.principle-card ul {
    display: grid;
    margin: auto 0 0;
    padding: 24px 0 0;
    border-top: 1px solid currentColor;
    gap: 8px;
    list-style: none;
    opacity: 0.72;
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.principle-card li::before {
    margin-right: 8px;
    content: "+";
}

.architecture {
    overflow: hidden;
    background: var(--ink);
    color: white;
}

.architecture-inner {
    display: grid;
    grid-template-columns: 0.75fr 1.25fr;
    align-items: center;
    gap: 100px;
}

.architecture-copy > p:not(.eyebrow) {
    max-width: 470px;
    margin: 30px 0 0;
    color: #abb0ba;
}

.text-link {
    display: inline-flex;
    margin-top: 35px;
    padding-bottom: 5px;
    align-items: center;
    gap: 28px;
    border-bottom: 1px solid var(--acid);
    color: var(--acid);
    font-size: 13px;
    font-weight: 700;
}

.layer-stack {
    position: relative;
    display: grid;
    padding: 18px;
    border: 1px solid #39404c;
    background: #151a23;
    gap: 10px;
}

.layer-stack::before {
    position: absolute;
    inset: -42px -80px auto auto;
    width: 170px;
    height: 170px;
    border: 1px solid #343b48;
    border-radius: 50%;
    content: "";
}

.layer {
    position: relative;
    z-index: 1;
    display: grid;
    min-height: 94px;
    padding: 18px 22px;
    align-items: center;
    border: 1px solid #3b4351;
    grid-template-columns: 42px 1fr auto;
    gap: 18px;
}

.layer > span,
.layer > i {
    font-family: var(--mono);
    font-size: 10px;
    font-style: normal;
    text-transform: uppercase;
}

.layer > span {
    color: #7b8493;
}

.layer > i {
    color: #a4acb9;
}

.layer strong,
.layer small {
    display: block;
}

.layer strong {
    font-size: 18px;
}

.layer small {
    margin-top: 3px;
    color: #8e96a4;
    font-size: 11px;
}

.layer-domain {
    border-color: var(--acid);
    background: var(--acid);
    color: var(--ink);
}

.layer-domain > span,
.layer-domain > i,
.layer-domain small {
    color: rgba(17, 20, 27, 0.65);
}

.layer-application {
    background: #203f9e;
}

.layer-infrastructure {
    background: #1b263d;
}

.section-heading-row {
    align-items: end;
}

.capability-list {
    display: grid;
    border-top: 1px solid var(--ink);
    grid-template-columns: repeat(2, 1fr);
}

.capability-list article {
    position: relative;
    display: grid;
    min-height: 170px;
    padding: 30px 70px 30px 18px;
    align-content: center;
    border-bottom: 1px solid var(--line);
    grid-template-columns: 36px 0.8fr 1.2fr;
    gap: 18px;
}

.capability-list article:nth-child(odd) {
    padding-right: 48px;
    border-right: 1px solid var(--line);
}

.capability-list article:nth-child(even) {
    padding-left: 48px;
}

.capability-list h3,
.capability-list p {
    margin: 0;
}

.capability-list h3 {
    font-size: 18px;
    line-height: 1.3;
}

.capability-list p {
    color: #676b74;
    font-size: 13px;
}

.capability-mark {
    position: absolute;
    right: 16px;
    color: var(--blue);
    font-family: var(--mono);
    font-size: 22px;
}

.quickstart {
    background: var(--blue);
    color: white;
}

.quickstart-inner {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    align-items: center;
    gap: 90px;
}

.quickstart .eyebrow {
    color: var(--acid);
}

.quickstart-copy > p:not(.eyebrow) {
    max-width: 500px;
    margin: 28px 0 0;
    color: rgba(255, 255, 255, 0.75);
}

.quick-links {
    display: grid;
    margin-top: 32px;
    gap: 10px;
}

.quick-links a {
    display: flex;
    max-width: 330px;
    padding-bottom: 7px;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.35);
    font-size: 13px;
    font-weight: 700;
}

.install-panel {
    border: 1px solid rgba(255, 255, 255, 0.42);
    background: #101722;
    box-shadow: 24px 24px 0 var(--acid);
}

.install-tabs {
    display: flex;
    min-height: 54px;
    padding-inline: 22px;
    align-items: center;
    border-bottom: 1px solid #303747;
    gap: 25px;
    color: #7f899a;
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.install-tabs .active {
    color: var(--acid);
}

.install-command {
    display: grid;
    min-height: 74px;
    padding: 18px 24px;
    align-items: center;
    border-bottom: 1px solid #242c3a;
    grid-template-columns: 26px 1fr;
    color: #dce4f2;
    font-family: var(--mono);
    font-size: 12px;
}

.install-command span {
    color: var(--acid);
}

.install-command code {
    overflow-wrap: anywhere;
}

.install-ready {
    display: grid;
    min-height: 60px;
    padding-inline: 24px;
    align-items: center;
    grid-template-columns: 16px 1fr auto;
    color: #788394;
    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.install-ready i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--acid);
}

.install-ready strong {
    color: #cdd7e7;
}

.ecosystem {
    text-align: center;
}

.ecosystem h2 {
    max-width: 700px;
    margin-inline: auto;
}

.package-cloud {
    display: flex;
    max-width: 1050px;
    margin: 58px auto 0;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.package-cloud a {
    display: inline-flex;
    min-height: 54px;
    padding: 0 18px;
    align-items: center;
    border: 1px solid var(--line);
    background: var(--paper-bright);
    gap: 12px;
    font-family: var(--mono);
    font-size: 11px;
    transition: border-color 160ms ease, transform 160ms ease;
}

.package-cloud a:hover {
    border-color: var(--blue);
    transform: translateY(-2px);
}

.package-cloud span {
    color: var(--blue);
    font-size: 9px;
}

.closing-cta {
    position: relative;
    overflow: hidden;
    padding-block: 130px;
    background: var(--ink);
    color: white;
}

.closing-grid {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: linear-gradient(90deg, transparent, black 45%, transparent);
}

.closing-inner {
    position: relative;
    z-index: 1;
}

.closing-cta h2 {
    max-width: 900px;
    font-size: clamp(52px, 7vw, 94px);
}

.closing-cta > .closing-inner > p:not(.eyebrow) {
    max-width: 640px;
    margin: 30px 0 0;
    color: #aeb3bd;
    font-size: 18px;
}

.site-footer {
    display: grid;
    min-height: 220px;
    padding-block: 52px;
    align-items: center;
    grid-template-columns: 1fr 1fr auto;
    gap: 50px;
}

.footer-brand > span:last-child {
    display: grid;
}

.footer-brand strong {
    font-family: var(--mono);
    letter-spacing: 0.08em;
}

.footer-brand small,
.site-footer p {
    color: #74777d;
    font-size: 11px;
}

.site-footer p {
    margin: 0;
}

.footer-links {
    display: flex;
    gap: 24px;
    font-size: 12px;
    font-weight: 650;
}

.footer-links a:hover {
    color: var(--blue);
}

.not-found {
    display: grid;
    width: min(calc(100% - 48px), 900px);
    min-height: 100vh;
    margin-inline: auto;
    place-content: center;
}

.not-found h1 {
    margin-bottom: 24px;
}

.not-found .button {
    width: fit-content;
    margin-top: 20px;
}

.boot-screen {
    display: grid;
    min-height: 100vh;
    place-content: center;
    justify-items: center;
    background: var(--paper);
    gap: 18px;
}

.boot-mark {
    display: grid;
    width: 54px;
    height: 54px;
    place-items: center;
    background: var(--ink);
    color: white;
    font-family: var(--mono);
    font-weight: 800;
}

.boot-line {
    width: 150px;
    height: 2px;
    overflow: hidden;
    background: rgba(17, 20, 27, 0.12);
}

.boot-line span {
    display: block;
    width: 45%;
    height: 100%;
    background: var(--blue);
    animation: boot 1.1s ease-in-out infinite alternate;
}

.boot-screen p {
    margin: 0;
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

@keyframes boot {
    from { transform: translateX(-10%); }
    to { transform: translateX(135%); }
}

#blazor-error-ui {
    position: fixed;
    z-index: 1000;
    right: 20px;
    bottom: 20px;
    display: none;
    padding: 14px 48px 14px 18px;
    background: #b92d2d;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.24);
    color: white;
    font-size: 13px;
}

#blazor-error-ui .reload {
    margin-left: 10px;
    text-decoration: underline;
}

#blazor-error-ui .dismiss {
    position: absolute;
    top: 0;
    right: 0;
    width: 40px;
    height: 100%;
    border: 0;
    background: transparent;
    color: white;
    cursor: pointer;
    font-size: 20px;
}

@media (max-width: 1050px) {
    .hero {
        grid-template-columns: 1fr;
    }

    .hero-copy {
        max-width: 780px;
    }

    .hero-visual {
        max-width: 720px;
    }

    .architecture-inner,
    .quickstart-inner {
        grid-template-columns: 1fr;
    }

    .architecture-copy {
        max-width: 720px;
    }

    .capability-list {
        grid-template-columns: 1fr;
    }

    .capability-list article:nth-child(odd),
    .capability-list article:nth-child(even) {
        padding-inline: 18px 70px;
        border-right: 0;
    }
}

@media (max-width: 820px) {
    .section-shell,
    .site-header {
        width: min(calc(100% - 32px), var(--max));
    }

    .section-space {
        padding-block: 92px;
    }

    .site-header {
        min-height: 76px;
    }

    .site-nav {
        gap: 14px;
    }

    .site-nav a:not(.nav-docs) {
        display: none;
    }

    .hero {
        min-height: auto;
        padding-block: 70px 100px;
        gap: 68px;
    }

    .hero h1 {
        font-size: clamp(48px, 13vw, 72px);
    }

    .hero-lede {
        font-size: 17px;
    }

    .code-window {
        box-shadow: 14px 16px 0 var(--blue);
    }

    .visual-stamp,
    .orbit {
        display: none;
    }

    .signal-strip {
        grid-template-columns: repeat(2, 1fr);
    }

    .signal-strip > div:nth-child(2) {
        border-right: 0;
    }

    .signal-strip > div:nth-child(-n + 2) {
        border-bottom: 1px solid var(--line);
    }

    .section-heading {
        grid-template-columns: 1fr;
        gap: 28px;
    }

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

    .principle-card {
        min-height: 450px;
    }

    .principle-card + .principle-card {
        border-top: 0;
        border-left: 1px solid var(--ink);
    }

    .site-footer {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

@media (max-width: 560px) {
    .hero-actions,
    .hero-actions .button {
        width: 100%;
    }

    .button {
        justify-content: space-between;
    }

    .code-window pre {
        min-height: 340px;
        padding: 24px 18px;
        font-size: 10px;
    }

    .code-status,
    .code-footer span:last-child {
        display: none;
    }

    .signal-strip > div {
        min-height: 110px;
        padding: 20px;
    }

    .layer {
        grid-template-columns: 30px 1fr;
    }

    .layer > i {
        display: none;
    }

    .layer small {
        font-size: 9px;
    }

    .capability-list article {
        min-height: 190px;
        grid-template-columns: 28px 1fr;
    }

    .capability-list p {
        grid-column: 2;
    }

    .install-panel {
        box-shadow: 10px 12px 0 var(--acid);
    }

    .install-command {
        padding-inline: 15px;
        font-size: 10px;
    }

    .install-tabs span:last-child,
    .install-ready strong {
        display: none;
    }

    .footer-links {
        flex-wrap: wrap;
    }
}

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

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