/* PLATFORM PAGE */

.platform-page {
    --platform-panel: rgba(12, 18, 30, 0.9);
    --platform-panel-soft: rgba(255, 255, 255, 0.028);
    --platform-border: rgba(231, 239, 255, 0.12);
    --platform-border-strong: rgba(231, 239, 255, 0.2);
    --platform-cyan: #8bd5ff;
    background:
            radial-gradient(circle at 18% 10%, rgba(96, 165, 250, 0.16), transparent 25%),
            radial-gradient(circle at 82% 8%, rgba(155, 123, 255, 0.14), transparent 25%),
            linear-gradient(180deg, #0a0d15 0%, #080b12 100%);
    overflow-x: hidden;
}

.platform-shell {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.platform-shell main {
    padding-bottom: 52px;
}

.platform-hero {
    display: grid;
    grid-template-columns: minmax(410px, 0.95fr) minmax(0, 1.05fr);
    gap: 32px;
    align-items: center;
    padding: 42px 0 34px;
}

.platform-hero-copy {
    order: 1;
}

.platform-hero-architecture {
    order: 2;
}

.platform-hero-copy,
.platform-hero-architecture,
.platform-section > *,
.platform-final-cta > * {
    min-width: 0;
}

.platform-hero h1,
.platform-section h2,
.platform-final-cta h2 {
    margin: 0;
    color: var(--text-primary);
    font-size: clamp(2.65rem, 4.25vw, 3.55rem);
    line-height: 1.02;
    letter-spacing: 0;
}

.platform-hero h1 {
    max-width: 720px;
    margin-top: 18px;
    font-size: clamp(2.95rem, 4.9vw, 4.15rem);
}

.platform-lede {
    max-width: 700px;
    margin: 22px 0 0;
    color: #e6efff;
    font-size: clamp(1rem, 1.35vw, 1.12rem);
    line-height: 1.54;
}

.platform-note {
    max-width: 700px;
    margin: 14px 0 0;
    color: var(--text-muted);
    font-size: 0.98rem;
    line-height: 1.58;
}

.platform-card-header,
.architecture-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.platform-card-header span,
.architecture-card-header span,
.architecture-layer-heading span,
.architecture-runtime-copy span,
.platform-capability-strip span,
.platform-layer-pill span,
.platform-detail-panel > span,
.workflow-node span,
.runtime-debugger span,
.prompt-contracts-visual-header span,
.prompt-stack-column-label,
.prompt-stack-item span,
.prompt-stack-hub-core span,
.prompt-stack-regenerate span,
.prompt-contract-card > span,
.ops-console-topline span,
.ops-module-header span,
.control-category-card > span,
.deployment-binding-card span,
.deploy-core span {
    letter-spacing: 0;
}

.platform-card-header span,
.architecture-card-header span,
.architecture-layer-heading span,
.architecture-runtime-copy span,
.platform-capability-strip span,
.workflow-node span,
.prompt-contracts-visual-header span,
.prompt-stack-column-label,
.prompt-stack-item span,
.prompt-stack-hub-core span,
.prompt-stack-regenerate span,
.prompt-contract-card > span,
.ops-console-topline span,
.ops-module-header span,
.control-category-card > span,
.deployment-binding-card span,
.deploy-core span {
    display: block;
    color: var(--platform-cyan);
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
}

.platform-card-header strong,
.architecture-card-header strong {
    display: block;
    margin-top: 5px;
    color: var(--text-primary);
    font-size: 1.08rem;
}

.platform-card-header em,
.architecture-card-header em {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid rgba(139, 213, 255, 0.2);
    border-radius: 999px;
    color: #dceeff;
    background: rgba(139, 213, 255, 0.07);
    font-size: 0.82rem;
    font-style: normal;
    font-weight: 800;
    white-space: nowrap;
}

.platform-hero-architecture {
    position: relative;
    padding: 18px;
    border: 1px solid var(--platform-border-strong);
    border-radius: 8px;
    background:
            radial-gradient(circle at 86% 14%, rgba(96, 165, 250, 0.18), transparent 30%),
            radial-gradient(circle at 12% 86%, rgba(77, 212, 172, 0.12), transparent 28%),
            linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.018)),
            var(--platform-panel);
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.34);
    overflow: hidden;
}

.platform-hero-architecture::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
            linear-gradient(rgba(255, 255, 255, 0.032) 1px, transparent 1px),
            linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.28;
    pointer-events: none;
}

.architecture-card-header,
.architecture-stack {
    position: relative;
    z-index: 1;
}

.architecture-stack {
    display: grid;
    gap: 6px;
    margin-top: 14px;
}

.architecture-layer,
.architecture-runtime {
    border: 1px solid rgba(231, 239, 255, 0.11);
    border-radius: 8px;
    background:
            linear-gradient(180deg, rgba(255, 255, 255, 0.052), rgba(255, 255, 255, 0.018)),
            rgba(7, 13, 24, 0.64);
}

.architecture-layer {
    display: grid;
    gap: 10px;
    padding: 12px;
}

.architecture-layer-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(231, 239, 255, 0.07);
}

.architecture-layer-heading strong {
    color: #dce8fb;
    font-size: 0.82rem;
    line-height: 1.2;
    text-align: right;
}

.architecture-chip-grid {
    display: grid;
    gap: 6px;
}

.architecture-source-grid {
    grid-template-columns: repeat(auto-fit, minmax(104px, 1fr));
}

.architecture-deploy-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.architecture-deploy-grid span {
    flex: 0 1 auto;
    min-width: 96px;
}

.architecture-chip-grid span,
.architecture-pipeline span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 5px 7px;
    border: 1px solid rgba(231, 239, 255, 0.11);
    border-radius: 8px;
    color: #d9e8ff;
    background: rgba(255, 255, 255, 0.028);
    font-size: 0.74rem;
    font-weight: 760;
    line-height: 1.2;
    text-align: center;
    overflow-wrap: anywhere;
}

.architecture-source-grid span:nth-child(3),
.architecture-deploy-grid span:nth-child(2),
.architecture-deploy-grid span:nth-child(4) {
    border-color: rgba(77, 212, 172, 0.18);
    background: rgba(77, 212, 172, 0.055);
}

.architecture-source-grid span:nth-child(4),
.architecture-deploy-grid span:nth-child(5),
.architecture-deploy-grid span:nth-child(8) {
    border-color: rgba(155, 123, 255, 0.2);
    background: rgba(155, 123, 255, 0.055);
}

.architecture-connector {
    position: relative;
    justify-self: center;
    display: block;
    width: 1px;
    height: 12px;
    background: linear-gradient(180deg, rgba(139, 213, 255, 0.18), rgba(139, 213, 255, 0.66));
}

.architecture-connector::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -1px;
    width: 7px;
    height: 7px;
    border-right: 1px solid rgba(139, 213, 255, 0.7);
    border-bottom: 1px solid rgba(139, 213, 255, 0.7);
    transform: translateX(-50%) rotate(45deg);
}

.architecture-runtime {
    position: relative;
    padding: 16px;
    border-color: rgba(139, 213, 255, 0.24);
    background:
            radial-gradient(circle at 18% 0%, rgba(139, 213, 255, 0.14), transparent 42%),
            linear-gradient(135deg, rgba(96, 165, 250, 0.11), rgba(77, 212, 172, 0.045)),
            rgba(6, 12, 23, 0.78);
    box-shadow: 0 18px 54px rgba(0, 0, 0, 0.24);
}

.architecture-runtime-copy h3 {
    margin: 7px 0 0;
    color: var(--text-primary);
    font-size: clamp(1.42rem, 2.4vw, 1.78rem);
    line-height: 1.06;
    letter-spacing: 0;
}

.architecture-runtime-copy p {
    max-width: 430px;
    margin: 8px 0 0;
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.48;
}

.architecture-pipeline {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 6px;
    margin-top: 12px;
}

.architecture-pipeline span {
    position: relative;
    min-height: 38px;
    color: var(--text-primary);
    background: rgba(8, 14, 25, 0.78);
    font-size: 0.7rem;
    font-weight: 850;
}

.architecture-pipeline span:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 50%;
    right: -6px;
    width: 6px;
    height: 1px;
    background: rgba(139, 213, 255, 0.44);
}

.platform-tag-row,
.runtime-debugger {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.platform-tag-row span,
.runtime-debugger span {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 11px;
    border: 1px solid rgba(231, 239, 255, 0.11);
    border-radius: 8px;
    color: #cbd8e8;
    background: rgba(255, 255, 255, 0.028);
    font-size: 0.82rem;
    font-weight: 700;
}

.platform-capability-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    margin-bottom: 44px;
    border: 1px solid var(--platform-border);
    border-radius: 8px;
    background: var(--platform-border);
    overflow: hidden;
}

