.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    border: 1px solid transparent;
}

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

.button--fill {
    flex: 1;
    text-align: center;
}

.nx-layout {
    width: min(1240px, calc(100vw - 48px));
    margin: 0 auto;
    position: relative;
}

.nx-layout--overlay {
    pointer-events: none;
}

.nx-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    backdrop-filter: blur(20px);
    background: rgba(var(--nx-bg-rgb), 0.8);
    border-bottom: 1px solid var(--nx-card-border);
}

.nx-header-inner {
    width: min(1240px, calc(100vw - 48px));
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 24px 0;
}

.nx-header-left {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nx-header-center {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nx-header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.nx-header .mock-brand {
    color: var(--nx-text);
    font-size: 0.9rem;
    font-weight: 500;
}

.nx-brand-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap;
    color: inherit;
    text-decoration: none;
}

.nx-brand-logo {
    flex: 0 0 auto;
    height: 44px;
    width: 44px;
    object-fit: contain;
}

.nx-brand-text {
    letter-spacing: 1px;
    font-size: 1rem;
    font-weight: 500;
    white-space: nowrap;
}

.nx-brand-link--footer {
    display: inline-flex;
}

.nx-brand-link--footer .nx-brand-logo {
    height: 38px;
    width: 38px;
}

.nx-brand-text--footer {
    letter-spacing: 0.5px;
}

.nx-header .brand-mark {
    border-color: var(--nx-cyan);
    color: var(--nx-cyan);
    display: none;
}

.nx-header .nav-link {
    color: var(--nx-muted);
    font-size: 0.85rem;
    margin: 0 16px;
    text-decoration: none;
    transition: color 0.2s;
}

.nx-header .nav-link:hover {
    color: var(--nx-text);
}

.nx-header .button-primary {
    background: transparent;
    color: var(--nx-text);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 8px 16px;
    font-size: 0.85rem;
}

.nx-header .button-secondary {
    border-color: transparent;
    color: var(--nx-muted);
    padding: 8px 16px;
    font-size: 0.85rem;
}

.nx-hero {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--nx-bg);
}

.nx-hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 52%;
    height: 100%;
    background: linear-gradient(
        90deg,
        rgba(var(--nx-bg-rgb), 0.98) 0%,
        rgba(var(--nx-bg-rgb), 0.9) 55%,
        rgba(var(--nx-bg-rgb), 0.3) 85%,
        transparent 100%
    );
    z-index: 1;
    pointer-events: none;
}

.nx-hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 60px;
    min-height: 100vh;
    padding: 96px 0 72px;
}

.nx-hero-inner--single {
    grid-template-columns: 1fr;
    position: relative;
    z-index: 10;
}

.nx-hero-copy {
    pointer-events: auto;
    position: relative;
    z-index: 3;
    max-width: 560px;
    display: grid;
    gap: 28px;
}

.nx-hero-copy--wide {
    max-width: 1000px;
    margin-top: 40px;
}

.nx-label {
    font-family: var(--theme-ui-font);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.76rem;
    color: var(--nx-cyan);
    display: none;
}

.nx-label::before {
    content: "";
    width: 42px;
    height: 1px;
    background: var(--nx-cyan);
}

@keyframes fadeSlideUpSlow {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.nx-hero h1 {
    font-size: clamp(2.4rem, 6vw, 5.4rem);
    line-height: 1.05;
    margin: 0;
    background: linear-gradient(135deg, var(--nx-text) 0%, var(--nx-cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-family: var(--theme-display-font);
    font-weight: 500;
    letter-spacing: -0.01em;
    opacity: 0;
    animation: fadeSlideUpSlow 0.8s 0.1s ease forwards;
}

.nx-hero-sub {
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--nx-muted);
    max-width: 440px;
    opacity: 0;
    animation: fadeSlideUpSlow 0.8s 0.25s ease forwards;
}

.nx-hero-sub--spaced {
    margin-top: 40px;
}

.nx-hero-support {
    font-size: 0.95rem;
    color: var(--nx-muted);
    line-height: 1.7;
    margin: 16px 0 0;
    max-width: 520px;
    opacity: 0;
    animation: fadeSlideUpSlow 0.8s 0.35s ease forwards;
}

.nx-hero-audience {
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--nx-muted);
    margin: 28px 0 0;
    opacity: 0;
    animation: fadeSlideUpSlow 0.8s 0.55s ease forwards;
}

.nx-hero-audience span {
    white-space: nowrap;
}

.nx-hero-actions {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeSlideUpSlow 0.8s 0.4s ease forwards;
}

.nx-hero-actions--offset {
    margin-top: 20px;
    pointer-events: auto;
}

.nx-hero-actions .button-primary {
    background: var(--nx-bright);
    color: var(--nx-bg);
    padding: 14px 28px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 40px;
    border: none;
}

.nx-hero-actions .button-secondary {
    border: none;
    color: var(--nx-text);
    padding: 14px 28px;
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: 40px;
    background: transparent;
}

.nx-hero-art {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1200px;
    pointer-events: none;
    overflow: hidden;
    isolation: isolate;
}

#sphere-canvas {
    display: none;
}

.sphere-container {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    will-change: transform;
    overflow: hidden;
    contain: layout paint;
}

.sphere-word {
    position: absolute;
    font-family: var(--theme-ui-font);
    font-weight: 500;
    white-space: nowrap;
    pointer-events: none;
    will-change: transform, opacity;
    transform-origin: center center;
}

.sphere-word.large {
    font-size: 1.4rem;
    font-weight: 700;
}

.sphere-word.medium {
    font-size: 1rem;
}

.sphere-word.small {
    font-size: 0.85rem;
}

.sphere-word.tiny {
    font-size: 0.7rem;
}

.sphere-inner {
    width: 100%;
    height: 100%;
    position: absolute;
    /* transform-style: preserve-3d; */
}

