/* assets/css/systems/jexstudio-landing.css */

/* =========================================
   JexStudio Landing Page (.jxs-*)
   沿用 archcross-landing 的 .ac-* 與 .jc-* 設計語彙，
   僅補上 JexStudio 專屬的 Hero flow、Audience、Live Preview、Features、
   Testimonials、Steps 與 FAQ 樣式。
========================================= */


/* 桌機 5:5 分欄：避免主標題「AI 情境演練學習平台」被擠到換行 */
@media (min-width: 900px) {
    .jxs-hero-section .ac-showcase-content {
        flex: 5;
    }
    .jxs-hero-section .ac-showcase-visual {
        flex: 5;
    }
}

.jxs-hero-section .ac-visual-wrapper {
    aspect-ratio: 4 / 3;
    background:
        linear-gradient(145deg, color-mix(in srgb, var(--md-sys-color-surface) 86%, var(--ac-primary)), var(--md-sys-color-surface-container-low));
    color: var(--md-sys-color-on-surface);
}

.jxs-hero-visual {
    --jxs-visual-panel: color-mix(in srgb, var(--md-sys-color-surface) 94%, var(--ac-primary));
    --jxs-visual-panel-strong: color-mix(in srgb, var(--md-sys-color-surface-container-lowest) 90%, var(--md-sys-color-tertiary));
    --jxs-visual-muted-panel: color-mix(in srgb, var(--md-sys-color-surface-container) 78%, transparent);
    --jxs-visual-outline: color-mix(in srgb, var(--md-sys-color-outline) 38%, transparent);
    --jxs-visual-grid: color-mix(in srgb, var(--md-sys-color-outline-variant) 42%, transparent);
    --jxs-visual-muted: color-mix(in srgb, var(--md-sys-color-on-surface-variant) 78%, transparent);
    display: block;
    width: 100%;
    height: 100%;
}

.jxs-hero-visual-svg {
    display: block;
    width: 100%;
    height: 100%;
}

.jxs-hero-visual text {
    fill: var(--md-sys-color-on-surface);
    font-family: inherit;
    letter-spacing: 0;
}

.jxs-stop-surface {
    stop-color: var(--md-sys-color-surface);
}

.jxs-stop-primary-soft {
    stop-color: var(--ac-primary);
    stop-opacity: 0.16;
}

.jxs-stop-tertiary-soft {
    stop-color: var(--md-sys-color-tertiary);
    stop-opacity: 0.14;
}

.jxs-stop-primary {
    stop-color: var(--ac-primary);
}

.jxs-stop-secondary {
    stop-color: var(--ac-secondary);
}

.jxs-stop-transparent {
    stop-color: var(--md-sys-color-surface);
    stop-opacity: 0;
}

.jxs-visual-frame {
    stroke: var(--jxs-visual-outline);
    stroke-width: 1.4;
}

.jxs-visual-grid-line {
    fill: none;
    stroke: var(--jxs-visual-grid);
    stroke-width: 1;
}

.jxs-visual-topbar,
.jxs-visual-panel,
.jxs-visual-panel-strong {
    stroke: var(--jxs-visual-outline);
    stroke-width: 1.2;
}

.jxs-visual-topbar,
.jxs-visual-panel-strong {
    fill: var(--jxs-visual-panel-strong);
}

.jxs-visual-panel {
    fill: var(--jxs-visual-panel);
}

.jxs-visual-cover,
.jxs-visual-track {
    fill: var(--jxs-visual-muted-panel);
}

.jxs-visual-brand {
    font-size: 22px;
    font-weight: 900;
}

.jxs-visual-chip-text,
.jxs-visual-small-text {
    font-size: 12px;
    font-weight: 800;
}

.jxs-visual-chip-text {
    fill: var(--md-sys-color-on-primary);
}

.jxs-visual-card-title {
    font-size: 18px;
    font-weight: 900;
}

.jxs-visual-muted-text {
    fill: var(--jxs-visual-muted);
    font-size: 12px;
    font-weight: 700;
}

.jxs-visual-engine-label {
    font-size: 21px;
    font-weight: 900;
}

.jxs-visual-score {
    fill: var(--md-sys-color-primary);
    font-size: 42px;
    font-weight: 900;
}

.jxs-visual-pill {
    fill: color-mix(in srgb, var(--ac-primary) 16%, var(--md-sys-color-surface));
    stroke: color-mix(in srgb, var(--ac-primary) 28%, transparent);
    stroke-width: 1;
}

.jxs-visual-primary-fill {
    fill: var(--ac-primary);
}

.jxs-visual-secondary-fill {
    fill: var(--ac-secondary);
}

.jxs-visual-tertiary-fill {
    fill: var(--md-sys-color-tertiary);
}

.jxs-visual-pressure-dot {
    fill: var(--md-sys-color-on-surface-variant);
    opacity: 0.62;
}

.jxs-visual-avatar {
    fill: color-mix(in srgb, var(--md-sys-color-tertiary) 24%, var(--md-sys-color-surface));
    stroke: var(--jxs-visual-outline);
    stroke-width: 1.2;
}