.platform-capability-strip article {
    min-height: 148px;
    padding: 18px;
    background:
            linear-gradient(180deg, rgba(96, 165, 250, 0.08), rgba(255, 255, 255, 0.02)),
            #0d1320;
}

.platform-capability-strip strong {
    display: block;
    margin-top: 34px;
    color: var(--text-primary);
    font-size: 1rem;
    line-height: 1.24;
}

.platform-section {
    position: relative;
    padding: 76px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.platform-section-rail {
    position: sticky;
    top: calc(var(--nav-height) + 28px);
    align-self: start;
}

.platform-builder-section,
.platform-context-section,
.platform-api-section,
.platform-prompts-section,
.platform-controls-section {
    display: grid;
    grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
    gap: 30px;
    align-items: start;
}

.platform-builder-section[data-scroll-feature-section] {
    --scroll-feature-span: 1040px;
}

.platform-deploy-section[data-scroll-feature-section] {
    --scroll-feature-span: 1500px;
}

.platform-section h2,
.platform-wide-header h2,
.platform-final-cta h2 {
    font-size: clamp(2.1rem, 4.6vw, 4.1rem);
    line-height: 0.98;
}

.platform-section-rail p,
.platform-wide-header p,
.platform-final-cta p {
    margin: 18px 0 0;
    color: var(--text-muted);
    font-size: 1.02rem;
    line-height: 1.68;
}

.platform-wide-header {
    max-width: 930px;
    margin-bottom: 34px;
}

.platform-layers-section {
    padding: 40px 0 44px;
}

.platform-layers-section .platform-wide-header {
    max-width: 760px;
    margin-bottom: 16px;
}

.platform-layers-section .platform-wide-header h2 {
    font-size: clamp(1.9rem, 3vw, 2.8rem);
    line-height: 1.04;
}

.platform-layers-section .platform-wide-header p {
    margin-top: 10px;
}

.platform-layers-overview {
    display: grid;
    grid-template-columns: minmax(360px, 0.88fr) minmax(340px, 0.74fr);
    gap: 12px;
    align-items: start;
}

.platform-layer-pill-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}

.platform-layer-pill,
.section-feature-tab,
.deploy-channel {
    font: inherit;
}

.platform-layer-pill {
    width: 100%;
    min-height: 42px;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 8px 10px;
    border: 1px solid var(--platform-border);
    border-radius: 8px;
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.026);
    text-align: left;
    cursor: pointer;
    transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.platform-layer-pill span {
    width: 28px;
    height: 28px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border: 1px solid rgba(139, 213, 255, 0.16);
    border-radius: 8px;
    background: rgba(139, 213, 255, 0.06);
    color: var(--platform-cyan);
    font-size: 0.72rem;
    font-weight: 900;
    text-transform: uppercase;
}

.platform-layer-pill strong {
    min-width: 0;
    color: var(--text-primary);
    font-size: 0.88rem;
    line-height: 1.16;
}

.section-feature-tab:hover,
.section-feature-tab:focus-visible,
.section-feature-tab.is-active,
.deploy-channel:hover,
.deploy-channel:focus-visible,
.deploy-channel.is-active {
    border-color: rgba(139, 213, 255, 0.34);
    background:
            linear-gradient(135deg, rgba(96, 165, 250, 0.12), rgba(155, 123, 255, 0.08)),
            rgba(255, 255, 255, 0.035);
    box-shadow: 0 16px 42px rgba(0, 0, 0, 0.24);
    outline: none;
    transform: translateY(-1px);
}

.platform-layer-pill:hover,
.platform-layer-pill:focus-visible,
.platform-layer-pill.is-active {
    border-color: rgba(139, 213, 255, 0.34);
    background:
            linear-gradient(135deg, rgba(96, 165, 250, 0.11), rgba(155, 123, 255, 0.07)),
            rgba(255, 255, 255, 0.035);
    box-shadow: inset 0 0 0 1px rgba(139, 213, 255, 0.06);
    outline: none;
    transform: translateY(-1px);
}

.platform-layer-pill:focus-visible {
    box-shadow: inset 0 0 0 1px rgba(139, 213, 255, 0.08), 0 0 0 2px rgba(139, 213, 255, 0.18);
}

.platform-layer-pill.is-active span {
    border-color: rgba(139, 213, 255, 0.32);
    background: rgba(139, 213, 255, 0.12);
    color: #eaf7ff;
}

.platform-layer-summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    align-content: start;
    align-self: start;
    min-height: 0;
    padding: 16px;
    border: 1px solid rgba(139, 213, 255, 0.16);
    border-radius: 8px;
    background:
            linear-gradient(135deg, rgba(96, 165, 250, 0.085), rgba(77, 212, 172, 0.035) 52%, rgba(155, 123, 255, 0.04)),
            rgba(255, 255, 255, 0.024);
    overflow: hidden;
}

.platform-detail-panel > span {
    display: block;
    color: var(--platform-cyan);
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
}

.platform-detail-panel h3 {
    margin: 8px 0 0;
    color: var(--text-primary);
    font-size: clamp(1.55rem, 3vw, 2.35rem);
    line-height: 1.05;
    letter-spacing: 0;
}

.platform-detail-panel p {
    margin: 12px 0 0;
    color: var(--text-muted);
    line-height: 1.65;
}

.platform-layer-summary-heading > span,
.platform-layer-includes > span {
    display: block;
    color: var(--platform-cyan);
    font-size: 0.72rem;
    font-weight: 850;
    text-transform: uppercase;
}

.platform-layer-summary h3 {
    margin: 6px 0 0;
    color: var(--text-primary);
    font-size: clamp(1.16rem, 1.7vw, 1.42rem);
    line-height: 1.12;
    letter-spacing: 0;
}

.platform-layer-summary p {
    margin: 7px 0 0;
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.5;
}

.platform-layer-summary .platform-tag-row {
    justify-content: flex-start;
    min-width: 0;
    gap: 7px;
}

.platform-layer-summary .platform-tag-row span {
    min-height: 28px;
    padding: 0 9px;
    font-size: 0.76rem;
}

.platform-layer-includes {
    display: grid;
    gap: 9px;
    padding-top: 2px;
}

.platform-layer-includes ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.platform-layer-includes li {
    position: relative;
    min-width: 0;
    padding-left: 13px;
    color: #d7e5f7;
    font-size: 0.84rem;
    font-weight: 720;
    line-height: 1.35;
}

.platform-layer-includes li::before {
    content: "";
    position: absolute;
    top: 0.58em;
    left: 0;
    width: 5px;
    height: 5px;
    border-radius: 999px;
    background: rgba(139, 213, 255, 0.72);
}

.platform-layer-summary-footer {
    display: flex;
    align-items: center;
    min-height: 28px;
    padding-top: 10px;
    border-top: 1px solid rgba(231, 239, 255, 0.08);
    color: #9fb0ca;
    font-size: 0.78rem;
    font-weight: 800;
}

.platform-interactive-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.72fr);
    gap: 14px;
    align-items: stretch;
}

.platform-interactive-grid > *,
.deployment-map-layout > *,
.deployment-map-column > *,
.platform-layers-overview > * {
    min-width: 0;
}

.platform-workflow-visual,
.ops-console-card,
.deployment-map,
.platform-detail-panel {
    border: 1px solid var(--platform-border);
    border-radius: 8px;
    background:
            linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.018)),
            rgba(13, 19, 32, 0.86);
}

.platform-workflow-visual,
.ops-console-card,
.deployment-map,
.platform-detail-panel {
    padding: 18px;
}

.platform-feature-tabs {
    display: grid;
    gap: 10px;
}

.section-feature-tab {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid var(--platform-border);
    border-radius: 8px;
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.026);
    text-align: left;
    cursor: pointer;
    transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.section-feature-tab strong {
    display: block;
    line-height: 1.2;
}

.section-feature-tab span {
    display: block;
    margin-top: 5px;
    color: var(--text-muted);
    font-size: 0.86rem;
    line-height: 1.38;
}

.platform-detail-panel {
    min-height: 242px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    grid-column: 2;
}

.platform-detail-panel .platform-tag-row {
    margin-top: 18px;
}

.workflow-builder-copy {
    position: static;
    max-width: 460px;
    align-self: start;
}

.workflow-builder-right {
    display: grid;
    gap: 14px;
    min-width: 0;
    align-self: start;
}

.workflow-builder-proof-grid {
    display: grid;
    gap: 10px;
    margin-top: 26px;
}

.workflow-builder-proof-grid article {
    border: 1px solid var(--platform-border);
    border-radius: 8px;
    background:
            linear-gradient(180deg, rgba(255, 255, 255, 0.042), rgba(255, 255, 255, 0.018)),
            rgba(13, 19, 32, 0.78);
}