.nx-scroll-hint {
    position: absolute;
    bottom: 22px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.72rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--nx-muted);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    pointer-events: auto;
    z-index: 3;
    animation: hintPulse 2.5s ease-in-out infinite;
    opacity: 0.2;
}

.nx-scroll-hint::after {
    content: "";
    width: 1px;
    height: 28px;
    background: linear-gradient(180deg, var(--nx-cyan), transparent);
    animation: hintLine 2.5s ease-in-out infinite;
}

@keyframes hintPulse {
    0%,
    100% {
        opacity: 0.3;
    }

    50% {
        opacity: 0.7;
    }
}

@keyframes hintLine {
    0%,
    100% {
        transform: scaleY(0.5);
        opacity: 0.3;
    }

    50% {
        transform: scaleY(1);
        opacity: 0.6;
    }
}

.nx-content {
    position: relative;
    z-index: 10;
    background: var(--nx-bg);
}

.nx-content::before {
    content: "";
    position: absolute;
    top: -300px;
    left: 0;
    right: 0;
    height: 300px;
    background: linear-gradient(180deg, transparent, var(--nx-bg));
    pointer-events: none;
}

.nx-content::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(
        circle,
        rgba(var(--nx-cyan-rgb), 0.015) 1px,
        transparent 1px
    );
    background-size: 40px 40px;
    pointer-events: none;
    z-index: 0;
}

.nx-content > .nx-layout {
    position: relative;
    z-index: 1;
}

.nx-divider {
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(var(--nx-cyan-rgb), 0.15),
        transparent
    );
    margin: 0;
    transform: scaleX(0);
    transition: transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.nx-divider.visible {
    transform: scaleX(1);
}

.nx-section {
    padding: 100px 0 80px;
    contain: layout style paint;
}

.nx-section:first-child {
    padding-top: 120px;
}

.nx-section#outputs {
    scroll-margin-top: 5px;
}

.nx-section-header {
    display: grid;
    gap: 16px;
    margin-bottom: 48px;
}

.nx-scroll-target {
    display: block;
    height: 0;
}

.nx-scroll-target#why-gravity-compare-anchor {
    scroll-margin-top: 127px;
}

.nx-compare[id] {
    scroll-margin-top: 156px;
}

.nx-output-grid[id] {
    scroll-margin-top: 220px;
}

.nx-section h2 {
    font-size: clamp(2.2rem, 4vw, 3.6rem);
    margin: 0;
    line-height: 1.15;
    max-width: 16ch;
}

.nx-section-desc {
    color: var(--nx-muted);
    line-height: 1.85;
    max-width: 44rem;
    font-size: 1.02rem;
}

/* ============ WHY GRAVITY ============ */
/* ── Comparison Section ── */
.nx-compare {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    padding: 12px 0 8px;

    /* Comparison-scoped tokens — resolve cleanly in all 6 theme palettes */
    --compare-chaos: rgb(204, 102, 102);
    --compare-chaos-rgb: 204, 102, 102;
    --compare-glass-fill-top: rgba(var(--nx-text-rgb), 0.06);
    --compare-glass-fill-mid: rgba(var(--nx-text-rgb), 0.02);
    --compare-glass-fill-bottom: rgba(var(--nx-text-rgb), 0.05);
    --compare-glass-highlight: rgba(var(--nx-text-rgb), 0.16);
    --compare-glass-border-chaos: rgba(var(--compare-chaos-rgb), 0.32);
    --compare-glass-border-cyan: rgba(var(--nx-cyan-rgb), 0.32);
    --compare-grid-line: rgba(var(--nx-text-rgb), 0.045);
}

.nx-compare-panel {
    position: relative;
    border-radius: 28px;
    padding: 34px 28px 28px;
    text-align: center;
    overflow: hidden;
    isolation: isolate;
    transition:
        border-color 0.35s ease,
        box-shadow 0.35s ease,
        transform 0.35s ease;
}

.nx-compare-panel::before,
.nx-compare-panel::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.nx-compare-panel--before {
    background:
        radial-gradient(
            circle at 18% 14%,
            rgba(var(--compare-chaos-rgb), 0.07),
            transparent 28%
        ),
        linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.66) 0%,
            rgba(255, 255, 255, 0.14) 16%,
            rgba(255, 255, 255, 0.02) 100%
        ),
        linear-gradient(
            160deg,
            rgba(var(--compare-chaos-rgb), 0.05) 0%,
            rgba(255, 255, 255, 0.015) 52%,
            rgba(var(--compare-chaos-rgb), 0.06) 100%
        );
    border: 1px solid rgba(var(--compare-chaos-rgb), 0.2);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.58),
        inset 0 -18px 32px rgba(var(--compare-chaos-rgb), 0.05);
}

.nx-compare-panel--before::before {
    inset: 16px;
    border-radius: 22px;
    border: 1px solid rgba(var(--compare-chaos-rgb), 0.1);
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.28),
        transparent 24%,
        transparent 76%,
        rgba(var(--compare-chaos-rgb), 0.05)
    );
}

.nx-compare-panel--after {
    background:
        radial-gradient(
            circle at 78% 14%,
            rgba(var(--nx-cyan-rgb), 0.06),
            transparent 26%
        ),
        linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.72) 0%,
            rgba(255, 255, 255, 0.1) 18%,
            rgba(255, 255, 255, 0.02) 100%
        ),
        linear-gradient(
            160deg,
            rgba(var(--nx-cyan-rgb), 0.05) 0%,
            rgba(255, 255, 255, 0.02) 46%,
            rgba(var(--nx-cyan-rgb), 0.045) 100%
        );
    border: 1px solid rgba(var(--nx-cyan-rgb), 0.24);
    box-shadow:
        0 20px 40px -34px rgba(22, 18, 10, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.62),
        inset 0 -12px 26px rgba(var(--nx-cyan-rgb), 0.035);
}

.nx-compare-panel--after::before {
    inset: 16px;
    border-radius: 22px;
    border: 1px solid rgba(var(--nx-cyan-rgb), 0.12);
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.34),
        transparent 26%,
        transparent 76%,
        rgba(var(--nx-cyan-rgb), 0.05)
    );
}

