:root {
    color-scheme: light;
    --ztpos-primary: #176fce;
    --ztpos-primary-dark: #125ab0;
    --ztpos-secondary: #458cd8;
    --ztpos-workspace: #e5e7eb;
    --ztpos-surface: #ffffff;
    --ztpos-sidebar: #142033;
    --ztpos-ink: #172033;
    --ztpos-muted: #5c6675;
    --ztpos-line: #d6dde8;
    --ztpos-success: #198754;
    --ztpos-warning: #b45309;
    --radius-card: 8px;
    --shadow-card: 0 8px 22px rgba(20, 32, 51, 0.08);
    --shadow-floating: 0 20px 50px rgba(20, 32, 51, 0.16);
    font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--ztpos-ink);
    background: var(--ztpos-workspace);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(229, 231, 235, 0.94) 340px),
        var(--ztpos-workspace);
}

a {
    color: inherit;
}

.portal-page {
    min-height: 100vh;
}

.site-nav {
    position: sticky;
    top: 0;
    z-index: 10;
    border-bottom: 1px solid rgba(214, 221, 232, 0.86);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(14px);
}

.nav-inner,
.page-section,
.portal-footer {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.nav-inner {
    min-height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    font-weight: 900;
}

.brand-mark {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: var(--ztpos-primary);
    color: #ffffff;
    box-shadow: 0 8px 18px rgba(23, 111, 206, 0.22);
}

.brand-name {
    display: grid;
    line-height: 1.05;
}

.brand-name small {
    color: var(--ztpos-muted);
    font-size: 11px;
    font-weight: 800;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    font-weight: 800;
}

.nav-links a {
    border-radius: 8px;
    padding: 9px 12px;
    color: #334155;
    text-decoration: none;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
    background: #eef5ff;
    color: var(--ztpos-primary-dark);
}

.nav-cta {
    background: var(--ztpos-primary);
    color: #ffffff !important;
}

.nav-cta:hover {
    background: var(--ztpos-primary-dark) !important;
    color: #ffffff !important;
}

.hero {
    padding-top: 54px;
}

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

.eyebrow {
    margin: 0 0 12px;
    color: var(--ztpos-primary-dark);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    max-width: 900px;
    margin-bottom: 18px;
    font-size: 72px;
    line-height: 0.96;
    letter-spacing: 0;
}

h2 {
    font-size: 30px;
    line-height: 1.15;
    letter-spacing: 0;
}

.summary {
    max-width: 760px;
    color: #334155;
    font-size: 20px;
    line-height: 1.58;
}

.fineprint,
.muted {
    color: var(--ztpos-muted);
    font-size: 14px;
    line-height: 1.65;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 24px 0 12px;
}

.button,
.actions a,
.panel-form button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    border: 1px solid var(--ztpos-line);
    border-radius: 8px;
    background: #ffffff;
    color: #243041;
    padding: 10px 14px;
    text-decoration: none;
    font-weight: 900;
}

.actions a.primary-action,
.primary-action,
.button.primary,
.panel-form button {
    border-color: var(--ztpos-primary);
    background: var(--ztpos-primary);
    color: #ffffff !important;
}

.button.secondary,
.actions a:not(.primary-action) {
    background: #f8fafc;
}

.product-frame {
    margin-top: 36px;
    border: 1px solid #c9d3e1;
    border-radius: 8px;
    background: #f8fafc;
    box-shadow: var(--shadow-floating);
    overflow: hidden;
}

.product-titlebar {
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--ztpos-line);
    background: #ffffff;
    padding: 0 14px;
    color: #475569;
    font-size: 13px;
    font-weight: 900;
}

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

.window-controls span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #cbd5e1;
}

.product-workspace {
    display: grid;
    grid-template-columns: 82px minmax(240px, 0.9fr) minmax(280px, 1.2fr);
    min-height: 420px;
    background: var(--ztpos-workspace);
}

.mock-sidebar {
    display: grid;
    align-content: start;
    justify-items: center;
    gap: 10px;
    background: var(--ztpos-sidebar);
    padding: 18px 8px;
}

.mock-sidebar div {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 12px;
    font-weight: 900;
}

.mock-sidebar .active {
    background: #ffffff;
    color: var(--ztpos-primary-dark);
}

.mock-panel {
    padding: 18px;
}

.mock-card,
.stat-card,
.feature-card,
.release-card,
.step-card {
    border: 1px solid var(--ztpos-line);
    border-radius: var(--radius-card);
    background: var(--ztpos-surface);
    box-shadow: var(--shadow-card);
}

.mock-card {
    padding: 16px;
}