.workflow-builder-proof-grid article {
    padding: 14px;
}

.workflow-builder-proof-grid span,
.workflow-runtime-header span,
.workflow-runtime-node span,
.workflow-capability-detail > span {
    display: block;
    color: var(--platform-cyan);
    font-size: 0.72rem;
    font-weight: 850;
    text-transform: uppercase;
}

.workflow-builder-proof-grid strong {
    display: block;
    margin-top: 7px;
    color: var(--text-primary);
    font-size: 1rem;
    line-height: 1.22;
}

.workflow-builder-proof-grid p {
    margin: 7px 0 0;
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.48;
}

.workflow-capability-panel {
    display: grid;
    grid-template-columns: minmax(190px, 0.78fr) minmax(0, 1.22fr);
    gap: 12px;
    min-width: 0;
    padding: 14px;
    border: 1px solid rgba(139, 213, 255, 0.18);
    border-radius: 8px;
    background:
            radial-gradient(circle at 16% 18%, rgba(139, 213, 255, 0.12), transparent 30%),
            radial-gradient(circle at 88% 18%, rgba(155, 123, 255, 0.1), transparent 32%),
            linear-gradient(180deg, rgba(255, 255, 255, 0.052), rgba(255, 255, 255, 0.018)),
            rgba(9, 15, 27, 0.88);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.22);
}

.workflow-capability-tabs {
    display: grid;
    gap: 8px;
    align-content: start;
}

.workflow-capability-tab {
    width: 100%;
    min-height: 44px;
    padding: 11px 12px;
    border: 1px solid rgba(255, 255, 255, 0.075);
    border-radius: 8px;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.028);
    text-align: left;
    cursor: pointer;
    transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.workflow-capability-tab strong {
    display: block;
    color: inherit;
    font-size: 0.88rem;
    font-weight: 780;
    line-height: 1.18;
}

.workflow-capability-tab:hover,
.workflow-capability-tab:focus-visible,
.workflow-capability-tab.is-active {
    border-color: rgba(139, 213, 255, 0.32);
    color: var(--text-primary);
    background:
            linear-gradient(135deg, rgba(139, 213, 255, 0.11), rgba(155, 123, 255, 0.07)),
            rgba(255, 255, 255, 0.04);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.22);
}

.workflow-capability-tab:hover,
.workflow-capability-tab:focus-visible {
    transform: translateY(-1px);
}

.workflow-capability-tab:focus-visible {
    outline: 2px solid rgba(139, 213, 255, 0.45);
    outline-offset: 2px;
}

.workflow-capability-detail {
    display: flex;
    min-height: 100%;
    padding: 20px;
    border: 1px solid rgba(139, 213, 255, 0.16);
    border-radius: 8px;
    background:
            radial-gradient(circle at 82% 18%, rgba(77, 212, 172, 0.1), transparent 34%),
            rgba(5, 12, 24, 0.68);
    flex-direction: column;
    justify-content: flex-start;
}

.workflow-capability-detail h3 {
    margin: 10px 0 0;
    color: var(--text-primary);
    font-size: clamp(1.35rem, 2.2vw, 2rem);
    line-height: 1.08;
    letter-spacing: 0;
}

.workflow-capability-detail p {
    max-width: 540px;
    margin: 14px 0 0;
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.58;
}

.workflow-runtime-card {
    position: relative;
    overflow: hidden;
    padding: 20px;
    border: 1px solid rgba(139, 213, 255, 0.18);
    border-radius: 8px;
    background:
            radial-gradient(circle at 14% 10%, rgba(139, 213, 255, 0.14), transparent 32%),
            radial-gradient(circle at 82% 18%, rgba(155, 123, 255, 0.12), transparent 34%),
            linear-gradient(180deg, rgba(255, 255, 255, 0.058), rgba(255, 255, 255, 0.02)),
            rgba(9, 15, 27, 0.92);
    box-shadow: 0 28px 76px rgba(0, 0, 0, 0.28);
}

.workflow-runtime-card::before {
    content: "";
    position: absolute;
    inset: 18px;
    border: 1px solid rgba(255, 255, 255, 0.045);
    border-radius: 8px;
    pointer-events: none;
}

.workflow-runtime-header,
.workflow-runtime-footer {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.workflow-runtime-header strong {
    display: block;
    margin-top: 6px;
    color: var(--text-primary);
    font-size: 1.18rem;
    line-height: 1.18;
}

.workflow-runtime-header em {
    flex: 0 0 auto;
    padding: 8px 10px;
    border: 1px solid rgba(139, 213, 255, 0.22);
    border-radius: 999px;
    color: var(--text-primary);
    background: rgba(139, 213, 255, 0.08);
    font-size: 0.78rem;
    font-style: normal;
    font-weight: 800;
}

.workflow-runtime-canvas {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 18px;
    margin-top: 30px;
    padding: 22px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    background:
            linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
            linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
            rgba(5, 10, 20, 0.38);
    background-size: 26px 26px;
}

.workflow-runtime-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 18px minmax(0, 1fr) 18px minmax(0, 1.12fr) 18px minmax(0, 1fr) 18px minmax(0, 1fr) 18px minmax(0, 0.9fr);
    align-items: center;
}

.workflow-runtime-main i {
    display: block;
    height: 2px;
    background: linear-gradient(90deg, rgba(139, 213, 255, 0.3), rgba(139, 213, 255, 0.72));
}

.workflow-runtime-main i::after {
    content: "";
    display: block;
    width: 7px;
    height: 7px;
    margin-top: -2.5px;
    margin-left: auto;
    border-top: 2px solid rgba(139, 213, 255, 0.74);
    border-right: 2px solid rgba(139, 213, 255, 0.74);
    transform: rotate(45deg);
}

.workflow-runtime-node {
    position: relative;
    min-height: 96px;
    padding: 14px 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    background:
            linear-gradient(180deg, rgba(255, 255, 255, 0.072), rgba(255, 255, 255, 0.022)),
            rgba(12, 20, 34, 0.86);
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.22);
}

.workflow-runtime-node::after {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    border: 1px solid transparent;
    pointer-events: none;
}

.workflow-runtime-node.is-live::after,
.workflow-runtime-node.is-context::after,
.workflow-runtime-node.is-validate::after {
    border-color: rgba(139, 213, 255, 0.28);
    box-shadow: 0 0 30px rgba(139, 213, 255, 0.1);
}

.workflow-runtime-node strong {
    display: block;
    margin-top: 12px;
    color: var(--text-primary);
    font-size: 0.93rem;
    line-height: 1.2;
}

.workflow-runtime-side-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.workflow-runtime-side-grid span,
.workflow-runtime-footer span {
    display: flex;
    align-items: center;
    min-height: 38px;
    padding: 8px 10px;
    border: 1px solid rgba(255, 255, 255, 0.075);
    border-radius: 8px;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.032);
    font-size: 0.82rem;
    font-weight: 750;
    line-height: 1.2;
}

.workflow-runtime-side-grid span:nth-child(2),
.workflow-runtime-side-grid span:nth-child(5),
.workflow-runtime-footer span:nth-child(2) {
    border-color: rgba(139, 213, 255, 0.18);
    background: rgba(139, 213, 255, 0.06);
}

.workflow-runtime-footer {
    margin-top: 16px;
}

.workflow-runtime-footer span {
    flex: 1 1 0;
    justify-content: center;
    color: var(--text-muted);
}

.workflow-graph {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 18px;
}

.workflow-node {
    min-height: 112px;
    padding: 14px;
    border: 1px solid var(--platform-border);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.026);
    transition: border-color 160ms ease, background 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.workflow-node strong {
    display: block;
    margin-top: 12px;
    color: var(--text-primary);
    line-height: 1.2;
}

.workflow-node.is-active {
    border-color: rgba(139, 213, 255, 0.36);
    background:
            linear-gradient(135deg, rgba(96, 165, 250, 0.14), rgba(155, 123, 255, 0.08)),
            rgba(255, 255, 255, 0.035);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.2);
}

.runtime-debugger {
    margin-top: 18px;
}

.platform-context-section {
    grid-template-columns: 1fr;
    gap: 14px;
}

.context-layer-header {
    max-width: 860px;
}

.context-layer-header p {
    max-width: 820px;
}

.context-layer-system {
    display: grid;
    grid-template-columns: minmax(0, 1.32fr) minmax(280px, 0.68fr);
    gap: 12px;
    align-items: stretch;
}

.context-layer-system > * {
    min-width: 0;
}

.context-layer-proof-grid {
    display: grid;
    gap: 10px;
    margin-top: 26px;
}

