/*
 * BioCloud homepage — quiet Codex/OpenAI visual layer.
 * This file is intentionally scoped to body.home-codex so analysis pages keep
 * their existing product-specific colors and controls.
 */

.home-codex {
    --home-ink: #173b52;
    --home-text: #315165;
    --home-muted: #617987;
    --home-subtle: #8397a1;
    --home-line: #d9e7e8;
    --home-line-strong: #b8d0d2;
    --home-soft: #f2faf8;
    --home-soft-strong: #e7f4f0;
    --home-green: #128b79;
    --home-red: #cf7568;
    --home-primary: #176b73;
    --home-primary-deep: #10525d;
    --home-blue: #315e96;
    --home-warm: #93602e;
    background: #fff;
    color: var(--home-text);
}

.home-codex .app-main {
    background: #fff;
}

.home-codex :focus-visible {
    outline-color: var(--home-ink);
}

/* Header */

.home-codex .app-navbar {
    padding: 0.58rem 0;
    border-bottom: 1px solid var(--home-line);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: none;
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
}

.home-codex .app-navbar.is-scrolled {
    border-bottom-color: var(--home-line);
    box-shadow: none;
}

.home-codex .navbar-brand,
.home-codex .brand-wordmark {
    color: var(--home-ink) !important;
    font-weight: 650;
}

.home-codex .navbar-brand:hover,
.home-codex .brand-mark:hover {
    transform: none;
}

.home-codex .brand-logo-img {
    box-shadow: none;
}

.home-codex .app-navbar .brand-logo-img {
    filter: none;
}

.home-codex .app-footer .brand-logo-img {
    filter: grayscale(1);
}

.home-codex .app-navbar .nav-link {
    border-radius: 7px;
    color: #555550 !important;
    font-size: 0.9rem;
    font-weight: 520;
}

.home-codex .app-navbar .nav-link::before {
    display: none;
}

.home-codex .app-navbar .nav-link:hover,
.home-codex .app-navbar .nav-link.active {
    color: var(--home-ink) !important;
    background: var(--home-soft-strong);
}

.home-codex .app-navbar .btn-primary,
.home-codex .app-navbar .btn-outline-primary {
    min-height: 32px;
    padding: 0.3rem 0.75rem;
    border: 1px solid var(--home-ink);
    border-radius: 7px;
    background: var(--home-ink);
    color: #fff;
    box-shadow: none;
}

.home-codex .app-navbar .btn-outline-primary {
    border-color: var(--home-line-strong);
    background: #fff;
    color: var(--home-ink);
}

.home-codex .app-navbar .btn:hover {
    transform: none;
}

.home-codex .btn-language {
    border-color: transparent;
    color: var(--home-muted);
    background: transparent;
}

.home-codex .mega-menu {
    border: 1px solid var(--home-line);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.1);
}

/* Hero */

.home-codex .home-hero {
    position: relative;
    min-height: 680px;
    padding: clamp(5.5rem, 9vw, 8rem) 0 clamp(5rem, 8vw, 7rem);
    border-bottom: 1px solid var(--home-line);
    background: #fff !important;
}

.home-codex .home-hero::before,
.home-codex .home-hero::after,
.home-codex .ag-canvas-container,
.home-codex .ag-glow-accent::before {
    display: none !important;
    content: none !important;
}

.home-codex .home-hero .container {
    width: min(1180px, calc(100% - 2.5rem));
    max-width: none;
}

.home-codex .home-hero .row {
    --bs-gutter-x: clamp(2.5rem, 6vw, 6rem);
}

.home-codex .hero-badge,
.home-codex .section-badge,
.home-codex .research-services-badge {
    gap: 0.45rem;
    padding: 0.38rem 0.7rem;
    border: 1px solid var(--home-line);
    border-radius: 7px;
    color: #555550;
    background: var(--home-soft);
    box-shadow: none;
    font-size: 0.78rem;
    font-weight: 560;
    letter-spacing: 0;
}

.home-codex .hero-badge {
    margin-bottom: 1.4rem;
}

.home-codex .hero-badge i,
.home-codex .section-badge i,
.home-codex .research-services-badge i,
.home-codex .floating-card.card-3 > i,
.home-codex .cap-pill i {
    color: var(--home-red);
}

.home-codex .hero-title {
    max-width: 100%;
    margin-bottom: 1.4rem;
    color: var(--home-ink);
    font-size: clamp(2.55rem, 4.3vw, 3.6rem);
    font-weight: 620;
    letter-spacing: -0.055em;
    line-height: 1.04;
}

.home-codex .hero-title span {
    white-space: normal !important;
}

.home-codex .hero-title .text-gradient {
    background: none;
    color: var(--home-ink);
    -webkit-text-fill-color: currentColor;
}

.home-codex .hero-description {
    max-width: 630px;
    margin-bottom: 1.7rem;
    color: var(--home-muted);
    font-size: clamp(1.02rem, 1.5vw, 1.18rem);
    line-height: 1.72;
}

.home-codex .hero-features {
    gap: 0.65rem 1.25rem;
    margin-bottom: 1.8rem;
}

.home-codex .hero-features .feature-item {
    gap: 0.4rem;
    color: #555550;
    font-size: 0.87rem;
    font-weight: 520;
}

.home-codex .hero-features .feature-item i {
    color: var(--home-green);
    font-size: 0.9rem;
}

.home-codex .hero-actions {
    gap: 0.65rem;
}

.home-codex .home-hero .btn,
.home-codex .mode-cta,
.home-codex .cta-actions .btn-light {
    min-height: 44px;
    padding: 0.62rem 1rem;
    border: 1px solid var(--home-ink);
    border-radius: 9px;
    color: #fff !important;
    background: var(--home-ink) !important;
    box-shadow: none;
    font-size: 0.92rem;
    font-weight: 570;
}

.home-codex .home-hero .btn-outline-primary {
    border-color: var(--home-line-strong);
    color: var(--home-ink) !important;
    background: #fff !important;
}

.home-codex .home-hero .btn:hover,
.home-codex .mode-cta:hover,
.home-codex .cta-actions .btn-light:hover {
    border-color: #2f2f2b;
    color: #fff !important;
    background: #2f2f2b !important;
    box-shadow: none;
    transform: none;
}

.home-codex .home-hero .btn-outline-primary:hover {
    color: var(--home-ink) !important;
    background: var(--home-soft) !important;
}

.home-codex .hero-stats {
    gap: 0;
    margin-top: 2.2rem;
    border-top: 1px solid var(--home-line);
}

.home-codex .hero-stat-chip {
    min-width: 112px;
    padding: 1rem 1.3rem 0 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
}