.jxs-visual-check {
    fill: none;
    stroke: var(--md-sys-color-on-secondary);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.jxs-visual-progress {
    fill: var(--ac-primary);
    transform-box: fill-box;
    transform-origin: left center;
}

.jxs-visual-progress-main {
    animation: jxs-visual-progress-main 3.8s ease-in-out infinite;
}

.jxs-visual-progress-short {
    animation: jxs-visual-progress-short 3.8s ease-in-out infinite;
}

.jxs-visual-scan {
    opacity: 0.28;
    animation: jxs-visual-scan 4s ease-in-out infinite;
}

.jxs-visual-flow-line {
    fill: none;
    stroke: var(--ac-primary);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-dasharray: 10 12;
    opacity: 0.82;
    animation: jxs-visual-flow 2.8s linear infinite;
}

.jxs-visual-flow-line-alt {
    stroke: var(--md-sys-color-tertiary);
    animation-delay: 0.6s;
}

.jxs-visual-loop-line {
    fill: none;
    stroke: var(--ac-primary);
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-dasharray: 8 10;
    opacity: 0.76;
    animation: jxs-visual-flow 2.6s linear infinite;
}

.jxs-visual-loop-line-alt {
    stroke: var(--md-sys-color-tertiary);
    animation-delay: 0.4s;
}

.jxs-visual-card-left,
.jxs-visual-card-right,
.jxs-visual-role-card,
.jxs-visual-feedback,
.jxs-visual-engine,
.jxs-visual-loop-rail {
    opacity: 1;
}

.jxs-visual-engine-shell {
    fill: color-mix(in srgb, var(--md-sys-color-surface-container) 76%, var(--ac-primary));
    stroke: color-mix(in srgb, var(--md-sys-color-on-surface) 62%, transparent);
    stroke-width: 1.4;
}

.jxs-visual-engine-core {
    fill: color-mix(in srgb, var(--ac-primary) 22%, var(--md-sys-color-surface));
    stroke: color-mix(in srgb, var(--ac-primary) 52%, transparent);
    stroke-width: 1.4;
}

.jxs-visual-live-dot {
    fill: var(--md-sys-color-tertiary);
    transform-box: fill-box;
    transform-origin: center;
    animation: jxs-visual-live-dot 1.9s ease-in-out infinite;
}

.jxs-visual-node-b {
    animation-delay: 0.45s;
}

.jxs-visual-node-c {
    animation-delay: 0.9s;
}

.jxs-visual-radar-grid {
    fill: none;
    stroke: var(--jxs-visual-grid);
    stroke-width: 1;
}

.jxs-visual-radar-shape {
    fill: color-mix(in srgb, var(--ac-primary) 34%, transparent);
    stroke: var(--md-sys-color-on-surface);
    stroke-width: 2;
    stroke-linejoin: round;
    animation: jxs-visual-radar 3.8s ease-in-out infinite;
}

.jxs-visual-mission-row {
    font-size: 13px;
    font-weight: 800;
    animation: jxs-visual-row 4.2s ease-in-out infinite;
}

.jxs-visual-row-two {
    animation-delay: 0.35s;
}

.jxs-visual-row-three {
    animation-delay: 0.7s;
}

@keyframes jxs-visual-flow {
    to {
        stroke-dashoffset: -44;
    }
}

@keyframes jxs-visual-live-dot {
    0%,
    100% {
        opacity: 0.56;
        transform: scale(0.9);
    }
    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

@keyframes jxs-visual-row {
    0%,
    100% {
        opacity: 0.72;
    }
    45%,
    60% {
        opacity: 1;
    }
}

@keyframes jxs-visual-radar {
    0%,
    100% {
        fill-opacity: 0.32;
    }
    50% {
        fill-opacity: 0.58;
    }
}

@keyframes jxs-visual-scan {
    0% {
        opacity: 0;
        transform: translateY(0);
    }
    45%,
    55% {
        opacity: 0.34;
    }
    100% {
        opacity: 0;
        transform: translateY(258px);
    }
}

@keyframes jxs-visual-progress-main {
    0%,
    100% {
        transform: scaleX(0.66);
    }
    50% {
        transform: scaleX(1);
    }
}

@keyframes jxs-visual-progress-short {
    0%,
    100% {
        transform: scaleX(0.74);
    }
    50% {
        transform: scaleX(1);
    }
}

@media (prefers-reduced-motion: reduce) {
    .jxs-visual-progress-main,
    .jxs-visual-progress-short,
    .jxs-visual-scan,
    .jxs-visual-flow-line,
    .jxs-visual-loop-line,
    .jxs-visual-card-left,
    .jxs-visual-card-right,
    .jxs-visual-role-card,
    .jxs-visual-feedback,
    .jxs-visual-engine,
    .jxs-visual-loop-rail,
    .jxs-visual-live-dot,
    .jxs-visual-radar-shape,
    .jxs-visual-mission-row {
        animation: none;
    }
}

/* 知道 → 學到 → 做到：橫向流程字串，置於 title 與 lead 之間 */
.jxs-hero-flow {
    display: inline-flex;
    align-self: flex-start;
    align-items: center;
    gap: clamp(14px, 2vw, 28px);
    font-size: clamp(1.5rem, 3vw, 2.1rem);
    font-weight: 800;
    letter-spacing: -0.02em;

}

/* 步驟 / 箭頭共同動畫基礎：循序揭示 → 停留 → 同步淡出 → 重新循環 */
.jxs-flow-step,
.jxs-flow-arrow {
    opacity: 0;
    animation-duration: 6s;
    animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
    animation-iteration-count: infinite;
    animation-fill-mode: both;
}

/* 步驟：漸層字色 + 淡入下方浮起，循環中保留微彈性 */
.jxs-flow-step {
    display: inline-block;
    background: linear-gradient(135deg, var(--ac-primary) 0%, var(--ac-secondary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    transform-origin: center bottom;
    animation-name: jxs-flow-step-loop;
}

/* 箭頭：從左側推入、寬度拉伸，出場時往右收窄 */
.jxs-flow-arrow {
    display: inline-block;
    color: color-mix(in srgb, var(--ac-primary) 45%, transparent);
    font-weight: 300;
    font-size: 0.9em;
    transform-origin: left center;
    animation-name: jxs-flow-arrow-loop;
}

/* 依序 stagger：知道 → ⮕ → 學到 → ⮕ → 做到（5 個子元素）
   每個元素用同一支 6s 循環，彼此錯開 0.45s，形成連續波浪 */
.jxs-hero-flow > *:nth-child(1) { animation-delay: 0s; }
.jxs-hero-flow > *:nth-child(2) { animation-delay: 0.45s; }
.jxs-hero-flow > *:nth-child(3) { animation-delay: 0.9s; }
.jxs-hero-flow > *:nth-child(4) { animation-delay: 1.35s; }
.jxs-hero-flow > *:nth-child(5) { animation-delay: 1.8s; }

@keyframes jxs-flow-step-loop {
    0%              { opacity: 0; transform: translateY(10px) scale(0.92); }
    10%             { opacity: 1; transform: translateY(-3px) scale(1.04); }
    16%, 72%        { opacity: 1; transform: translateY(0) scale(1); }
    85%             { opacity: 0; transform: translateY(-6px) scale(0.95); }
    100%            { opacity: 0; transform: translateY(10px) scale(0.92); }
}

@keyframes jxs-flow-arrow-loop {
    0%              { opacity: 0; transform: translateX(-14px) scaleX(0.4); }
    12%, 72%        { opacity: 1; transform: translateX(0) scaleX(1); }
    85%             { opacity: 0; transform: translateX(10px) scaleX(0.5); }
    100%            { opacity: 0; transform: translateX(-14px) scaleX(0.4); }
}

/* Reduced motion：直接顯示最終狀態，不播放循環動畫 */
@media (prefers-reduced-motion: reduce) {
    .jxs-flow-step,
    .jxs-flow-arrow {
        opacity: 1;
        animation: none;
    }
}

/* =========================================
   Audience Fit Section：場景對號入座產品舞台
========================================= */
.jxs-audience-section {
    --jxs-audience-stage-radius: clamp(28px, 3vw, 40px);
    --jxs-audience-panel-radius: clamp(22px, 2vw, 30px);
    --jxs-audience-stage-width: 1200px;

    padding: var(--ac-spacing) 0;
    background: color-mix(in srgb, var(--md-sys-color-surface) 42%, transparent);
    border-top: 1px solid color-mix(in srgb, var(--jex-ext-frost-grey) 24%, transparent);
    border-bottom: 1px solid color-mix(in srgb, var(--jex-ext-frost-grey) 22%, transparent);
}

.jxs-audience-section .ac-container {
    max-width: calc(var(--jxs-audience-stage-width) + (var(--ac-gap-base) * 2));
}

.jxs-audience-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 1200px;
    margin-right: auto;
    margin-left: auto;
    text-align: center;
}

.jxs-audience-header .ac-badge {
    display: inline-flex;
}

.jxs-audience-header .ac-section-title {
    margin: 0.875rem auto 0;
}

.jxs-audience-header h3.ac-section-desc {
    margin: 1rem auto;
    font-weight: 400;
}

.jxs-audience-showcase {
    display: block;
    width: 100%;
    max-width: var(--jxs-audience-stage-width);
    margin: 0 auto;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.jxs-audience-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 4px;
    width: fit-content;
    max-width: 100%;
    margin: 0 auto clamp(28px, 4vw, 48px);
    padding: 6px;
    border: 1px solid color-mix(in srgb, var(--jex-ext-frost-grey) 40%, transparent);
    border-radius: 999px;
    background: var(--jex-ext-glass-sky);
}

.jxs-audience-pill {
    position: relative;
    display: inline-flex;
    align-items: baseline;
    gap: 8px;
    min-height: 42px;
    padding: 10px 18px;
    overflow: hidden;
    border: none;
    border-radius: 999px;
    background: transparent;
    color: color-mix(in srgb, var(--jex-ext-dark-slate) 72%, transparent);
    cursor: pointer;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 750;
    white-space: nowrap;
    transition: background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.jxs-audience-pill:hover {
    color: var(--jex-ext-dark-slate);
}

.jxs-audience-pill.is-active {
    background: var(--jex-ext-glass-sky-container);
    color: var(--jex-ext-dark-slate);
    box-shadow: 0 2px 10px color-mix(in srgb, var(--jex-ext-dark-slate) 12%, transparent);
}

.jxs-audience-pill-num {
    font-family: inherit;
    font-size: 0.76rem;
    font-weight: 850;
    letter-spacing: 0.06em;
    color: color-mix(in srgb, var(--md-sys-color-primary) 86%, transparent);
}

.jxs-audience-pill-label {
    position: relative;
    z-index: 1;
}

.jxs-audience-pill-progress {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 7px;
    height: 2px;
    border-radius: 999px;
    overflow: hidden;
    background: color-mix(in srgb, var(--ac-fg) 8%, transparent);
    transform: scaleX(0);
    transform-origin: left center;
}

.jxs-audience-pill.is-active .jxs-audience-pill-progress {
    transform: scaleX(1);
}

.jxs-audience-pill.is-active .jxs-audience-pill-progress::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, var(--ac-primary), var(--ac-secondary));
    transform: scaleX(0);
    transform-origin: left center;
    animation: jxs-audience-progress 5.5s linear forwards;
}

@keyframes jxs-audience-progress {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}

.jxs-audience-stage {
    position: relative;
    box-sizing: border-box;
    width: min(100%, var(--jxs-audience-stage-width));
    max-width: none;
    margin: 0 auto;
    min-height: 470px;
    padding: clamp(24px, 4vw, 50px);
    overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--jex-ext-dark-slate) 24%, transparent);
    border-radius: var(--jxs-audience-stage-radius);
    background: linear-gradient(135deg,
        var(--jex-ext-frost-grey) 0%,
        var(--jex-ext-muted-slate) 100%);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.2) inset,
        0 24px 70px color-mix(in srgb, var(--jex-ext-dark-slate) 24%, transparent);
}