.context-layer-system .context-layer-proof-grid {
    margin-top: 0;
}

.context-layer-system .context-layer-proof-grid article {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.context-layer-proof-grid article,
.context-major-card,
.context-support-card {
    border: 1px solid var(--platform-border);
    border-radius: 8px;
    background:
            linear-gradient(180deg, rgba(255, 255, 255, 0.052), rgba(255, 255, 255, 0.018)),
            rgba(255, 255, 255, 0.026);
}

.context-layer-proof-grid article {
    padding: 13px 14px;
}

.context-layer-proof-grid span,
.context-architecture-header span,
.context-layer-core > span,
.context-major-card > span,
.context-support-card > span {
    display: block;
    color: var(--platform-cyan);
    font-size: 0.72rem;
    font-weight: 850;
    letter-spacing: 0;
    text-transform: uppercase;
}

.context-layer-proof-grid strong {
    display: block;
    margin-top: 7px;
    color: var(--text-primary);
    font-size: 0.93rem;
    line-height: 1.25;
}

.context-layer-proof-grid p,
.context-major-card p,
.context-support-card p {
    margin: 8px 0 0;
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

.context-architecture-card {
    position: relative;
    overflow: hidden;
    min-width: 0;
    height: 100%;
    padding: 20px;
    border: 1px solid rgba(139, 213, 255, 0.18);
    border-radius: 8px;
    background:
            radial-gradient(circle at 18% 10%, rgba(139, 213, 255, 0.16), transparent 30%),
            radial-gradient(circle at 92% 28%, rgba(77, 212, 172, 0.12), transparent 34%),
            linear-gradient(180deg, rgba(255, 255, 255, 0.062), rgba(255, 255, 255, 0.018)),
            rgba(9, 15, 27, 0.92);
    box-shadow: 0 28px 76px rgba(0, 0, 0, 0.28);
}

.context-architecture-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
            linear-gradient(rgba(255, 255, 255, 0.034) 1px, transparent 1px),
            linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.35;
    pointer-events: none;
}

.context-architecture-header,
.context-architecture-map,
.context-refresh-loop {
    position: relative;
    z-index: 1;
}

.context-architecture-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.context-architecture-header strong {
    display: block;
    margin-top: 7px;
    color: var(--text-primary);
    font-size: 1.22rem;
    line-height: 1.18;
}

.context-architecture-header em {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 6px 10px;
    border: 1px solid rgba(77, 212, 172, 0.2);
    border-radius: 999px;
    color: var(--platform-green);
    background: rgba(77, 212, 172, 0.07);
    font-size: 0.76rem;
    font-style: normal;
    font-weight: 800;
    white-space: nowrap;
}

.context-architecture-map {
    display: grid;
    grid-template-columns: minmax(132px, 0.72fr) minmax(0, 1.6fr) minmax(132px, 0.72fr);
    gap: 12px;
    align-items: stretch;
    margin-top: 20px;
}

.context-source-stack,
.context-output-stack {
    display: grid;
    gap: 8px;
}

.context-source-stack span,
.context-output-stack span,
.context-pipeline-row span,
.context-refresh-loop span {
    display: inline-flex;
    align-items: center;
    border-radius: 8px;
    color: var(--text-secondary);
    font-weight: 760;
    line-height: 1.2;
}

.context-source-stack span,
.context-output-stack span {
    min-height: 42px;
    padding: 9px 10px;
    border: 1px solid rgba(255, 255, 255, 0.075);
    background: rgba(255, 255, 255, 0.032);
    font-size: 0.82rem;
}

.context-source-stack span:nth-child(1),
.context-source-stack span:nth-child(3),
.context-output-stack span:nth-child(2),
.context-output-stack span:nth-child(4) {
    border-color: rgba(139, 213, 255, 0.18);
    background: rgba(139, 213, 255, 0.06);
}

.context-layer-core {
    display: grid;
    align-content: center;
    gap: 13px;
    min-height: 250px;
    padding: 18px;
    border: 1px solid rgba(139, 213, 255, 0.22);
    border-radius: 8px;
    background:
            radial-gradient(circle at 50% 8%, rgba(139, 213, 255, 0.16), transparent 42%),
            rgba(5, 12, 24, 0.72);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.context-layer-core strong {
    display: block;
    color: var(--text-primary);
    font-size: clamp(1.35rem, 2.6vw, 2rem);
    line-height: 1.08;
}

.context-pipeline-row {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 7px;
}

.context-pipeline-row-secondary {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.context-pipeline-row span {
    justify-content: center;
    min-height: 34px;
    padding: 8px 7px;
    border: 1px solid rgba(255, 255, 255, 0.078);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-secondary);
    font-size: 0.76rem;
    text-align: center;
}

.context-pipeline-row span:nth-child(odd) {
    border-color: rgba(77, 212, 172, 0.18);
    background: rgba(77, 212, 172, 0.06);
}

.context-refresh-loop {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.context-refresh-loop span {
    min-height: 32px;
    padding: 7px 10px;
    border: 1px solid rgba(255, 255, 255, 0.075);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-muted);
    font-size: 0.78rem;
    white-space: nowrap;
}

.context-refresh-loop i {
    flex: 1 1 18px;
    height: 1px;
    min-width: 12px;
    background: linear-gradient(90deg, rgba(139, 213, 255, 0.08), rgba(139, 213, 255, 0.48));
}

.context-major-card-grid,
.context-support-grid {
    grid-column: 1 / -1;
}

.context-major-card-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-top: 0;
}

.context-major-card {
    min-height: 0;
    padding: 16px;
}

.context-major-card h3 {
    margin: 12px 0 0;
    color: var(--text-primary);
    font-size: 1.05rem;
    line-height: 1.22;
}

.context-major-card ul {
    display: grid;
    gap: 8px;
    margin: 14px 0 0;
    padding: 0;
    list-style: none;
}

.context-major-card li {
    position: relative;
    padding-left: 16px;
    color: var(--text-secondary);
    font-size: 0.86rem;
    line-height: 1.42;
}

.context-major-card li::before {
    content: "";
    position: absolute;
    top: 0.62em;
    left: 0;
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--platform-cyan), var(--platform-green));
    box-shadow: 0 0 14px rgba(139, 213, 255, 0.24);
}

.context-support-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 2px;
}

.context-support-card {
    padding: 15px 16px;
}

.api-actions-layout {
    display: grid;
    gap: 14px;
    min-width: 0;
}

.api-operating-layer {
    position: relative;
    overflow: hidden;
    padding: 18px;
    border: 1px solid rgba(139, 213, 255, 0.18);
    border-radius: 8px;
    background:
            radial-gradient(circle at 14% 12%, rgba(139, 213, 255, 0.16), transparent 30%),
            radial-gradient(circle at 88% 20%, rgba(77, 212, 172, 0.1), transparent 28%),
            linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018)),
            rgba(9, 15, 27, 0.92);
    box-shadow: 0 28px 76px rgba(0, 0, 0, 0.28);
}

.api-operating-layer::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
            linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
            linear-gradient(90deg, rgba(255, 255, 255, 0.032) 1px, transparent 1px);
    background-size: 28px 28px;
    opacity: 0.42;
    pointer-events: none;
}

.api-visual-header,
.api-visual-grid {
    position: relative;
    z-index: 1;
}

.api-visual-header {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: flex-start;
}

.api-visual-header span,
.api-column-title,
.api-flow-card span,
.api-core-heading span,
.api-core-row span,
.api-capability-card > span {
    display: block;
    color: var(--platform-cyan);
    font-size: 0.72rem;
    font-weight: 850;
    letter-spacing: 0;
    text-transform: uppercase;
}

.api-visual-header h3 {
    max-width: 620px;
    margin: 8px 0 0;
    color: var(--text-primary);
    font-size: clamp(1.6rem, 3vw, 2.35rem);
    line-height: 1.04;
    letter-spacing: 0;
}

.api-visual-header p {
    max-width: 640px;
    margin: 12px 0 0;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.55;
}

.api-visual-status {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
    min-width: 180px;
}

.api-visual-status span,
.api-logo-cloud span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 10px;
    border: 1px solid rgba(231, 239, 255, 0.11);
    border-radius: 8px;
    color: #d6e7ff;
    background: rgba(255, 255, 255, 0.032);
    font-size: 0.78rem;
    font-weight: 800;
}

.api-visual-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.86fr) minmax(250px, 1fr) minmax(0, 0.86fr);
    gap: 14px;
    align-items: stretch;
    margin-top: 20px;
}

.api-visual-grid::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 14%;
    right: 14%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(139, 213, 255, 0.3), rgba(77, 212, 172, 0.26), transparent);
    pointer-events: none;
}

