.dev-page {
    --dev-paper: var(--ztc-white);
    --dev-paper-soft: var(--ztc-bg);
    --dev-ink: var(--ztc-text);
    --dev-muted: var(--ztc-text-muted);
    --dev-line: var(--ztc-border);
    --dev-action: var(--ztc-action);
    color: var(--dev-ink);
    background: var(--dev-paper);
    overflow: clip;
}

.dev-page *,
.dev-page *::before,
.dev-page *::after { box-sizing: border-box; }

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

.dev-page h1,
.dev-page h2 { text-wrap: balance; }

.dev-page p { text-wrap: pretty; }

.dev-hero {
    position: relative;
    min-height: 720px;
    display: flex;
    align-items: center;
    margin-top: calc(-1 * var(--ztc-topbar-h) - var(--ztc-header-h));
    padding: calc(var(--ztc-topbar-h) + var(--ztc-header-h) + 78px) 0 94px;
    color: #fff;
    background: var(--ztc-banner-luminous);
    isolation: isolate;
}

.dev-hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 34%;
    background: linear-gradient(180deg, rgba(0, 103, 180, 0), rgba(0, 51, 96, .24));
    z-index: -1;
}

.dev-hero-grid {
    position: absolute;
    inset: 0;
    z-index: -2;
    opacity: .16;
    background-image:
        linear-gradient(rgba(255, 255, 255, .24) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .24) 1px, transparent 1px);
    background-size: 72px 72px;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 38%, #000 100%);
    mask-image: linear-gradient(90deg, transparent, #000 38%, #000 100%);
}

.dev-orbit {
    position: absolute;
    border: 1px solid rgba(255, 255, 255, .3);
    border-radius: 50%;
    z-index: -1;
    pointer-events: none;
}

.dev-orbit::after {
    content: "";
    position: absolute;
    top: 50%;
    left: -4px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--ztc-brand-cyan);
    box-shadow: 0 0 18px rgba(97, 204, 240, .7);
}

.dev-orbit--one { width: 560px; height: 560px; right: -190px; top: 80px; animation: dev-spin 28s linear infinite; }
.dev-orbit--two { width: 420px; height: 420px; right: -24px; top: 206px; opacity: .56; animation: dev-spin 22s linear infinite reverse; }

@keyframes dev-spin { to { transform: rotate(360deg); } }

.dev-hero-layout {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(360px, .74fr);
    gap: clamp(54px, 8vw, 116px);
    align-items: center;
}

.dev-eyebrow,
.dev-kicker {
    margin-bottom: 18px;
    font-size: 12px;
    line-height: 1.5;
    font-weight: 700;
    letter-spacing: .16em;
}

.dev-eyebrow { color: rgba(255, 255, 255, .78); }
.dev-kicker { color: var(--dev-action); }

.dev-hero h1 {
    max-width: 790px;
    margin-bottom: 28px;
    font-family: var(--ztc-font-serif, var(--ztc-serif));
    font-size: var(--ztc-banner-h1-feature);
    line-height: 1.1;
    font-weight: 700;
    letter-spacing: -.035em;
}
.dev-hero h1 > span { display: block; }
.dev-title-second > span { display: inline; }

.dev-hero-lead {
    max-width: 760px;
    margin-bottom: 38px;
    color: rgba(255, 255, 255, .88);
    font-size: var(--ztc-banner-lead);
    line-height: 1.82;
}

.dev-hero-actions,
.dev-closing-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.dev-btn {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size:14px;
    font-weight: 700;
    text-decoration: none;
    transition: transform .22s ease, background-color .22s ease, border-color .22s ease;
}