html[data-theme-resolved="dark"] .nx-compare-panel--before {
    background:
        radial-gradient(
            circle at 18% 14%,
            rgba(var(--compare-chaos-rgb), 0.14),
            transparent 30%
        ),
        linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.03) 0%,
            rgba(255, 255, 255, 0.01) 20%,
            rgba(255, 255, 255, 0.01) 100%
        ),
        linear-gradient(
            160deg,
            rgba(var(--compare-chaos-rgb), 0.2) 0%,
            rgba(19, 17, 16, 0.96) 54%,
            rgba(var(--compare-chaos-rgb), 0.14) 100%
        );
    border-color: rgba(var(--compare-chaos-rgb), 0.22);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        inset 0 -32px 48px rgba(0, 0, 0, 0.24);
}

html[data-theme-resolved="dark"] .nx-compare-panel--after {
    background:
        radial-gradient(
            circle at 78% 14%,
            rgba(var(--nx-cyan-rgb), 0.1),
            transparent 28%
        ),
        linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.035) 0%,
            rgba(255, 255, 255, 0.01) 18%,
            rgba(255, 255, 255, 0.01) 100%
        ),
        linear-gradient(
            160deg,
            rgba(var(--nx-cyan-rgb), 0.12) 0%,
            rgba(18, 15, 10, 0.96) 50%,
            rgba(52, 42, 18, 0.14) 100%
        );
    box-shadow:
        0 24px 48px -38px rgba(0, 0, 0, 0.52),
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        inset 0 -20px 36px rgba(var(--nx-cyan-rgb), 0.04);
}

.nx-compare-panel:hover {
    transform: translateY(-2px);
}

.nx-compare-panel--before:hover {
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.62),
        inset 0 -28px 48px rgba(var(--compare-chaos-rgb), 0.08),
        0 24px 40px -36px rgba(var(--compare-chaos-rgb), 0.34);
}

.nx-compare-panel--after:hover {
    box-shadow:
        0 24px 44px -34px rgba(22, 18, 10, 0.34),
        inset 0 1px 0 rgba(255, 255, 255, 0.68),
        inset 0 -16px 28px rgba(var(--nx-cyan-rgb), 0.045);
}

.nx-compare-bridge {
    display: none;
}

.nx-compare-bridge::before,
.nx-compare-bridge::after {
    content: "";
    width: 28px;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(var(--nx-cyan-rgb), 0.4),
        transparent
    );
}

.nx-compare-bridge-core {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: radial-gradient(
        circle at 35% 32%,
        rgba(255, 255, 255, 0.92),
        rgba(255, 255, 255, 0.12) 42%,
        rgba(var(--nx-cyan-rgb), 0.18) 72%,
        rgba(109, 66, 15, 0.18) 100%
    );
    border: 1px solid rgba(var(--nx-cyan-rgb), 0.28);
    box-shadow:
        0 18px 26px -18px rgba(18, 12, 6, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.nx-compare-bridge-label {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.67rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--nx-muted);
    white-space: nowrap;
}

.nx-compare-panel-head {
    position: relative;
    z-index: 1;
    margin-bottom: 22px;
    max-width: 42rem;
    margin-left: auto;
    margin-right: auto;
}

.nx-compare-badge {
    display: inline-block;
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    padding: 7px 16px;
    border-radius: 999px;
    margin-bottom: 16px;
}

.nx-compare-panel--before .nx-compare-badge {
    background: rgba(180, 60, 60, 0.08);
    color: #a64545;
    border: 1px solid rgba(180, 60, 60, 0.14);
}

html[data-theme-resolved="dark"] .nx-compare-panel--before .nx-compare-badge {
    background: rgba(220, 100, 100, 0.1);
    color: #e69a9a;
    border-color: rgba(220, 100, 100, 0.18);
}

.nx-compare-panel--after .nx-compare-badge {
    background: rgba(var(--nx-cyan-rgb), 0.1);
    color: var(--nx-cyan);
    border: 1px solid rgba(var(--nx-cyan-rgb), 0.16);
}

.nx-compare-panel h3 {
    margin: 0 0 10px;
    font-size: clamp(1.18rem, 1.45vw, 1.44rem);
    line-height: 1.1;
    color: var(--nx-text);
}

.nx-compare-panel p {
    margin: 0;
    color: var(--nx-muted);
    line-height: 1.66;
    font-size: 0.91rem;
    max-width: 36rem;
    margin-left: auto;
    margin-right: auto;
}

.nx-compare-diagram {
    position: relative;
    width: 100%;
    max-width: 540px;
    margin: 6px auto 0;
}

.nx-compare-diagram svg {
    width: 100%;
    height: auto;
    display: block;
}

.nx-compare-diagram text {
    font-family: inherit;
    text-rendering: geometricPrecision;
}

.nx-compare-diagram .node-group,
.nx-compare-diagram .platform-group,
.nx-compare-diagram .user-center {
    transform-box: fill-box;
    transform-origin: center;
}

.nx-compare-diagram .chaos-grid,
.nx-compare-diagram .gravity-grid,
.nx-compare-diagram .compare-stage,
.nx-compare-diagram .compare-status,
.nx-compare-diagram .chaos-crosses,
.nx-compare-diagram .metric-ribbon,
.nx-compare-diagram .node-group,
.nx-compare-diagram .user-center,
.nx-compare-panel--after .flow-lines,
.nx-compare-panel--after .support-lines,
.nx-compare-panel--after .platform-group,
.nx-compare-panel--after .output-tag {
    opacity: 0;
    transition: opacity 0.7s ease;
}

.nx-compare.is-animated .chaos-grid,
.nx-compare.is-animated .gravity-grid,
.nx-compare.is-animated .compare-stage,
.nx-compare.is-animated .compare-status,
.nx-compare.is-animated .chaos-crosses,
.nx-compare.is-animated .metric-ribbon,
.nx-compare.is-animated .node-group,
.nx-compare.is-animated .user-center,
.nx-compare.is-animated .flow-lines,
.nx-compare.is-animated .support-lines,
.nx-compare.is-animated .platform-group,
.nx-compare.is-animated .output-tag {
    opacity: 1;
}

.nx-compare.is-animated .chaos-grid,
.nx-compare.is-animated .gravity-grid {
    transition-delay: 0s;
}

.nx-compare.is-animated .node-group.nd1,
.nx-compare.is-animated .compare-stage.cs1 {
    transition-delay: 0.14s;
}

.nx-compare.is-animated .node-group.nd2,
.nx-compare.is-animated .compare-stage.cs2 {
    transition-delay: 0.26s;
}

.nx-compare.is-animated .node-group.nd3,
.nx-compare.is-animated .compare-stage.cs3 {
    transition-delay: 0.38s;
}

.nx-compare.is-animated .node-group.nd4 {
    transition-delay: 0.5s;
}

.nx-compare.is-animated .node-group.nd5 {
    transition-delay: 0.62s;
}

.nx-compare.is-animated .node-group.nd6 {
    transition-delay: 0.74s;
}

.nx-compare.is-animated .user-center {
    transition-delay: 0.34s;
}

.nx-compare.is-animated .chaos-crosses {
    transition-delay: 0.6s;
}

.nx-compare.is-animated .compare-status.cst1,
.nx-compare.is-animated .output-tag {
    transition-delay: 0.9s;
}

.nx-compare.is-animated .metric-ribbon {
    transition-delay: 1.02s;
}

.nx-compare.is-animated .platform-group {
    transition-delay: 0.78s;
}

.nx-compare-diagram .node-label {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.02em;
    fill: var(--nx-text);
}

.nx-compare-diagram .node-sublabel {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.04em;
    fill: var(--nx-muted);
}

.nx-compare-diagram .stage-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    fill: var(--nx-muted);
}