.api-visual-column,
.api-normalize-core {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 10px;
    min-width: 0;
}

.api-column-title {
    color: #b6c8ff;
}

.api-flow-card,
.api-core-card,
.api-capability-card {
    border: 1px solid var(--platform-border);
    border-radius: 8px;
    background:
            linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.018)),
            rgba(13, 19, 32, 0.84);
}

.api-flow-card {
    min-height: 104px;
    padding: 13px;
}

.api-flow-card-strong {
    border-color: rgba(77, 212, 172, 0.18);
    background:
            linear-gradient(180deg, rgba(77, 212, 172, 0.07), rgba(255, 255, 255, 0.018)),
            rgba(13, 19, 32, 0.86);
}

.api-flow-card strong {
    display: block;
    margin-top: 9px;
    color: var(--text-primary);
    font-size: 0.98rem;
    line-height: 1.2;
}

.api-flow-card p {
    margin: 8px 0 0;
    color: var(--text-muted);
    font-size: 0.86rem;
    line-height: 1.44;
}

.api-core-card {
    display: grid;
    align-content: start;
    gap: 9px;
    min-height: 100%;
    padding: 16px;
    border-color: rgba(139, 213, 255, 0.24);
    background:
            radial-gradient(circle at 50% 0%, rgba(139, 213, 255, 0.14), transparent 42%),
            linear-gradient(180deg, rgba(96, 165, 250, 0.08), rgba(155, 123, 255, 0.035)),
            rgba(6, 12, 22, 0.9);
}

.api-core-heading {
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(231, 239, 255, 0.08);
}

.api-core-heading strong {
    display: block;
    margin-top: 8px;
    color: var(--text-primary);
    font-size: 1.2rem;
    line-height: 1.18;
}

.api-core-row {
    display: grid;
    grid-template-columns: minmax(80px, 0.34fr) minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    padding: 11px 0;
    border-bottom: 1px solid rgba(231, 239, 255, 0.07);
}

.api-core-row:last-child {
    border-bottom: 0;
}

.api-core-row span {
    color: #4dd4ac;
}

.api-core-row p {
    margin: 0;
    color: #d9e5f5;
    font-size: 0.88rem;
    line-height: 1.45;
}

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

.api-capability-card {
    min-height: 258px;
    padding: 16px;
}

.api-capability-card h3 {
    margin: 10px 0 0;
    color: var(--text-primary);
    font-size: clamp(1.05rem, 2vw, 1.28rem);
    line-height: 1.2;
    letter-spacing: 0;
}

.api-capability-card p {
    margin: 10px 0 0;
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.55;
}

.api-capability-card ul {
    display: grid;
    gap: 8px;
    margin: 14px 0 0;
    padding: 0;
    list-style: none;
}

.api-capability-card li {
    position: relative;
    padding-left: 17px;
    color: #d6deeb;
    font-size: 0.88rem;
    line-height: 1.42;
}

.api-capability-card li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.62em;
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: var(--platform-cyan);
    box-shadow: 0 0 12px rgba(139, 213, 255, 0.55);
}

.api-logo-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 14px;
}

.api-logo-cloud span:nth-child(3n) {
    border-color: rgba(77, 212, 172, 0.18);
    color: #dff8ef;
    background: rgba(77, 212, 172, 0.055);
}

.api-logo-cloud span:nth-child(4n) {
    border-color: rgba(255, 204, 102, 0.2);
    color: #fff0c6;
    background: rgba(255, 204, 102, 0.055);
}

.prompt-contracts-layout {
    display: grid;
    gap: 14px;
    min-width: 0;
}

.prompt-contracts-visual,
.prompt-contract-card {
    border: 1px solid var(--platform-border);
    border-radius: 8px;
    background:
            linear-gradient(135deg, rgba(96, 165, 250, 0.08), rgba(77, 212, 172, 0.04)),
            linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.018)),
            rgba(13, 19, 32, 0.86);
}

.prompt-contracts-visual {
    position: relative;
    overflow: hidden;
    padding: 20px;
    box-shadow: 0 24px 68px rgba(0, 0, 0, 0.24);
}

.prompt-contracts-visual::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
            linear-gradient(rgba(255, 255, 255, 0.032) 1px, transparent 1px),
            linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
    background-size: 28px 28px;
    opacity: 0.34;
    pointer-events: none;
}

.prompt-contracts-visual-header,
.prompt-stack-map,
.prompt-contract-chip-row {
    position: relative;
    z-index: 1;
}

.prompt-contracts-visual-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.prompt-contracts-visual-header strong {
    display: block;
    margin-top: 6px;
    color: var(--text-primary);
    font-size: 1.18rem;
    line-height: 1.18;
}

.prompt-contracts-visual-header em {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 10px;
    border: 1px solid rgba(139, 213, 255, 0.2);
    border-radius: 999px;
    color: var(--text-primary);
    background: rgba(139, 213, 255, 0.08);
    font-size: 0.78rem;
    font-style: normal;
    font-weight: 800;
}

.prompt-stack-map {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(220px, 0.86fr) minmax(0, 1fr);
    gap: 12px;
    align-items: stretch;
    margin-top: 18px;
}

.prompt-stack-column,
.prompt-stack-hub {
    display: grid;
    gap: 10px;
    min-width: 0;
}

.prompt-stack-column-label {
    color: #b6c8ff;
}

.prompt-stack-item,
.prompt-stack-hub-core,
.prompt-stack-regenerate,
.contract-field-cloud span {
    border: 1px solid rgba(231, 239, 255, 0.1);
    border-radius: 8px;
    background: rgba(6, 12, 23, 0.62);
}

.prompt-stack-item {
    min-height: 82px;
    padding: 13px;
}

.prompt-stack-item strong,
.prompt-stack-hub-core strong,
.prompt-stack-regenerate strong {
    display: block;
    margin-top: 8px;
    color: var(--text-primary);
    font-size: 0.98rem;
    line-height: 1.22;
}

.prompt-stack-hub {
    align-content: center;
}

.prompt-stack-hub-core {
    min-height: 164px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 18px;
    border-color: rgba(139, 213, 255, 0.24);
    background:
            linear-gradient(135deg, rgba(139, 213, 255, 0.12), rgba(77, 212, 172, 0.055)),
            rgba(6, 12, 23, 0.72);
}

.prompt-stack-hub-core p,
.prompt-stack-regenerate p,
.prompt-contract-card p {
    margin: 10px 0 0;
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.56;
}

.prompt-stack-regenerate {
    min-height: 104px;
    padding: 14px;
    border-style: dashed;
    border-color: rgba(77, 212, 172, 0.28);
    background: rgba(77, 212, 172, 0.045);
}

.contract-field-cloud {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.contract-field-cloud span {
    min-height: 48px;
    display: flex;
    align-items: center;
    padding: 10px;
    color: #dce9ff;
    font-size: 0.83rem;
    font-weight: 750;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.contract-field-cloud span:nth-child(2),
.contract-field-cloud span:nth-child(4),
.contract-field-cloud span:nth-child(6) {
    border-color: rgba(139, 213, 255, 0.18);
    background: rgba(139, 213, 255, 0.055);
}

.prompt-contract-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.prompt-contract-chip-row span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 10px;
    border: 1px solid rgba(231, 239, 255, 0.11);
    border-radius: 8px;
    color: #d6e7ff;
    background: rgba(255, 255, 255, 0.032);
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1.2;
}

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

.prompt-contract-card {
    min-height: 196px;
    padding: 18px;
}

.prompt-contract-card h3 {
    margin: 12px 0 0;
    color: var(--text-primary);
    font-size: 1.04rem;
    line-height: 1.2;
}

.controls-monitoring-stack {
    display: grid;
    gap: 14px;
    min-width: 0;
}

.controls-rail-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 22px;
}

.controls-rail-list span {
    display: inline-flex;
    align-items: center;
    min-height: 31px;
    padding: 0 10px;
    border: 1px solid rgba(231, 239, 255, 0.12);
    border-radius: 999px;
    color: #d8e7ff;
    background: rgba(255, 255, 255, 0.032);
    font-size: 0.8rem;
    font-weight: 800;
    line-height: 1.2;
}

.ops-console-card {
    position: relative;
    display: grid;
    gap: 14px;
    border-color: rgba(139, 213, 255, 0.18);
    background:
            linear-gradient(135deg, rgba(96, 165, 250, 0.09), rgba(77, 212, 172, 0.04) 42%, rgba(255, 204, 102, 0.035)),
            linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018)),
            rgba(9, 15, 26, 0.9);
    box-shadow: 0 28px 78px rgba(0, 0, 0, 0.28);
    overflow: hidden;
}

.ops-console-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
            linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
            linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.3;
    pointer-events: none;
}

