:root {
    color-scheme: dark;
    --zt-bg: #050505;
    --zt-bg-2: #0c0808;
    --zt-panel: #121010;
    --zt-panel-strong: #1d1515;
    --zt-panel-soft: rgba(255, 255, 255, 0.035);
    --zt-border: rgba(229, 225, 221, 0.13);
    --zt-border-strong: rgba(226, 35, 40, 0.38);
    --zt-red: #e22328;
    --zt-red-deep: #8e1518;
    --zt-red-soft: #ff6b70;
    --zt-red-dim: #4b1113;
    --zt-steel: #aaa4a2;
    --zt-silver: #e5e1dd;
    --zt-text: #f7f3ef;
    --zt-muted: #b8acab;
    --zt-shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    scroll-behavior: smooth;
    background: var(--zt-bg);
}

body {
    min-height: 100%;
    margin: 0;
    overflow-x: hidden;
    background:
        linear-gradient(135deg, rgba(226, 35, 40, 0.16) 0, transparent 34rem),
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.018) 0 1px, transparent 1px 8rem),
        linear-gradient(180deg, #060505 0%, #0c0808 48%, #050505 100%);
    color: var(--zt-text);
    font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

body::selection {
    background: rgba(226, 35, 40, 0.45);
    color: #ffffff;
}

a,
.btn-link {
    color: var(--zt-red-soft);
    text-decoration: none;
}

a:hover,
.btn-link:hover {
    color: var(--zt-text);
}

button,
a {
    overflow-wrap: anywhere;
}

h1,
h2,
h3,
h4,
h5,
h6,
p {
    overflow-wrap: anywhere;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--zt-text);
    margin: 0;
}

h1:focus {
    outline: none;
}

p {
    margin: 0;
    color: var(--zt-muted);
    line-height: 1.7;
}

.content {
    width: min(100%, 76rem);
    max-width: 100%;
    margin: 0 auto;
    padding: 1.25rem;
    overflow-x: hidden;
}

.foundation-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(18rem, 30rem);
    align-items: center;
    gap: 2rem;
    padding: 2rem 0 1.75rem;
    border-bottom: 1px solid var(--zt-border);
}

.hero-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
}

.eyebrow,
.section-kicker {
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(226, 35, 40, 0.36);
    border-radius: 6px;
    background: rgba(226, 35, 40, 0.13);
    color: #ffc2c4;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0.38rem 0.55rem;
}

.foundation-hero h1 {
    max-width: 16ch;
    font-size: 3rem;
    line-height: 1.02;
}

.foundation-hero p {
    max-width: 42rem;
    font-size: 1.08rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.primary-action,
.secondary-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.9rem;
    border-radius: 8px;
    padding: 0.78rem 1rem;
    font-weight: 700;
}

.primary-action {
    color: #ffffff;
    background: linear-gradient(180deg, #f03a3f 0%, var(--zt-red) 100%);
    border: 1px solid rgba(255, 176, 179, 0.42);
    box-shadow: 0 12px 32px rgba(226, 35, 40, 0.24);
}

.secondary-action {
    color: var(--zt-text);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--zt-border);
}

.primary-action:hover,
.secondary-action:hover {
    color: #ffffff;
    transform: translateY(-1px);
}

.brand-visual {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.brand-visual img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid rgba(229, 225, 221, 0.22);
    box-shadow: var(--zt-shadow);
}

.brand-visual figcaption {
    color: var(--zt-steel);
    font-size: 0.9rem;
    line-height: 1.55;
}

.signal-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
    gap: 0.8rem;
    padding: 1rem 0 0;
}

.signal-row div,
.principle-card,
.capability-card,
.link-grid a {
    border: 1px solid var(--zt-border);
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.018));
}

.signal-row div {
    min-height: 6rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem;
}

.signal-row span,
.link-grid span {
    color: var(--zt-steel);
    font-size: 0.85rem;
}

.signal-row strong,
.link-grid strong {
    color: var(--zt-text);
    font-size: 1rem;
}

.content-section {
    display: grid;
    gap: 1.5rem;
    padding: 3rem 0;
    border-bottom: 1px solid var(--zt-border);
}

.section-heading {
    display: grid;
    grid-template-columns: minmax(14rem, 0.45fr) minmax(0, 1fr);
    gap: 1.25rem 2rem;
    align-items: start;
}