.jxs-audience-stage::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
    background-size: 32px 32px;
    -webkit-mask-image: radial-gradient(ellipse 92% 72% at center, black 24%, transparent 88%);
            mask-image: radial-gradient(ellipse 92% 72% at center, black 24%, transparent 88%);
    pointer-events: none;
}

.jxs-audience-stage::after {
    content: '';
    position: absolute;
    width: 360px;
    height: 360px;
    right: -120px;
    top: -160px;
    border-radius: 50%;
    background: radial-gradient(circle, color-mix(in srgb, var(--ac-primary) 30%, transparent), transparent 68%);
    filter: blur(6px);
    pointer-events: none;
}

.jxs-audience-panel {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 0.94fr) minmax(340px, 1.06fr);
    gap: clamp(24px, 4vw, 56px);
    align-items: center;
    min-height: 100%;
}

.jxs-audience-panel[hidden] {
    display: none;
}

.jxs-audience-copy {
    min-width: 0;
    color: var(--md-sys-color-inverse-on-surface);
}

.jxs-audience-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    padding: 7px 12px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.jxs-audience-eyebrow span {
    font-family: inherit;
}

.jxs-audience-eyebrow em {
    font-style: normal;
    letter-spacing: 0;
    text-transform: none;
    color: var(--md-sys-color-inverse-on-surface);
}

.jxs-audience-copy h3 {
    max-width: 620px;
    margin: 0;
    color: var(--md-sys-color-inverse-on-surface);
    font-size: clamp(2rem, 4vw, 3.35rem);
    font-weight: 900;
    line-height: 1.08;
    letter-spacing: -0.035em;
}

.jex-archcross-landing .jxs-audience-pain-list {
    display: grid;
    gap: 12px;
    max-width: 560px;
    margin: clamp(24px, 3vw, 34px) 0 0;
    padding: 0;
    list-style: none;
}

.jxs-audience-pain-list li {
    position: relative;
    padding: 14px 16px 14px 42px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.86);
    font-size: clamp(0.98rem, 1.15vw, 1.08rem);
    line-height: 1.65;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.jxs-audience-pain-list li::before {
    content: '';
    position: absolute;
    left: 16px;
    top: 1.35em;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--ac-primary);
    box-shadow: 0 0 0 5px color-mix(in srgb, var(--ac-primary) 20%, transparent);
}

.jxs-audience-console {
    position: relative;
    min-width: 0;
    padding: clamp(20px, 2.6vw, 30px);
    overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--jex-ext-frost-grey) 34%, transparent);
    border-radius: var(--jxs-audience-panel-radius);
    background: var(--jex-ext-glass-sky-container);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.88) inset,
        0 24px 54px -24px rgba(43, 58, 74, 0.5);
}

.jxs-audience-console::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 92% 10%, color-mix(in srgb, var(--ac-primary) 12%, transparent), transparent 32%),
        linear-gradient(rgba(43, 58, 74, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(43, 58, 74, 0.035) 1px, transparent 1px);
    background-size: auto, 28px 28px, 28px 28px;
    pointer-events: none;
}

.jxs-console-toolbar,
.jxs-console-prompt,
.jxs-console-flow,
.jxs-console-output,
.jxs-console-meta {
    position: relative;
    z-index: 1;
}

.jxs-console-toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 36px;
    padding-bottom: 16px;
    border-bottom: 1px solid color-mix(in srgb, var(--jex-ext-frost-grey) 30%, transparent);
}

.jxs-console-dots {
    display: inline-flex;
    gap: 6px;
}

.jxs-console-dots i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--jex-ext-muted-slate) 28%, transparent);
}

.jxs-console-dots i:first-child {
    background: var(--ac-primary);
}

.jxs-console-toolbar strong {
    margin-left: 2px;
    color: var(--jex-ext-dark-slate);
    font-size: 0.92rem;
    font-weight: 850;
    letter-spacing: 0.02em;
}

.jxs-console-toolbar em {
    margin-left: auto;
    color: color-mix(in srgb, var(--jex-ext-dark-slate) 46%, transparent);
    font-size: 0.78rem;
    font-style: normal;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.jxs-console-prompt {
    margin-top: 20px;
    padding: clamp(18px, 2.4vw, 24px);
    border: 1px solid color-mix(in srgb, var(--ac-primary) 16%, var(--jex-ext-frost-grey));
    border-radius: 22px;
    background: linear-gradient(135deg,
        color-mix(in srgb, var(--ac-primary) 10%, transparent),
        color-mix(in srgb, var(--ac-secondary) 8%, transparent));
}

.jxs-console-prompt span,
.jxs-console-output > span {
    display: block;
    margin-bottom: 8px;
    color: color-mix(in srgb, var(--jex-ext-dark-slate) 58%, transparent);
    font-size: 0.75rem;
    font-weight: 850;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.jxs-console-prompt p {
    margin: 0;
    color: var(--jex-ext-dark-slate);
    font-size: clamp(1.12rem, 1.6vw, 1.35rem);
    font-weight: 850;
    line-height: 1.45;
    letter-spacing: -0.01em;
}

.jxs-console-flow {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 14px;
}

.jxs-console-flow div {
    min-width: 0;
    padding: 14px 12px;
    border: 1px solid color-mix(in srgb, var(--jex-ext-frost-grey) 30%, transparent);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.72);
}

.jxs-console-flow span {
    display: block;
    margin-bottom: 6px;
    color: var(--md-sys-color-primary);
    font-family: inherit;
    font-size: 0.74rem;
    font-weight: 850;
}

.jxs-console-flow strong {
    display: block;
    color: var(--jex-ext-dark-slate);
    font-size: 0.92rem;
    font-weight: 850;
    line-height: 1.35;
}

.jxs-console-output {
    margin-top: 18px;
    padding: 18px;
    border-radius: 22px;
    background: color-mix(in srgb, var(--jex-ext-glass-sky) 68%, transparent);
}

.jxs-console-instance-list {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.jxs-console-instance-list em {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 8px 12px;
    border-radius: 999px;
    background: var(--jex-ext-glass-sky-container);
    color: var(--jex-ext-dark-slate);
    font-size: 0.86rem;
    font-style: normal;
    font-weight: 800;
    box-shadow: 0 2px 8px color-mix(in srgb, var(--jex-ext-dark-slate) 8%, transparent);
}

.jxs-console-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 18px;
    color: color-mix(in srgb, var(--jex-ext-dark-slate) 62%, transparent);
    font-size: 0.86rem;
    line-height: 1.5;
}

.jxs-console-meta strong {
    flex: 0 0 auto;
    padding: 7px 11px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--ac-primary), var(--ac-secondary));
    color: var(--md-sys-color-on-primary);
    font-size: 0.78rem;
    font-weight: 850;
    white-space: nowrap;
}

.jxs-audience-chip-block {
    margin-top: clamp(22px, 3vw, 34px);
    text-align: center;
}

.jxs-audience-chip-title {
    margin: 0 0 14px;
    color: var(--ac-fg);
    font-size: clamp(1rem, 1.35vw, 1.16rem);
    font-weight: 850;
    line-height: 1.45;
    letter-spacing: -0.01em;
}