.ops-console-card > * {
    position: relative;
    z-index: 1;
}

.ops-console-topline {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.ops-console-topline div,
.ops-console-module,
.control-category-card {
    border: 1px solid rgba(231, 239, 255, 0.11);
    border-radius: 8px;
    background: rgba(6, 12, 23, 0.66);
}

.ops-console-topline div {
    min-height: 92px;
    padding: 12px;
}

.ops-console-topline strong {
    display: block;
    margin-top: 16px;
    color: var(--text-primary);
    font-size: clamp(1.12rem, 2vw, 1.38rem);
    line-height: 1.08;
}

.ops-console-topline small {
    display: block;
    margin-top: 6px;
    color: var(--text-soft);
    font-size: 0.76rem;
    line-height: 1.3;
}

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

.ops-console-module {
    min-width: 0;
    padding: 14px;
}

.ops-console-module-wide {
    grid-column: span 2;
}

.ops-module-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.ops-module-header em {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0 8px;
    border: 1px solid rgba(77, 212, 172, 0.2);
    border-radius: 999px;
    color: #dff8ef;
    background: rgba(77, 212, 172, 0.07);
    font-size: 0.72rem;
    font-style: normal;
    font-weight: 800;
    white-space: nowrap;
}

.ops-console-module > strong {
    display: block;
    margin-top: 12px;
    color: var(--text-primary);
    font-size: 1rem;
    line-height: 1.22;
}

.ops-node-path {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 12px;
}

.ops-node-path span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 9px;
    border: 1px solid rgba(139, 213, 255, 0.16);
    border-radius: 8px;
    color: #dcecff;
    background: rgba(139, 213, 255, 0.055);
    font-size: 0.78rem;
    font-weight: 800;
}

.ops-node-path span:nth-child(4) {
    border-color: rgba(255, 204, 102, 0.26);
    color: #fff0c6;
    background: rgba(255, 204, 102, 0.075);
}

.ops-detail-list,
.control-category-card dl {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin: 12px 0 0;
}

.ops-detail-list div,
.control-category-card dl div {
    min-width: 0;
    padding: 9px;
    border: 1px solid rgba(231, 239, 255, 0.08);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.028);
}

.ops-detail-list dt,
.control-category-card dt {
    color: #9fb0ca;
    font-size: 0.74rem;
    font-weight: 800;
}

.ops-detail-list dd,
.control-category-card dd {
    margin: 5px 0 0;
    color: var(--text-primary);
    font-size: 0.88rem;
    font-weight: 800;
    line-height: 1.22;
    overflow-wrap: anywhere;
}

.ops-activity-row {
    display: grid;
    grid-template-columns: minmax(92px, 0.38fr) minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    margin-top: 9px;
    padding: 9px 0;
    border-bottom: 1px solid rgba(231, 239, 255, 0.08);
}

.ops-activity-row:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.ops-activity-row span {
    color: #9fb0ca;
    font-size: 0.76rem;
    font-weight: 800;
}

.ops-activity-row strong,
.ops-activity-row a {
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 800;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.ops-activity-row a {
    text-decoration: none;
}

.ops-infra-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 2px;
}

.ops-infra-strip span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 9px;
    border: 1px solid rgba(231, 239, 255, 0.1);
    border-radius: 8px;
    color: #d8e7ff;
    background: rgba(255, 255, 255, 0.032);
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1.2;
}

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

.control-category-card {
    min-width: 0;
    padding: 18px;
    background:
            linear-gradient(180deg, rgba(255, 255, 255, 0.042), rgba(255, 255, 255, 0.016)),
            rgba(13, 19, 32, 0.82);
}

.control-category-card:nth-child(2n) {
    border-color: rgba(77, 212, 172, 0.16);
}

.control-category-card:nth-child(3n) {
    border-color: rgba(255, 204, 102, 0.16);
}

.control-category-card h3 {
    margin: 12px 0 0;
    color: var(--text-primary);
    font-size: 1.02rem;
    line-height: 1.22;
}

.control-category-card p {
    margin: 10px 0 0;
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.55;
}

.deployment-map-layout {
    display: grid;
    grid-template-columns: minmax(380px, 0.82fr) minmax(540px, 1.18fr);
    gap: 24px;
    align-items: start;
}

.deployment-map-column {
    display: grid;
    gap: 8px;
    align-content: start;
}

.deployment-selector-row > span {
    display: block;
    color: var(--platform-cyan);
    font-size: 0.72rem;
    font-weight: 850;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.deployment-map {
    position: relative;
    min-height: 420px;
    padding: 8px 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    overflow: visible;
}

.deployment-connectors {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
    pointer-events: none;
}

.deployment-connectors line {
    stroke: rgba(139, 213, 255, 0.62);
    stroke-width: 0.66;
    stroke-linecap: round;
    vector-effect: non-scaling-stroke;
    filter: drop-shadow(0 0 8px rgba(139, 213, 255, 0.28));
}

.deploy-core {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 2;
    width: 148px;
    min-height: 100px;
    transform: translate(-50%, -50%);
    display: grid;
    align-content: center;
    gap: 7px;
    padding: 10px;
    border: 1px solid rgba(139, 213, 255, 0.24);
    border-radius: 8px;
    text-align: center;
    background:
            radial-gradient(circle at 50% 0%, rgba(139, 213, 255, 0.18), transparent 55%),
            linear-gradient(180deg, rgba(255, 255, 255, 0.064), rgba(255, 255, 255, 0.018)),
            rgba(7, 13, 24, 0.88);
    box-shadow: 0 22px 52px rgba(0, 0, 0, 0.26);
}

.deploy-core strong {
    color: var(--text-primary);
    font-size: 1rem;
    line-height: 1.1;
}

.deploy-channel {
    position: absolute;
    z-index: 2;
    width: 150px;
    min-height: 74px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 13px;
    border: 1px solid var(--platform-border);
    border-radius: 8px;
    color: var(--text-primary);
    background:
            linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.016)),
            rgba(10, 17, 30, 0.88);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.deploy-channel span {
    color: var(--text-primary);
    font-weight: 800;
    line-height: 1.12;
    text-align: center;
}

.deploy-channel small {
    color: var(--text-soft);
    font-size: 0.76rem;
    font-weight: 750;
    line-height: 1.2;
    text-align: center;
}

.deployment-map .deploy-channel:hover,
.deployment-map .deploy-channel:focus-visible,
.deployment-map .deploy-channel.is-active {
    transform: translate(-50%, calc(-50% - 1px));
}

.deployment-map .deploy-channel.is-active {
    border-color: rgba(139, 213, 255, 0.62);
    background:
            radial-gradient(circle at 50% 0%, rgba(139, 213, 255, 0.18), transparent 68%),
            linear-gradient(135deg, rgba(96, 165, 250, 0.16), rgba(77, 212, 172, 0.06)),
            rgba(14, 24, 42, 0.92);
    box-shadow:
            0 18px 46px rgba(0, 0, 0, 0.28),
            0 0 0 1px rgba(139, 213, 255, 0.1),
            0 0 28px rgba(139, 213, 255, 0.26);
}

.deployment-map .deploy-channel.is-active span {
    text-shadow: 0 0 18px rgba(139, 213, 255, 0.42);
}

.deploy-widget {
    top: 21%;
    left: 28%;
    transform: translate(-50%, -50%);
}

.deploy-slack {
    top: 21%;
    left: 72%;
    transform: translate(-50%, -50%);
}

.deploy-discord {
    top: 50%;
    left: 84%;
    transform: translate(-50%, -50%);
}

.deploy-webhook {
    top: 78%;
    left: 72%;
    transform: translate(-50%, -50%);
}

.deploy-schedule {
    top: 78%;
    left: 28%;
    transform: translate(-50%, -50%);
}

.deploy-assistant {
    top: 50%;
    left: 16%;
    transform: translate(-50%, -50%);
}

.deployment-map-support {
    display: block;
    margin-top: -16px;
}

.deployment-detail {
    grid-column: auto;
    min-height: 560px;
    justify-content: flex-start;
    gap: 20px;
    padding: 24px;
    border-color: rgba(139, 213, 255, 0.18);
    background:
            radial-gradient(circle at 92% 12%, rgba(77, 212, 172, 0.09), transparent 30%),
            linear-gradient(180deg, rgba(255, 255, 255, 0.052), rgba(255, 255, 255, 0.018)),
            rgba(13, 19, 32, 0.9);
}

.deployment-detail-main {
    display: grid;
    gap: 0;
}

.deployment-selector-row {
    display: grid;
    gap: 8px;
}

.deployment-channel-menu {
    position: relative;
    z-index: 8;
}