.section-heading .section-kicker {
    width: fit-content;
}

.section-heading h2 {
    font-size: 2rem;
    line-height: 1.12;
}

.section-heading p {
    grid-column: 2;
    max-width: 45rem;
}

.principle-grid,
.capability-grid,
.link-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
    gap: 1rem;
}

.principle-card,
.capability-card {
    min-height: 13rem;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    padding: 1.1rem;
}

.principle-card,
.capability-card {
    border-top-color: var(--zt-border-strong);
}

.principle-index {
    color: var(--zt-red-soft);
    font-size: 0.82rem;
    font-weight: 800;
}

.principle-card h3,
.capability-card h3 {
    font-size: 1.15rem;
}

.product-section {
    background:
        linear-gradient(90deg, rgba(142, 21, 24, 0.22), transparent),
        linear-gradient(180deg, rgba(255, 255, 255, 0.018), transparent);
    margin-inline: -1.25rem;
    padding-inline: 1.25rem;
}

.blueprint-list {
    display: grid;
    gap: 0.8rem;
}

.blueprint-list article {
    display: grid;
    grid-template-columns: 10rem minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
    padding: 1rem 0;
    border-top: 1px solid var(--zt-border);
}

.blueprint-list span {
    color: var(--zt-red-soft);
    font-weight: 800;
}

.blueprint-list .trust-pass span::after,
.blueprint-list .trust-fail span::after {
    display: inline-flex;
    margin-left: 0.45rem;
    font-size: 0.75rem;
    font-weight: 800;
}

.blueprint-list .trust-pass span::after {
    content: "ALLOW";
    color: var(--zt-silver);
}

.blueprint-list .trust-fail {
    border-top-color: var(--zt-border-strong);
}

.blueprint-list .trust-fail span::after {
    content: "DENY";
    color: var(--zt-red-soft);
}

.link-grid a {
    min-height: 7rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.1rem;
    transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.link-grid a:hover {
    border-color: var(--zt-border-strong);
    background: rgba(226, 35, 40, 0.08);
    transform: translateY(-1px);
}

.identity-section {
    background:
        linear-gradient(90deg, rgba(226, 35, 40, 0.1), transparent 60%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent);
    margin-inline: -1.25rem;
    padding-inline: 1.25rem;
}

.auth-shell,
.account-shell,
.auth-guard {
    display: grid;
    gap: 1.25rem;
    padding: 2rem 0 3rem;
}

.auth-shell {
    grid-template-columns: minmax(0, 0.85fr) minmax(18rem, 28rem);
    align-items: start;
}

.auth-copy,
.account-heading,
.auth-guard {
    align-content: start;
}

.auth-copy,
.account-heading {
    display: grid;
    gap: 1rem;
}

.auth-copy .section-kicker,
.account-heading .section-kicker,
.auth-guard .section-kicker {
    width: fit-content;
}

.auth-copy h1,
.account-heading h1,
.auth-guard h1 {
    font-size: 2.45rem;
    line-height: 1.06;
}

.auth-panel,
.account-panel,
.profile-panel {
    border: 1px solid var(--zt-border);
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.052), rgba(255, 255, 255, 0.018));
}

.auth-panel {
    display: grid;
    gap: 1rem;
    padding: 1.1rem;
    border-top-color: var(--zt-border-strong);
}

.field {
    display: grid;
    gap: 0.42rem;
}

.field span,
.checkbox-field span,
.profile-panel span {
    color: var(--zt-steel);
    font-size: 0.85rem;
    font-weight: 700;
}

.field input {
    width: 100%;
    min-height: 2.9rem;
    border: 1px solid var(--zt-border);
    border-radius: 8px;
    padding: 0.72rem 0.82rem;
    color: var(--zt-text);
    background: rgba(0, 0, 0, 0.28);
}

.field input:focus {
    outline: 2px solid rgba(226, 35, 40, 0.42);
    outline-offset: 2px;
    border-color: var(--zt-border-strong);
}

.checkbox-field {
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.checkbox-field input {
    width: 1.05rem;
    height: 1.05rem;
    accent-color: var(--zt-red);
}

.auth-submit {
    width: 100%;
    border: 0;
    cursor: pointer;
    font: inherit;
}

.auth-switch,
.auth-message {
    font-size: 0.95rem;
}

.auth-message {
    border: 1px solid var(--zt-border-strong);
    border-radius: 8px;
    padding: 0.72rem 0.82rem;
    color: #ffd8d9;
    background: rgba(226, 35, 40, 0.11);
}

.trust-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.trust-strip span,
.trust-strip strong {
    min-height: 2.35rem;
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--zt-border);
    border-radius: 8px;
    padding: 0.45rem 0.65rem;
    background: rgba(255, 255, 255, 0.035);
}

