@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;500;600;700&family=Barlow+Condensed:wght@600;700&display=swap");

:root {
    --paper: #f2efe8;
    --paper-2: #e9e4d9;
    --ink: #131a1f;
    --ink-soft: #52606b;
    --ink-muted: #707a84;
    --line: rgba(19, 26, 31, 0.14);
    --line-strong: rgba(24, 109, 168, 0.28);
    --panel: rgba(255, 255, 255, 0.72);
    --panel-strong: rgba(255, 255, 255, 0.9);
    --blue: #186da8;
    --blue-soft: rgba(24, 109, 168, 0.09);
    --orange: #b36224;
    --orange-soft: rgba(179, 98, 36, 0.1);
    --green: #1f7a63;
    --green-soft: rgba(31, 122, 99, 0.1);
    --teal: #0f6d73;
    --teal-soft: rgba(15, 109, 115, 0.1);
    --red: #9a4938;
    --red-soft: rgba(154, 73, 56, 0.1);
    --amber: #8a6a15;
    --amber-soft: rgba(138, 106, 21, 0.1);
    --slate: #4b607a;
    --slate-soft: rgba(75, 96, 122, 0.12);
    --graphite: #36505f;
    --graphite-soft: rgba(54, 80, 95, 0.12);
    --olive: #616a20;
    --olive-soft: rgba(97, 106, 32, 0.12);
    --shadow: 0 20px 50px rgba(19, 26, 31, 0.08);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: "IBM Plex Sans", sans-serif;
    color: var(--ink);
    background:
        radial-gradient(circle at 15% 20%, rgba(24, 109, 168, 0.1), transparent 26%),
        radial-gradient(circle at 82% 16%, rgba(179, 98, 36, 0.08), transparent 22%),
        linear-gradient(180deg, rgba(24, 109, 168, 0.05), rgba(24, 109, 168, 0) 18%),
        linear-gradient(180deg, var(--paper) 0%, #f7f4ee 100%);
}

a,
button {
    color: inherit;
}

a {
    text-decoration: none;
}

button {
    font: inherit;
}

img {
    display: block;
    max-width: 100%;
}

.grid-overlay {
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: 0.32;
    background-image:
        linear-gradient(rgba(19, 26, 31, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(19, 26, 31, 0.035) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.92), transparent 88%);
}

.site-shell {
    width: min(1760px, calc(100vw - 40px));
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.topbar {
    margin-top: 14px;
    padding: 16px 20px 14px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.7);
    box-shadow: var(--shadow);
}

.topbar-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
}

.brand-mark,
h1,
h2,
h3,
strong {
    font-family: "Barlow Condensed", sans-serif;
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--ink);
    font-size: 1.42rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    text-decoration: none;
    white-space: nowrap;
}

.brand-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--blue);
}

.product-switcher,
.topbar-links {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.product-switcher {
    display: grid;
    justify-items: start;
    gap: 8px;
}

.product-tier {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.tier-label {
    padding: 7px 11px;
    border: 1px solid var(--line);
    background: rgba(19, 26, 31, 0.04);
    color: var(--ink-muted);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.product-tab,
.section-link {
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.68);
    color: var(--ink-soft);
    cursor: pointer;
    transition: border-color 140ms ease, background 140ms ease, color 140ms ease, transform 140ms ease;
}

.product-tab:hover,
.section-link:hover,
.screen-card:hover {
    transform: translateY(-1px);
}

.product-tab {
    padding: 9px 16px;
    font-size: 1.08rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.product-tab--flagship {
    background: rgba(255, 255, 255, 0.82);
    border-color: rgba(19, 26, 31, 0.2);
    color: var(--ink);
    font-weight: 700;
}

.product-tab::before {
    content: "";
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: currentColor;
    opacity: 0.45;
}

.product-tab[data-product-target="fascad"] {
    color: var(--blue);
}

.product-tab[data-product-target="mdostudio"] {
    color: var(--orange);
}

.product-tab[data-product-target="zppinn4d"] {
    color: var(--green);
}

.product-tab[data-product-target="zptbox"] {
    color: var(--teal);
}

.product-tab[data-product-target="axb"] {
    color: var(--red);
}

.product-tab[data-product-target="zpsim"] {
    color: var(--amber);
}

.product-tab[data-product-target="zpmesh"] {
    color: var(--slate);
}

.product-tab[data-product-target="zpcadkernel"] {
    color: var(--graphite);
}

.product-tab[data-product-target="zpmeshchecker"] {
    color: var(--olive);
}

.product-tab.is-active {
    background: rgba(19, 26, 31, 0.92);
    border-color: rgba(19, 26, 31, 0.92);
    color: #ffffff;
}

.section-link {
    padding: 8px 14px;
    font-size: 0.94rem;
}

.topbar-note {
    margin: 12px 0 0;
    color: var(--ink-muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

.page-stack {
    padding: 22px 0 42px;
}

.portfolio-sheet {
    padding: 26px;
    border: 1px solid var(--line);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(248, 244, 236, 0.86)),
        radial-gradient(circle at top right, rgba(24, 109, 168, 0.08), transparent 34%);
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}

.portfolio-grid,
.zpsim-grid,
.foundation-grid,
.tool-grid {
    padding-top: 20px;
    display: grid;
    gap: 14px;
}

.portfolio-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.foundation-grid,
.tool-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tool-block {
    padding-top: 22px;
}

.tool-block h3 {
    margin: 0;
    font-size: 1.68rem;
}

.flagship-card,
.tool-card {
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.9);
    color: inherit;
    box-shadow: var(--shadow);
    transition: transform 140ms ease, border-color 140ms ease, background 140ms ease;
}

.flagship-card:hover,
.tool-card:hover {
    transform: translateY(-2px);
}

.flagship-card {
    position: relative;
    overflow: hidden;
    padding: 24px 24px 26px;
    border-color: rgba(19, 26, 31, 0.2);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 241, 232, 0.92));
}

.flagship-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 8px;
    background: var(--blue);
}