.nx-compare-diagram .feature-title {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.nx-compare-diagram .feature-body {
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 0.01em;
    fill: var(--nx-muted);
}

.nx-compare-diagram .output-tag-text {
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0.28em;
}

/* Tabular numerals so every counter + metric reads as a precise quantity, not a glyph */
.nx-compare-diagram .node-badge text,
.nx-compare-diagram .metric-ribbon text {
    font-variant-numeric: tabular-nums;
}

@keyframes nx-flow-stream {
    from {
        stroke-dashoffset: 26;
    }
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes nx-flow-draw-in {
    from {
        stroke-dashoffset: 100;
        opacity: 0;
    }
    to {
        stroke-dashoffset: 0;
        opacity: 1;
    }
}

.nx-compare-panel--after .flow-connector,
.nx-compare-panel--after .support-connector {
    stroke-dashoffset: 100;
    opacity: 0;
    transition: none;
}

.nx-compare-panel--after .flow-connector {
    stroke-dasharray: 8 5;
}

.nx-compare-panel--after .support-connector {
    stroke-dasharray: 4 4;
}

.nx-compare.is-animated .flow-connector,
.nx-compare.is-animated .support-connector {
    animation:
        nx-flow-draw-in 0.8s ease forwards,
        nx-flow-stream 1.05s linear infinite;
}

.nx-compare.is-animated .flow-connector.fc1 {
    animation-delay: 0.38s, 1.08s;
}
.nx-compare.is-animated .flow-connector.fc2 {
    animation-delay: 0.58s, 1.28s;
}

/* Three peer lanes — left-to-right ripple into the governed layer */
.nx-compare.is-animated .support-connector.sc1 {
    animation-delay: 0.84s, 1.46s;
}
.nx-compare.is-animated .support-connector.sc2 {
    animation-delay: 0.98s, 1.6s;
}
.nx-compare.is-animated .support-connector.sc3 {
    animation-delay: 1.12s, 1.74s;
}

@keyframes nx-foundation-glow {
    0%,
    100% {
        opacity: 0.94;
    }
    50% {
        opacity: 1;
    }
}

.nx-compare.is-animated .foundation-fill {
    animation: nx-foundation-glow 5s ease-in-out infinite 1.7s;
}

/* ── Liquid-glass node breathing ── */
@keyframes nx-node-breathe {
    0%,
    100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-0.4px) scale(1.006);
    }
}

/* Reverse-direction stream for the user → node return half on the chaos panel */
@keyframes nx-chaos-stream {
    from {
        stroke-dashoffset: 0;
    }
    to {
        stroke-dashoffset: 26;
    }
}

.nx-compare.is-animated .nx-compare-diagram .node-group,
.nx-compare.is-animated .nx-compare-diagram .user-center {
    animation: nx-node-breathe 4.8s ease-in-out infinite;
}

/* Asymmetric off-beat delays — chaos panel */
.nx-compare.is-animated .nx-compare-panel--before .node-group.nd1 {
    animation-delay: 0s;
}
.nx-compare.is-animated .nx-compare-panel--before .node-group.nd2 {
    animation-delay: 0.7s;
}
.nx-compare.is-animated .nx-compare-panel--before .node-group.nd3 {
    animation-delay: 1.3s;
}
.nx-compare.is-animated .nx-compare-panel--before .node-group.nd4 {
    animation-delay: 1.9s;
}
.nx-compare.is-animated .nx-compare-panel--before .node-group.nd5 {
    animation-delay: 2.5s;
}
.nx-compare.is-animated .nx-compare-panel--before .node-group.nd6 {
    animation-delay: 3.1s;
}
.nx-compare.is-animated .nx-compare-panel--before .user-center {
    animation-delay: 0.35s;
}