.home-codex .hero-stat-value {
    color: var(--home-ink);
    background: none;
    font-size: 1.18rem;
    font-weight: 640;
    -webkit-text-fill-color: currentColor;
}

.home-codex .hero-stat-label {
    color: var(--home-subtle);
    font-size: 0.76rem;
    font-weight: 500;
}

/* A stationary product composition replaces colorful floating orbs. */

.home-codex .hero-visual {
    width: min(100%, 620px);
    height: 470px;
    overflow: hidden;
    margin-inline: auto;
    border: 1px solid var(--home-line);
    border-radius: 20px;
    background:
        linear-gradient(var(--home-line) 1px, transparent 1px),
        linear-gradient(90deg, var(--home-line) 1px, transparent 1px),
        var(--home-soft);
    background-size: 32px 32px;
    box-shadow: 0 28px 65px rgba(0, 0, 0, 0.08);
}

.home-codex .floating-card {
    border: 1px solid var(--home-line);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.08);
    animation: none;
}

.home-codex .floating-card.card-1 {
    top: 38px;
    right: 28px;
    width: min(76%, 330px);
}

.home-codex .floating-card.card-2 {
    top: auto;
    right: auto;
    bottom: 38px;
    left: 28px;
    width: min(62%, 245px);
}

.home-codex .floating-card.card-3 {
    right: 24px;
    bottom: 24px;
    padding: 0.7rem 0.85rem;
    color: var(--home-text);
}

.home-codex .status-dot {
    background: var(--home-green);
}

.home-codex .record-mini i,
.home-codex .floating-card.card-2 .card-header-mini i {
    color: #667eea !important;
}

/* Shared section language */