.portfolio-grid .flagship-card:nth-child(2)::before {
    background: var(--orange);
}

.portfolio-grid .flagship-card:nth-child(3)::before {
    background: var(--green);
}

.zpsim-card::before {
    background: var(--amber);
}

.zpsim-card {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.8fr);
    gap: 18px;
}

.zpsim-card p,
.zpsim-card ul,
.zpsim-card dl {
    margin-top: 0;
    margin-bottom: 0;
}

.zpsim-card dl {
    display: grid;
    gap: 12px;
    align-content: start;
    padding: 16px 18px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.7);
}

.zpsim-card dt {
    color: var(--ink-muted);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.zpsim-card dd {
    margin: 6px 0 0;
    color: var(--ink);
    font-weight: 600;
    line-height: 1.5;
}

.portal-note {
    margin-top: 22px;
    padding: 18px 20px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.72);
    color: var(--ink-soft);
}

.portal-note p {
    margin: 0;
    line-height: 1.7;
}

.campaign-cta {
    margin-top: 22px;
    padding: 20px;
    border: 1px solid var(--line);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(245, 241, 232, 0.86)),
        radial-gradient(circle at top right, rgba(24, 109, 168, 0.1), transparent 34%);
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
}

.campaign-cta h3 {
    margin: 0 0 8px;
    font-size: 1.8rem;
}

.campaign-cta p {
    margin: 0;
    color: var(--ink-soft);
    line-height: 1.7;
}

.campaign-cta-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.request-grid {
    padding-top: 20px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.request-card {
    padding: 20px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow);
}

.request-card p {
    margin: 10px 0 0;
    color: var(--ink-soft);
    line-height: 1.72;
}

.request-card ul {
    margin: 14px 0 0;
    padding-left: 18px;
    color: var(--ink-soft);
}

.request-card li + li {
    margin-top: 6px;
}

.request-card .cta-button {
    margin-top: 16px;
}

.request-note {
    margin-top: 18px;
    padding: 18px 20px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.74);
    color: var(--ink-soft);
    line-height: 1.72;
}

.tool-card {
    padding: 16px 16px 18px;
}