.dev-btn:hover { transform: translateY(-2px); }
.dev-btn:focus-visible,
.dev-copy:focus-visible,
.dev-text-link:focus-visible { outline: 3px solid var(--ztc-brand-amber); outline-offset: 3px; }
.dev-btn--solid { background: #fff; color: var(--dev-action); }
.dev-btn--solid:hover { background: var(--ztc-brand-cyan); color: var(--ztc-surface-inverse-deep); }
.dev-btn--line { border-color: rgba(255, 255, 255, .6); color: #fff; background: transparent; }
.dev-btn--line:hover { border-color: #fff; background: rgba(255, 255, 255, .12); }

.dev-hero-console {
    position: relative;
    border: 1px solid rgba(255, 255, 255, .34);
    border-radius: 20px;
    background: rgba(0, 63, 115, .58);
    box-shadow: 0 24px 60px rgba(10, 43, 76, .18);
    overflow: hidden;
}

.dev-console-head {
    min-height: 58px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 22px;
    border-bottom: 1px solid rgba(255, 255, 255, .16);
}

.dev-console-head > span { width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, .46); }
.dev-console-head strong { margin-left: auto; font: 600 12px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .08em; color: rgba(255, 255, 255, .76); }
.dev-console-body { padding: 26px 22px 22px; }
.dev-console-body p { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 14px; margin-bottom: 17px; font: 500 13px/1.6 ui-monospace, SFMono-Regular, Menlo, monospace; }
.dev-console-body p:last-child { margin-bottom: 0; }
.dev-console-body span { color: var(--ztc-brand-cyan); }
.dev-console-body strong { color: #fff; overflow-wrap: anywhere; }
.dev-console-status { min-height: 48px; display: flex; align-items: center; gap: 10px; padding: 0 22px; background: rgba(0, 32, 66, .28); color: rgba(255, 255, 255, .78); font-size: 12px; }
.dev-console-status i { width: 7px; height: 7px; border-radius: 50%; background: var(--ztc-brand-cyan); box-shadow: 0 0 12px rgba(97, 204, 240, .72); }

.dev-intro,
.dev-tools,
.dev-flow,
.dev-api,
.dev-citation,
.dev-boundary,
.dev-status { padding: 100px 0; }

.dev-intro-layout { display: grid; grid-template-columns: minmax(0, .95fr) minmax(320px, .72fr); gap: 80px; align-items: end; margin-bottom: 52px; }
.dev-section-heading h2,
.dev-flow h2,
.dev-citation h2,
.dev-status h2,
.dev-closing h2 {
    margin-bottom: 0;
    font-family: var(--ztc-font-serif, var(--ztc-serif));
    font-size: clamp(34px, 3.6vw, 48px);
    line-height: 1.24;
    letter-spacing: -.025em;
}
.dev-section-heading > p:last-child { max-width: 720px; margin: 20px auto 0; color: var(--dev-muted); font-size:16px; line-height: 1.85; }
.dev-intro-text { margin-bottom: 0; color: var(--dev-muted); font-size:18px; line-height: 1.9; }
.dev-section-heading--center { max-width: 860px; margin: 0 auto 54px; text-align: center; }

.dev-content-types { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--dev-line); border-bottom: 1px solid var(--dev-line); }
.dev-content-types article { position: relative; min-height: 220px; padding: 34px 28px; border-right: 1px solid var(--dev-line); }
.dev-content-types article:last-child { border-right: 0; }
.dev-content-types span,
.dev-tool-index { color: var(--ztc-brand-primary); font: 700 13px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .08em; }
.dev-content-types h3 { margin: 38px 0 12px; font-size: 20px; }
.dev-content-types p { margin-bottom: 0; color: var(--dev-muted); font-size: 14px; line-height: 1.75; }

.dev-tools { background: var(--dev-paper-soft); }
.dev-tool-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.dev-tool-card { min-height: 320px; padding: 34px; border: 1px solid var(--dev-line); border-radius: 18px; background: var(--dev-paper); transition: transform .24s ease, border-color .24s ease; }
.dev-tool-card:hover { transform: translateY(-4px); border-color: rgba(0, 103, 180, .46); }
.dev-tool-card > p:nth-of-type(1) { margin: 52px 0 7px; color: var(--dev-muted); font-size: 13px; letter-spacing: .08em; }
.dev-tool-card h3 { margin: 0 0 18px; }
.dev-tool-card h3 code { color: var(--dev-action); font: 700 clamp(22px, 2.2vw, 30px)/1.25 ui-monospace, SFMono-Regular, Menlo, monospace; }
.dev-tool-desc { min-height: 52px; margin-bottom: 28px; color: var(--dev-muted); font-size:14px; line-height: 1.75; }
.dev-tool-card dl { display: flex; align-items: flex-start; gap: 14px; margin: 0; padding-top: 18px; border-top: 1px solid var(--dev-line); }
.dev-tool-card dt { flex: 0 0 auto; color: var(--dev-action); font-size: 12px; font-weight: 700; }
.dev-tool-card dd { margin: 0; color: var(--dev-muted); font: 500 12px/1.65 ui-monospace, SFMono-Regular, Menlo, monospace; overflow-wrap: anywhere; }

.dev-flow-layout { display: grid; grid-template-columns: minmax(280px, .7fr) minmax(0, 1.25fr); gap: 90px; align-items: center; }
.dev-flow-copy > p:not(.dev-kicker) { margin: 24px 0 30px; color: var(--dev-muted); font-size: 16px; line-height: 1.85; }
.dev-text-link { min-height: 44px; display: inline-flex; align-items: center; gap: 10px; color: var(--dev-action); font-weight: 700; text-decoration: none; }
.dev-flow-steps { position: relative; margin: 0; padding: 0; list-style: none; }
.dev-flow-steps::before { content: ""; position: absolute; left: 23px; top: 34px; bottom: 34px; width: 1px; background: var(--dev-line); }
.dev-flow-steps li { position: relative; display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 24px; align-items: start; padding: 20px 0; }
.dev-flow-steps li > span { position: relative; z-index: 1; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; background: var(--dev-paper); border: 1px solid var(--ztc-brand-primary); color: var(--dev-action); font: 700 12px/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
.dev-flow-steps h3 { margin: 1px 0 7px; font-size:20px; }
.dev-flow-steps p { margin-bottom: 0; color: var(--dev-muted); line-height: 1.75; }

.dev-api { color: #fff; background: var(--ztc-banner-authority); }
.dev-api .dev-kicker { color: var(--ztc-brand-cyan); }
.dev-api-head { display: grid; grid-template-columns: 1fr minmax(320px, .62fr); gap: 76px; align-items: end; margin-bottom: 48px; }
.dev-api-head > p { margin-bottom: 0; color: rgba(255, 255, 255, .74); font-size: 16px; line-height: 1.8; }
.dev-endpoint-list { border-top: 1px solid rgba(255, 255, 255, .2); }
.dev-endpoint { min-height: 82px; display: grid; grid-template-columns: 58px minmax(320px, .95fr) minmax(250px, 1fr) 72px; gap: 20px; align-items: center; border-bottom: 1px solid rgba(255, 255, 255, .18); }
.dev-method { color: var(--ztc-brand-cyan); font: 700 12px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; }
.dev-endpoint code { color: #fff; font: 600 14px/1.6 ui-monospace, SFMono-Regular, Menlo, monospace; overflow-wrap: anywhere; }
.dev-endpoint p { margin-bottom: 0; color: rgba(255, 255, 255, .74); font-size: 14px; line-height: 1.65; }
.dev-copy { min-width: 64px; min-height: 44px; padding: 9px 12px; border: 1px solid rgba(255, 255, 255, .42); border-radius: 999px; background: transparent; color: #fff; cursor: pointer; font: inherit; font-size: 13px; }
.dev-copy:hover { background: rgba(255, 255, 255, .12); border-color: #fff; }
.dev-copy.is-copied { background: #fff; border-color: #fff; color: var(--dev-action); }
.dev-api-note { max-width: 820px; margin: 28px 0 0; color: rgba(255, 255, 255, .66); font-size: 13px; line-height: 1.75; }
.dev-copy-status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }

.dev-citation { background: var(--dev-paper-soft); }
.dev-citation-layout { display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(320px, .72fr); gap: 28px; }
.dev-citation-card,
.dev-citation-example { border: 1px solid var(--dev-line); border-radius: 20px; background: var(--dev-paper); }
.dev-citation-card { padding: clamp(36px, 5vw, 64px); }
.dev-citation-card ol { margin: 44px 0 0; padding: 0; list-style: none; }
.dev-citation-card li { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 18px; padding: 18px 0; border-top: 1px solid var(--dev-line); }
.dev-citation-card li > span { color: var(--ztc-brand-primary); font: 700 12px/1.8 ui-monospace, SFMono-Regular, Menlo, monospace; }
.dev-citation-card li p { margin-bottom: 0; color: var(--dev-muted); line-height: 1.75; }
.dev-citation-card strong { color: var(--dev-ink); }
.dev-citation-example { align-self: end; padding: 34px; }
.dev-citation-example > span { color: var(--dev-action); font-size: 12px; font-weight: 700; letter-spacing: .1em; }
.dev-citation-example blockquote { margin: 24px 0; padding: 22px 0 22px 24px; border-left: 4px solid var(--ztc-brand-primary); font-family: var(--ztc-font-serif, var(--ztc-serif)); font-size: 20px; line-height: 1.7; }
.dev-citation-example p { margin-bottom: 0; color: var(--dev-muted); font-size: 14px; line-height: 1.78; }
.dev-citation-example code { color: var(--dev-action); font-size: .92em; }

.dev-boundary-layout { display: grid; grid-template-columns: minmax(280px, .65fr) minmax(0, 1.15fr); gap: 88px; }
.dev-boundary .dev-section-heading > p:last-child { margin: 24px 0 0; }
.dev-boundary-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--dev-line); }
.dev-boundary-list li { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 24px; padding: 21px 0; border-bottom: 1px solid var(--dev-line); }
.dev-boundary-list strong { color: var(--dev-action); }
.dev-boundary-list span { color: var(--dev-muted); line-height: 1.7; }

.dev-status { padding-top: 0; }
.dev-status-layout { display: grid; grid-template-columns: 1fr auto; gap: 60px; align-items: center; padding: 44px 48px; border: 1px solid var(--dev-line); border-radius: 20px; background: var(--dev-paper-soft); }
.dev-status h2 { font-size: clamp(28px, 3vw, 40px); }
.dev-status-layout > div > p:last-child { max-width: 690px; margin: 18px 0 0; color: var(--dev-muted); line-height: 1.8; }
.dev-status dl { display: flex; gap: 36px; margin: 0; }
.dev-status dl div { padding-left: 24px; border-left: 1px solid var(--dev-line); }
.dev-status dt { color: var(--dev-action); font: 700 18px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; }
.dev-status dd { margin: 6px 0 0; color: var(--dev-muted); font-size: 12px; }

.dev-closing { padding: 94px 0; color: #fff; background: var(--ztc-banner-authority); }
.dev-closing-layout { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 70px; align-items: center; }
.dev-closing h2 { max-width: 820px; }
.dev-closing p:not(.dev-eyebrow) { max-width: 760px; margin: 24px 0 0; color: rgba(255, 255, 255, .76); font-size: 16px; line-height: 1.8; }

@media (max-width: 960px) {
    .dev-hero-layout,
    .dev-intro-layout,
    .dev-flow-layout,
    .dev-api-head,
    .dev-citation-layout,
    .dev-boundary-layout,
    .dev-status-layout,
    .dev-closing-layout { grid-template-columns: 1fr; }

    .dev-hero { min-height: auto; }
    .dev-hero-console { max-width: 620px; }
    .dev-intro-layout { gap: 28px; }
    .dev-content-types { grid-template-columns: repeat(2, 1fr); }
    .dev-content-types article:nth-child(2) { border-right: 0; }
    .dev-content-types article:nth-child(-n+2) { border-bottom: 1px solid var(--dev-line); }
    .dev-flow-layout,
    .dev-boundary-layout { gap: 54px; }
    .dev-api-head { gap: 24px; }
    .dev-endpoint { grid-template-columns: 54px minmax(0, 1fr) 68px; padding: 18px 0; }
    .dev-endpoint p { grid-column: 2 / -1; grid-row: 2; }
    .dev-status-layout { gap: 32px; }
    .dev-closing-layout { gap: 38px; }
}

@media (max-width: 640px) {
    .dev-hero { padding: calc(var(--ztc-topbar-h) + var(--ztc-header-h) + 86px) 0 68px; }
    .dev-hero-grid { background-size: 48px 48px; }
    .dev-orbit--one { width: 380px; height: 380px; right: -248px; top: 114px; }
    .dev-orbit--two { display: none; }
    .dev-hero-layout { gap: 46px; }
    .dev-hero h1 { margin-bottom: 22px; font-size: var(--ztc-banner-h1-standard); }
    .dev-title-second > span { display: block; }
    .dev-hero-lead { margin-bottom: 30px; line-height: 1.72; }
    .dev-hero-actions .dev-btn,
    .dev-closing-actions .dev-btn { width: 100%; }
    .dev-hero-console { border-radius: 16px; }
    .dev-console-body p { grid-template-columns: 72px minmax(0, 1fr); gap: 10px; font-size: 11px; }

    .dev-intro,
    .dev-tools,
    .dev-flow,
    .dev-api,
    .dev-citation,
    .dev-boundary,
    .dev-status { padding: 68px 0; }

    .dev-section-heading h2,
    .dev-flow h2,
    .dev-citation h2,
    .dev-status h2,
    .dev-closing h2 { font-size: clamp(29px, 9vw, 36px); }
    .dev-intro-layout { margin-bottom: 34px; }
    .dev-content-types,
    .dev-tool-grid { grid-template-columns: 1fr; }
    .dev-content-types article { min-height: 0; padding: 28px 0; border-right: 0; border-bottom: 1px solid var(--dev-line); }
    .dev-content-types article:nth-child(-n+2) { border-bottom: 1px solid var(--dev-line); }
    .dev-content-types article:last-child { border-bottom: 0; }
    .dev-content-types h3 { margin-top: 22px; }
    .dev-tool-grid { gap: 12px; }
    .dev-tool-card { min-height: 0; padding: 28px 24px; }
    .dev-tool-card > p:nth-of-type(1) { margin-top: 34px; }
    .dev-tool-desc { min-height: 0; }
    .dev-flow-steps li { gap: 16px; }
    .dev-api-head { margin-bottom: 34px; }
    .dev-endpoint { grid-template-columns: 54px minmax(0, 1fr); gap: 12px; padding: 20px 0; }
    .dev-endpoint p { grid-column: 1 / -1; grid-row: auto; padding-left: 0; }
    .dev-copy { grid-column: 1 / -1; width: 100%; }
    .dev-citation-card,
    .dev-citation-example { border-radius: 16px; }
    .dev-citation-card { padding: 30px 22px; }
    .dev-citation-card ol { margin-top: 32px; }
    .dev-citation-card li { grid-template-columns: 34px minmax(0, 1fr); gap: 10px; }
    .dev-citation-example { padding: 26px 22px; }
    .dev-boundary-list li { grid-template-columns: 1fr; gap: 5px; }
    .dev-status { padding-top: 0; }
    .dev-status-layout { padding: 30px 24px; border-radius: 16px; }
    .dev-status dl { display: grid; gap: 20px; }
    .dev-status dl div { padding-left: 16px; }
    .dev-closing { padding: 72px 0; }
}

@media (prefers-reduced-motion: reduce) {
    .dev-orbit { animation: none; }
    .dev-btn,
    .dev-tool-card { transition: none; }
}