/* Harmonized rhythmic delays — gravity panel */
.nx-compare.is-animated .nx-compare-panel--after .node-group {
    animation-duration: 4.2s;
}
.nx-compare.is-animated .nx-compare-panel--after .node-group.nd1 {
    animation-delay: 0s;
}
.nx-compare.is-animated .nx-compare-panel--after .node-group.nd2 {
    animation-delay: 0.4s;
}
.nx-compare.is-animated .nx-compare-panel--after .node-group.nd3 {
    animation-delay: 0.8s;
}
.nx-compare.is-animated .nx-compare-panel--after .platform-group {
    animation: nx-node-breathe 4.6s ease-in-out infinite 0.6s;
}

/* Bidirectional chaos arc streaming */
.nx-compare-panel--before .chaos-arc-out,
.nx-compare-panel--before .chaos-arc-in {
    stroke-dasharray: 6 4;
    opacity: 0;
    transition: opacity 0.7s ease;
}

.nx-compare.is-animated .nx-compare-panel--before .chaos-arc-out,
.nx-compare.is-animated .nx-compare-panel--before .chaos-arc-in {
    opacity: 1;
}

.nx-compare.is-animated .nx-compare-panel--before .chaos-arc-out {
    animation: nx-flow-stream 1.6s linear infinite;
}

.nx-compare.is-animated .nx-compare-panel--before .chaos-arc-in {
    animation: nx-chaos-stream 2.1s linear infinite;
}

/* Stagger arc start so packets feel like independent traffic */
.nx-compare.is-animated .nx-compare-panel--before .ca1 {
    animation-delay: 0s;
}
.nx-compare.is-animated .nx-compare-panel--before .ca2 {
    animation-delay: 0.18s;
}
.nx-compare.is-animated .nx-compare-panel--before .ca3 {
    animation-delay: 0.34s;
}
.nx-compare.is-animated .nx-compare-panel--before .ca4 {
    animation-delay: 0.52s;
}
.nx-compare.is-animated .nx-compare-panel--before .ca5 {
    animation-delay: 0.7s;
}
.nx-compare.is-animated .nx-compare-panel--before .ca6 {
    animation-delay: 0.88s;
}

/* Crossing side-arcs — slower, off-rhythm leakage between peripheral nodes */
.nx-compare-panel--before .chaos-cross {
    fill: none;
}
.nx-compare.is-animated .nx-compare-panel--before .chaos-cross {
    animation: nx-flow-stream 2.4s linear infinite;
}
.nx-compare.is-animated .nx-compare-panel--before .chaos-cross.cx1 {
    animation-delay: 0.5s;
}
.nx-compare.is-animated .nx-compare-panel--before .chaos-cross.cx2 {
    animation-delay: 1.3s;
}
.nx-compare.is-animated .nx-compare-panel--before .chaos-cross.cx3 {
    animation-delay: 0.9s;
}

/* Overwhelmed-analyst micro-jitter — inner wrapper so it composes with the breath */
@keyframes nx-chaos-jitter {
    0%,
    100% {
        transform: translate(0, 0);
    }
    20% {
        transform: translate(0.3px, -0.2px);
    }
    40% {
        transform: translate(-0.25px, 0.3px);
    }
    60% {
        transform: translate(0.2px, 0.25px);
    }
    80% {
        transform: translate(-0.3px, -0.15px);
    }
}
.nx-compare-diagram .user-jitter {
    transform-box: fill-box;
    transform-origin: center;
}
.nx-compare.is-animated .nx-compare-panel--before .user-jitter {
    animation: nx-chaos-jitter 3.2s ease-in-out infinite;
}

/* Honour user motion preferences */
@media (prefers-reduced-motion: reduce) {
    .nx-compare.is-animated .nx-compare-diagram .node-group,
    .nx-compare.is-animated .nx-compare-diagram .user-center,
    .nx-compare.is-animated .nx-compare-diagram .user-jitter,
    .nx-compare.is-animated .nx-compare-diagram .platform-group,
    .nx-compare.is-animated .foundation-fill,
    .nx-compare.is-animated .nx-compare-panel--before .chaos-arc-out,
    .nx-compare.is-animated .nx-compare-panel--before .chaos-arc-in,
    .nx-compare.is-animated .nx-compare-panel--before .chaos-cross,
    .nx-compare.is-animated .flow-connector,
    .nx-compare.is-animated .support-connector {
        animation: none !important;
    }
}

.nx-compare-subtitle {
    text-align: center;
    margin-top: 20px;
    color: var(--nx-muted);
    font-size: 0.9rem;
    max-width: 44rem;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.68;
}

/* ============ OUTCOMES ============ */
.nx-outcomes {
    margin-top: 12px;
    border-top: 1px solid var(--nx-card-border);
    border-bottom: 1px solid var(--nx-card-border);
    background:
        linear-gradient(
            180deg,
            rgba(var(--nx-cyan-rgb), 0.015),
            transparent 40%
        ),
        rgba(var(--nx-cyan-rgb), 0.008);
    position: relative;
}

.nx-outcomes::before,
.nx-outcomes::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(var(--nx-cyan-rgb), 0.18),
        transparent
    );
    pointer-events: none;
}

.nx-outcomes::before {
    top: -1px;
}

.nx-outcomes::after {
    bottom: -1px;
}

.nx-outcomes-head {
    display: grid;
    grid-template-columns: minmax(200px, 240px) 1fr 1fr;
    gap: 0;
    padding: 18px 0 16px;
    border-bottom: 1px solid var(--nx-card-border);
}

.nx-outcomes-head-spacer {
    padding: 0 28px;
}

.nx-outcomes-head-col {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 28px;
    font-family: var(--theme-ui-font);
    text-transform: uppercase;
    letter-spacing: 0.22em;
    font-size: 0.68rem;
    color: var(--nx-muted);
}

.nx-outcomes-head-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.nx-outcomes-head-col--before .nx-outcomes-head-dot {
    background: rgba(194, 82, 82, 0.55);
    box-shadow: 0 0 0 3px rgba(194, 82, 82, 0.08);
}