.card-kicker {
    display: inline-block;
    margin-bottom: 12px;
    color: var(--ink-muted);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.flagship-card h3,
.tool-card h3 {
    margin: 0;
}

.flagship-card h3 {
    font-size: 2.05rem;
    line-height: 0.96;
}

.tool-card h3 {
    font-size: 1.48rem;
    line-height: 1;
}

.flagship-card p,
.tool-card p {
    margin: 12px 0 0;
    color: var(--ink-soft);
    line-height: 1.7;
}

.flagship-card p {
    max-width: 34ch;
}

.flagship-card ul {
    margin: 16px 0 0;
    padding-left: 18px;
    color: var(--ink-soft);
}

.flagship-card li + li {
    margin-top: 6px;
}

.tool-card dl {
    margin: 14px 0 0;
    display: grid;
    gap: 7px;
}

.tool-card div {
    display: grid;
    gap: 2px;
}

.tool-card dt {
    color: var(--ink-muted);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.tool-card dd {
    margin: 0;
    color: var(--ink);
    font-size: 0.95rem;
    line-height: 1.5;
}

.product-page {
    --product-accent: var(--blue);
    --product-soft: var(--blue-soft);
    --product-line-strong: rgba(24, 109, 168, 0.28);
    display: grid;
    gap: 20px;
}

.product-page[data-product="mdostudio"] {
    --product-accent: var(--orange);
    --product-soft: var(--orange-soft);
    --product-line-strong: rgba(179, 98, 36, 0.28);
}

.product-page[data-product="zppinn4d"] {
    --product-accent: var(--green);
    --product-soft: var(--green-soft);
    --product-line-strong: rgba(31, 122, 99, 0.28);
}

.product-page[data-product="zptbox"] {
    --product-accent: var(--teal);
    --product-soft: var(--teal-soft);
    --product-line-strong: rgba(15, 109, 115, 0.28);
}

.product-page[data-product="axb"] {
    --product-accent: var(--red);
    --product-soft: var(--red-soft);
    --product-line-strong: rgba(154, 73, 56, 0.28);
}

.product-page[data-product="zpsim"] {
    --product-accent: var(--amber);
    --product-soft: var(--amber-soft);
    --product-line-strong: rgba(138, 106, 21, 0.28);
}

.product-page[data-product="zpmesh"] {
    --product-accent: var(--slate);
    --product-soft: var(--slate-soft);
    --product-line-strong: rgba(75, 96, 122, 0.28);
}

.product-page[data-product="zpcadkernel"] {
    --product-accent: var(--graphite);
    --product-soft: var(--graphite-soft);
    --product-line-strong: rgba(54, 80, 95, 0.28);
}

.product-page[data-product="zpmeshchecker"] {
    --product-accent: var(--olive);
    --product-soft: var(--olive-soft);
    --product-line-strong: rgba(97, 106, 32, 0.28);
}

.product-page[hidden] {
    display: none !important;
}

.hero,
.sheet {
    border: 1px solid var(--line);
    background: var(--panel);
    box-shadow: var(--shadow);
}

.hero {
    padding: 34px;
    display: grid;
    grid-template-columns: minmax(0, 1.06fr) minmax(440px, 0.94fr);
    gap: 26px;
    align-items: start;
}

.hero-main {
    display: grid;
    gap: 22px;
}

.eyebrow,
.panel-code,
.mini-label,
.caption-tag {
    display: block;
    margin: 0;
    color: var(--product-accent);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

h1 {
    margin: 10px 0 0;
    max-width: 13ch;
    font-size: clamp(2.35rem, 2.9vw, 3.65rem);
    line-height: 0.96;
    letter-spacing: -0.038em;
}

h2 {
    margin: 8px 0 0;
    max-width: 15ch;
    font-size: clamp(1.95rem, 2.6vw, 3.2rem);
    line-height: 0.96;
    letter-spacing: -0.03em;
}

h3 {
    margin: 0;
    font-size: 1.48rem;
    line-height: 1;
}

.hero-copy {
    max-width: 62ch;
}

.hero-copy p,
.hero-caption p,
.section-note,
.function-body p,
.function-body li,
.stage-caption p,
.card-copy span:last-child,
.workflow-step p {
    color: var(--ink-soft);
}

.hero-copy p {
    margin: 0;
    font-size: 1.06rem;
    line-height: 1.8;
}

.hero-copy p + p {
    margin-top: 14px;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    padding-top: 22px;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 18px;
    border: 1px solid var(--line);
    font-size: 0.98rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    transition: transform 140ms ease, border-color 140ms ease, background 140ms ease, color 140ms ease;
}

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

.cta-button--primary {
    border-color: var(--product-accent);
    background: var(--product-accent);
    color: #ffffff;
}

.cta-button--secondary {
    border-color: var(--product-line-strong);
    background: var(--product-soft);
    color: var(--ink);
}

.cta-note {
    color: var(--ink-muted);
    font-size: 0.92rem;
    line-height: 1.55;
}

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

.hero-facts article,
.hero-caption,
.workflow-step,
.screen-card,
.stage-caption {
    border: 1px solid var(--line);
    background: var(--panel-strong);
}

.hero-facts article {
    padding: 16px 16px 14px;
}

.mini-label {
    color: var(--ink-muted);
    margin-bottom: 8px;
}

.hero-facts strong {
    font-size: 1.08rem;
    line-height: 1.18;
}

.hero-aside {
    display: grid;
    gap: 14px;
    align-content: start;
}

.hero-media,
.stage-frame,
.shot-frame {
    padding: 10px;
    border: 1px solid var(--line);
    background: #fafaf8;
}

.hero-media img,
.stage-frame img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.hero-caption {
    padding: 16px 18px;
}

.hero-caption p {
    margin: 10px 0 0;
    font-size: 0.98rem;
    line-height: 1.68;
}

.sheet {
    padding: 26px 26px 28px;
}

.section-bar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 500px);
    align-items: end;
    gap: 24px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--line);
}

.section-note {
    margin: 0;
    font-size: 1rem;
    line-height: 1.72;
}

.function-sheet {
    display: grid;
}