.jxs-audience-chip-marquee {
    padding: 6px 0;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
            mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
}

.jxs-audience-chip-track {
    display: flex;
    width: max-content;
    gap: 10px;
    animation: jxs-audience-chip-scroll 38s linear infinite;
}

.jxs-audience-chip-track span {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 8px 14px;
    border: 1px solid color-mix(in srgb, var(--jex-ext-frost-grey) 34%, transparent);
    border-radius: 999px;
    background: var(--jex-ext-glass-sky-container);
    color: color-mix(in srgb, var(--jex-ext-dark-slate) 78%, transparent);
    font-size: 0.9rem;
    font-weight: 750;
    white-space: nowrap;
}

@keyframes jxs-audience-chip-scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
    .jxs-audience-pill.is-active .jxs-audience-pill-progress::before,
    .jxs-audience-chip-track {
        animation: none;
    }
}

@media (max-width: 960px) {
    .jxs-audience-panel {
        grid-template-columns: 1fr;
    }

    .jxs-audience-stage {
        min-height: auto;
    }

    .jxs-audience-copy h3 {
        max-width: none;
    }
}

@media (max-width: 720px) {
    .jxs-audience-nav {
        flex-wrap: nowrap;
        justify-content: flex-start;
        width: auto;
        margin-inline: calc(var(--ac-gap-base) * -1);
        padding: 6px var(--ac-gap-base);
        overflow-x: auto;
        border-right: 0;
        border-left: 0;
        border-radius: 0;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
    }

    .jxs-audience-pill {
        scroll-snap-align: start;
    }

    .jxs-audience-stage {
        padding: 22px;
        border-radius: 28px;
    }

    .jxs-audience-copy h3 {
        font-size: clamp(1.7rem, 9vw, 2.3rem);
    }

    .jxs-audience-pain-list li {
        padding: 13px 14px 13px 38px;
    }

    .jxs-audience-console {
        padding: 18px;
        border-radius: 24px;
    }

    .jxs-console-toolbar {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .jxs-console-toolbar em {
        width: 100%;
        margin-left: 0;
    }

    .jxs-console-flow {
        grid-template-columns: 1fr;
    }

    .jxs-console-meta {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* =========================================
   Core Gap Statement Section：單句大判斷，承接上方情境對號入座
========================================= */
.jxs-gap-section {
    position: relative;
}

/* =========================================
   Live Preview Section：輕量副本流程預覽
========================================= */
.jxs-preview-section {
    padding: var(--ac-spacing) 0;
    width: auto;
    background: color-mix(in srgb, var(--md-sys-color-surface) 60%, transparent);
    position: relative;
    z-index: 2;
}

.jxs-preview-frame {
    position: relative;
    border-radius: var(--ac-radius-lg);
    overflow: hidden;
    box-shadow: 0 32px 64px var(--jex-color-rgba-r0-g0-b0-a150);
    border: 1px solid var(--ac-glass-border);
    background: var(--md-sys-color-surface);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}

.jxs-preview-frame:hover {
    transform: translateY(-4px);
    box-shadow: 0 42px 72px var(--jex-color-rgba-r0-g0-b0-a200);
}

.jxs-light-preview {
    min-height: clamp(520px, 58vw, 680px);
    color: var(--md-sys-color-on-surface);
    background:
        radial-gradient(circle at top left, color-mix(in srgb, var(--ac-primary) 24%, transparent), transparent 34%),
        linear-gradient(135deg, var(--md-sys-color-surface) 0%, color-mix(in srgb, var(--md-sys-color-surface-variant) 72%, var(--md-sys-color-surface)) 100%);
}

.jxs-light-preview__topbar {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 0 18px;
    border-bottom: 1px solid var(--md-sys-color-outline-variant);
    background: color-mix(in srgb, var(--md-sys-color-surface-container) 72%, transparent);
}

.jxs-light-preview__topbar span {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: var(--md-sys-color-outline);
}

.jxs-light-preview__topbar strong {
    margin-left: 10px;
    color: var(--ac-fg-muted);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.jxs-light-preview__grid {
    display: grid;
    grid-template-columns: minmax(220px, 0.9fr) minmax(280px, 1.25fr) minmax(220px, 0.9fr);
    gap: clamp(16px, 2vw, 28px);
    min-height: calc(clamp(520px, 58vw, 680px) - 48px);
    padding: clamp(18px, 3vw, 34px);
}

.jxs-light-preview__mission,
.jxs-light-preview__scenario,
.jxs-light-preview__feedback {
    border: 1px solid var(--md-sys-color-outline-variant);
    border-radius: var(--ac-radius-md);
    background: color-mix(in srgb, var(--md-sys-color-surface-container-low) 88%, transparent);
    box-shadow: 0 18px 42px var(--jex-color-rgba-r0-g0-b0-a080);
}

.jxs-light-preview__mission,
.jxs-light-preview__feedback {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: clamp(18px, 2vw, 26px);
}

.jxs-light-preview__status {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 34px;
}

.jxs-light-preview__status span,
.jxs-light-preview__label {
    color: var(--ac-fg-muted);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.jxs-light-preview__status strong {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 12px;
    border: 1px solid var(--md-sys-color-outline);
    border-radius: 999px;
    color: var(--md-sys-color-on-primary-container);
    background: var(--md-sys-color-primary-container);
    font-size: 0.75rem;
    font-weight: 900;
}

.jxs-light-preview h3 {
    margin: 0 0 28px;
    color: var(--md-sys-color-on-surface);
    font-size: clamp(1.5rem, 2.4vw, 2.45rem);
    line-height: 1.08;
}

.jxs-light-preview__steps {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.jxs-light-preview__steps li {
    position: relative;
    min-height: 44px;
    padding: 12px 14px 12px 40px;
    border: 1px solid var(--md-sys-color-outline-variant);
    border-radius: var(--ac-radius-sm);
    background: var(--md-sys-color-surface);
    color: var(--md-sys-color-on-surface);
    font-weight: 800;
}

.jxs-light-preview__steps li::before {
    content: "";
    position: absolute;
    top: 16px;
    left: 16px;
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: var(--ac-primary);
    box-shadow: 0 0 0 5px color-mix(in srgb, var(--ac-primary) 20%, transparent);
}

.jxs-light-preview__scenario {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(20px, 3vw, 38px);
}

.jxs-light-preview__scenario p,
.jxs-light-preview__feedback p {
    margin: 16px 0 0;
    color: var(--md-sys-color-on-surface);
    font-size: clamp(1.05rem, 1.4vw, 1.32rem);
    line-height: 1.75;
}

.jxs-light-preview__choices {
    display: grid;
    gap: 12px;
    margin-top: 34px;
}

.jxs-light-preview__choices button {
    width: 100%;
    min-height: 52px;
    padding: 12px 16px;
    border: 1px solid var(--md-sys-color-outline-variant);
    border-radius: var(--ac-radius-sm);
    color: var(--md-sys-color-on-surface);
    background: var(--md-sys-color-surface);
    font: inherit;
    font-weight: 850;
    text-align: left;
}

.jxs-light-preview__choices button:first-child {
    border-color: var(--md-sys-color-primary);
    background: var(--md-sys-color-primary-container);
}

.jxs-light-preview__score {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    margin-top: 34px;
    padding-top: 22px;
    border-top: 1px solid var(--md-sys-color-outline-variant);
}

.jxs-light-preview__score span {
    color: var(--ac-fg-muted);
    font-size: 0.85rem;
    font-weight: 800;
}

.jxs-light-preview__score strong {
    color: var(--md-sys-color-primary);
    font-size: clamp(2.6rem, 5vw, 5rem);
    line-height: 0.9;
}

.jxs-light-preview__cta {
    width: 100%;
    margin-top: 28px;
    justify-content: center;
}

@media (max-width: 1100px) {
    .jxs-light-preview {
        min-height: auto;
    }

    .jxs-light-preview__grid {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .jxs-light-preview__mission,
    .jxs-light-preview__scenario,
    .jxs-light-preview__feedback {
        min-height: auto;
    }
}

@media (max-width: 640px) {
    .jxs-light-preview__topbar {
        padding-inline: 14px;
    }

    .jxs-light-preview__topbar strong {
        max-width: 68%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .jxs-light-preview__grid {
        padding: 14px;
    }

    .jxs-light-preview__status {
        flex-direction: column;
        margin-bottom: 24px;
    }

    .jxs-light-preview__score {
        align-items: flex-start;
        flex-direction: column;
    }
}

.jxs-preview-hint {
    margin-top: 20px;
    text-align: center;
    color: var(--ac-fg-muted);
    font-size: 0.95rem;
    letter-spacing: 0.02em;
}

/* =========================================
   Engine Pillars：直接沿用 .ac-pillars-grid，不另寫樣式
========================================= */
.jxs-engine-section {
    padding: var(--ac-spacing) 0;
}

/* =========================================
   6 項核心體驗
========================================= */
.jxs-features-section {
    padding: var(--ac-spacing) 0;
}

/* =========================================
   Feature Switcher：左側 tablist + 右側擬真 UI 場景
   參考 Stripe / Linear 的 feature preview pattern
========================================= */
.jxs-feature-switcher {
    display: grid;
    grid-template-columns: minmax(320px, 1fr) minmax(0, 1.35fr);
    gap: clamp(24px, 3vw, 48px);
    align-items: stretch;
    margin-top: clamp(24px, 4vw, 48px);
}

/* --- 左側 nav --- */
.jxs-switch-nav {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.jxs-switch-item {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: baseline;
    column-gap: 16px;
    padding: 18px 20px 18px 22px;
    background: transparent;
    border: none;
    border-radius: 14px;
    text-align: left;
    cursor: pointer;
    color: var(--ac-fg);
    transition: background 0.3s ease, color 0.3s ease;
    overflow: hidden;
    font-family: inherit;
}

.jxs-switch-item:hover {
    background: color-mix(in srgb, var(--jex-ext-glass-sky) 50%, transparent);
}

/* Active 狀態：使用冷色 glass-sky 呼應右側 stage 的 frost-grey/steel-blue 色調 */
.jxs-switch-item.is-active {
    background: var(--jex-ext-glass-sky);
}

.jxs-switch-index {
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--ac-fg-muted);
    line-height: 1;
    transition: color 0.3s ease;
}

.jxs-switch-item.is-active .jxs-switch-index {
    color: var(--jex-ext-dark-slate);
}

.jxs-switch-text {
    display: block;
    min-width: 0;
}

.jxs-switch-title {
    display: block;
    font-size: 1.08rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: var(--ac-fg);
    margin-bottom: 4px;
}

/* 描述預設收合，active 時展開，形成 accordion 感 */
.jxs-switch-desc {
    display: block;
    font-size: 0.93rem;
    line-height: 1.65;
    color: var(--ac-fg-muted);
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.45s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s ease, margin-top 0.3s ease;
}

.jxs-switch-item.is-active .jxs-switch-desc {
    max-height: 120px;
    opacity: 1;
    margin-top: 6px;
}

/* 底部進度條（active 時播放，暗示自動輪播節奏） */
.jxs-switch-progress {
    position: absolute;
    left: 22px;
    right: 20px;
    bottom: 10px;
    height: 2px;
    background: color-mix(in srgb, var(--ac-fg) 8%, transparent);
    border-radius: 2px;
    overflow: hidden;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.3s ease;
}

.jxs-switch-item.is-active .jxs-switch-progress {
    transform: scaleX(1);
}

.jxs-switch-item.is-active .jxs-switch-progress::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, var(--ac-primary), var(--ac-secondary));
    transform: scaleX(0);
    transform-origin: left center;
    animation: jxs-switch-progress 5.5s linear forwards;
}

@keyframes jxs-switch-progress {
    0%   { transform: scaleX(0); }
    100% { transform: scaleX(1); }
}

/* --- 右側 stage：採用 frost-grey / steel-blue 冷色調，跳脫黃色讓 SVG UI 更跳 --- */
.jxs-switch-stage {
    position: relative;
    min-height: 420px;
    background: linear-gradient(135deg,
        var(--jex-ext-frost-grey) 0%,
        var(--jex-ext-muted-slate) 100%);
    border-radius: 24px;
    border: 1px solid color-mix(in srgb, var(--jex-ext-dark-slate) 25%, transparent);
    overflow: hidden;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.18) inset,
        0 20px 60px color-mix(in srgb, var(--jex-ext-dark-slate) 22%, transparent);
}

/* Stage 背景網格紋理：改用白色細線疊在深色底上，像機艙儀表板 */
.jxs-switch-stage::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
    background-size: 32px 32px;
    -webkit-mask-image: radial-gradient(ellipse 90% 70% at center, black 30%, transparent 85%);
            mask-image: radial-gradient(ellipse 90% 70% at center, black 30%, transparent 85%);
    opacity: 0.9;
    pointer-events: none;
}

.jxs-switch-panel {
    position: absolute;
    inset: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(12px) scale(0.98);
    transition: opacity 0.5s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    pointer-events: none;
}

.jxs-switch-panel.is-active {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.jxs-switch-panel[hidden] {
    display: flex;  /* 強制蓋掉 hidden 以保留過場動畫，實際 aria 由 JS 切換 */
}

.jxs-scene-svg {
    width: 100%;
    height: auto;
    max-height: 100%;
    /* 深色 stage 上需要更深一點的陰影讓白色 UI 浮起來 */
    filter: drop-shadow(0 12px 36px rgba(0, 0, 0, 0.22));
}

/* --- 手機/平板響應 --- */
@media (max-width: 1024px) {
    .jxs-feature-switcher {
        grid-template-columns: 1fr;
    }
    .jxs-switch-stage {
        min-height: 340px;
        order: -1; /* 手機版視覺場景在前，nav 在後 */
    }
    .jxs-switch-panel {
        inset: 20px;
    }
}

@media (max-width: 640px) {
    .jxs-switch-item {
        padding: 14px 16px 14px 18px;
    }
    .jxs-switch-stage {
        min-height: 280px;
    }
    .jxs-switch-title {
        font-size: 1rem;
    }
    .jxs-switch-desc {
        font-size: 0.88rem;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .jxs-switch-panel,
    .jxs-switch-desc,
    .jxs-switch-progress,
    .jxs-switch-item.is-active .jxs-switch-progress::before {
        transition: none;
        animation: none;
    }
}

/* =========================================
   Testimonials
========================================= */
.jxs-testimonials-section {
    padding: var(--ac-spacing) 0;
    /* 滿版 breakout 由 .ac-fullbleed utility 的 selector list 共用宣告 */
    background: color-mix(in srgb, var(--jex-ext-frost-grey) 30%, transparent);
    position: relative;
    z-index: 2;
}

.jxs-testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(24px, 3vw, 36px);
    align-items: stretch;
}

@media (max-width: 899px) {
    .jxs-testimonials-grid {
        grid-template-columns: 1fr;
    }
}

.jxs-testimonial-card {
    padding: clamp(32px, 4vw, 40px);
    margin: 0;
    height: 100%;
    box-sizing: border-box;
    background: var(--jex-ext-glass-sky-container);
    border: 1px solid color-mix(in srgb, var(--jex-ext-frost-grey) 30%, transparent);
    border-radius: var(--jex-container-radius);
    display: flex;
    flex-direction: column;
    gap: 24px;
    position: relative;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.4s ease,
                box-shadow 0.4s ease;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.8) inset,
        0 8px 24px -8px color-mix(in srgb, var(--jex-ext-dark-slate) 8%, transparent);
}

.jxs-testimonial-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top left, color-mix(in srgb, var(--ac-primary) 12%, transparent) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
    transition: opacity 0.4s ease;
}

.jxs-testimonial-card:hover {
    transform: translateY(-8px);
    border-color: color-mix(in srgb, var(--ac-primary) 50%, transparent);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 1) inset,
        0 24px 48px -12px color-mix(in srgb, var(--jex-ext-dark-slate) 18%, transparent);
}

.jxs-testimonial-card:hover::before {
    opacity: 0.8;
}

.jxs-testimonial-icon {
    position: relative;
    z-index: 1;
    color: var(--md-sys-color-primary);
    width: 32px;
    height: 32px;
}

.jxs-testimonial-icon svg {
    width: 100%;
    height: 100%;
    opacity: 0.8;
}

.jxs-testimonial-quote {
    margin: 0;
    font-size: clamp(1.05rem, 1.4vw, 1.15rem);
    line-height: 1.85;
    color: var(--ac-fg);
    font-weight: 500;
    position: relative;
    z-index: 1;
    flex-grow: 1;
}

.jxs-testimonial-role {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--ac-fg-muted);
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
    position: relative;
    z-index: 1;
    letter-spacing: 0.02em;
}

.jxs-role-dash {
    width: 24px;
    height: 3px;
    background: linear-gradient(90deg, var(--ac-primary), transparent);
    border-radius: 2px;
}

/* =========================================
   Steps Section
========================================= */
.jxs-steps-section {
    padding: var(--ac-spacing) 0;
}

.jxs-steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    margin-bottom: 24px;
}