.nx-outcomes-head-col--after .nx-outcomes-head-dot {
    background: var(--nx-cyan);
    box-shadow: 0 0 0 3px rgba(var(--nx-cyan-rgb), 0.14);
}

.nx-outcomes-row {
    display: grid;
    grid-template-columns: minmax(200px, 240px) 1fr 1fr;
    gap: 0;
    border-bottom: 1px solid var(--nx-card-border);
}

.nx-outcomes-row:last-child {
    border-bottom: none;
}

.nx-outcomes-dim {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 28px;
    border-right: 1px solid var(--nx-card-border);
    position: relative;
}

.nx-outcomes-dim::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 2px;
    height: 28px;
    background: linear-gradient(
        180deg,
        transparent,
        rgba(var(--nx-cyan-rgb), 0.4),
        transparent
    );
}

.nx-outcomes-dim-num {
    font-family: var(--theme-display-font);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    color: rgba(var(--nx-cyan-rgb), 0.85);
}

.nx-outcomes-dim-label {
    font-family: var(--theme-display-font);
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--nx-text);
    letter-spacing: -0.005em;
    line-height: 1.2;
}

.nx-outcomes-cell {
    padding: 28px 32px;
    font-size: 0.92rem;
    line-height: 1.72;
    color: var(--nx-muted);
    position: relative;
    transition: background 0.3s ease;
}

.nx-outcomes-cell-tag {
    display: none;
    font-family: var(--theme-ui-font);
    text-transform: uppercase;
    letter-spacing: 0.22em;
    font-size: 0.62rem;
    margin-bottom: 8px;
}

.nx-outcomes-cell--before {
    border-right: 1px solid var(--nx-card-border);
    color: rgba(var(--nx-text-rgb), 0.52);
}

.nx-outcomes-cell--before::before {
    content: "";
    position: absolute;
    left: 0;
    top: 18%;
    bottom: 18%;
    width: 2px;
    background: linear-gradient(
        180deg,
        transparent,
        rgba(194, 82, 82, 0.4),
        transparent
    );
}

.nx-outcomes-cell--after {
    color: var(--nx-text);
    background: linear-gradient(
        90deg,
        rgba(var(--nx-cyan-rgb), 0.025),
        rgba(var(--nx-cyan-rgb), 0.012)
    );
}

.nx-outcomes-cell--after::before {
    content: "";
    position: absolute;
    left: 0;
    top: 18%;
    bottom: 18%;
    width: 2px;
    background: linear-gradient(
        180deg,
        transparent,
        var(--nx-cyan),
        transparent
    );
    opacity: 0.7;
    box-shadow: 0 0 12px rgba(var(--nx-cyan-rgb), 0.25);
}

.nx-outcomes-row:hover .nx-outcomes-cell--after {
    background: linear-gradient(
        90deg,
        rgba(var(--nx-cyan-rgb), 0.04),
        rgba(var(--nx-cyan-rgb), 0.018)
    );
}

/* ============ OUTPUTS ============ */
.nx-output-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
}

.nx-output-card {
    background: var(--nx-card-bg);
    border: 1px solid var(--nx-card-border);
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition:
        transform 0.4s ease,
        border-color 0.4s ease,
        box-shadow 0.4s ease;
    position: relative;
}

.nx-output-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(var(--nx-cyan-rgb), 0.5),
        transparent
    );
    opacity: 0.5;
    transition: opacity 0.4s ease;
}

.nx-output-card:hover {
    transform: translateY(-3px);
    border-color: rgba(var(--nx-cyan-rgb), 0.22);
    box-shadow:
        0 24px 60px rgba(0, 0, 0, 0.18),
        0 0 40px rgba(var(--nx-cyan-rgb), 0.04);
}

.nx-output-card:hover::before {
    opacity: 1;
}

.nx-output-preview {
    aspect-ratio: 16 / 10;
    position: relative;
    background:
        radial-gradient(
            circle at 25% 10%,
            rgba(var(--nx-cyan-rgb), 0.1),
            transparent 55%
        ),
        linear-gradient(
            160deg,
            rgba(var(--nx-cyan-rgb), 0.04),
            rgba(var(--nx-cyan-rgb), 0.008) 60%
        ),
        var(--nx-bg);
    border-bottom: 1px solid var(--nx-card-border);
    overflow: hidden;
    color: var(--nx-text);
}

.nx-output-preview::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(var(--nx-cyan-rgb), 0.04) 1px, transparent 1px),
        linear-gradient(
            90deg,
            rgba(var(--nx-cyan-rgb), 0.04) 1px,
            transparent 1px
        );
    background-size: 24px 24px;
    background-position: 0 36px;
    opacity: 0.35;
    pointer-events: none;
    mask-image: linear-gradient(180deg, black 20%, transparent 90%);
    -webkit-mask-image: linear-gradient(180deg, black 20%, transparent 90%);
}

.nx-output-chrome {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 14px 18px;
    border-bottom: 1px solid rgba(var(--nx-cyan-rgb), 0.08);
    background: linear-gradient(
        180deg,
        rgba(var(--nx-cyan-rgb), 0.035),
        transparent
    );
    position: relative;
    z-index: 1;
}

.nx-output-chrome-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(var(--nx-cyan-rgb), 0.25);
    border: 1px solid rgba(var(--nx-cyan-rgb), 0.35);
}

.nx-output-chrome-dot:nth-child(2) {
    background: rgba(var(--nx-cyan-rgb), 0.18);
}

.nx-output-chrome-dot:nth-child(3) {
    background: rgba(var(--nx-cyan-rgb), 0.12);
}