.function-row {
    display: grid;
    grid-template-columns: 74px minmax(280px, 0.68fr) minmax(0, 1fr);
    gap: 20px;
    padding: 22px 0;
    border-bottom: 1px solid var(--line);
}

.function-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.function-id {
    color: var(--product-accent);
    font-family: "Barlow Condensed", sans-serif;
    font-size: 1.12rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.function-title {
    padding-right: 12px;
}

.function-body p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.72;
}

.function-body ul {
    margin: 14px 0 0;
    padding-left: 18px;
}

.function-body li + li {
    margin-top: 6px;
}

.interface-sheet {
    padding-top: 20px;
    display: grid;
    grid-template-columns: minmax(0, 1.16fr) minmax(420px, 0.84fr);
    gap: 18px;
}

.interface-main {
    display: grid;
    gap: 12px;
}

.stage-frame img {
    min-height: 420px;
}

.stage-caption {
    padding: 16px 18px;
}

.caption-tag {
    margin-bottom: 8px;
}

.stage-caption p {
    margin: 10px 0 0;
    font-size: 1rem;
    line-height: 1.7;
}

.interface-side {
    display: grid;
    gap: 12px;
}

.screen-card {
    padding: 10px;
    display: grid;
    grid-template-columns: 170px minmax(0, 1fr);
    gap: 14px;
    text-align: left;
    cursor: pointer;
    color: inherit;
    transition: border-color 140ms ease, background 140ms ease, transform 140ms ease;
}

.screen-card.is-active {
    border-color: var(--product-line-strong);
    background: var(--product-soft);
}

.shot-frame img {
    width: 100%;
    height: 112px;
    object-fit: contain;
}

.card-copy {
    display: grid;
    gap: 6px;
    align-content: center;
}

.card-copy strong {
    font-size: 1.12rem;
    line-height: 1;
}

.card-copy span:last-child {
    font-size: 0.96rem;
    line-height: 1.56;
}

.workflow-strip {
    padding-top: 20px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.workflow-step {
    min-height: 100%;
    padding: 18px 18px 20px;
}

.workflow-step span {
    display: inline-block;
    margin-bottom: 14px;
    color: var(--product-accent);
    font-family: "Barlow Condensed", sans-serif;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.workflow-step strong {
    display: block;
    font-size: 1.15rem;
    line-height: 1.05;
}

.workflow-step p {
    margin: 12px 0 0;
    font-size: 0.98rem;
    line-height: 1.68;
}

.case-grid {
    padding-top: 20px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.example-detail-grid {
    padding-top: 20px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.example-detail-card,
.case-card {
    padding: 18px 18px 20px;
    border: 1px solid var(--line);
    background: var(--panel-strong);
}

.case-kicker {
    display: inline-block;
    margin-bottom: 10px;
    color: var(--product-accent);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.case-card p {
    margin: 12px 0 0;
    color: var(--ink-soft);
    font-size: 0.98rem;
    line-height: 1.7;
}

.example-detail-card p {
    margin: 12px 0 0;
    color: var(--ink-soft);
    font-size: 0.98rem;
    line-height: 1.7;
}

.metric-list {
    margin: 16px 0 0;
    display: grid;
    gap: 8px;
}

.metric-list div {
    display: grid;
    grid-template-columns: 148px minmax(0, 1fr);
    gap: 12px;
    padding-top: 8px;
    border-top: 1px solid var(--line);
}

.metric-list dt {
    color: var(--ink-muted);
    font-size: 0.87rem;
    line-height: 1.5;
}

.metric-list dd {
    margin: 0;
    color: var(--ink);
    font-size: 0.95rem;
    line-height: 1.5;
    font-weight: 600;
}

@media (max-width: 1420px) {
    .interface-sheet {
        grid-template-columns: 1fr;
    }
}

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

@media (max-width: 1160px) {
    .site-shell {
        width: min(100vw - 20px, 1760px);
    }

    .campaign-cta,
    .portfolio-grid,
    .zpsim-grid,
    .foundation-grid,
    .tool-grid,
    .hero,
    .function-row,
    .workflow-strip,
    .example-detail-grid,
    .case-grid,
    .hero-facts,
    .section-bar {
        grid-template-columns: 1fr;
    }

    .section-bar {
        align-items: start;
    }

    .stage-frame img {
        min-height: 300px;
    }

    .zpsim-card {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .topbar,
    .portfolio-sheet,
    .hero,
    .sheet {
        padding-left: 18px;
        padding-right: 18px;
    }

    h1 {
        font-size: 2.45rem;
    }

    h2 {
        font-size: 2rem;
    }

    .screen-card {
        grid-template-columns: 1fr;
    }

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

    .flagship-card h3 {
        font-size: 1.72rem;
    }

    .shot-frame img {
        height: 150px;
    }

    .metric-list div {
        grid-template-columns: 1fr;
        gap: 4px;
    }
}