.deployment-channel-trigger {
    width: 100%;
    min-height: 54px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 0 38px 7px 0;
    border: 0;
    border-bottom: 1px solid rgba(139, 213, 255, 0.22);
    border-radius: 0;
    color: var(--text-primary);
    background: transparent;
    font: inherit;
    font-size: clamp(1.55rem, 3vw, 2.35rem);
    font-weight: 860;
    line-height: 1.05;
    letter-spacing: 0;
    cursor: pointer;
    text-align: left;
    transition: border-color 160ms ease, color 160ms ease;
}

.deployment-channel-trigger:hover,
.deployment-channel-menu.is-open .deployment-channel-trigger {
    border-bottom-color: rgba(139, 213, 255, 0.44);
}

.deployment-channel-trigger:focus-visible {
    outline: 2px solid rgba(139, 213, 255, 0.48);
    outline-offset: 5px;
}

.deployment-channel-trigger span:first-child {
    min-width: 0;
    overflow-wrap: anywhere;
}

.deployment-channel-caret {
    flex: 0 0 auto;
    width: 10px;
    height: 10px;
    margin-top: -5px;
    border-right: 2px solid rgba(196, 225, 255, 0.86);
    border-bottom: 2px solid rgba(196, 225, 255, 0.86);
    transform: rotate(45deg);
    transition: transform 160ms ease, border-color 160ms ease;
}

.deployment-channel-menu.is-open .deployment-channel-caret {
    margin-top: 5px;
    border-color: var(--platform-cyan);
    transform: rotate(225deg);
}

.deployment-channel-options {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    z-index: 12;
    display: grid;
    gap: 7px;
    padding: 8px;
    border: 1px solid rgba(139, 213, 255, 0.22);
    border-radius: 8px;
    background:
            linear-gradient(180deg, rgba(22, 35, 55, 0.98), rgba(9, 15, 27, 0.98)),
            rgba(9, 15, 27, 0.98);
    box-shadow: 0 24px 68px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.deployment-channel-options[hidden],
.deployment-channel-menu:not(.is-open) .deployment-channel-options {
    display: none;
}

.deployment-channel-option {
    width: 100%;
    display: grid;
    gap: 4px;
    padding: 11px 12px;
    border: 1px solid rgba(231, 239, 255, 0.08);
    border-radius: 8px;
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.026);
    cursor: pointer;
    text-align: left;
    transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.deployment-channel-option span {
    color: var(--text-primary);
    font-size: 0.92rem;
    font-weight: 820;
    line-height: 1.18;
}

.deployment-channel-option small {
    color: var(--text-soft);
    font-size: 0.77rem;
    font-weight: 740;
    line-height: 1.25;
}

.deployment-channel-option:hover,
.deployment-channel-option:focus-visible,
.deployment-channel-option.is-active {
    border-color: rgba(139, 213, 255, 0.34);
    background:
            linear-gradient(135deg, rgba(96, 165, 250, 0.12), rgba(77, 212, 172, 0.055)),
            rgba(255, 255, 255, 0.04);
    box-shadow: inset 0 0 0 1px rgba(139, 213, 255, 0.055);
    outline: none;
}

.deployment-channel-option.is-active small {
    color: #c7d7ee;
}

.deployment-detail-main p {
    max-width: 720px;
}

.deployment-capability-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
}

.deployment-capability-list li {
    position: relative;
    min-height: 40px;
    display: flex;
    align-items: center;
    padding: 9px 10px 9px 26px;
    border: 1px solid rgba(231, 239, 255, 0.09);
    border-radius: 8px;
    color: #d9e6f8;
    background: rgba(255, 255, 255, 0.028);
    font-size: 0.84rem;
    font-weight: 760;
    line-height: 1.25;
}

.deployment-capability-list li::before {
    content: "";
    position: absolute;
    left: 11px;
    top: 50%;
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: var(--platform-cyan);
    box-shadow: 0 0 14px rgba(139, 213, 255, 0.52);
    transform: translateY(-50%);
}

.deployment-detail-meta {
    display: grid;
    gap: 16px;
}

.deployment-detail .platform-tag-row {
    margin-top: 0;
}

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

.deployment-mechanics-grid article {
    min-width: 0;
    padding: 13px;
    border: 1px solid rgba(231, 239, 255, 0.09);
    border-radius: 8px;
    background: rgba(6, 12, 23, 0.52);
}

.deployment-mechanics-grid strong {
    display: block;
    color: var(--text-primary);
    font-size: 0.9rem;
    line-height: 1.18;
}

.deployment-mechanics-grid p {
    margin: 7px 0 0;
    color: var(--text-muted);
    font-size: 0.82rem;
    line-height: 1.42;
}

.deployment-binding-card {
    margin-top: auto;
    padding: 18px;
    border: 1px solid rgba(139, 213, 255, 0.16);
    border-radius: 8px;
    background:
            linear-gradient(135deg, rgba(139, 213, 255, 0.09), rgba(77, 212, 172, 0.045)),
            rgba(6, 12, 23, 0.62);
}

.deployment-binding-card strong {
    display: block;
    margin-top: 9px;
    color: var(--text-primary);
    font-size: 1.02rem;
    line-height: 1.22;
}

.deployment-binding-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    margin: 14px 0 0;
}

.deployment-binding-list div {
    min-width: 0;
    padding: 10px;
    border: 1px solid rgba(231, 239, 255, 0.09);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.026);
}

.deployment-binding-list dt {
    color: #9fb0ca;
    font-size: 0.72rem;
    font-weight: 850;
    line-height: 1.2;
}

.deployment-binding-list dd {
    margin: 5px 0 0;
    color: var(--text-primary);
    font-size: 0.86rem;
    font-weight: 800;
    line-height: 1.24;
    overflow-wrap: anywhere;
}

@media (min-width: 861px) {
    [data-scroll-feature-section] {
        min-height: calc(100vh + var(--scroll-feature-span, 860px));
    }

    .platform-builder-section[data-scroll-feature-section] .workflow-builder-copy,
    .platform-builder-section[data-scroll-feature-section] .workflow-builder-right {
        position: sticky;
        top: min(calc(var(--nav-height) + 37px), calc(100vh - 855px));
    }

    .platform-deploy-section[data-scroll-feature-section] .deployment-map-layout {
        position: sticky;
        top: calc(var(--nav-height) + 22px);
    }

    .platform-deploy-section[data-scroll-feature-section] .deployment-map-layout {
        top: var(--nav-height);
        z-index: 1;
    }

    .platform-deploy-section[data-scroll-feature-section] .deployment-detail {
        gap: 14px;
        min-height: 0;
        padding: 20px;
    }

    .platform-deploy-section[data-scroll-feature-section] .deployment-channel-trigger {
        min-height: 48px;
        font-size: clamp(1.48rem, 2.7vw, 2.12rem);
    }

    .platform-deploy-section[data-scroll-feature-section] .deployment-detail-main p {
        margin-top: 10px;
        line-height: 1.5;
    }

    .platform-deploy-section[data-scroll-feature-section] .deployment-capability-list {
        gap: 7px;
        margin-top: 14px;
    }

    .platform-deploy-section[data-scroll-feature-section] .deployment-capability-list li {
        min-height: 34px;
        padding-top: 8px;
        padding-bottom: 8px;
    }

    .platform-deploy-section[data-scroll-feature-section] .deployment-binding-card {
        padding: 14px;
    }

    .platform-deploy-section[data-scroll-feature-section] .deployment-binding-list {
        gap: 7px;
        margin-top: 10px;
    }

    .platform-deploy-section[data-scroll-feature-section] .deployment-binding-list div {
        padding: 8px;
    }
}

.platform-final-cta {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 28px;
    align-items: center;
    padding: 32px;
    border: 1px solid var(--platform-border);
    border-radius: 8px;
    background:
            linear-gradient(135deg, rgba(96, 165, 250, 0.14), rgba(155, 123, 255, 0.1)),
            rgba(255, 255, 255, 0.025);
}

.platform-final-cta .cta-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 12px;
}

.platform-layer-summary.is-swapping > *,
.workflow-capability-detail.is-swapping [data-section-feature-title],
.workflow-capability-detail.is-swapping [data-section-feature-description],
.platform-detail-panel.is-swapping [data-section-feature-title],
.platform-detail-panel.is-swapping [data-section-feature-description],
.platform-detail-panel.is-swapping [data-section-feature-tags],
.platform-detail-panel.is-swapping [data-deploy-bullets],
.platform-detail-panel.is-swapping [data-deploy-binding-details],
.deployment-binding-card.is-swapping {
    animation: platformSwap 220ms ease both;
}