.trust-strip span {
    color: var(--zt-steel);
}

.trust-strip strong {
    color: var(--zt-text);
    border-color: var(--zt-border-strong);
}

.profile-grid,
.account-workspace {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
    gap: 1rem;
}

.account-workspace {
    grid-template-columns: minmax(0, 1.2fr) minmax(17rem, 0.8fr);
}

.profile-panel,
.account-panel {
    padding: 1.1rem;
}

.profile-panel {
    min-height: 6rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 0.8rem;
}

.profile-panel strong {
    color: var(--zt-text);
    font-size: 1rem;
}

.account-panel {
    display: grid;
    align-content: start;
    gap: 1rem;
}

.account-panel h2 {
    font-size: 1.25rem;
}

.blueprint-list.compact article {
    grid-template-columns: minmax(7rem, 0.3fr) minmax(0, 1fr);
    padding: 0.8rem 0;
}

.auth-guard {
    max-width: 42rem;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #ff7074;
}

.blazor-error-boundary {
    background: rgba(18, 16, 16, 0.96);
    padding: 1rem 1.25rem;
    border-left: 4px solid var(--zt-red);
    color: var(--zt-text);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

.blazor-error-boundary::after {
    content: "An error has occurred.";
}

.darker-border-checkbox.form-check-input {
    border-color: var(--zt-steel);
}

.form-floating > .form-control-plaintext::placeholder,
.form-floating > .form-control::placeholder {
    color: var(--zt-muted);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder,
.form-floating > .form-control:focus::placeholder {
    text-align: start;
}

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

    .foundation-hero h1 {
        max-width: 18ch;
        font-size: 2.45rem;
    }

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

    .section-heading p {
        grid-column: auto;
    }
}

@media (max-width: 640px) {
    .content {
        width: 100%;
        max-width: 100vw;
        padding: 1rem;
    }

    .foundation-hero,
    .signal-row,
    .content-section,
    .brand-visual,
    .brand-visual img,
    .brand-visual figcaption {
        width: 100%;
        max-width: calc(100vw - 2rem);
    }

    .signal-row,
    .principle-grid,
    .capability-grid,
    .link-grid {
        grid-template-columns: 1fr;
    }

    .foundation-hero {
        padding-top: 1.25rem;
        gap: 1.25rem;
    }

    .foundation-hero h1 {
        max-width: none;
        font-size: 2.1rem;
    }

    .foundation-hero h1,
    .foundation-hero p {
        width: 100%;
        max-width: calc(100vw - 2rem);
    }

    .foundation-hero p {
        font-size: 1rem;
    }

    .hero-actions,
    .primary-action,
    .secondary-action {
        width: 100%;
    }

    .brand-visual img {
        aspect-ratio: 4 / 3;
    }

    .content-section {
        padding: 2.25rem 0;
    }

    .product-section {
        margin-inline: -1rem;
        padding-inline: 1rem;
    }

    .identity-section {
        margin-inline: -1rem;
        padding-inline: 1rem;
    }

    .section-heading h2 {
        font-size: 1.6rem;
    }

    .blueprint-list article,
    .blueprint-list.compact article,
    .auth-shell,
    .account-workspace {
        grid-template-columns: 1fr;
        gap: 0.45rem;
    }

    .auth-copy h1,
    .account-heading h1,
    .auth-guard h1 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .content {
        width: calc(100vw - 2rem);
        max-width: 22.5rem;
        margin-left: 1rem;
        margin-right: auto;
        padding-inline: 0;
    }

    .foundation-hero,
    .signal-row,
    .content-section,
    .brand-visual,
    .brand-visual img,
    .brand-visual figcaption,
    .foundation-hero h1,
    .foundation-hero p {
        max-width: 100%;
    }

    .foundation-hero h1 {
        font-size: 1.95rem;
    }

    .product-section {
        margin-inline: 0;
        padding-inline: 0;
    }

    .identity-section {
        margin-inline: 0;
        padding-inline: 0;
    }
}