.nx-output-chrome-title {
    margin-left: 14px;
    font-family: var(--theme-ui-font);
    font-size: 0.66rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--nx-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nx-output-schematic {
    position: absolute;
    left: 0;
    right: 0;
    top: 44px;
    bottom: 0;
    width: 100%;
    height: calc(100% - 44px);
    color: var(--nx-cyan);
    z-index: 1;
}

.nx-output-copy {
    padding: 28px 28px 30px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.nx-output-copy .nx-card-num {
    font-family: var(--theme-ui-font);
    font-size: 0.66rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(var(--nx-cyan-rgb), 0.85);
}

.nx-output-copy h3 {
    font-family: var(--theme-display-font);
    font-size: 1.35rem;
    font-weight: 500;
    margin: 2px 0 6px;
    color: var(--nx-text);
    letter-spacing: -0.01em;
}

.nx-output-copy p {
    color: var(--nx-muted);
    font-size: 0.92rem;
    line-height: 1.72;
    margin: 0;
}

.nx-output-footnote {
    margin: 28px auto 0;
    max-width: 42rem;
    text-align: center;
    color: var(--nx-muted);
    font-size: 0.86rem;
    font-style: italic;
    opacity: 0.82;
}

.nx-trust-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.nx-news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.nx-cta {
    text-align: center;
    padding: 80px 0 40px;
    position: relative;
    overflow: hidden;
}

.nx-cta > p {
    color: var(--nx-muted);
    font-size: 1rem;
    line-height: 1.85;
    margin: 0 0 32px;
    max-width: 32rem;
    margin-left: auto;
    margin-right: auto;
}

.nx-cta-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
}

.nx-footer {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 24px;
    padding: 34px 0 42px;
    border-top: 1px solid var(--nx-card-border);
    color: var(--nx-muted);
}

.nx-footer p {
    margin: 0;
    line-height: 1.7;
}

.nx-footer-links {
    display: flex;
    gap: 12px;
}

.nx-menu-toggle {
    display: none;
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    color: var(--nx-text);
    cursor: pointer;
    width: 40px;
    height: 40px;
    padding: 0;
    font-size: 1.3rem;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.nx-menu-toggle__icon {
    line-height: 1;
}

.nx-menu-toggle:hover {
    background: rgba(255, 255, 255, 0.06);
}

.nx-menu-toggle:focus-visible,
.nx-mobile-menu a:focus-visible,
.nx-mobile-menu button:focus-visible {
    outline: 2px solid rgba(var(--nx-cyan-rgb), 0.7);
    outline-offset: 3px;
}

.nx-mobile-menu {
    display: none;
}

.nx-mobile-menu[hidden] {
    display: none !important;
}

.mobile-actions {
    display: flex;
    flex-wrap: wrap;
}

.theme-switcher--mobile {
    margin-right: 0;
    width: 100%;
    justify-content: center;
    margin-bottom: 12px;
    background: rgba(var(--nx-cyan-rgb), 0.08);
}

@media (max-width: 1080px) {
    .nx-header-inner {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        gap: 16px;
        padding: 16px 24px;
    }

    .nx-header-center {
        order: 3;
        width: 100%;
        justify-content: center;
    }

    .nx-header-right {
        order: 2;
        width: auto;
        justify-content: flex-end;
    }

    .nx-hero-inner {
        grid-template-columns: 1fr;
        gap: 40px;
        min-height: auto;
        padding: 132px 0 72px;
    }

    .nx-hero-art {
        height: 400px;
        order: -1;
    }

    #sphere-canvas {
        width: 100%;
        height: 100%;
        opacity: 0.8;
    }

    .nx-compare {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }

    .nx-compare-bridge-core {
        width: 48px;
        height: 48px;
    }

    .nx-compare-bridge::before,
    .nx-compare-bridge::after {
        width: 20px;
    }

    .nx-trust-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .nx-news-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .nx-output-grid {
        gap: 22px;
    }

    .nx-compare {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .nx-compare-bridge {
        display: none;
    }
}

@media (max-width: 720px) {
    .nx-cursor,
    .nx-cursor-ring {
        display: none !important;
    }

    .nx-header-inner {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        flex-wrap: wrap;
        padding: 14px 24px;
        gap: 0;
    }

    .nx-header-center,
    .nx-header-right {
        display: none;
    }

    .nx-menu-toggle {
        display: flex;
    }

    .nx-mobile-menu {
        display: none;
        width: 100%;
        flex-direction: column;
        gap: 0;
        padding: 16px 0 0;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        margin-top: 14px;
    }

    .nx-brand-link {
        gap: 8px;
    }

    .nx-brand-logo {
        height: 36px;
        width: 36px;
    }

    .nx-brand-link--footer .nx-brand-logo {
        height: 32px;
        width: 32px;
    }

    .nx-brand-text {
        font-size: 0.92rem;
        letter-spacing: 0.08em;
    }

    .nx-mobile-menu.is-open {
        display: flex;
    }

    .nx-mobile-menu a {
        display: block;
        padding: 12px 0;
        color: var(--nx-muted);
        text-decoration: none;
        font-size: 0.9rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    }

    .nx-mobile-menu a:last-child {
        border-bottom: none;
    }

    .mobile-actions {
        gap: 12px;
        padding-top: 16px;
        margin-top: 4px;
    }

    .nx-mobile-menu .button {
        font-size: 0.85rem;
        padding: 8px 16px;
    }

    .nx-outcomes-head {
        display: none;
    }

    .nx-outcomes-row {
        grid-template-columns: 1fr;
        padding: 24px 0 28px;
    }

    .nx-outcomes-dim {
        border-right: none;
        border-bottom: 1px solid var(--nx-card-border);
        padding: 0 24px 18px;
        margin-bottom: 18px;
    }

    .nx-outcomes-dim::before {
        display: none;
    }

    .nx-outcomes-cell {
        padding: 18px 24px;
        border-right: none !important;
    }

    .nx-outcomes-cell-tag {
        display: block;
        color: var(--nx-muted);
    }

    .nx-outcomes-cell--before .nx-outcomes-cell-tag {
        color: rgba(194, 82, 82, 0.72);
    }

    .nx-outcomes-cell--after .nx-outcomes-cell-tag {
        color: var(--nx-cyan);
    }

    .nx-outcomes-cell--before::before,
    .nx-outcomes-cell--after::before {
        top: 22px;
        bottom: auto;
        height: 14px;
        width: 2px;
    }

    .nx-hero-inner {
        padding: 120px 0 72px;
    }

    .nx-news-grid,
    .nx-output-grid {
        grid-template-columns: 1fr;
    }

    .nx-compare {
        gap: 20px;
    }

    .nx-compare-panel {
        padding: 28px 20px 22px;
        border-radius: 24px;
    }

    .nx-compare-panel::before {
        inset: 12px;
        border-radius: 18px;
    }

    .nx-compare-panel h3 {
        font-size: 1.18rem;
    }

    .nx-compare-panel p {
        font-size: 0.9rem;
    }

    .nx-hero-shell {
        border-radius: 28px;
    }

    .nx-hero-badge {
        max-width: 150px;
        padding: 10px 12px;
    }

    .nx-footer-top {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .nx-footer-nav {
        grid-template-columns: 1fr;
    }

    .nx-hero::before {
        width: 100%;
        background: rgba(var(--nx-bg-rgb), 0.7);
    }

    .nx-trust-grid {
        grid-template-columns: 1fr;
    }

    .nx-cta-actions {
        flex-direction: column;
        align-items: center;
    }

    .nx-cta-bullets {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }

    .nx-hero h1 br {
        display: none;
    }

    .nx-hero-copy {
        gap: 16px;
        max-width: 100%;
        overflow: hidden;
    }

    .nx-hero-copy--wide {
        margin-top: 20px;
        max-width: 100%;
    }

    .nx-hero-sub--spaced {
        margin-top: 12px;
    }

    .nx-hero-actions {
        flex-direction: column;
        width: 100%;
        gap: 12px;
        box-sizing: border-box;
    }

    .nx-hero-actions--offset {
        margin-top: 8px;
    }

    .nx-hero-actions .button {
        width: 100%;
        text-align: center;
        justify-content: center;
        box-sizing: border-box;
    }

    .nx-hero-actions .button-secondary {
        border: 1px solid rgba(var(--nx-cyan-rgb), 0.25);
        background: rgba(var(--nx-cyan-rgb), 0.06);
    }

    .nx-hero-sub {
        max-width: 100%;
    }

    .nx-hero-audience {
        margin-top: 8px;
        font-size: 0.72rem;
        letter-spacing: 0.08em;
        line-height: 1.6;
    }

    .nx-section {
        padding: 64px 0 48px;
    }

    .nx-section:first-child {
        padding-top: 80px;
    }

    .nx-section h2 {
        max-width: none;
    }

    .nx-section-header {
        margin-bottom: 32px;
    }

    .nx-compare-diagram {
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 16px;
        margin-left: -20px;
        margin-right: -20px;
        padding-left: 20px;
        padding-right: 20px;
    }

    .nx-compare-diagram svg {
        min-width: 420px;
    }

    .nx-output-card {
        border-radius: 12px;
    }

    .nx-output-copy {
        padding: 22px 20px 24px;
    }

    .nx-output-copy h3 {
        font-size: 1.18rem;
    }

    .nx-cta {
        padding: 48px 0 32px;
    }

    .nx-compare[id] {
        scroll-margin-top: 136px;
    }

    .nx-scroll-target#why-gravity-compare-anchor {
        scroll-margin-top: 95px;
    }

    .nx-section#outputs {
        scroll-margin-top: 96px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .nx-compare-panel,
    .nx-compare-panel::before,
    .nx-compare-panel::after,
    .nx-compare-diagram .chaos-grid,
    .nx-compare-diagram .gravity-grid,
    .nx-compare-diagram .compare-stage,
    .nx-compare-diagram .compare-status,
    .nx-compare-diagram .node-group,
    .nx-compare-diagram .user-center,
    .nx-compare-panel--after .flow-connector,
    .nx-compare-panel--after .support-connector,
    .nx-compare-panel--after .foundation-fill {
        animation: none !important;
        transition: none !important;
    }
}

@media (max-width: 480px) {
    .nx-layout {
        width: calc(100vw - 32px);
    }

    .nx-brand-logo {
        height: 32px;
        width: 32px;
    }

    .nx-brand-text {
        font-size: 0.84rem;
        letter-spacing: 0.05em;
    }

    .nx-hero-art {
        height: 280px;
        opacity: 0.9;
    }

    .nx-footer-nav {
        grid-template-columns: 1fr !important;
    }

    .nx-hero::before {
        width: 100%;
        background: rgba(var(--nx-bg-rgb), 0.9);
    }

    .nx-hero-inner {
        min-height: auto;
        padding: 112px 0 64px;
    }

    .nx-hero h1 {
        font-size: clamp(1.9rem, 7vw, 2.4rem);
    }

    .nx-hero-copy {
        gap: 12px;
    }

    .nx-hero-actions .button {
        padding: 12px 24px;
        font-size: 0.9rem;
    }

    .nx-hero-audience {
        font-size: 0.66rem;
    }

    .nx-section {
        padding: 48px 0 36px;
    }

    .nx-section:first-child {
        padding-top: 60px;
    }

    .nx-compare-panel {
        padding: 22px 16px 18px;
        border-radius: 20px;
    }

    .nx-compare-panel::before {
        inset: 10px;
        border-radius: 16px;
    }

    .nx-compare-panel h3 {
        font-size: 1.08rem;
    }

    .nx-compare-panel p {
        font-size: 0.86rem;
    }

    .nx-outcomes-dim {
        padding: 0 16px 14px;
        margin-bottom: 14px;
    }

    .nx-outcomes-cell {
        padding: 14px 16px;
    }

    .nx-trust-card {
        padding: 24px 20px;
    }

    .nx-cta {
        padding: 36px 0 24px;
    }

    .nx-compare[id] {
        scroll-margin-top: 120px;
    }

    .nx-scroll-target#why-gravity-compare-anchor {
        scroll-margin-top: 85px;
    }

    .nx-section#outputs {
        scroll-margin-top: 88px;
    }
}