@keyframes platformSwap {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 1120px) {
    .platform-hero,
    .platform-builder-section,
    .platform-context-section,
    .platform-api-section,
    .platform-prompts-section,
    .platform-controls-section,
    .deployment-map-layout,
    .platform-final-cta {
        grid-template-columns: 1fr;
    }

    .platform-section-rail {
        position: static;
    }

    .platform-hero-copy {
        order: 1;
    }

    .platform-hero-architecture {
        order: 2;
    }

    .platform-capability-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .workflow-builder-copy {
        max-width: 760px;
    }

    .context-layer-system {
        grid-template-columns: 1fr;
    }

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

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

    .context-major-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .context-major-card {
        min-height: 0;
    }

    .platform-detail-panel {
        grid-column: auto;
    }

    .deployment-map {
        width: min(640px, 100%);
        margin: 0 auto;
    }

    .deployment-map-column {
        width: min(720px, 100%);
        margin: 0 auto;
    }

    .deployment-detail {
        min-height: 0;
    }

    .api-visual-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .api-visual-grid::before {
        top: 42px;
        bottom: 42px;
        left: 24px;
        right: auto;
        width: 1px;
        height: auto;
        background: linear-gradient(180deg, transparent, rgba(139, 213, 255, 0.3), rgba(77, 212, 172, 0.26), transparent);
    }

    .platform-final-cta .cta-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 860px) {
    .platform-shell {
        width: min(100% - 24px, 1180px);
    }

    .platform-hero {
        padding-top: 48px;
    }

    .platform-hero h1 {
        font-size: clamp(2.45rem, 12vw, 3.7rem);
        line-height: 1.04;
    }

    .platform-interactive-grid {
        grid-template-columns: 1fr;
    }

    .workflow-capability-panel {
        grid-template-columns: 1fr;
    }

    .workflow-capability-tabs {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .prompt-stack-map,
    .prompt-contract-card-grid {
        grid-template-columns: 1fr;
    }

    .prompt-contract-card {
        min-height: 0;
    }

    .api-capability-grid {
        grid-template-columns: 1fr;
    }

    .api-capability-card {
        min-height: 0;
    }

    .platform-layers-overview {
        grid-template-columns: 1fr;
    }

    .platform-layer-pill-grid {
        grid-template-columns: 1fr;
    }

    .workflow-graph,
    .ops-console-topline,
    .ops-console-grid,
    .controls-category-grid {
        grid-template-columns: 1fr;
    }

    .ops-console-module-wide {
        grid-column: auto;
    }

    .context-architecture-map {
        grid-template-columns: 1fr;
    }

    .context-source-stack,
    .context-output-stack {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .context-layer-core {
        min-height: 0;
    }

    .context-refresh-loop {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .context-refresh-loop i {
        display: none;
    }

    .context-support-grid {
        grid-template-columns: 1fr;
    }

    .workflow-runtime-card {
        min-height: 0;
    }

    .workflow-runtime-main {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .workflow-runtime-main i {
        justify-self: center;
        width: 2px;
        height: 22px;
        background: linear-gradient(180deg, rgba(139, 213, 255, 0.28), rgba(139, 213, 255, 0.72));
    }

    .workflow-runtime-main i::after {
        width: 7px;
        height: 7px;
        margin-top: 14px;
        margin-left: -2.5px;
        transform: rotate(135deg);
    }

    .workflow-runtime-side-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .architecture-pipeline span::after {
        display: none;
    }

    .deployment-map-column {
        display: contents;
        width: auto;
        margin: 0;
    }

    .deployment-map {
        order: 1;
        min-height: 0;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        width: 100%;
        margin: 0;
    }

    .deployment-detail {
        order: 2;
    }

    .deployment-map-support {
        order: 3;
        margin-top: 0;
    }

    .deployment-connectors {
        display: none;
    }

    .deploy-core,
    .deploy-channel {
        position: static;
        width: 100%;
        min-width: 0;
        height: auto;
        transform: none;
    }

    .deployment-map .deploy-channel:hover,
    .deployment-map .deploy-channel:focus-visible,
    .deployment-map .deploy-channel.is-active {
        transform: none;
    }

    .deploy-core {
        grid-column: 1 / -1;
        min-height: 94px;
    }

    .deployment-capability-list,
    .deployment-mechanics-grid,
    .deployment-binding-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .platform-hero h1 {
        max-width: 100%;
        font-size: 2.28rem;
        line-height: 1.02;
        letter-spacing: 0;
        overflow-wrap: break-word;
    }

    .platform-lede {
        font-size: 1.02rem;
    }

    .platform-card-header,
    .platform-layer-summary,
    .platform-final-cta {
        grid-template-columns: 1fr;
    }

    .deployment-channel-trigger {
        min-height: 48px;
        font-size: 1.34rem;
    }

    .platform-card-header {
        flex-direction: column;
    }

    .architecture-layer-heading {
        gap: 8px;
    }

    .architecture-layer-heading strong {
        max-width: 160px;
        font-size: 0.78rem;
    }

    .platform-hero-architecture,
    .architecture-runtime {
        padding: 14px;
    }

    .architecture-layer {
        padding: 12px;
    }

    .architecture-source-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .architecture-chip-grid span {
        min-height: 30px;
        padding: 4px 5px;
        font-size: 0.68rem;
    }

    .architecture-runtime-copy h3 {
        font-size: 1.25rem;
        line-height: 1.1;
    }

    .architecture-runtime-copy p {
        font-size: 0.84rem;
        line-height: 1.4;
    }

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

    .architecture-pipeline span {
        min-height: 34px;
        padding: 4px 5px;
        font-size: 0.68rem;
    }

    .api-operating-layer,
    .api-capability-card,
    .ops-console-card,
    .control-category-card {
        padding: 14px;
    }

    .ops-detail-list,
    .control-category-card dl,
    .ops-activity-row {
        grid-template-columns: 1fr;
    }

    .ops-module-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .api-visual-header {
        flex-direction: column;
    }

    .prompt-contracts-visual {
        padding: 14px;
    }

    .prompt-contracts-visual-header {
        flex-direction: column;
    }

    .contract-field-cloud {
        grid-template-columns: 1fr;
    }

    .prompt-stack-hub-core,
    .prompt-stack-regenerate,
    .prompt-contract-card {
        padding: 14px;
    }

    .api-visual-status {
        justify-content: flex-start;
        min-width: 0;
    }

    .api-core-row {
        grid-template-columns: 1fr;
        gap: 5px;
    }

    .platform-capability-strip {
        grid-template-columns: 1fr;
    }

    .platform-layer-pill-grid {
        grid-template-columns: 1fr;
    }

    .deployment-map {
        grid-template-columns: 1fr;
    }

    .platform-layer-includes ul {
        grid-template-columns: 1fr;
    }

    .workflow-builder-proof-grid,
    .context-layer-proof-grid {
        grid-template-columns: 1fr;
    }

    .workflow-capability-panel {
        padding: 12px;
    }

    .workflow-capability-tabs {
        grid-template-columns: 1fr;
    }

    .workflow-capability-detail {
        min-height: 190px;
        padding: 16px;
    }

    .context-architecture-card {
        padding: 14px;
    }

    .context-architecture-header {
        flex-direction: column;
    }

    .context-architecture-header em {
        width: 100%;
        justify-content: center;
    }

    .context-source-stack,
    .context-output-stack,
    .context-major-card-grid {
        grid-template-columns: 1fr;
    }

    .context-pipeline-row,
    .context-pipeline-row-secondary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .context-refresh-loop span {
        flex: 1 1 calc(50% - 8px);
        justify-content: center;
        text-align: center;
        white-space: normal;
    }

    .workflow-runtime-card {
        padding: 14px;
    }

    .workflow-runtime-canvas {
        gap: 12px;
        margin-top: 16px;
        padding: 14px;
        background-size: 22px 22px;
    }

    .workflow-runtime-node {
        min-height: 72px;
        padding: 10px 12px;
    }

    .workflow-runtime-node strong {
        margin-top: 8px;
    }

    .workflow-runtime-main i {
        height: 16px;
    }

    .workflow-runtime-main i::after {
        margin-top: 8px;
    }

    .workflow-runtime-side-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .workflow-runtime-header,
    .workflow-runtime-footer {
        align-items: stretch;
    }

    .workflow-runtime-header {
        flex-direction: column;
    }

    .workflow-runtime-footer {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .workflow-runtime-header em {
        width: 100%;
        justify-content: center;
    }

    .platform-layer-summary .platform-tag-row {
        justify-content: flex-start;
        min-width: 0;
    }

    .hero-actions,
    .platform-final-cta .cta-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .hero-actions .cta,
    .hero-actions .secondary-btn,
    .platform-final-cta .cta,
    .platform-final-cta .secondary-btn {
        width: 100%;
    }
}