.jxs-step-card {
    position: relative;
    padding: 36px;
    background: var(--md-sys-color-surface);
    border: 1px solid var(--ac-glass-border);
    border-radius: var(--ac-radius-lg);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.4s ease,
                box-shadow 0.4s ease;
    box-shadow: var(--md-sys-elevation-1);
    overflow: hidden;
}

.jxs-step-card::after {
    content: '';
    position: absolute;
    inset: auto 0 0 0;
    height: 3px;
    background: linear-gradient(90deg, var(--ac-primary) 0%, var(--ac-secondary) 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.jxs-step-card:hover {
    transform: translateY(-6px);
    border-color: var(--ac-primary);
    box-shadow: var(--md-sys-elevation-3);
}

.jxs-step-card:hover::after {
    transform: scaleX(1);
}

.jxs-step-number {
    font-size: 3.2rem;
    font-weight: 900;
    line-height: 1;
    background: linear-gradient(135deg, var(--ac-primary) 0%, var(--ac-secondary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    margin-bottom: 16px;
    letter-spacing: -0.03em;
}

.jxs-step-card h4 {
    font-size: 1.4rem;
    margin: 0 0 10px;
    color: var(--ac-fg);
}

.jxs-step-card p {
    margin: 0;
    color: var(--ac-fg-muted);
    line-height: 1.65;
    
}

/* =========================================
   Editorial Section：編輯式左文右圖排版（Cost of Trial + Solution Bridge）
   置頂大標置中，接著左右分欄；奇偶行可透過 --reverse 切換
========================================= */
.jxs-editorial-section {
    padding: var(--ac-spacing) 0;
    position: relative;
    z-index: 2;
}

.jxs-editorial-header {
    text-align: center;
    max-width: 820px;
    margin: 0 auto 56px;
}

.jxs-editorial-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
    max-width: 1080px;
    margin: 0 auto;
}

.jxs-editorial-row--reverse {
    grid-template-areas: "text visual";
}

.jxs-editorial-row--reverse .jxs-editorial-text  { grid-area: text; }
.jxs-editorial-row--reverse .jxs-editorial-visual { grid-area: visual; }

.jxs-editorial-text {
    padding-right: 16px;
}

.jxs-editorial-subtitle {
    font-size: clamp(1.5rem, 2.8vw, 2rem);
    font-weight: 800;
    line-height: 1.4;
    letter-spacing: -0.01em;
    color: var(--ac-fg);
    margin: 0 0 20px;
}

.jxs-editorial-body {
    font-size: clamp(1rem, 1.6vw, 1.1rem);
    line-height: 1.85;
    color: var(--ac-fg-muted);
    margin: 0 0 24px;
}

.jxs-editorial-punchline {
    font-size: clamp(1.05rem, 1.7vw, 1.18rem);
    font-weight: 700;
    line-height: 1.7;
    color: var(--ac-fg);
    margin: 0;
}

.jxs-editorial-punchline strong {
    color: var(--md-sys-color-primary);
    font-weight: 800;
}

/* 編輯章節號排版：大號 01/02 與段落並排，章節間以橫線分隔 */
.jxs-editorial-block {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: clamp(18px, 2.4vw, 28px);
    align-items: baseline;
    padding: 28px 0;
    border-top: 1px solid color-mix(in srgb, var(--ac-fg) 14%, transparent);
}

.jxs-editorial-block:first-child {
    padding-top: 0;
    border-top: none;
}
.jxs-editorial-block:last-child { padding-bottom: 0; }

/* 章節號：大字 primary，作為段落的 chapter 前綴 */
.jxs-editorial-num {
    font-family: inherit;
    font-size: clamp(2rem, 3.2vw, 2.6rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.02em;
    color: var(--ac-primary);
    /* 對齊段落第一行 baseline 的視覺平衡 */
    transform: translateY(0.05em);
}

.jxs-editorial-block p {
    margin: 0;
    
    line-height: 1.8;
    color: var(--ac-fg);
}

/* strong：保留 primary 強調但僅針對關鍵詞，避免整段文字被黃色淹沒 */
.jxs-editorial-block strong {
    color: var(--md-sys-color-primary);
    font-weight: 800;
}

.jxs-editorial-visual {
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    /* 雙色 editorial：base color = 深墨色（結構線），重點元素在 SVG 裡以 color: var(--ac-primary) 覆寫 */
    color: color-mix(in srgb, var(--ac-fg) 85%, transparent);
}

.jxs-editorial-visual svg {
    width: 100%;
    max-width: 440px;
    height: auto;
}

@media (max-width: 860px) {
    .jxs-editorial-row,
    .jxs-editorial-row--reverse {
        grid-template-columns: 1fr;
        grid-template-areas:
            "visual"
            "text";
        gap: 32px;
    }
    .jxs-editorial-text { padding-right: 0; }
    .jxs-editorial-visual svg { max-width: 360px; }
}

/* =========================================
   JexEngine AI 動態生成 Callout：左文右示意圖
========================================= */
.jxs-engine-callout {
    display: grid;
    grid-template-columns: 1fr minmax(0, 1fr);
    align-items: center;
    gap: clamp(24px, 4vw, 56px);
    max-width: 1080px;
    margin: clamp(48px, 6vw, 80px) auto 0;
    padding: clamp(28px, 3vw, 40px) clamp(28px, 3vw, 44px);
    border-radius: var(--ac-radius-lg);
    background: linear-gradient(135deg,
        color-mix(in srgb, var(--ac-primary) 10%, transparent),
        color-mix(in srgb, var(--ac-secondary) 10%, transparent));
    border: 1px dashed color-mix(in srgb, var(--ac-primary) 45%, transparent);
}

.jxs-callout-text {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.jxs-callout-tag {
    align-self: flex-start;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    background: linear-gradient(135deg, var(--ac-primary) 0%, var(--ac-secondary) 100%);
    color: var(--md-sys-color-on-primary);
}

.jxs-callout-title {
    margin: 0;
    font-size: clamp(1.4rem, 2.4vw, 1.9rem);
    font-weight: 900;
    letter-spacing: -0.01em;
    line-height: 1.3;
    color: var(--ac-fg);
}

.jxs-callout-title strong {
    background: linear-gradient(135deg, var(--ac-primary) 0%, var(--ac-secondary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.jxs-engine-callout p {
    margin: 0;
    
    line-height: 1.75;
    color: var(--ac-fg);
}

.jxs-engine-callout strong {
    color: var(--md-sys-color-primary);
    font-weight: 800;
}

.jxs-callout-visual {
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.jxs-callout-visual svg {
    width: 100%;
    max-width: 520px;
    height: auto;
    filter: drop-shadow(0 12px 32px rgba(0, 0, 0, 0.08));
}

@media (max-width: 860px) {
    .jxs-engine-callout {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .jxs-callout-visual {
        order: -1; /* 手機版視覺在前 */
    }
}

/* =========================================
   Six Task Units Section
========================================= */
.jxs-units-section {
    padding: var(--ac-spacing) 0;
    position: relative;
    z-index: 2;
}

/* =========================================
   情境任務跑馬燈：水平無縫捲動，hover 暫停，左右邊緣漸層淡出
========================================= */
.jxs-scenarios-marquee {
    position: relative;
    overflow: hidden;
    margin-top: clamp(24px, 4vw, 48px);
    padding: 8px 0;
    /* 左右兩端用 mask 做漸層淡出，避免卡片硬邊切進出視野 */
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 6%, #000 94%, transparent 100%);
            mask-image: linear-gradient(90deg, transparent 0%, #000 6%, #000 94%, transparent 100%);
}

.jxs-scenarios-track {
    display: flex;
    gap: 20px;
    width: max-content;
    /* 60s 一輪，資料重複兩次 → 實際每張卡片約 4s 通過畫面 */
    animation: jxs-scenarios-scroll 60s linear infinite;
    will-change: transform;
}

/* hover 或聚焦時暫停，讓使用者能閱讀特定卡片 */
.jxs-scenarios-marquee:hover .jxs-scenarios-track,
.jxs-scenarios-marquee:focus-within .jxs-scenarios-track {
    animation-play-state: paused;
}

@keyframes jxs-scenarios-scroll {
    0%   { transform: translateX(0); }
    /* 因為資料重複兩次，平移 50% 剛好回到第一輪起點 → 視覺無縫 */
    100% { transform: translateX(-50%); }
}

/* 情境卡片：小巧、等寬，左上角 icon + 標題 + 一句話 */
.jxs-scenario-card {
    flex: 0 0 clamp(260px, 24vw, 300px);
    padding: 22px 22px 20px;
    background: color-mix(in srgb, var(--md-sys-color-surface) 75%, transparent);
    border: 1px solid var(--ac-glass-border);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.3s ease,
                box-shadow 0.3s ease;
}

.jxs-scenario-card:hover {
    transform: translateY(-3px);
    border-color: var(--ac-primary);
    box-shadow: 0 12px 32px color-mix(in srgb, var(--ac-primary) 12%, transparent);
}

.jxs-scenario-icon {
    width: 100px;
    height: 100px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    background: linear-gradient(135deg,
        color-mix(in srgb, var(--ac-primary) 18%, transparent),
        color-mix(in srgb, var(--ac-secondary) 18%, transparent));
    color: var(--md-sys-color-primary);
    flex-shrink: 0;
    margin-bottom: 6px;
}

/* 內層 SVG 放大到 64px，維持 currentColor + stroke 線條風格 */
.jxs-scenario-icon svg {
    width: 64px;
    height: 64px;
    stroke-width: 1.6;
}

.jxs-scenario-title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: var(--ac-fg);
}

.jxs-scenario-desc {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.65;
    color: var(--ac-fg-muted);
}

/* 減少動畫：暫停捲動避免影響眩暈族群 */
@media (prefers-reduced-motion: reduce) {
    .jxs-scenarios-track {
        animation: none;
    }
    .jxs-scenarios-marquee {
        overflow-x: auto;
        -webkit-mask-image: none;
                mask-image: none;
    }
}

/* =========================================
   Analytics Deep Dive Section
========================================= */
.jxs-analytics-section {
    padding: var(--ac-spacing) 0;
    background: color-mix(in srgb, var(--md-sys-color-surface) 50%, transparent);
    position: relative;
    z-index: 2;
}

/* =========================================
   橫向 Tab Switcher：上方 pill tabs + 下方開放式內容 stage（無容器包覆）
   用於 Analytics 章節，避免再用卡片/容器形式
========================================= */
.jxs-tab-switcher {
    max-width: 1100px;
    margin: clamp(24px, 4vw, 48px) auto 0;
}

/* 上方 tab bar：pill 風格，參考使用者截圖 */
.jxs-tab-nav {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    padding: 6px;
    border-radius: 999px;
    background: var(--jex-ext-glass-sky);
    border: 1px solid color-mix(in srgb, var(--jex-ext-frost-grey) 40%, transparent);
    margin-bottom: clamp(32px, 4vw, 56px);
}

.jxs-tab-btn {
    display: inline-flex;
    align-items: baseline;
    gap: 8px;
    padding: 10px 18px;
    border: none;
    background: transparent;
    border-radius: 999px;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 700;
    color: color-mix(in srgb, var(--jex-ext-dark-slate) 70%, transparent);
    transition: background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
    white-space: nowrap;
}

.jxs-tab-btn:hover {
    color: var(--jex-ext-dark-slate);
}

.jxs-tab-btn.is-active {
    background: var(--jex-ext-glass-sky-container);
    color: var(--jex-ext-dark-slate);
    box-shadow: 0 2px 10px color-mix(in srgb, var(--jex-ext-dark-slate) 12%, transparent);
}

.jxs-tab-btn-num {
    font-family: inherit;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    color: color-mix(in srgb, var(--md-sys-color-primary) 85%, transparent);
}

.jxs-tab-btn.is-active .jxs-tab-btn-num {
    color: var(--md-sys-color-primary);
}

/* 下方 stage：容器化框架，內容浮在 frost-grey 容器上 */
.jxs-tab-stage {
    position: relative;
    min-height: 420px;
    padding: clamp(32px, 4vw, 56px);
    border-radius: 24px;
    background: var(--jex-ext-glass-sky-container);
    border: 1px solid color-mix(in srgb, var(--jex-ext-frost-grey) 35%, transparent);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.8) inset,
        0 20px 50px -24px color-mix(in srgb, var(--jex-ext-dark-slate) 30%, transparent);
    overflow: hidden;
}

/* 容器內底部細節線條（可選的裝飾） */
.jxs-tab-stage::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(43, 58, 74, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(43, 58, 74, 0.03) 1px, transparent 1px);
    background-size: 32px 32px;
    -webkit-mask-image: radial-gradient(ellipse 85% 70% at center, black 20%, transparent 90%);
            mask-image: radial-gradient(ellipse 85% 70% at center, black 20%, transparent 90%);
    pointer-events: none;
    z-index: 0;
}

.jxs-tab-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
    align-items: stretch;  /* 讓左右欄都撐滿 panel 高度，再各自內部置中 */
    gap: clamp(32px, 5vw, 72px);
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.5s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    pointer-events: none;
    /* 多個 panel 疊在同一格，使用絕對定位（扣掉 stage padding） */
    position: absolute;
    inset: clamp(32px, 4vw, 56px);
    z-index: 1;
}

.jxs-tab-panel.is-active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.jxs-tab-panel[hidden] {
    display: grid; /* 強制覆蓋 hidden 以保留過場動畫；aria/tabindex 由 JS 控制 */
}

/* 左側文字：kicker + 標題 + 敘述，垂直置中對齊容器 */
.jxs-tab-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 14px;
    min-height: 0;
}

.jxs-tab-kicker {
    font-family: inherit;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--jex-ext-frost-grey);
}

.jxs-tab-heading {
    margin: 0;
    font-size: clamp(1.5rem, 2.8vw, 2rem);
    font-weight: 900;
    letter-spacing: -0.01em;
    line-height: 1.3;
    color: var(--ac-fg);
}

.jxs-tab-desc {
    margin: 0;
    font-size: clamp(0.98rem, 1.3vw, 1.05rem);
    line-height: 1.8;
    color: var(--ac-fg-muted);
    max-width: 48ch;
}

/* 右側視覺：直接呈現 SVG，撐滿 panel 高度 + max-height 防止被切 */
.jxs-tab-visual {
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
    max-height: 100%;
    overflow: hidden;
}

/* SVG 用 width/height 雙軸限制，讓 preserveAspectRatio 自動 fit */
.jxs-tab-visual .jxs-bento-svg {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 100%;
    filter: drop-shadow(0 16px 48px color-mix(in srgb, var(--jex-ext-dark-slate) 18%, transparent));
}

/* 不同 SVG aspect 各自設定合理尺寸：寬圖給較大寬度，直圖給較小寬度避免高度爆表 */
.jxs-tab-visual svg[viewBox="0 0 280 260"],
.jxs-tab-visual svg[viewBox="0 0 280 340"] {
    max-width: 320px;  /* 直立比例 SVG */
}
.jxs-tab-visual svg[viewBox="0 0 420 300"],
.jxs-tab-visual svg[viewBox="0 0 420 240"] {
    max-width: 460px;  /* 橫幅比例 SVG */
}

/* 響應式：平板改 stack（圖在上、文在下），手機 tab 改為多行 */
@media (max-width: 860px) {
    .jxs-tab-stage {
        padding: 28px 24px;
        min-height: 560px;
    }
    .jxs-tab-panel {
        grid-template-columns: 1fr;
        gap: 24px;
        inset: 28px 24px;
    }
    .jxs-tab-visual { order: -1; }
    .jxs-tab-nav {
        display: flex;
        width: 100%;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        border-radius: 16px;
    }
    .jxs-tab-btn {
        scroll-snap-align: start;
    }
}

@media (prefers-reduced-motion: reduce) {
    .jxs-tab-panel {
        transition: none;
    }
}

/* =========================================
   Free Positioning Section：全寬暗底 band（沿用 M3 inverse-surface = #333333）
   與淺色前後段形成強烈對比，不用方框
========================================= */
.jxs-free-section {
    padding: 0;
    /* 不要再加 margin，否則會與前後段的 section padding 疊加造成過大空白；
       視覺分隔交給暗底 band 本身的對比 + 前後段的 padding */
    margin: 0;
    position: relative;
    z-index: 2;
}

.jxs-dark-band {
    background: var(--md-sys-color-inverse-surface);
    color: var(--md-sys-color-inverse-on-surface);
    padding: calc(var(--ac-spacing) * 0.85) 0;
    text-align: center;
}

.jxs-dark-band .ac-container {
    position: relative;
    z-index: 1;
}

.jxs-free-content {
    max-width: 780px;
    margin: 0 auto;
}

.jxs-badge-dark {
    background: var(--jex-color-rgba-r255-g255-b255-a80);
    color: var(--md-sys-color-inverse-on-surface);
    /* 白色低透明 border：variables.css 目前無 a180 token，取最接近的 a200（0.2） */
    border: 1px solid var(--jex-color-rgba-r255-g255-b255-a200);
    box-shadow: none;
    backdrop-filter: blur(10px);
}

/* 暗底覆寫：保留 .ac-section-title 的尺寸與 margin，只調整顏色 */
.jxs-dark-band .jxs-free-title {
    color: var(--md-sys-color-inverse-on-surface);
}

.jxs-free-highlight {
    background: linear-gradient(135deg, var(--ac-primary) 0%, var(--ac-secondary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    font-weight: 900;
}

.jxs-free-body {
    font-size: clamp(1rem, 1.7vw, 1.15rem);
    line-height: 1.95;
    /* 暗底上的次要文字：以 inverse-on-surface 為底，疊 78% 透明度營造層次 */
    color: color-mix(in srgb, var(--md-sys-color-inverse-on-surface) 78%, transparent);
    margin: 24px auto 0;
    max-width: 620px;
}

.jxs-free-punchline {
    font-size: clamp(1.2rem, 2.2vw, 1.5rem);
    font-weight: 800;
    line-height: 1.65;
    margin: 32px auto 0;
    max-width: 620px;
    color: var(--md-sys-color-inverse-on-surface);
}

.jxs-free-punchline strong {
    background: linear-gradient(135deg, var(--ac-primary) 0%, var(--ac-secondary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

/* =========================================
   Tech Decorations：淺色系科技感裝飾層
   不更動既有色票，僅以 --ac-primary / --ac-secondary 疊不同透明度
========================================= */

/* 1. Ambient Orbs：Hero 與 Closing 角落柔霧光球，建立景深
   不用 overflow: hidden — 由頁面根 .jex-archcross-landing 的 overflow-x: clip 負責攔水平方向，
   光球可以自然溢散到下一區而不被硬邊切掉 */
.jxs-hero-section,
.jc-hero-section,
.ac-closing-section {
    position: relative;
}

.jxs-hero-section::before,
.jxs-hero-section::after,
.jc-hero-section::before,
.jc-hero-section::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    filter: blur(90px);
}

.jxs-hero-section::before,
.jc-hero-section::before {
    top: -160px;
    left: -120px;
    width: 520px;
    height: 520px;
    background: radial-gradient(circle, color-mix(in srgb, var(--ac-primary) 22%, transparent) 0%, transparent 70%);
}

.jxs-hero-section::after,
.jc-hero-section::after {
    bottom: -200px;
    right: -140px;
    width: 560px;
    height: 560px;
    background: radial-gradient(circle, color-mix(in srgb, var(--ac-secondary) 20%, transparent) 0%, transparent 70%);
}

/* 確保 hero 內容在 orbs 之上 */
.jxs-hero-section .ac-container,
.jc-hero-section .ac-container {
    position: relative;
    z-index: 2;
}

/* 2. Dot Grid Pattern：Gap Statement、Editorial、六大任務單元的背景紋理
   使用 radial-gradient 作為 background，搭配 mask 做邊緣淡出 */
.jxs-gap-section,
.jxs-editorial-section,
.jxs-units-section {
    position: relative;
}

.jxs-gap-section::before,
.jxs-editorial-section::before,
.jxs-units-section::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image: radial-gradient(circle, color-mix(in srgb, var(--ac-primary) 22%, transparent) 1px, transparent 1.5px);
    background-size: 26px 26px;
    background-position: 0 0;
    -webkit-mask-image: radial-gradient(ellipse 70% 50% at center, black 30%, transparent 90%);
    mask-image: radial-gradient(ellipse 70% 50% at center, black 30%, transparent 90%);
    pointer-events: none;
    opacity: 0.7;
}

.jxs-gap-section .ac-container,
.jxs-editorial-section .ac-container,
.jxs-units-section .ac-container {
    position: relative;
    z-index: 1;
}

/* 3. Cross Grid Pattern：Analytics 區段使用十字網格強調「儀表板」感 */
.jxs-analytics-section {
    position: relative;
}

.jxs-analytics-section::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image:
        linear-gradient(color-mix(in srgb, var(--ac-primary) 10%, transparent) 1px, transparent 1px),
        linear-gradient(90deg, color-mix(in srgb, var(--ac-primary) 10%, transparent) 1px, transparent 1px);
    background-size: 56px 56px;
    -webkit-mask-image: linear-gradient(to bottom, transparent, black 25%, black 75%, transparent);
    mask-image: linear-gradient(to bottom, transparent, black 25%, black 75%, transparent);
    pointer-events: none;
    opacity: 0.6;
}

.jxs-analytics-section .ac-container {
    position: relative;
    z-index: 1;
}

/* 6. Engine Callout 閃爍光點：在 tag 前面加一個脈動小圓點，增加「即時訊號」感 */
.jxs-callout-tag {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.jxs-callout-tag::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--md-sys-color-on-primary);
    box-shadow: 0 0 0 0 color-mix(in srgb, #fff 80%, transparent);
    animation: jxs-dot-pulse 1.8s ease-in-out infinite;
}

@keyframes jxs-dot-pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 color-mix(in srgb, #fff 80%, transparent);
        opacity: 1;
    }
    50% {
        box-shadow: 0 0 0 6px color-mix(in srgb, #fff 0%, transparent);
        opacity: 0.6;
    }
}

/* 10. 減少動畫（Accessibility）：尊重使用者的 prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
    .jxs-callout-tag::before {
        animation: none;
    }
}

/* =========================================
   Mobile Optimization
========================================= */
@media (max-width: 768px) {
    /* 手機版縮窄 hero flow 字距，避免三段標語換行 */
    .jxs-hero-flow {
        gap: 8px;
        font-size: clamp(1.25rem, 5.4vw, 1.7rem);
    }

    .jxs-testimonials-grid,
    .jxs-steps-grid {
        grid-template-columns: 1fr;
    }

    /* 手機版情境任務卡片略縮 */
    .jxs-scenario-card {
        flex: 0 0 240px;
        padding: 18px 18px 16px;
    }
    .jxs-scenarios-track {
        animation-duration: 45s;
    }

    /* course viewer preview 內部固定 700px 高度，於手機時允許內捲 */
    .jxs-preview-frame {
        border-radius: 20px;
    }
}