.mock-card header,
.section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
}

.mock-card h3,
.feature-card h3,
.release-card h3,
.step-card h3 {
    margin: 0 0 8px;
    font-size: 17px;
}

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

.mock-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid #edf1f6;
    border-radius: 8px;
    padding: 10px;
    color: #334155;
    font-size: 13px;
    font-weight: 800;
}

.mock-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.product-tile {
    min-height: 96px;
    border: 1px solid #dce5f0;
    border-radius: 8px;
    background: #ffffff;
    padding: 12px;
    display: grid;
    align-content: space-between;
    color: #1f2937;
    font-weight: 900;
}

.product-tile small {
    color: var(--ztpos-muted);
    font-size: 12px;
}

.section-band {
    padding: 56px 0;
}

.section-band.surface {
    background: rgba(255, 255, 255, 0.58);
    border-top: 1px solid rgba(214, 221, 232, 0.78);
    border-bottom: 1px solid rgba(214, 221, 232, 0.78);
}

.grid,
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}

.feature-card,
.release-card,
.step-card {
    padding: 18px;
}

.feature-card p,
.release-card p,
.step-card p,
.portal-footer p {
    margin: 0;
    color: var(--ztpos-muted);
    line-height: 1.55;
}

.metric-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin-top: 22px;
}

.stat-card {
    padding: 16px;
}

.stat-card strong {
    display: block;
    color: var(--ztpos-primary-dark);
    font-size: 24px;
    line-height: 1.1;
}

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

.tag {
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    background: #ffffff;
    color: #334155;
    padding: 5px 9px;
    font-size: 12px;
    font-weight: 900;
}

.status-ok {
    color: var(--ztpos-success);
}

.status-warn {
    color: var(--ztpos-warning);
}

.panel-form {
    max-width: 760px;
    display: grid;
    gap: 14px;
    border: 1px solid var(--ztpos-line);
    border-radius: 8px;
    background: #ffffff;
    padding: 20px;
    box-shadow: var(--shadow-card);
}

.panel-form label {
    display: grid;
    gap: 6px;
    color: #263548;
    font-size: 13px;
    font-weight: 900;
}

.panel-form input,
.panel-form select,
.panel-form textarea {
    width: 100%;
    border: 1px solid #cbd7e3;
    border-radius: 8px;
    font: inherit;
    padding: 10px 12px;
}

.download-result {
    min-height: 42px;
    display: flex;
    align-items: center;
    color: var(--ztpos-muted);
    font-size: 14px;
    font-weight: 800;
}

.deploy-panel {
    border-top: 1px solid var(--ztpos-line);
    padding-top: 24px;
}

.deploy-panel dl {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    margin: 0;
}

.deploy-panel div {
    border: 1px solid var(--ztpos-line);
    border-radius: 8px;
    background: #ffffff;
    padding: 16px;
}

.deploy-panel dt {
    color: var(--ztpos-muted);
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
}

.deploy-panel dd {
    margin: 8px 0 0;
    overflow-wrap: anywhere;
    font-size: 16px;
    line-height: 1.45;
}

.portal-footer-wrap {
    border-top: 1px solid rgba(214, 221, 232, 0.9);
    background: #ffffff;
}

.portal-footer {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding: 26px 0;
    font-size: 13px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-weight: 900;
}

@media (max-width: 860px) {
    .nav-inner {
        align-items: flex-start;
        flex-direction: column;
        padding: 14px 0;
    }

    .nav-links {
        width: 100%;
        flex-wrap: wrap;
        overflow: visible;
        padding-bottom: 2px;
    }

    .nav-links a {
        flex: 1 1 calc(50% - 6px);
        padding: 8px 6px;
        text-align: center;
    }

    .nav-links .nav-cta {
        flex-basis: 100%;
    }

    .hero {
        padding-top: 34px;
    }

    h1 {
        font-size: 42px;
    }

    .summary {
        font-size: 17px;
    }

    .product-workspace {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .product-titlebar {
        height: auto;
        align-items: flex-start;
        gap: 8px;
        padding: 10px 12px;
        font-size: 12px;
    }

    .mock-sidebar {
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 6px;
        padding: 8px;
    }

    .mock-sidebar div {
        width: auto;
        height: 42px;
        font-size: 11px;
    }

    .mock-panel {
        padding: 12px;
    }

    .mock-card header,
    .section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .tag {
        white-space: normal;
    }

    .mock-panel.product-area {
        grid-column: auto;
        padding-top: 0;
    }

    .mock-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }

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

    .portal-footer {
        flex-direction: column;
    }
}