.home-codex .section-header {
    margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.home-codex .section-header h2,
.home-codex .record-title,
.home-codex .research-services-copy h2,
.home-codex .cta-card h2 {
    color: var(--home-ink);
    font-weight: 610;
    letter-spacing: -0.04em;
}

.home-codex .section-header h2 {
    font-size: clamp(2rem, 4vw, 3.25rem);
}

.home-codex .section-header p,
.home-codex .record-desc,
.home-codex .research-services-copy p {
    color: var(--home-muted);
}

.home-codex .home-glass {
    border: 1px solid var(--home-line);
    border-radius: 13px;
    background: #fff;
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
}

.home-codex .home-glass:hover {
    box-shadow: none;
}

.home-codex .ag-tilt-card,
.home-codex .ag-reveal {
    opacity: 1;
    filter: none;
    transform: none;
    transition: border-color 150ms ease, background-color 150ms ease;
}

.home-codex .ag-tilt-card::after {
    display: none;
}

/* Three ways */

.home-codex .modes-section {
    display: flex;
    overflow: clip;
    flex-direction: column;
    padding: clamp(5rem, 8vw, 7rem) 0 1rem;
    background: #fff;
}

.home-codex .modes-section > .container {
    order: 0;
    margin-bottom: 2.5rem;
}

.home-codex .mode-showcase-agentb { order: 1; }
.home-codex .mode-showcase-agent { order: 2; }
.home-codex .mode-showcase-suite { order: 3; }

.home-codex .mode-chooser {
    width: fit-content;
    max-width: 100%;
    gap: 0.25rem;
    padding: 0.28rem;
    border: 1px solid var(--home-line);
    border-radius: 11px;
    background: var(--home-soft);
}

.home-codex .mode-chooser a {
    gap: 0.48rem;
    padding: 0.48rem 0.72rem;
    border: 0;
    border-radius: 8px;
    color: #555550;
    background: transparent;
    box-shadow: none;
    font-size: 0.88rem;
    font-weight: 540;
}

.home-codex .mode-chooser a:hover {
    color: var(--home-ink);
    background: #fff;
    transform: none;
}

.home-codex .mode-chooser a span,
.home-codex .mode-chooser a:nth-child(n) span {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    color: #fff;
    background: #315d8a;
    font-size: 0.72rem;
    font-weight: 600;
}

.home-codex .mode-chooser a:nth-child(1) span { background: #167864; }
.home-codex .mode-chooser a:nth-child(2) span { background: #315d8a; }
.home-codex .mode-chooser a:nth-child(3) span { background: #b36c2e; }

.home-codex .mode-showcase {
    padding: clamp(3.8rem, 6vw, 5.5rem) 0;
    border-top: 1px solid var(--home-line);
    background: #fff !important;
    scroll-margin-top: 76px;
}

.home-codex .mode-showcase.mode-showcase-agentb {
    background: #eef5f2 !important;
}

.home-codex .mode-showcase.mode-showcase-agent {
    background: #eef3f8 !important;
}

.home-codex .mode-showcase.mode-showcase-suite {
    background: #f8f1e9 !important;
}

.home-codex .mode-showcase-inner {
    width: min(1180px, calc(100% - 2.5rem));
    grid-template-columns: minmax(210px, 0.28fr) minmax(0, 0.72fr);
    gap: clamp(2.5rem, 5vw, 5.25rem);
    align-items: center;
}

.home-codex .mode-copy .mode-num,
.home-codex .mode-copy h3,
.home-codex .mode-copy .mode-lead,
.home-codex .mode-copy .mode-cta,
.home-codex .mode-stage-cap {
    opacity: 1;
    transform: none;
    transition: none;
}

.home-codex .mode-num {
    margin-bottom: 0.65rem;
    color: var(--home-subtle);
    font-family: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
    font-size: 0.8rem;
    font-weight: 560;
}

.home-codex .mode-showcase-agentb .mode-num { color: #167864; }
.home-codex .mode-showcase-agent .mode-num { color: #315d8a; }
.home-codex .mode-showcase-suite .mode-num { color: #a76026; }

.home-codex .mode-copy h3 {
    margin-bottom: 0.75rem;
    color: var(--home-ink);
    font-size: clamp(1.65rem, 2.7vw, 2.5rem);
    font-weight: 610;
}

.home-codex .mode-lead {
    margin-bottom: 1.25rem;
    color: var(--home-muted);
    font-size: 1rem;
    overflow-wrap: anywhere;
}

.home-codex .mode-stage-frame,
.home-codex .mode-showcase-suite .mode-stage-frame,
.home-codex .mode-showcase-agent .mode-stage-frame,
.home-codex .mode-showcase-agentb .mode-stage-frame {
    overflow: hidden;
    border: 1px solid var(--home-line-strong);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 24px 60px rgba(16, 16, 14, 0.1);
    aspect-ratio: 8 / 5;
}

.home-codex .mode-demo-video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    background: #fff;
}

.home-codex .mode-motion-frame {
    aspect-ratio: 8 / 5;
    container-type: inline-size;
    isolation: isolate;
}

.home-codex .mode-stage-cap {
    color: var(--home-subtle);
    font-size: 0.82rem;
    font-weight: 500;
}

/* Downloadable, public Research Agent drawing demonstration. */
.home-codex .agent-figure-feature {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(350px, 0.7fr);
    align-items: center;
    gap: clamp(1.2rem, 3vw, 2.8rem);
    width: min(1260px, calc(100% - 2.5rem));
    margin: clamp(2.5rem, 4vw, 3.8rem) auto 0;
    scroll-margin-top: 82px;
    padding: clamp(0.75rem, 1.5vw, 1rem);
    border: 1px solid #c7e0dc;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 18px 45px rgba(25, 93, 99, 0.09);
}

.home-codex .agent-figure-preview {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #d7e7e8;
    border-radius: 16px;
    background: #fff;
    cursor: pointer;
}

.home-codex .agent-figure-preview img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: contain;
}

.home-codex .agent-figure-preview:hover { border-color: #8fbbc0; }
.home-codex .agent-figure-preview:focus-visible {
    outline: 3px solid var(--home-primary);
    outline-offset: 3px;
}

.home-codex .agent-figure-image-action {
    display: inline-flex;
    align-items: center;
    align-self: flex-end;
    gap: 0.5rem;
    padding: 0.6rem 0.85rem;
    color: #174d5c;
    background: #f8fbfc;
    font-size: 0.82rem;
    font-weight: 650;
    line-height: 1.2;
}

.home-codex .agent-figure-copy { padding: clamp(0.8rem, 2vw, 1.8rem); }
.home-codex .agent-figure-eyebrow {
    display: inline-block;
    margin-bottom: 0.72rem;
    color: var(--home-primary);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.home-codex .agent-figure-copy h4 {
    max-width: 18ch;
    margin: 0 0 0.85rem;
    color: var(--home-ink);
    font-size: clamp(1.55rem, 2.3vw, 2.1rem);
    font-weight: 670;
    line-height: 1.24;
    text-wrap: balance;
}

.home-codex .agent-figure-copy > p:not(.agent-figure-note) {
    max-width: 43ch;
    margin: 0 0 1.2rem;
    color: var(--home-muted);
    font-size: 0.96rem;
    line-height: 1.7;
}

.home-codex .agent-figure-choices {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
    margin: 0 0 1.15rem;
}

.home-codex .agent-figure-choice {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    min-width: 0;
    min-height: 62px;
    padding: 0.45rem;
    border: 1px solid #d8e7e8;
    border-radius: 10px;
    color: var(--home-ink);
    background: #f8fbfc;
    text-align: left;
    cursor: pointer;
    transition: border-color 150ms ease, background-color 150ms ease, box-shadow 150ms ease;
}

.home-codex .agent-figure-choice:hover { border-color: #a6ccd0; }
.home-codex .agent-figure-choice.is-active {
    border-color: var(--home-primary);
    background: #edf8f5;
    box-shadow: 0 0 0 1px var(--home-primary) inset;
}

.home-codex .agent-figure-choice:focus-visible {
    outline: 3px solid var(--home-primary);
    outline-offset: 2px;
}

.home-codex .agent-figure-choice img {
    display: block;
    width: 68px;
    height: 45px;
    flex: 0 0 68px;
    object-fit: contain;
    border: 1px solid #e2eaeb;
    border-radius: 6px;
    background: #fff;
}

.home-codex .agent-figure-choice span {
    min-width: 0;
    font-size: 0.8rem;
    font-weight: 620;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.home-codex .agent-figure-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem 1.1rem;
}

.home-codex .agent-figure-actions .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    min-height: 44px;
    padding: 0.6rem 0.95rem;
    border-color: var(--home-primary);
    border-radius: 9px;
    background: var(--home-primary);
    color: #fff;
    font-size: 0.88rem;
    font-weight: 650;
}

.home-codex .agent-figure-actions .btn:hover {
    border-color: var(--home-primary-deep);
    background: var(--home-primary-deep);
    color: #fff;
}

.home-codex .agent-figure-open {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-height: 44px;
    color: var(--home-primary-deep);
    font-size: 0.87rem;
    font-weight: 650;
    text-decoration: none;
}

.home-codex .agent-figure-open:hover { text-decoration: underline; }
.home-codex .agent-figure-note {
    margin: 1.1rem 0 0;
    color: var(--home-subtle);
    font-size: 0.75rem;
    line-height: 1.5;
}

@media (max-width: 900px) {
    .home-codex .agent-figure-feature { grid-template-columns: 1fr; }
    .home-codex .agent-figure-copy { padding: 0.85rem; }
}

@media (max-width: 767.98px) {
    .home-codex .agent-figure-feature {
        width: min(100%, calc(100% - 1.5rem));
        gap: 0.25rem;
        padding: 0.65rem;
        border-radius: 16px;
    }
    .home-codex .agent-figure-preview { border-radius: 11px; }
    .home-codex .agent-figure-image-action {
        padding: 0.5rem 0.65rem;
        font-size: 0.73rem;
    }
    .home-codex .agent-figure-copy h4 { max-width: none; }
    .home-codex .agent-figure-choice { gap: 0.45rem; }
    .home-codex .agent-figure-choice img { width: 54px; height: 40px; flex-basis: 54px; }
    .home-codex .agent-figure-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: start;
        gap: 0.35rem 0.7rem;
    }
    .home-codex .agent-figure-actions .btn { grid-column: 1 / -1; width: 100%; }
    .home-codex .agent-figure-open {
        min-height: 0;
        padding: 0.3rem 0;
        font-size: 0.81rem;
        line-height: 1.35;
    }
}

@media (max-width: 359.98px) {
    .home-codex .agent-figure-actions { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    .home-codex .agent-figure-choice { transition: none; }
}

/* Native product walkthroughs: crisp at every viewport, without video text collisions. */

.home-codex .mode-motion {
    width: 100%;
    height: 100%;
    overflow: hidden;
    color: #242421;
    background: #f7f7f5;
    font-size: clamp(7px, 1.35cqw, 14px);
    line-height: 1.35;
}

.home-codex .mode-motion * {
    box-sizing: border-box;
    min-width: 0;
}

.home-codex .motion-topbar {
    height: 9.4%;
    min-height: 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2cqw;
    padding: 0 2.5cqw;
    border-bottom: 1px solid #ddddda;
    background: rgba(255, 255, 255, 0.96);
}

.home-codex .motion-brand,
.home-codex .motion-status,
.home-codex .motion-answer-head,
.home-codex .motion-data-file,
.home-codex .motion-upload-row,
.home-codex .motion-module-card,
.home-codex .motion-export-row,
.home-codex .motion-chart-head,
.home-codex .motion-result-head {
    display: flex;
    align-items: center;
}

.home-codex .motion-brand {
    gap: 0.65cqw;
    white-space: nowrap;
}

.home-codex .motion-brand > span:last-child {
    color: #777771;
}

.home-codex .motion-logo,
.home-codex .motion-avatar,
.home-codex .motion-query-icon,
.home-codex .motion-file-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    color: var(--home-red);
}

.home-codex .motion-logo {
    width: 2.4cqw;
    height: 2.4cqw;
    min-width: 13px;
    min-height: 13px;
    border-radius: 0.55cqw;
    background: #faecea;
}

.home-codex .motion-status {
    gap: 0.6cqw;
    padding: 0.45cqw 0.8cqw;
    border: 1px solid #ddddda;
    border-radius: 999px;
    color: #63635e;
    background: #fafaf9;
    white-space: nowrap;
}

.home-codex .motion-status > span {
    width: 0.75cqw;
    height: 0.75cqw;
    min-width: 5px;
    min-height: 5px;
    border-radius: 50%;
    background: var(--home-green);
    box-shadow: 0 0 0 0.45cqw rgba(16, 163, 127, 0.12);
}

.home-codex .motion-eyebrow {
    display: block;
    margin-bottom: 1.25cqw;
    color: #777771;
    font-size: 0.86em;
    font-weight: 650;
    letter-spacing: 0.02em;
}

.home-codex .motion-agent-layout {
    height: 90.6%;
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.86fr);
    gap: 2.1cqw;
    padding: 2.4cqw;
}

.home-codex .motion-thread,
.home-codex .motion-activity,
.home-codex .motion-data-panel,
.home-codex .motion-chart-panel,
.home-codex .motion-module-panel,
.home-codex .motion-result-panel {
    overflow: hidden;
    border: 1px solid #ddddda;
    border-radius: 1.35cqw;
    background: #fff;
}

.home-codex .motion-thread,
.home-codex .motion-activity,
.home-codex .motion-data-panel,
.home-codex .motion-module-panel,
.home-codex .motion-result-panel {
    padding: 1.75cqw;
}

.home-codex .motion-query {
    display: flex;
    align-items: center;
    gap: 1cqw;
    padding: 1.25cqw;
    border: 1px solid #d6d6d2;
    border-radius: 1cqw;
    background: #f8f8f6;
}

.home-codex .motion-query p {
    overflow: hidden;
    margin: 0;
    font-weight: 590;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-codex .motion-query-icon {
    width: 2.3cqw;
    height: 2.3cqw;
    min-width: 14px;
    min-height: 14px;
    border-radius: 0.65cqw;
    color: #fff;
    background: var(--home-ink);
}

.home-codex .motion-answer {
    margin-top: 1.45cqw;
    padding: 1.35cqw 0.2cqw 0;
    border-top: 1px solid #ececea;
}

.home-codex .motion-answer-head {
    gap: 0.7cqw;
}

.home-codex .motion-avatar {
    width: 2.5cqw;
    height: 2.5cqw;
    min-width: 15px;
    min-height: 15px;
    border: 1px solid #efc8c5;
    border-radius: 0.65cqw;
    background: #fff5f3;
}

.home-codex .motion-answer-lines {
    display: grid;
    gap: 0.62cqw;
    margin: 1.2cqw 0;
}

.home-codex .motion-answer-lines span {
    width: 90%;
    height: 0.65cqw;
    min-height: 3px;
    border-radius: 999px;
    background: #e9e9e5;
    animation: homeMotionLine 12s ease-in-out infinite;
}

.home-codex .motion-answer-lines span:nth-child(2) { width: 72%; animation-delay: 160ms; }
.home-codex .motion-answer-lines span:nth-child(3) { width: 82%; animation-delay: 320ms; }

.home-codex .motion-file-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 1cqw;
    padding: 1cqw;
    border: 1px solid #d9d9d5;
    border-radius: 0.9cqw;
    background: #fafaf8;
}

.home-codex .motion-file-icon {
    width: 3.2cqw;
    height: 3.2cqw;
    min-width: 20px;
    min-height: 20px;
    border-radius: 0.75cqw;
    background: #faecea;
}

.home-codex .motion-file-card > span:nth-child(2),
.home-codex .motion-step > span,
.home-codex .motion-data-file > span,
.home-codex .motion-upload-row > span,
.home-codex .motion-module-card > span,
.home-codex .motion-export-row > span,
.home-codex .motion-chart-head > span,
.home-codex .motion-result-head > span {
    display: grid;
    gap: 0.15cqw;
}

.home-codex .mode-motion small {
    overflow: hidden;
    color: #808079;
    font-size: 0.82em;
    font-weight: 470;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-codex .motion-download {
    color: var(--home-red);
}

.home-codex .motion-activity-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #555550;
    font-weight: 620;
}

.home-codex .motion-activity-head i,
.home-codex .motion-result-head > i {
    color: #96968f;
}

.home-codex .motion-progress,
.home-codex .motion-suite-progress {
    height: 0.55cqw;
    min-height: 3px;
    margin: 1.35cqw 0 1.5cqw;
    overflow: hidden;
    border-radius: 999px;
    background: #ecece8;
}

.home-codex .motion-progress span,
.home-codex .motion-suite-progress span {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    background: var(--home-red);
    transform-origin: left;
    animation: homeMotionProgress 12s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.home-codex .motion-step {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 0.9cqw;
    padding: 1cqw 0;
    border-bottom: 1px solid #ececea;
}

.home-codex .motion-step:last-child {
    border-bottom: 0;
}

.home-codex .motion-step > i,
.home-codex .motion-data-file > i,
.home-codex .motion-upload-row > i,
.home-codex .motion-module-card > i:first-child,
.home-codex .motion-export-row > i:first-child {
    width: 2.6cqw;
    height: 2.6cqw;
    min-width: 16px;
    min-height: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.7cqw;
    color: var(--home-red);
    background: #faecea;
}

/* Smart analysis demo */

.home-codex .motion-analysis-layout {
    height: 90.6%;
    display: grid;
    grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.65fr);
    gap: 2.1cqw;
    padding: 2.4cqw;
}

.home-codex .motion-data-file,
.home-codex .motion-upload-row,
.home-codex .motion-module-card,
.home-codex .motion-export-row {
    gap: 0.9cqw;
}

.home-codex .motion-data-file,
.home-codex .motion-upload-row {
    padding: 1cqw;
    border: 1px solid #e0e0dc;
    border-radius: 0.9cqw;
    background: #fafaf8;
}

.home-codex .motion-field {
    display: grid;
    gap: 0.25cqw;
    padding: 1cqw 0;
    border-bottom: 1px solid #ececea;
}

.home-codex .motion-field > span {
    color: #81817a;
    font-size: 0.82em;
}

.home-codex .motion-run {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6cqw;
    margin-top: 1.2cqw;
    padding: 0.85cqw;
    border-radius: 0.8cqw;
    color: #fff;
    background: #20201e;
    font-weight: 600;
}

.home-codex .motion-run i {
    color: #f58b83;
}

.home-codex .motion-chart-panel {
    display: flex;
    flex-direction: column;
    padding: 1.45cqw 1.7cqw 1.25cqw;
}

.home-codex .motion-chart-head,
.home-codex .motion-result-head {
    justify-content: space-between;
    gap: 1cqw;
}

.home-codex .motion-chart-ready {
    padding: 0.35cqw 0.7cqw;
    border-radius: 999px;
    color: #087d61;
    background: #e9f6f1;
    font-size: 0.82em;
    white-space: nowrap;
}

.home-codex .motion-volcano {
    width: 100%;
    min-height: 0;
    flex: 1;
    margin-top: 0.5cqw;
}

.home-codex .motion-grid path {
    fill: none;
    stroke: #e5e5e1;
    stroke-width: 1;
}

.home-codex .motion-axis-labels {
    fill: #8a8a84;
    font-size: 10px;
}

.home-codex .motion-points circle {
    fill: #d94a43;
    opacity: 0.82;
}

.home-codex .motion-points circle:nth-child(n+7):nth-child(-n+11) {
    fill: #aaa9a2;
    opacity: 0.65;
}

.home-codex .motion-points circle:nth-child(n+12) {
    fill: #4e7ea8;
}

.home-codex .motion-chart-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1cqw;
    padding-top: 0.8cqw;
    border-top: 1px solid #ececea;
    color: #73736d;
    font-size: 0.86em;
    white-space: nowrap;
}

.home-codex .motion-chart-summary strong,
.home-codex .motion-chart-summary i {
    color: var(--home-red);
}

/* Modular workflow demo */

.home-codex .motion-suite-body {
    height: 90.6%;
    padding: 1.9cqw 2.4cqw 2.4cqw;
}

.home-codex .motion-stepper {
    height: 12%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75cqw;
    color: #777771;
    font-size: 0.86em;
}

.home-codex .motion-stepper > span {
    display: flex;
    align-items: center;
    gap: 0.55cqw;
    white-space: nowrap;
}

.home-codex .motion-stepper b {
    width: 2cqw;
    height: 2cqw;
    min-width: 13px;
    min-height: 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
    background: var(--home-red);
    font-size: 0.82em;
}

.home-codex .motion-stepper > i {
    width: 5cqw;
    height: 1px;
    background: #d6d6d1;
}

.home-codex .motion-suite-layout {
    height: 88%;
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.45fr);
    gap: 2.1cqw;
    padding-top: 1.25cqw;
}

.home-codex .motion-module-panel,
.home-codex .motion-result-panel {
    display: flex;
    flex-direction: column;
}

.home-codex .motion-module-card {
    padding: 1.05cqw;
    border: 1px solid #e7bdb9;
    border-radius: 0.9cqw;
    background: #fff7f5;
}

.home-codex .motion-module-check {
    margin-left: auto;
    color: var(--home-red);
}

.home-codex .motion-upload-row {
    margin-top: 1cqw;
}

.home-codex .motion-suite-progress {
    margin-top: auto;
    margin-bottom: 0;
}

.home-codex .motion-result-panel {
    padding-bottom: 1.2cqw;
}

.home-codex .motion-result-grid {
    min-height: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1cqw;
    flex: 1;
    margin: 1cqw 0;
}

.home-codex .motion-mini-chart {
    min-height: 0;
    display: flex;
    flex-direction: column;
    padding: 0.8cqw;
    border: 1px solid #ecece8;
    border-radius: 0.75cqw;
    color: #72726c;
    background: #fafaf8;
    font-size: 0.82em;
}

.home-codex .motion-bars {
    min-height: 0;
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    gap: 0.5cqw;
    flex: 1;
    padding-top: 0.6cqw;
}

.home-codex .motion-bars i {
    width: 12%;
    height: 36%;
    border-radius: 0.35cqw 0.35cqw 0 0;
    background: #d94a43;
    animation: homeMotionBars 12s ease-in-out infinite;
    transform-origin: bottom;
}

.home-codex .motion-bars i:nth-child(2) { height: 72%; animation-delay: 100ms; background: #e7837e; }
.home-codex .motion-bars i:nth-child(3) { height: 51%; animation-delay: 200ms; background: #5f8aa9; }
.home-codex .motion-bars i:nth-child(4) { height: 84%; animation-delay: 300ms; background: #8cafc3; }
.home-codex .motion-bars i:nth-child(5) { height: 63%; animation-delay: 400ms; background: #d94a43; }

.home-codex .motion-heatmap {
    min-height: 0;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.25cqw;
    flex: 1;
    padding-top: 0.6cqw;
}

.home-codex .motion-heatmap i {
    border-radius: 0.18cqw;
    background: #f1bab6;
}

.home-codex .motion-heatmap i:nth-child(3n) { background: #6f99b5; }
.home-codex .motion-heatmap i:nth-child(4n) { background: #e16a64; }
.home-codex .motion-heatmap i:nth-child(5n) { background: #d7e4eb; }

.home-codex .motion-export-row {
    padding: 0.75cqw 0.9cqw;
    border: 1px solid #e0e0dc;
    border-radius: 0.75cqw;
    background: #fafaf8;
}

.home-codex .motion-export-row .motion-download {
    margin-left: auto;
}

/* One calm 12-second loop: task → processing → result. */

.home-codex .motion-phase-1 { animation: homeMotionPhase1 12s ease-in-out infinite; }
.home-codex .motion-phase-2 { animation: homeMotionPhase2 12s ease-in-out infinite; }
.home-codex .motion-phase-3 { animation: homeMotionPhase3 12s ease-in-out infinite; }
.home-codex .motion-phase-4 { animation: homeMotionPhase4 12s ease-in-out infinite; }

.home-codex .mode-motion.is-paused *,
.home-codex .mode-motion.is-paused *::before,
.home-codex .mode-motion.is-paused *::after {
    animation-play-state: paused !important;
}

@keyframes homeMotionPhase1 {
    0%, 4%, 96%, 100% { opacity: 0.28; transform: translateY(0.5cqw); }
    12%, 90% { opacity: 1; transform: none; }
}

@keyframes homeMotionPhase2 {
    0%, 19%, 96%, 100% { opacity: 0.24; transform: translateY(0.5cqw); }
    27%, 90% { opacity: 1; transform: none; }
}

@keyframes homeMotionPhase3 {
    0%, 36%, 96%, 100% { opacity: 0.18; transform: translateY(0.5cqw); }
    45%, 90% { opacity: 1; transform: none; }
}

@keyframes homeMotionPhase4 {
    0%, 57%, 96%, 100% { opacity: 0; transform: translateY(0.7cqw); }
    66%, 90% { opacity: 1; transform: none; }
}

@keyframes homeMotionProgress {
    0%, 5% { transform: scaleX(0.04); }
    25% { transform: scaleX(0.32); }
    48% { transform: scaleX(0.66); }
    68%, 92% { transform: scaleX(1); }
    100% { transform: scaleX(0.04); }
}

@keyframes homeMotionLine {
    0%, 24%, 100% { opacity: 0.35; transform: scaleX(0.2); transform-origin: left; }
    48%, 90% { opacity: 1; transform: scaleX(1); transform-origin: left; }
}

@keyframes homeMotionBars {
    0%, 40%, 100% { transform: scaleY(0.12); }
    55%, 92% { transform: scaleY(1); }
}

/* Tools, examples, records and supporting sections */

.home-codex .tools-section,
.home-codex .showcase-section,
.home-codex .record-section,
.home-codex .features-section,
.home-codex .guide-section,
.home-codex .research-services-section,
.home-codex .cta-section {
    padding: clamp(4.5rem, 8vw, 7rem) 0;
    border-top: 1px solid var(--home-line);
    background: #fff;
}

.home-codex .showcase-section,
.home-codex .guide-section,
.home-codex .record-section {
    background: var(--home-soft);
}

.home-codex .tools-category-card {
    border: 1px solid var(--home-line);
    border-radius: 13px;
    background: #fff;
    box-shadow: none;
}

.home-codex .tools-category-card:hover,
.home-codex .showcase-card:hover,
.home-codex .feature-card:hover,
.home-codex .guide-card:hover {
    border-color: var(--home-line-strong);
    box-shadow: none;
    transform: none;
}

.home-codex .cat-icon {
    border: 0 !important;
    color: #fff !important;
    box-shadow: none;
}

.home-codex .feature-icon {
    border: 0 !important;
    color: #fff !important;
    background: var(--home-gradient) !important;
    box-shadow: none;
}

.home-codex .guide-icon {
    border: 0 !important;
    color: #667eea !important;
    background: rgba(102, 126, 234, 0.1) !important;
    box-shadow: none;
}

.home-codex .tools-category-card h3,
.home-codex .feature-card h4,
.home-codex .guide-card h4,
.home-codex .showcase-body h4 {
    color: var(--home-ink);
    font-weight: 590;
}

.home-codex .tools-category-card p,
.home-codex .feature-card p,
.home-codex .guide-card p,
.home-codex .showcase-body p {
    color: var(--home-muted);
}

.home-codex .cat-badge-new {
    border: 1px solid #cde8df;
    color: #087d61;
    background: #eef8f5;
}

.home-codex .showcase-card {
    overflow: hidden;
    border: 1px solid var(--home-line);
    border-radius: 13px;
    background: #fff;
    box-shadow: none;
}

.home-codex .showcase-media img {
    transition: opacity 160ms ease;
}

.home-codex .showcase-card:hover .showcase-media img {
    opacity: 0.8;
    transform: none;
}

.home-codex .showcase-overlay {
    color: #fff;
    background: rgba(13, 13, 13, 0.92);
}

.home-codex .showcase-overlay .btn {
    border-color: #fff;
    color: var(--home-ink);
    background: #fff;
}

.home-codex .record-mock {
    border: 1px solid var(--home-line);
    border-radius: 13px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.07);
}

.home-codex .record-mock-header {
    color: var(--home-text);
    background: var(--home-soft);
    border-bottom-color: var(--home-line);
}

.home-codex .feature-card,
.home-codex .guide-card {
    border: 1px solid var(--home-line);
    border-radius: 13px;
    background: #fff;
}

.home-codex .guide-number {
    width: 34px;
    height: 34px;
    top: -17px;
    border: 4px solid var(--home-soft);
    border-radius: 9px;
    color: #fff;
    background: var(--home-ink);
    box-shadow: none;
    font-size: 0.82rem;
}

.home-codex .research-services-section {
    padding-top: clamp(4.5rem, 8vw, 7rem);
}

.home-codex .research-services-card {
    border: 1px solid var(--home-line);
    border-radius: 16px;
    background: var(--home-soft);
    box-shadow: none;
}

.home-codex .research-services-card::after,
.home-codex .cta-card::before {
    display: none;
}

.home-codex .research-services-contact {
    border: 1px solid #222;
    border-radius: 13px;
    color: #fff;
    background: var(--home-ink);
    box-shadow: none;
}

.home-codex .research-services-contact-label,
.home-codex .research-services-note {
    color: #c7c7c1;
}

.home-codex .research-services-contact-icon {
    color: #ff817a;
    background: rgba(213, 65, 58, 0.16);
}

.home-codex .research-services-phone:hover {
    color: #fff;
}

.home-codex .cta-section {
    padding-top: 0;
}

.home-codex .cta-card {
    padding: clamp(2.5rem, 6vw, 4.5rem);
    border: 1px solid #222;
    border-radius: 16px;
    color: #fff;
    background: var(--home-ink);
    box-shadow: none;
}

.home-codex .cta-card h2 {
    color: #fff;
}

.home-codex .cta-card p {
    color: #b8b8b2;
}

.home-codex .cta-actions .btn-light {
    border-color: #fff;
    color: var(--home-ink) !important;
    background: #fff !important;
}

.home-codex .cta-actions .btn-light:hover {
    border-color: #e7e7e3;
    color: var(--home-ink) !important;
    background: #e7e7e3 !important;
}

.home-codex .cap-pill {
    border-color: var(--home-line);
    color: var(--home-muted);
    background: #fff;
}

.home-codex .cap-pill:hover,
.home-codex .cap-pill-new,
.home-codex .cap-pill-new:hover {
    border-color: var(--home-line-strong);
    color: var(--home-ink);
    background: var(--home-soft);
    transform: none;
}

/* Footer */

.home-codex .app-footer {
    margin-top: 0;
    padding: 3.5rem 0;
    border-top: 1px solid var(--home-line);
    color: var(--home-muted);
    background: var(--home-soft);
}

.home-codex .footer-brand-link {
    color: var(--home-ink);
}

.home-codex .footer-brand-link:hover,
.home-codex .footer-links a:hover {
    color: var(--home-ink);
}

/* Progressive entrance motion: applied by JavaScript only after the page exists. */

.home-codex .home-rise {
    opacity: 0 !important;
    transform: translateY(18px) !important;
    transition:
        opacity 620ms cubic-bezier(0.22, 1, 0.36, 1),
        transform 620ms cubic-bezier(0.22, 1, 0.36, 1) !important;
    transition-delay: var(--home-rise-delay, 0ms) !important;
}

.home-codex .home-rise.is-visible {
    opacity: 1 !important;
    transform: none !important;
}

@media (max-width: 1099.98px) {
    .home-codex .home-hero {
        min-height: 0;
    }

    .home-codex .hero-visual {
        height: 430px;
        margin-top: 3rem;
    }

    .home-codex .mode-showcase-inner {
        grid-template-columns: 1fr;
        gap: 1.75rem;
    }

    .home-codex .mode-stage {
        order: 1;
    }

    .home-codex .mode-copy {
        max-width: 42rem;
        order: 0;
    }
}

@media (max-width: 767.98px) {
    .home-codex .home-hero .container,
    .home-codex .mode-showcase-inner {
        width: min(100%, calc(100% - 1.5rem));
    }

    .home-codex .home-hero {
        padding-top: 4rem;
    }

    .home-codex .hero-title {
        font-size: clamp(2rem, 8.6vw, 2.25rem);
        letter-spacing: -0.045em;
    }

    .home-codex .mode-chooser {
        width: 100%;
        align-items: stretch;
        flex-direction: column;
    }

    .home-codex .mode-chooser a {
        width: 100%;
    }

    .home-codex .hero-visual {
        height: 390px;
        border-radius: 14px;
    }

    .home-codex .floating-card.card-1 {
        right: 18px;
        width: calc(100% - 36px);
    }

    .home-codex .floating-card.card-2 {
        left: 18px;
        width: 66%;
    }

    .home-codex .floating-card.card-3 {
        right: 14px;
        bottom: 18px;
    }

    .home-codex .mode-stage-frame {
        border-radius: 10px;
    }

    .home-codex .mode-motion-frame {
        aspect-ratio: 4 / 3;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-codex .home-rise,
    .home-codex .home-rise.is-visible {
        opacity: 1 !important;
        transform: none !important;
    }

    .home-codex *,
    .home-codex *::before,
    .home-codex *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Homepage color and reading-rhythm refresh: sea glass, blue, and warm accents. */
.home-codex .app-main { background: #fbfdfd; }
.home-codex .app-navbar {
    border-bottom-color: #dce9e8;
    background: rgba(250, 253, 253, 0.95);
}
.home-codex .app-navbar .nav-link { color: #526b77 !important; }
.home-codex .app-navbar .nav-link:hover,
.home-codex .app-navbar .nav-link.active {
    color: var(--home-primary-deep) !important;
    background: #e8f4f1;
}
.home-codex .app-navbar .btn-primary {
    border-color: var(--home-primary);
    background: var(--home-primary);
}
.home-codex .app-navbar .btn-outline-primary {
    border-color: #abcdd0;
    color: var(--home-primary-deep);
    background: #fff;
}
.home-codex .app-navbar .btn-primary:hover { background: var(--home-primary-deep); }

.home-codex .home-hero {
    background:
        radial-gradient(640px 380px at 4% 8%, rgba(89, 190, 169, 0.17), transparent 72%),
        radial-gradient(680px 450px at 95% 88%, rgba(100, 151, 211, 0.12), transparent 74%),
        linear-gradient(125deg, #f8fcfa 0%, #f7fbfd 58%, #fff 100%) !important;
}
.home-codex .hero-badge,
.home-codex .section-badge,
.home-codex .research-services-badge {
    border-color: #cbe4df;
    color: #1b716d;
    background: #eaf7f3;
}
.home-codex .hero-badge i,
.home-codex .section-badge i,
.home-codex .research-services-badge i,
.home-codex .floating-card.card-3 > i,
.home-codex .cap-pill i { color: var(--home-green); }
.home-codex .hero-title { line-height: 1.1; text-wrap: balance; }
.home-codex .hero-title .text-gradient {
    background: linear-gradient(100deg, #0f756f 3%, #32649d 96%);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}
.home-codex .hero-description { color: #536d7c; }
.home-codex .home-hero .btn-primary,
.home-codex .home-hero .btn-primary:hover {
    border-color: var(--home-primary);
    background: var(--home-primary) !important;
    color: #fff !important;
}
.home-codex .home-hero .btn-primary:hover {
    border-color: var(--home-primary-deep);
    background: var(--home-primary-deep) !important;
}
.home-codex .home-hero .btn-outline-primary {
    border-color: #a8c9cd;
    color: var(--home-primary-deep) !important;
    background: rgba(255, 255, 255, 0.84) !important;
}
.home-codex .home-hero .btn-outline-primary:hover {
    border-color: var(--home-primary);
    color: var(--home-primary-deep) !important;
    background: #e9f7f3 !important;
}
.home-codex .hero-visual {
    border-color: #c9e0e4;
    background:
        linear-gradient(#dcebed 1px, transparent 1px),
        linear-gradient(90deg, #dcebed 1px, transparent 1px),
        linear-gradient(135deg, #f6fcfb, #edf5fb);
    background-size: 32px 32px, 32px 32px, auto;
    box-shadow: 0 28px 64px rgba(26, 86, 108, 0.12);
}
.home-codex .floating-card { box-shadow: 0 12px 34px rgba(30, 76, 96, 0.12); }
.home-codex .record-mini i,
.home-codex .floating-card.card-2 .card-header-mini i { color: var(--home-blue) !important; }

.home-codex .section-header h2,
.home-codex .record-title,
.home-codex .cta-card h2 {
    text-wrap: balance;
    line-height: 1.18;
}
.home-codex .section-header h2 { max-width: 22ch; margin-inline: auto; }
.home-codex .section-header p { max-width: 58ch; margin-inline: auto; line-height: 1.7; }
.home-codex .modes-section { background: #f8fbfc; }
.home-codex .mode-chooser {
    border-color: #d4e5e6;
    background: #fff;
    box-shadow: 0 8px 24px rgba(23, 77, 94, 0.05);
}
.home-codex .mode-chooser a:hover { background: #ecf7f4; }
.home-codex .mode-showcase.mode-showcase-agentb { background: #edf8f4 !important; }
.home-codex .mode-showcase.mode-showcase-agent { background: #eef5fb !important; }
.home-codex .mode-showcase.mode-showcase-suite { background: #fbf6ee !important; }
.home-codex .mode-showcase-agentb .mode-cta {
    border-color: var(--home-primary);
    background: var(--home-primary) !important;
}
.home-codex .mode-showcase-agent .mode-cta {
    border-color: var(--home-blue);
    background: var(--home-blue) !important;
}
.home-codex .mode-showcase-suite .mode-cta {
    border-color: var(--home-warm);
    background: var(--home-warm) !important;
}
.home-codex .mode-showcase-agentb .mode-cta:hover { background: var(--home-primary-deep) !important; }
.home-codex .mode-showcase-agent .mode-cta:hover { background: #254a7a !important; }
.home-codex .mode-showcase-suite .mode-cta:hover { background: #754920 !important; }
.home-codex .mode-stage-frame,
.home-codex .mode-showcase-suite .mode-stage-frame,
.home-codex .mode-showcase-agent .mode-stage-frame,
.home-codex .mode-showcase-agentb .mode-stage-frame {
    border-color: #c5dce0;
    box-shadow: 0 24px 58px rgba(28, 82, 105, 0.11);
}

.home-codex .tools-section,
.home-codex .features-section { background: #fff; }
.home-codex .showcase-section,
.home-codex .guide-section { background: #f3f8fb; }
.home-codex .record-section { background: #eef8f4; }
.home-codex .tools-category-card,
.home-codex .showcase-card,
.home-codex .feature-card,
.home-codex .guide-card {
    border-color: #d8e5e7;
    border-radius: 16px;
    box-shadow: 0 9px 24px rgba(30, 81, 96, 0.035);
}
.home-codex .tools-category-card:hover,
.home-codex .showcase-card:hover,
.home-codex .feature-card:hover,
.home-codex .guide-card:hover {
    border-color: #a9cdd0;
    box-shadow: 0 16px 36px rgba(30, 81, 96, 0.09);
}
.home-codex .tools-category-card .cat-cta { color: var(--home-primary); }
.home-codex .showcase-overlay { background: rgba(20, 53, 73, 0.94); }
.home-codex .record-mock { box-shadow: 0 22px 48px rgba(22, 85, 89, 0.1); }
.home-codex .record-mock-header { background: #f4fbf9; }
.home-codex .features-section .row > div:nth-child(1) .feature-icon { color: #187a75 !important; background: #e4f5f0 !important; }
.home-codex .features-section .row > div:nth-child(2) .feature-icon { color: #3564a0 !important; background: #e8f0fb !important; }
.home-codex .features-section .row > div:nth-child(3) .feature-icon { color: #6962a7 !important; background: #f0edfb !important; }
.home-codex .features-section .row > div:nth-child(4) .feature-icon { color: #a86c2d !important; background: #fbf1e4 !important; }
.home-codex .guide-section .row > div:nth-child(1) .guide-number { background: var(--home-primary); }
.home-codex .guide-section .row > div:nth-child(2) .guide-number { background: var(--home-blue); }
.home-codex .guide-section .row > div:nth-child(3) .guide-number { background: var(--home-warm); }
.home-codex .guide-icon { color: var(--home-blue) !important; background: #e7f0f8 !important; }

.home-codex .research-services-section { background: linear-gradient(180deg, #fff 0%, #f4faf9 100%); }
.home-codex .research-services-card {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.37fr);
    gap: clamp(1.75rem, 3.5vw, 3.25rem);
    padding: clamp(2rem, 4vw, 3.5rem);
    border-color: #c9e3e0;
    border-radius: 22px;
    background:
        radial-gradient(620px 340px at 0% 0%, rgba(72, 175, 157, 0.15), transparent 72%),
        linear-gradient(120deg, #f1faf7 0%, #f7fbfc 65%, #eef6fb 100%);
    box-shadow: 0 20px 54px rgba(23, 91, 99, 0.08);
}
.home-codex .research-services-copy h2 {
    max-width: 18ch;
    margin-bottom: 0.8rem;
    color: #16485b;
    font-size: clamp(2rem, 3vw, 2.85rem);
    font-weight: 680;
    line-height: 1.18;
    text-wrap: balance;
}
.home-codex .research-services-copy p {
    max-width: 58ch;
    color: #506d79;
    font-size: 1rem;
    line-height: 1.75;
}
.home-codex .research-services-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.6rem;
    margin: 1.45rem 0 0;
    padding: 0;
    list-style: none;
}
.home-codex .research-services-list li {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    min-height: 43px;
    padding: 0.65rem 0.75rem;
    border: 1px solid #d4e8e4;
    border-radius: 10px;
    color: #315b66;
    background: rgba(255, 255, 255, 0.74);
    font-size: 0.82rem;
    font-weight: 550;
    line-height: 1.35;
}
.home-codex .research-services-list li::before {
    content: '';
    width: 6px;
    height: 6px;
    flex: 0 0 6px;
    border-radius: 50%;
    background: #2da090;
}
.home-codex .research-services-contact {
    flex-direction: column;
    align-items: stretch;
    gap: 0.85rem;
    padding: 1.7rem;
    border: 1px solid #1c6973;
    border-radius: 16px;
    background: linear-gradient(145deg, #174d63 0%, #176b71 100%);
    box-shadow: 0 18px 38px rgba(18, 86, 94, 0.16);
}
.home-codex .research-services-contact-icon {
    color: #d9fff4;
    background: rgba(190, 247, 231, 0.16);
}
.home-codex .research-services-contact-label,
.home-codex .research-services-note { color: #d6eee9; }
.home-codex .research-services-contact strong { color: #fff; }
.home-codex .research-services-phone {
    color: #fff;
    font-size: clamp(1.13rem, 1.65vw, 1.35rem);
    letter-spacing: 0;
    white-space: nowrap;
}
.home-codex .research-services-phone:hover { color: #dbfff2; }

.home-codex .cta-section { background: #f4faf9; }
.home-codex .cta-card {
    border-color: #1c6772;
    background:
        radial-gradient(440px 280px at 92% 12%, rgba(116, 189, 214, 0.2), transparent 75%),
        linear-gradient(125deg, #17465e 0%, #176b70 100%);
    box-shadow: 0 25px 55px rgba(18, 82, 96, 0.14);
}
.home-codex .cta-card p { color: #d2e8e6; }
.home-codex .cta-actions .btn-light { color: var(--home-primary-deep) !important; }
.home-codex .app-footer { background: #eff6f6; }

@media (max-width: 1099.98px) {
    .home-codex .research-services-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767.98px) {
    .home-codex .home-hero { padding-top: 3.8rem; }
    .home-codex .hero-title { font-size: clamp(2rem, 8.2vw, 2.3rem); }
    .home-codex .research-services-card { grid-template-columns: 1fr; gap: 1.6rem; padding: 1.6rem; }
    .home-codex .research-services-copy h2 { max-width: 100%; font-size: clamp(1.82rem, 7.5vw, 2.2rem); }
    .home-codex .research-services-contact { padding: 1.35rem; }
    .home-codex .cta-card { padding: 2.3rem 1.6rem; }
}

@media (max-width: 359.98px) {
    .home-codex .research-services-list { grid-template-columns: 1fr; }
}

@media (min-width: 768px) {
    html[lang="en-US"] .home-codex .research-services-copy h2 { max-width: 26ch; }
}
