:root {
    color-scheme: dark;
    --brand-ink: #f4f8ff;
    --brand-soft: #c7d3e4;
    --brand-muted: #92a5bf;
    --brand-bg: #07111f;
    --brand-deep: #050c16;
    --brand-panel: #0f1d30;
    --brand-line: rgba(155, 177, 211, 0.22);
    --brand-cyan: #46ffe6;
    --brand-purple: #a585ff;
    --brand-page-width: 74rem;
}

.brand-page,
.brand-page * {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body.brand-page {
    min-width: 20rem;
    min-height: 100vh;
    margin: 0;
    color: var(--brand-ink);
    background:
        radial-gradient(circle at 16% 5%, rgba(70, 255, 230, 0.09), transparent 30rem),
        radial-gradient(circle at 86% 32%, rgba(165, 133, 255, 0.1), transparent 28rem),
        var(--brand-bg);
    font-family: "Exo 2", "Noto Sans TC", "Noto Sans SC", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Microsoft JhengHei", "Microsoft YaHei", system-ui, sans-serif;
    line-height: 1.55;
}

.brand-page a {
    color: inherit;
}

.brand-page a:focus-visible {
    outline: 3px solid var(--brand-cyan);
    outline-offset: 4px;
}

.brand-page__skip {
    position: fixed;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 20;
    padding: 0.65rem 0.9rem;
    color: var(--brand-deep);
    background: var(--brand-cyan);
    border-radius: 0.45rem;
    font-weight: 700;
    transform: translateY(-180%);
}

.brand-page__skip:focus {
    transform: translateY(0);
}

.brand-page__header {
    width: min(calc(100% - 2rem), var(--brand-page-width));
    min-height: 5.25rem;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border-bottom: 1px solid var(--brand-line);
}

.brand-page__wordmark {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.brand-page__wordmark img {
    width: 2.65rem;
    height: 2.65rem;
}

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

.brand-page__wordmark strong {
    font-size: 1.15rem;
    letter-spacing: 0.16em;
}

.brand-page__wordmark span {
    color: var(--brand-muted);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.brand-page__utilities {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.brand-page__updates {
    padding: 0.42rem 0.58rem;
    color: var(--brand-soft);
    border-radius: 0.4rem;
    font-size: 0.78rem;
    font-weight: 600;
    text-decoration: none;
}

.brand-page__updates:hover {
    color: var(--brand-ink);
    background: rgba(155, 177, 211, 0.1);
}

.brand-page__updates {
    margin-right: 0.45rem;
    border-right: 1px solid var(--brand-line);
    border-radius: 0;
}

.brand-page__main {
    width: min(calc(100% - 2rem), var(--brand-page-width));
    margin: 0 auto;
    padding: clamp(2.5rem, 5vw, 4rem) 0 4rem;
}

.brand-page__intro {
    margin-bottom: clamp(2rem, 4vw, 3rem);
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(20rem, 0.85fr);
    align-items: center;
    gap: clamp(2rem, 6vw, 5rem);
}

.brand-page__intro-copy {
    min-width: 0;
}

.brand-page__cube {
    position: relative;
    min-width: 0;
    color: var(--brand-cyan);
    isolation: isolate;
}

.brand-page__cube::before {
    position: absolute;
    inset: 12% 4%;
    z-index: -1;
    background: radial-gradient(circle, rgba(70, 255, 230, 0.1), rgba(165, 133, 255, 0.04) 48%, transparent 70%);
    border: 1px solid rgba(70, 255, 230, 0.08);
    border-radius: 50%;
    content: "";
}

.brand-page__cube .rubik-container {
    min-height: 24rem;
}

.brand-page__cube .rubik-scene {
    --s: 34px;
}

.brand-page__eyebrow {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin: 0 0 1.25rem;
    color: var(--brand-cyan);
    font-size: 0.77rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.brand-page__eyebrow::before {
    width: 2.5rem;
    height: 1px;
    background: currentColor;
    content: "";
}

.brand-page h1 {
    max-width: 15ch;
    margin: 0;
    font-size: clamp(2.55rem, 7vw, 5.9rem);
    font-weight: 600;
    letter-spacing: -0.055em;
    line-height: 0.98;
    text-wrap: balance;
}

.brand-page__lede {
    max-width: 48rem;
    margin: 1.6rem 0 0;
    color: var(--brand-soft);
    font-size: clamp(1rem, 2vw, 1.18rem);
}

.brand-page__choices {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    border: 1px solid var(--brand-line);
    background: rgba(5, 12, 22, 0.58);
    box-shadow: 0 2rem 5rem rgba(0, 0, 0, 0.24);
}

.brand-page__choices::before {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 2;
    display: grid;
    width: 3.25rem;
    height: 3.25rem;
    place-items: center;
    color: var(--brand-deep);
    background: linear-gradient(135deg, var(--brand-cyan), #ddfeff 48%, var(--brand-purple));
    border: 0.45rem solid var(--brand-bg);
    border-radius: 50%;
    content: "⇔";
    font-size: 1rem;
    font-weight: 800;
    transform: translate(-50%, -50%);
}

.brand-page__product {
    position: relative;
    min-height: 29rem;
    padding: clamp(1.6rem, 4vw, 3rem);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.brand-page__product + .brand-page__product {
    border-left: 1px solid var(--brand-line);
}

.brand-page__product::after {
    position: absolute;
    right: -5rem;
    bottom: -7rem;
    width: 17rem;
    height: 17rem;
    border: 1px solid currentColor;
    border-radius: 50%;
    content: "";
    opacity: 0.08;
}

.brand-page__product--monitor {
    color: var(--brand-cyan);
}

.brand-page__product--apostille {
    color: var(--brand-purple);
}

.brand-page__product-kicker {
    margin: 0 0 4.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.brand-page__status {
    padding: 0.2rem 0.52rem;
    border: 1px solid currentColor;
    border-radius: 999px;
    font-size: 0.67rem;
}

.brand-page__product h2 {
    margin: 0;
    color: var(--brand-ink);
    font-size: clamp(1.75rem, 4vw, 3rem);
    font-weight: 600;
    letter-spacing: -0.035em;
    line-height: 1.05;
}

.brand-page__product-copy {
    max-width: 34rem;
    margin: 1.15rem 0 0;
    color: var(--brand-soft);
}

.brand-page__boundary {
    margin: 1rem 0 0;
    color: var(--brand-muted);
    font-size: 0.83rem;
}

.brand-page__actions {
    position: relative;
    z-index: 3;
    margin-top: auto;
    padding-top: 2.3rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.7rem;
}

.brand-page__button {
    min-height: 2.85rem;
    padding: 0.72rem 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid currentColor;
    border-radius: 0.55rem;
    font-size: 0.84rem;
    font-weight: 700;
    text-decoration: none;
    transition: transform 150ms ease, background 150ms ease;
}

.brand-page__source {
    padding: 0.75rem 0.5rem;
    font-size: 0.84rem;
    text-underline-offset: 0.2em;
}

.brand-page__button:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-2px);
}

.brand-page .brand-page__button--primary {
    color: var(--brand-deep);
    background: currentColor;
}

.brand-page__product--monitor .brand-page__button--primary {
    background: var(--brand-cyan);
}

.brand-page__product--apostille .brand-page__button--primary {
    background: var(--brand-purple);
}

.brand-page__noscript {
    margin: 1rem 0 0;
    padding: 0.9rem 1rem;
    color: var(--brand-soft);
    border: 1px solid var(--brand-line);
    font-size: 0.88rem;
}

.brand-page__footer {
    width: min(calc(100% - 2rem), var(--brand-page-width));
    margin: 0 auto;
    padding: 1.5rem 0 2.5rem;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    color: var(--brand-muted);
    border-top: 1px solid var(--brand-line);
    font-size: 0.78rem;
}

.brand-page__footer p {
    margin: 0;
}

.brand-page__mcp {
    margin-top: clamp(3rem, 6vw, 5rem);
    padding-top: clamp(2rem, 4vw, 3rem);
    border-top: 1px solid var(--brand-line);
    scroll-margin-top: 1.5rem;
}

.brand-page__mcp-intro {
    max-width: 52rem;
}

.brand-page__mcp-intro h2 {
    margin: 0;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 600;
    letter-spacing: -0.035em;
    line-height: 1.15;
    text-wrap: balance;
}

.brand-page__mcp-intro > p:last-child {
    margin: 1.2rem 0 0;
    color: var(--brand-soft);
}

.brand-page__mcp-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem 2.5rem;
    margin: 2rem 0;
    padding: 0 0 0 1.25rem;
    color: var(--brand-soft);
    font-size: 0.88rem;
}

.brand-page__mcp-steps li {
    padding-left: 0.25rem;
}

.brand-page__mcp-steps li::marker {
    color: var(--brand-cyan);
    font-weight: 700;
}

.brand-page__mcp-profiles {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
}

.brand-page__mcp-profile {
    display: flex;
    min-width: 0;
    flex-direction: column;
    padding-top: 1.25rem;
    border-top: 1px solid var(--brand-line);
}

.brand-page__mcp-heading {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.5rem 1rem;
}

.brand-page__mcp-heading h3 {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 600;
}

.brand-page__mcp-heading span,
.brand-page__mcp-endpoint > span {
    color: var(--brand-muted);
    font-size: 0.75rem;
}

.brand-page__mcp-profile > p {
    margin: 0.85rem 0 0;
    color: var(--brand-soft);
    font-size: 0.9rem;
}

.brand-page__mcp-profile blockquote {
    margin: 1.1rem 0 1.4rem;
    padding-left: 0.8rem;
    color: var(--brand-ink);
    border-left: 2px solid var(--brand-cyan);
    font-size: 0.9rem;
}

.brand-page__mcp-profile + .brand-page__mcp-profile blockquote {
    border-color: var(--brand-purple);
}

.brand-page__mcp-endpoint {
    display: grid;
    gap: 0.5rem;
    margin-top: auto;
    padding: 0.9rem 1rem;
    background: var(--brand-deep);
    border: 1px solid var(--brand-line);
    border-radius: 0.4rem;
}

.brand-page__mcp-endpoint code {
    color: var(--brand-soft);
    font: 0.82rem/1.6 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    overflow-wrap: anywhere;
    user-select: all;
}

.brand-page__mcp-link {
    align-self: flex-start;
    padding: 0.85rem 0;
    font-size: 0.87rem;
    text-underline-offset: 0.25em;
}

.brand-page__mcp-link:hover {
    color: var(--brand-cyan);
}

.brand-page__mcp-note {
    max-width: 68rem;
    margin: 1.6rem 0 0;
    color: var(--brand-muted);
    font-size: 0.8rem;
}

@media (max-width: 48rem) {
    .brand-page__mcp-steps,
    .brand-page__mcp-profiles {
        grid-template-columns: 1fr;
    }

    .brand-page__header {
        padding: 1rem 0;
        align-items: flex-start;
        flex-direction: column;
    }

    .brand-page__utilities {
        width: 100%;
        justify-content: space-between;
    }

    .brand-page__updates {
        margin-right: 0;
        padding-left: 0;
        border-right: 0;
    }

    .brand-page__main {
        padding-top: 3.75rem;
    }

    .brand-page__intro {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .brand-page__cube {
        width: min(100%, 26rem);
        margin: 0 auto;
    }

    .brand-page__cube .rubik-container {
        min-height: 20rem;
    }

    .brand-page__cube .rubik-scene {
        --s: 28px;
    }

    .brand-page__cube .rubik-poster {
        width: min(21rem, 100%);
    }

    .brand-page__choices {
        grid-template-columns: 1fr;
    }

    .brand-page__choices::before {
        top: 50%;
        left: 1.6rem;
    }

    .brand-page__product {
        min-height: 25rem;
    }

    .brand-page__product + .brand-page__product {
        border-top: 1px solid var(--brand-line);
        border-left: 0;
    }

    .brand-page__product-kicker {
        margin-bottom: 3.25rem;
    }

    .brand-page__footer {
        flex-direction: column;
    }
}

@media (max-width: 28rem) {
    .brand-page__actions {
        align-items: stretch;
        flex-direction: column;
    }

    .brand-page__cube .rubik-container {
        min-height: 17rem;
    }

    .brand-page__cube .rubik-scene {
        --s: 24px;
    }

    .brand-page__cube .rubik-poster {
        width: min(18rem, 100%);
    }

    .brand-page__button {
        width: 100%;
        text-align: center;
    }
}

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

    .brand-page__button {
        transition: none;
    }
}
