.page-home,
.page-services,
.page-products {
    --poster-cyan: #72e6ff;
    --poster-violet: #7365ff;
    --poster-rose: #ff7bb8;
    --poster-panel: linear-gradient(180deg, rgba(12, 18, 33, 0.82), rgba(7, 11, 22, 0.94));
    --poster-border: rgba(255, 255, 255, 0.08);
    --poster-glow: 0 24px 80px rgba(0, 0, 0, 0.38);
}

.page-home #platform-hub,
.page-home #product-demo,
.page-home #product-explorer,
.page-home #results,
.page-home #kaap-exchange,
.page-home .cta-section--multi,
.page-services .spotlight,
.page-services .service-card--poster,
.page-products .spotlight,
.page-products .service-card--poster {
    --text: #e7edf5;
    --text-bright: #f4f8ff;
    --text-secondary: rgba(215, 225, 239, 0.82);
    --text-muted: rgba(153, 173, 198, 0.78);
}

.page-home .hero,
.page-services .page-hero,
.page-products .page-hero {
    overflow: hidden;
}

.page-home .hero {
    min-height: calc(100svh - 40px);
    padding-top: calc(var(--nav-height) + 1.75rem);
    background:
        radial-gradient(circle at 14% 16%, rgba(114, 230, 255, 0.18), transparent 26%),
        radial-gradient(circle at 82% 22%, rgba(255, 123, 184, 0.16), transparent 22%),
        radial-gradient(circle at 58% 80%, rgba(201, 168, 76, 0.16), transparent 30%);
}

.page-home .hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
    gap: clamp(1.5rem, 3vw, 2.5rem);
    align-items: center;
}

.page-home .hero__content {
    max-width: 680px;
}

.page-home .hero__poster-label,
.page-services .page-hero__eyebrow,
.page-products .page-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    margin-bottom: 0.9rem;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--poster-cyan);
}

.page-home .hero__poster-label::before,
.page-services .page-hero__eyebrow::before,
.page-products .page-hero__eyebrow::before {
    content: '';
    width: 28px;
    height: 1px;
    background: currentColor;
    opacity: 0.7;
}

.page-home .hero__title {
    max-width: 11ch;
    font-size: clamp(3.6rem, 8vw, 6.3rem);
    line-height: 0.92;
    letter-spacing: -0.045em;
    text-wrap: balance;
}

.page-home .hero__description {
    max-width: 33rem;
}

.page-home .hero__description p {
    color: var(--text-secondary);
    line-height: 1.8;
}

.page-home .hero__sub {
    margin-top: 1rem;
    font-family: var(--font-display);
    font-size: 1.05rem;
    color: var(--accent);
    opacity: 0.96;
}

.page-home .hero__entrypoints {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.8rem;
    margin-top: 1.25rem;
    max-width: 56rem;
}

.page-home .hero__entrypoint {
    display: grid;
    gap: 0.3rem;
    padding: 0.9rem 1rem;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(7, 12, 24, 0.62);
    text-decoration: none;
    transition: transform 0.28s var(--ease-out), border-color 0.28s var(--ease-out), background 0.28s var(--ease-out);
}

.page-home .hero__entrypoint:hover {
    transform: translateY(-3px);
    border-color: rgba(114, 230, 255, 0.28);
    background: rgba(11, 18, 34, 0.88);
}

.page-home .hero__entrypoint strong {
    color: #f1f5f9;
    font-size: 0.92rem;
    font-weight: 600;
}

.page-home .hero__entrypoint span {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.78rem;
    line-height: 1.5;
}

.page-home .hero__poster {
    position: relative;
    display: grid;
    gap: 1rem;
}

.page-home .hero__lab-stage {
    position: relative;
    padding: 1rem;
    border-radius: 32px;
    border: 1px solid rgba(114, 230, 255, 0.16);
    background:
        radial-gradient(circle at 18% 16%, rgba(114, 230, 255, 0.15), transparent 26%),
        radial-gradient(circle at 84% 18%, rgba(255, 123, 184, 0.12), transparent 22%),
        linear-gradient(160deg, rgba(8, 12, 24, 0.96), rgba(4, 7, 15, 0.98));
    box-shadow: 0 32px 90px rgba(0, 0, 0, 0.42);
    overflow: hidden;
    isolation: isolate;
    transform: perspective(1400px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
    transform-style: preserve-3d;
    transition: transform 0.24s var(--ease-out), border-color 0.24s var(--ease-out), box-shadow 0.24s var(--ease-out);
}

.page-home .hero__lab-stage::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.75), transparent 88%);
    pointer-events: none;
    opacity: 0.4;
}

.page-home .hero__lab-stage:hover {
    border-color: rgba(114, 230, 255, 0.24);
    box-shadow: 0 40px 110px rgba(0, 0, 0, 0.5);
}

.page-home .hero__lab-glow {
    position: absolute;
    border-radius: 999px;
    filter: blur(40px);
    opacity: 0.6;
    pointer-events: none;
}

.page-home .hero__lab-glow--cyan {
    top: -30px;
    left: -10px;
    width: 180px;
    height: 180px;
    background: rgba(114, 230, 255, 0.3);
}

.page-home .hero__lab-glow--rose {
    right: -50px;
    bottom: 30px;
    width: 220px;
    height: 220px;
    background: rgba(255, 123, 184, 0.18);
}

.page-home .hero__lab-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    border: 1px solid rgba(114, 230, 255, 0.18);
    background: rgba(4, 10, 18, 0.78);
    color: var(--poster-cyan);
    font-family: var(--font-mono);
    font-size: 0.64rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.page-home .hero__poster-art,
.page-services .spotlight__poster,
.page-products .spotlight__poster {
    position: relative;
    overflow: hidden;
    margin: 0;
    border-radius: 30px;
    border: 1px solid var(--poster-border);
    background: var(--poster-panel);
    box-shadow: var(--poster-glow);
}

.page-home .hero__poster-art::before,
.page-services .spotlight__poster::before,
.page-products .spotlight__poster::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.08), transparent 30%, transparent 70%, rgba(114,230,255,0.08));
    pointer-events: none;
}

.page-home .hero__poster-art img,
.page-services .spotlight__poster img,
.page-products .spotlight__poster img {
    width: 100%;
    display: block;
}

.page-home .hero__poster-art {
    aspect-ratio: 16 / 10;
}

.page-home .hero__poster-art .hero__poster-screen {
    position: relative;
    z-index: 2;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.page-home .hero__poster-art img:last-child {
    display: none;
}

.page-home .hero__poster-floating {
    position: absolute;
    z-index: 3;
    display: grid;
    gap: 0.28rem;
    max-width: 240px;
    padding: 0.95rem 1rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(5, 10, 20, 0.84);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.page-home .hero__poster-floating--north {
    top: 4.5rem;
    right: 1rem;
}

.page-home .hero__poster-floating--south {
    left: 1rem;
    bottom: 1rem;
    max-width: 280px;
    grid-template-columns: 52px minmax(0, 1fr);
    align-items: center;
    gap: 0.8rem;
}

.page-home .hero__poster-floating span {
    font-family: var(--font-mono);
    font-size: 0.62rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--poster-cyan);
}

.page-home .hero__poster-floating strong {
    color: var(--text-bright);
    font-size: 0.95rem;
    line-height: 1.35;
}

.page-home .hero__poster-floating small {
    color: var(--text-secondary);
    font-size: 0.72rem;
    line-height: 1.55;
}

.page-home .hero__poster-floating--south img {
    width: 52px;
    height: 52px;
    object-fit: contain;
}

.page-home .hero__poster-meta {
    border-radius: 24px;
    border: 1px solid rgba(201, 168, 76, 0.12);
    background: rgba(6, 10, 18, 0.84);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.24);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    padding: 1.25rem;
}

.page-home .hero__poster-header {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: baseline;
    margin-bottom: 0.95rem;
}

.page-home .hero__poster-kicker {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--accent);
}

.page-home .hero__poster-header strong {
    font-family: var(--font-display);
    font-size: 1.1rem;
    color: #ffffff;
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.4);
}

.page-home .hero__poster-stack {
    display: grid;
    gap: 0.7rem;
}

.page-home .hero__poster-item {
    display: grid;
    gap: 0.25rem;
    padding: 0.85rem 1rem;
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,0.06);
    background: linear-gradient(90deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
    text-decoration: none;
    transition: transform 0.28s var(--ease-out), border-color 0.28s var(--ease-out), background 0.28s var(--ease-out);
}

.page-home .hero__poster-item:hover {
    transform: translateX(4px);
    border-color: rgba(114, 230, 255, 0.22);
    background: linear-gradient(90deg, rgba(114,230,255,0.08), rgba(255,255,255,0.02));
}

.page-home .hero__poster-item span {
    font-family: var(--font-mono);
    font-size: 0.64rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(231, 237, 245, 0.78);
}

.page-home .hero__poster-item strong {
    font-size: 1rem;
    color: #ffffff;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.35);
    line-height: 1.35;
}

.page-home .platform-card--accent {
    border-color: rgba(114, 230, 255, 0.22);
    background:
        radial-gradient(circle at top right, rgba(114, 230, 255, 0.12), transparent 42%),
        linear-gradient(180deg, rgba(14, 26, 44, 0.9), rgba(6, 11, 21, 0.98));
}

.page-home .platform-card--accent .platform-card__icon {
    background: rgba(114, 230, 255, 0.12);
    color: var(--poster-cyan);
}

.page-home .platform-card--accent .platform-card__status,
.page-home .platform-card--accent .platform-card__status--active {
    color: var(--poster-cyan);
}

.page-home .platform-card--accent .platform-card__status-dot {
    background: var(--poster-cyan);
    box-shadow: 0 0 10px rgba(114, 230, 255, 0.45);
}

.page-home .section__label--center {
    justify-content: center;
}

.page-home .section__label--center::before {
    display: none;
}

.page-home #platform-hub .section__title,
.page-home #product-demo .section__title,
.page-home #platform-preview .section__title,
.page-home #kaap-exchange .section__title,
.page-services .page-hero__title,
.page-products .page-hero__title,
.page-about .page-hero__title {
    max-width: 14ch;
    margin-inline: auto;
    font-size: clamp(2.4rem, 5vw, 4.8rem);
    line-height: 0.96;
    letter-spacing: -0.04em;
    text-wrap: balance;
}

.page-services .page-hero,
.page-products .page-hero {
    padding-top: calc(var(--nav-height) + 3.5rem);
    padding-bottom: 2.25rem;
    background:
        radial-gradient(circle at 12% 14%, rgba(114,230,255,0.14), transparent 24%),
        radial-gradient(circle at 86% 10%, rgba(255,123,184,0.11), transparent 18%),
        linear-gradient(180deg, rgba(10, 15, 28, 0.96), rgba(6, 10, 18, 0.98));
}

.page-services .page-hero__subtitle,
.page-products .page-hero__subtitle,
.page-about .page-hero__subtitle {
    max-width: 44rem;
    margin-inline: auto;
    font-size: 1.05rem;
    text-wrap: balance;
}

.page-services .page-hero__richtext,
.page-products .page-hero__richtext {
    max-width: 54rem;
    margin: 0.85rem auto 0;
    color: var(--text-secondary);
}

.page-services .page-hero__richtext p,
.page-products .page-hero__richtext p {
    margin: 0 0 1rem;
    line-height: 1.75;
    color: inherit;
}

.page-services .page-hero__richtext p:last-child,
.page-products .page-hero__richtext p:last-child {
    margin-bottom: 0;
}

.page-services .page-hero__richtext strong,
.page-products .page-hero__richtext strong,
.page-services .page-hero__richtext h2,
.page-products .page-hero__richtext h2,
.page-services .page-hero__richtext h3,
.page-products .page-hero__richtext h3,
.page-services .page-hero__richtext a,
.page-products .page-hero__richtext a {
    color: var(--text-bright);
}

.page-services .page-hero__richtext ul,
.page-products .page-hero__richtext ul,
.page-services .page-hero__richtext ol,
.page-products .page-hero__richtext ol {
    display: inline-block;
    margin: 0.5rem auto 0;
    padding-left: 1.25rem;
    text-align: left;
}

.page-services .page-hero__richtext li,
.page-products .page-hero__richtext li {
    margin-bottom: 0.4rem;
}

:is(.page-services, .page-products, .page-about) .page-hero__actions .btn--outline {
    border-color: rgba(114, 230, 255, 0.24);
    color: var(--text-bright);
}

:is(.page-services, .page-products, .page-about) .page-hero__actions .btn--outline:hover {
    border-color: rgba(114, 230, 255, 0.38);
    color: var(--poster-cyan);
    background: rgba(114, 230, 255, 0.08);
}

:is(.page-services, .page-products, .page-about) .page-hero__signal {
    border-color: rgba(114, 230, 255, 0.16);
    background: rgba(5, 10, 20, 0.64);
    color: var(--text-secondary);
}

:is(.page-services, .page-products, .page-about) .consulting-hero__image-frame {
    border-color: rgba(114, 230, 255, 0.16);
    background:
        radial-gradient(circle at 18% 16%, rgba(114, 230, 255, 0.14), transparent 28%),
        radial-gradient(circle at 86% 18%, rgba(255, 123, 184, 0.12), transparent 24%),
        linear-gradient(180deg, rgba(12, 18, 32, 0.94), rgba(7, 10, 19, 0.98));
}

:is(.page-services, .page-products, .page-about) .consulting-hero__image-note {
    color: var(--text-secondary);
}

.page-services .spotlight,
.page-products .spotlight {
    grid-template-columns: minmax(0, 0.9fr) minmax(340px, 0.95fr);
    align-items: center;
    gap: clamp(1.5rem, 3vw, 2.5rem);
    padding: clamp(1.25rem, 2vw, 1.6rem);
    border-radius: 28px;
    border: 1px solid rgba(255,255,255,0.08);
    background: linear-gradient(180deg, rgba(12, 18, 32, 0.94), rgba(7, 10, 19, 0.98));
    box-shadow: 0 18px 54px rgba(0,0,0,0.24);
}

.page-services .spotlight__content,
.page-products .spotlight__content {
    max-width: 38rem;
}

.page-services .spotlight__title,
.page-products .spotlight__title {
    font-size: clamp(2.4rem, 4vw, 4.1rem);
    line-height: 0.96;
    letter-spacing: -0.04em;
    color: var(--text-bright);
}

.page-services .spotlight__desc,
.page-products .spotlight__desc {
    font-size: 1.04rem;
    line-height: 1.75;
    color: var(--text-secondary);
}

.page-services .spotlight__features,
.page-products .spotlight__features {
    gap: 0.8rem;
}

.page-services .spotlight__feature,
.page-products .spotlight__feature {
    align-items: flex-start;
    color: var(--text);
}

.page-services .spotlight__poster-caption,
.page-products .spotlight__poster-caption {
    position: absolute;
    left: 1.1rem;
    right: 1.1rem;
    bottom: 1.1rem;
    padding: 0.85rem 1rem;
    border-radius: 16px;
    background: rgba(5, 9, 17, 0.82);
    border: 1px solid rgba(255,255,255,0.08);
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.55;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.page-home .platform-hub,
.page-home #kaap-exchange .services-grid,
.page-services .services-grid,
.page-products .services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
    gap: 1.4rem;
}

.page-home .platform-card,
.page-home #kaap-exchange .service-card,
.page-home #industry-use-cases .industry-card,
.page-services .service-card,
.page-products .service-card {
    border-radius: 24px;
    border: 1px solid var(--poster-border);
    background:
        linear-gradient(180deg, rgba(15, 22, 38, 0.82), rgba(8, 11, 21, 0.94)),
        rgba(9, 14, 27, 0.88);
    box-shadow: 0 16px 48px rgba(0,0,0,0.2);
}

.page-home #platform-hub,
.page-home #product-demo,
.page-home #product-explorer,
.page-home #results,
.page-home #industry-use-cases,
.page-home #kaap-exchange,
.page-home .cta-section--multi {
    background:
        radial-gradient(circle at 50% 0%, rgba(114, 230, 255, 0.05), transparent 24%),
        linear-gradient(180deg, rgba(10, 15, 28, 0.96), rgba(6, 10, 18, 0.98));
}

.page-home #platform-hub .container,
.page-home #product-demo .container,
.page-home #product-explorer .container,
.page-home #results .container,
.page-home #industry-use-cases .container,
.page-home #kaap-exchange .container,
.page-home .cta-section--multi .container {
    position: relative;
}

.page-home .platform-card__label,
.page-home .platform-card__status,
.page-home .platform-card__desc,
.page-home #product-demo .demo-step__info p,
.page-home #product-explorer .section__label,
.page-home #industry-use-cases .section__label,
.page-home #results .case-study-card__meta span,
.page-home #results .case-study-card__summary,
.page-home #results .testimonial-card__quote,
.page-home #results .testimonial-card__title,
.page-home #results .client-logo,
.page-home #kaap-exchange .service-card__desc,
.page-home #kaap-exchange .service-card > div:first-of-type,
.page-home .cta-section--multi .cta-section__desc,
.page-home #product-explorer .explorer__tab-desc,
.page-home #product-explorer .explorer__details p,
.page-home #product-explorer .explorer__feature-item,
.page-home #industry-use-cases .industry-card__desc,
.page-home #industry-use-cases .industry-card__list li {
    color: var(--text-secondary);
}

.page-home #platform-hub .section__subtitle,
.page-home #product-demo .section__subtitle,
.page-home #product-explorer .section__subtitle,
.page-home #results .section__label,
.page-home #results .section__title,
.page-home #kaap-exchange .section__subtitle,
.page-home .cta-section--multi .cta-section__title,
.page-home #results .case-study-card__title,
.page-home #results .testimonial-card__name,
.page-home #kaap-exchange .service-card__title,
.page-home #product-demo .demo-step__info h3,
.page-home #industry-use-cases .industry-card__title,
.page-home #product-explorer .explorer__tab-label,
.page-home #product-explorer .explorer__details h3 {
    color: var(--text-bright);
}

.page-home #results .results-tab {
    color: rgba(220, 229, 241, 0.86);
}

.page-home #results .results-tab.is-active {
    color: #09111d;
    background: linear-gradient(135deg, rgba(201, 168, 76, 0.95), rgba(114, 230, 255, 0.9));
}

.page-home #results .proof-link,
.page-home #product-explorer .explorer__feature-icon,
.page-home #industry-use-cases .industry-card__cta,
.page-home #kaap-exchange .service-card__cta {
    color: var(--poster-cyan);
}

.page-home #industry-use-cases .section__label,
.page-home #industry-use-cases .section__title,
.page-home #industry-use-cases .section__subtitle {
    color: #f4f8ff;
}

.page-home #industry-use-cases .industry-card {
    background:
        linear-gradient(180deg, rgba(14, 20, 35, 0.90), rgba(7, 11, 20, 0.98)),
        rgba(9, 14, 27, 0.92);
    border-color: rgba(255,255,255,0.08);
}

.page-home #industry-use-cases .industry-card__label,
.page-home #results .case-study-card__meta span {
    color: rgba(231, 237, 245, 0.82);
}

.page-home #industry-use-cases .industry-card__title,
.page-home #results .case-study-card__title {
    color: #f4f8ff;
}

.page-home #industry-use-cases .industry-card__desc,
.page-home #industry-use-cases .industry-card__list li,
.page-home #results .case-study-card__subtitle,
.page-home #results .case-study-card__summary,
.page-home #results .case-study-card__metrics li {
    color: rgba(227, 236, 246, 0.86);
}

.page-home #results .case-study-card {
    background: linear-gradient(180deg, rgba(255, 250, 242, 0.96), rgba(244, 238, 227, 0.98));
    border: 1px solid rgba(120, 100, 60, 0.14);
    box-shadow: 0 18px 44px rgba(120, 100, 60, 0.12);
}

.page-home #results .case-study-card__meta span {
    background: rgba(176, 140, 46, 0.08);
    border-color: rgba(176, 140, 46, 0.14);
    color: #6b5636;
}

.page-home #results .case-study-card__title {
    color: #1f160f;
}

.page-home #results .case-study-card__subtitle {
    color: #8c6d27;
}

.page-home #results .case-study-card__summary {
    color: #544433;
}

.page-home #results .case-study-card__metrics li {
    color: #3d2f23;
    background: rgba(176, 140, 46, 0.08);
    border-color: rgba(176, 140, 46, 0.12);
}

.page-home #results .proof-link {
    color: #8c6d27;
}

.page-home #product-explorer .explorer__sidebar,
.page-home #product-explorer .explorer__content,
.page-home #product-explorer .explorer__tab,
.page-home #industry-use-cases .industry-card {
    background:
        linear-gradient(180deg, rgba(15, 22, 38, 0.82), rgba(8, 11, 21, 0.94)),
        rgba(9, 14, 27, 0.88);
    border-color: rgba(255,255,255,0.08);
}

.page-home #product-explorer .explorer__tab {
    color: var(--text-bright);
}

.page-home #product-explorer .explorer__tab:hover,
.page-home #product-explorer .explorer__tab.is-active {
    background: linear-gradient(180deg, rgba(24, 34, 58, 0.95), rgba(11, 16, 29, 0.98));
    border-color: rgba(114, 230, 255, 0.22);
}

.page-home #product-explorer .explorer__diagram-node--center {
    color: #0a111d;
}

.page-home .platform-card:hover,
.page-home #kaap-exchange .service-card:hover,
.page-services .service-card:hover,
.page-products .service-card:hover {
    border-color: rgba(114, 230, 255, 0.22);
    box-shadow: 0 22px 64px rgba(0,0,0,0.26);
}

.page-home #product-demo .demo-step__screen,
.page-home #platform-preview .service-card,
.page-home #kaap-exchange .service-card {
    overflow: hidden;
}

.page-home #product-demo .demo-step {
    border-radius: 32px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background:
        linear-gradient(180deg, rgba(14, 20, 35, 0.84), rgba(7, 11, 20, 0.96)),
        rgba(8, 12, 21, 0.9);
    box-shadow: 0 18px 52px rgba(0, 0, 0, 0.22);
    padding: clamp(1rem, 2vw, 1.25rem);
}

.page-home #product-demo .demo-step__screen {
    position: relative;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(3, 6, 12, 0.86);
}

.page-home #product-demo .demo-step__screen::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.04), transparent 30%, transparent 68%, rgba(114, 230, 255, 0.08)),
        linear-gradient(180deg, transparent 60%, rgba(0, 0, 0, 0.22));
    pointer-events: none;
}

.page-home #platform-preview .service-card img,
.page-home #kaap-exchange .service-card img {
    transition: transform 0.5s var(--ease-out);
}

.page-home #platform-preview .service-card:hover img,
.page-home #kaap-exchange .service-card:hover img {
    transform: scale(1.03);
}

.page-home .cta-section--multi {
    background:
        linear-gradient(180deg, rgba(12, 17, 31, 0.6), rgba(8, 11, 19, 0.92)),
        radial-gradient(circle at 50% 20%, rgba(114,230,255,0.08), transparent 28%);
}

.page-home .cta-section--multi .cta-section__title {
    max-width: 16ch;
    margin-inline: auto;
}

.page-home .cta-card {
    background: rgba(255, 255, 255, 0.90);
    border-color: rgba(120, 100, 60, 0.12);
    color: #241b12;
}

.page-home .cta-card:hover {
    color: #241b12;
    border-color: rgba(176, 140, 46, 0.20);
    box-shadow: 0 16px 36px rgba(120, 100, 60, 0.12);
}

.page-home .cta-card--primary {
    background:
        linear-gradient(135deg, rgba(201, 168, 76, 0.16), rgba(201, 168, 76, 0.08)),
        rgba(255, 255, 255, 0.94);
    border-color: rgba(176, 140, 46, 0.22);
}

.page-home .cta-card__icon {
    background: rgba(176, 140, 46, 0.10);
    color: #8c6d27;
}

.page-home .cta-card h3 {
    color: #2a2118;
}

.page-home .cta-card p {
    color: #5a4a38;
}

.page-home .cta-card__arrow {
    border-color: rgba(120, 100, 60, 0.16);
    color: #8c6d27;
}

.page-services .service-card--poster,
.page-products .service-card--poster {
    padding: 0;
    gap: 0;
}

.page-services .service-card__visual,
.page-products .service-card__visual {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    min-height: 210px;
    padding: 1.3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background:
        radial-gradient(circle at 18% 18%, rgba(114, 230, 255, 0.3), transparent 28%),
        radial-gradient(circle at 82% 22%, rgba(255, 123, 184, 0.22), transparent 22%),
        linear-gradient(145deg, rgba(18, 26, 44, 0.96), rgba(7, 11, 19, 0.98));
    overflow: hidden;
}

.page-services .service-card__visual::before,
.page-products .service-card__visual::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 68px 68px;
    mask-image: linear-gradient(180deg, rgba(0,0,0,0.78), transparent 82%);
    opacity: 0.26;
}

.page-services .services-grid > *:nth-child(3n + 2) .service-card__visual,
.page-products .services-grid > *:nth-child(3n + 2) .service-card__visual {
    background:
        radial-gradient(circle at 14% 24%, rgba(255, 123, 184, 0.28), transparent 26%),
        radial-gradient(circle at 76% 20%, rgba(201, 168, 76, 0.22), transparent 24%),
        linear-gradient(145deg, rgba(24, 18, 39, 0.96), rgba(8, 11, 21, 0.98));
}

.page-services .services-grid > *:nth-child(3n) .service-card__visual,
.page-products .services-grid > *:nth-child(3n) .service-card__visual {
    background:
        radial-gradient(circle at 18% 20%, rgba(201, 168, 76, 0.26), transparent 26%),
        radial-gradient(circle at 84% 24%, rgba(114, 230, 255, 0.18), transparent 18%),
        linear-gradient(145deg, rgba(16, 28, 36, 0.96), rgba(6, 10, 18, 0.98));
}

.page-services .service-card__visual::after,
.page-products .service-card__visual::after {
    content: '';
    position: absolute;
    inset: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    pointer-events: none;
}

.page-services .service-card__visual-meta,
.page-products .service-card__visual-meta {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 0.55rem;
    max-width: 72%;
}

.page-services .service-card__visual-label,
.page-products .service-card__visual-label {
    font-family: var(--font-mono);
    font-size: 0.64rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(231, 237, 245, 0.7);
}

.page-services .service-card__visual-meta strong,
.page-products .service-card__visual-meta strong {
    font-family: var(--font-display);
    font-size: clamp(1.4rem, 2vw, 1.9rem);
    line-height: 0.98;
    letter-spacing: -0.03em;
    color: var(--text-bright);
    text-wrap: balance;
}

.page-services .service-card__visual-icon,
.page-products .service-card__visual-icon {
    position: relative;
    z-index: 1;
    width: 72px;
    height: 72px;
    padding: 1rem;
    border-radius: 20px;
    color: rgba(255, 255, 255, 0.92);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04));
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.page-services .service-card__visual-icon svg,
.page-products .service-card__visual-icon svg {
    width: 100%;
    height: 100%;
}

.page-services .service-card__content,
.page-products .service-card__content {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 0.8rem;
    padding: 1.35rem 1.35rem 1.45rem;
}

.page-services .service-card__title,
.page-products .service-card__title {
    margin-bottom: 0;
    font-size: 1.32rem;
}

.page-services .service-card__tagline,
.page-products .service-card__tagline {
    margin-top: -0.15rem;
}

.page-services .service-card__desc,
.page-products .service-card__desc {
    flex: 1;
}

.page-services .service-card__meta,
.page-products .service-card__meta {
    margin-top: 0;
}

/* ── Service card images (top of card) ── */
.service-card--has-image {
    padding: 0;
    gap: 0;
}

.service-card__image {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.service-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s var(--ease), filter 0.5s var(--ease);
}

.service-card--has-image:hover .service-card__image img {
    transform: scale(1.04);
    filter: brightness(1.08);
}

.service-card__image::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 20%, rgba(114, 230, 255, 0.12), transparent 40%),
        linear-gradient(to bottom, transparent 40%, rgba(10, 15, 28, 0.7));
    pointer-events: none;
}

.service-card--has-image .service-card__content {
    padding: 1.35rem 1.35rem 1.45rem;
}

/* ── Product card visual with image background ── */
.service-card__visual--has-img {
    background-size: cover !important;
    background-position: center !important;
}

.service-card__visual--has-img::before {
    background:
        linear-gradient(to bottom, rgba(10, 15, 28, 0.4), rgba(10, 15, 28, 0.78)),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px) !important;
    background-size: auto, 68px 68px, 68px 68px !important;
    mask-image: none !important;
    opacity: 1 !important;
}

.page-home .hero__poster-art,
.page-services .spotlight__poster,
.page-products .spotlight__poster {
    animation: posterFloat 11s ease-in-out infinite;
}

@keyframes posterFloat {
    0%,
    100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

@media (max-width: 1100px) {
    .page-home .hero__grid,
    .page-services .spotlight,
    .page-products .spotlight {
        grid-template-columns: 1fr;
    }

    .page-home .hero__poster,
    .page-services .spotlight__visual,
    .page-products .spotlight__visual {
        max-width: 720px;
        width: 100%;
        margin: 0 auto;
    }

    .page-home .hero__title,
    .page-services .page-hero__title,
    .page-products .page-hero__title {
        max-width: none;
    }

    .page-home .hero__entrypoints {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .page-home .hero__title {
        font-size: clamp(2.8rem, 13vw, 4.3rem);
    }

    .page-home .hero__lab-stage {
        padding: 0.85rem;
    }

    .page-home .hero__lab-badge {
        position: static;
        margin-bottom: 0.75rem;
        justify-self: start;
    }

    .page-home .hero__poster-floating {
        position: static;
        max-width: none;
    }

    .page-home .hero__poster-floating--north,
    .page-home .hero__poster-floating--south {
        grid-template-columns: 1fr;
        margin-top: 0.85rem;
    }

    .page-home .hero__poster-floating--south img {
        width: 44px;
        height: 44px;
    }

    .page-home .hero__poster-meta {
        padding: 1rem;
    }

    .page-home .hero__poster-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .service-card__image {
        aspect-ratio: 16 / 9;
    }

    .page-services .service-card__visual,
    .page-products .service-card__visual {
        min-height: 180px;
    }

    .page-services .service-card__visual-meta,
    .page-products .service-card__visual-meta {
        max-width: none;
    }

    .page-services .spotlight__poster-caption,
    .page-products .spotlight__poster-caption {
        position: static;
        margin: 0.9rem;
    }
}

.page-kaap,
.page-corpusai,
.page-about {
    --poster-cyan: #72e6ff;
    --poster-violet: #7365ff;
    --poster-rose: #ff7bb8;
    --poster-panel: linear-gradient(180deg, rgba(12, 18, 33, 0.82), rgba(7, 11, 22, 0.94));
    --poster-border: rgba(255, 255, 255, 0.08);
    --poster-glow: 0 24px 80px rgba(0, 0, 0, 0.38);
    --text: #e7edf5;
    --text-bright: #f4f8ff;
    --text-secondary: rgba(215, 225, 239, 0.82);
    --text-muted: rgba(153, 173, 198, 0.78);
}

.page-corpusai {
    --bnl-gold: var(--accent);
    --bnl-gold-hover: var(--accent-bright);
    --bnl-text: var(--text-bright);
    --bnl-text-secondary: var(--text-secondary);
    --bnl-text-muted: var(--text-muted);
    --bnl-border: rgba(255, 255, 255, 0.08);
}

.page-kaap .kaap-hero,
.page-kaap .corpus-type,
.page-kaap .demo-corpus,
.page-kaap .cta-section,
.page-corpusai .page-hero,
.page-corpusai .stats-bar,
.page-corpusai .service-card,
.page-corpusai .feature-showcase,
.page-corpusai .pricing-tier,
.page-corpusai .model-table,
.page-about .page-hero,
.page-about .about-sidebar__box,
.page-about .team-card,
.page-about .location-card,
.page-about .stats-bar {
    --text: #e7edf5;
    --text-bright: #f4f8ff;
    --text-secondary: rgba(215, 225, 239, 0.82);
    --text-muted: rgba(153, 173, 198, 0.78);
}

.page-kaap .kaap-hero,
.page-corpusai .page-hero,
.page-about .page-hero {
    overflow: hidden;
}

.page-kaap .kaap-hero {
    padding-top: calc(var(--nav-height) + 2.2rem);
    padding-bottom: 4rem;
    background:
        radial-gradient(circle at 18% 12%, rgba(114, 230, 255, 0.14), transparent 24%),
        radial-gradient(circle at 86% 14%, rgba(255, 123, 184, 0.14), transparent 22%),
        linear-gradient(180deg, rgba(10, 15, 28, 0.96), rgba(6, 10, 18, 0.98));
}

.page-kaap .kaap-hero__grid,
.page-corpusai .corpusai-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
    gap: clamp(1.5rem, 3vw, 2.5rem);
    align-items: center;
}

.page-kaap .kaap-hero__content,
.page-corpusai .corpusai-hero__content {
    max-width: 42rem;
}

.page-kaap .kaap-hero__actions,
.page-corpusai .corpusai-hero__actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.page-kaap .kaap-hero__title,
.page-corpusai .page-hero__title,
.page-about .page-hero__title,
.page-kaap .corpus-type__title,
.page-kaap .demo-corpus__title,
.page-kaap .flow-step__title,
.page-corpusai .feature-showcase-text h3,
.page-corpusai .service-card__title,
.page-corpusai .pricing-tier h3,
.page-corpusai .model-table td:first-child,
.page-about .team-card__name,
.page-about .location-card__name {
    color: var(--text-bright);
}

.page-kaap .kaap-hero__desc,
.page-kaap .corpus-type__desc,
.page-kaap .demo-corpus__desc,
.page-kaap .demo-corpus__stat,
.page-kaap .flow-step__desc,
.page-kaap .cta-section p,
.page-corpusai .page-hero__subtitle,
.page-corpusai .stats-bar__label,
.page-corpusai .service-card__desc,
.page-corpusai .feature-showcase-text p,
.page-corpusai .pricing-tier li,
.page-corpusai .model-table td,
.page-about .about-text,
.page-about .team-card__bio,
.page-about .team-card__meta,
.page-about .location-card__address,
.page-about .stats-bar__label {
    color: var(--text-secondary);
}

.page-kaap .kaap-hero__poster,
.page-corpusai .corpusai-hero__poster,
.page-about .about-poster {
    position: relative;
    margin: 0;
    overflow: hidden;
    border-radius: 28px;
    border: 1px solid var(--poster-border);
    background: var(--poster-panel);
    box-shadow: var(--poster-glow);
    animation: posterFloat 11s ease-in-out infinite;
}

.page-kaap .kaap-hero__poster::before,
.page-corpusai .corpusai-hero__poster::before,
.page-about .about-poster::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.05), transparent 34%, transparent 72%, rgba(114,230,255,0.08));
    pointer-events: none;
}

.page-kaap .kaap-hero__poster img,
.page-corpusai .corpusai-hero__poster img,
.page-about .about-poster img {
    display: block;
    width: 100%;
}

.page-kaap .kaap-screen-stack,
.page-corpusai .feature-showcase-image,
.page-corpusai .pricing-tier,
.page-corpusai .model-table,
.page-corpusai .corpusai-code-block,
.page-about .about-sidebar__box,
.page-about .team-card,
.page-about .location-card,
.page-about .stats-bar__grid {
    border-radius: 24px;
    border: 1px solid rgba(255,255,255,0.08);
    background: linear-gradient(180deg, rgba(14, 20, 35, 0.84), rgba(7, 11, 20, 0.96));
    box-shadow: 0 16px 48px rgba(0,0,0,0.22);
}

.page-kaap .corpus-type,
.page-kaap .demo-corpus,
.page-kaap .services-grid .service-card {
    background:
        linear-gradient(180deg, rgba(15, 22, 38, 0.82), rgba(8, 11, 21, 0.94)),
        rgba(9, 14, 27, 0.88);
    border-color: rgba(255,255,255,0.08);
}

.page-kaap .corpus-type__badge,
.page-kaap .demo-corpus__status,
.page-corpusai .section__kicker,
.page-corpusai .page-hero__kicker,
.page-about .page-hero__eyebrow,
.page-about .team-card__role,
.page-about .location-card__icon {
    color: var(--poster-cyan);
}

.page-corpusai .section__kicker,
.page-corpusai .page-hero__kicker,
.page-about .page-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    margin-bottom: 0.9rem;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.page-corpusai .section__kicker::before,
.page-corpusai .page-hero__kicker::before,
.page-about .page-hero__eyebrow::before {
    content: '';
    width: 28px;
    height: 1px;
    background: currentColor;
    opacity: 0.7;
}

.page-kaap .corpus-type__list li {
    color: var(--text);
}

.page-kaap .corpus-type__list li::before {
    background: var(--dot-color, var(--poster-cyan));
    box-shadow: 0 0 12px rgba(114, 230, 255, 0.28);
}

.page-kaap .demo-corpus__status {
    background: rgba(114,230,255,0.1);
    border: 1px solid rgba(114,230,255,0.16);
}

.page-kaap .demo-corpus__meta strong,
.page-corpusai .model-table th {
    color: var(--accent-bright);
}

.page-kaap .cta-section__title,
.page-corpusai .stats-bar__value,
.page-about .stats-bar__value {
    color: var(--text-bright);
}

.page-corpusai .page-hero {
    padding-top: calc(var(--nav-height) + 2.4rem);
    padding-bottom: 2.4rem;
    background:
        radial-gradient(circle at 14% 14%, rgba(114,230,255,0.12), transparent 22%),
        radial-gradient(circle at 84% 18%, rgba(255,123,184,0.12), transparent 20%);
}

.page-corpusai .stats-bar {
    margin-top: 0;
    padding: 0;
    background: transparent;
}

.page-corpusai .stats-bar__grid,
.page-about .stats-bar__grid {
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(12, 18, 32, 0.92), rgba(7, 10, 19, 0.98));
}

.page-corpusai .corpusai-code-block {
    padding: 1rem;
    overflow-x: auto;
}

.page-corpusai .pricing-tier.featured {
    background: linear-gradient(180deg, rgba(21, 31, 53, 0.92), rgba(9, 14, 27, 0.98));
}

.page-about .page-hero {
    padding-top: calc(var(--nav-height) + 2.6rem);
    padding-bottom: 2.2rem;
    background:
        radial-gradient(circle at 18% 12%, rgba(201,168,76,0.12), transparent 24%),
        radial-gradient(circle at 82% 14%, rgba(114,230,255,0.12), transparent 20%),
        linear-gradient(180deg, rgba(10, 15, 28, 0.96), rgba(6, 10, 18, 0.98));
}

.page-about .page-hero__actions {
    margin-top: 1.55rem;
}

.page-about .page-hero__signals {
    margin-top: 1.1rem;
}

.page-about .about-poster {
    margin-bottom: 1.25rem;
}

.page-about .about-poster__caption {
    position: absolute;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    z-index: 2;
    padding: 0.85rem 1rem;
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(5, 10, 20, 0.82);
    color: var(--text-secondary);
    font-size: 0.82rem;
    line-height: 1.55;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.page-about .about-text p,
.page-about .page-hero__subtitle {
    color: var(--text-secondary);
}

.page-about .about-contact-card {
    border-radius: 24px;
    border: 1px solid rgba(255,255,255,0.08);
    background: linear-gradient(180deg, rgba(14, 20, 35, 0.84), rgba(7, 11, 20, 0.96));
    box-shadow: 0 16px 48px rgba(0,0,0,0.22);
    padding: clamp(1.4rem, 2vw, 1.8rem);
}

.page-about .about-contact-card__meta {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.page-about .about-contact-form {
    margin-top: 1.25rem;
    border-radius: 24px;
    border: 1px solid rgba(255,255,255,0.08);
    background: linear-gradient(180deg, rgba(14, 20, 35, 0.84), rgba(7, 11, 20, 0.96));
    box-shadow: 0 16px 48px rgba(0,0,0,0.22);
    padding: clamp(1.4rem, 2vw, 1.8rem);
}

.page-about .about-contact-form .form-group label,
.page-about .about-contact-form .form-input,
.page-about .about-contact-form .form-select,
.page-about .about-contact-form .form-textarea {
    color: var(--text);
}

.page-about .about-contact-form .form-input,
.page-about .about-contact-form .form-select,
.page-about .about-contact-form .form-textarea {
    background: rgba(255,255,255,0.03);
    border-color: rgba(255,255,255,0.08);
}

.page-about .about-contact-form .form-input::placeholder,
.page-about .about-contact-form .form-textarea::placeholder {
    color: var(--text-muted);
}

.page-services .page-hero__eyebrow,
.page-products .page-hero__eyebrow,
.page-services .page-hero__title,
.page-products .page-hero__title,
.page-kaap .kaap-hero__kicker,
.page-kaap .kaap-hero__title,
.page-kaap .section__title,
.page-kaap .corpus-type__title,
.page-kaap .demo-corpus__title,
.page-kaap .flow-step__title {
    color: var(--text-bright);
}

.page-services .page-hero__subtitle,
.page-products .page-hero__subtitle,
.page-services .spotlight__desc,
.page-products .spotlight__desc,
.page-services .spotlight__feature,
.page-products .spotlight__feature,
.page-kaap .kaap-hero__desc,
.page-kaap .section__subtitle,
.page-kaap .corpus-type__desc,
.page-kaap .corpus-type__list li,
.page-kaap .demo-corpus__desc,
.page-kaap .demo-corpus__stat,
.page-kaap .flow-step__desc {
    color: var(--text-secondary);
}

.page-kaap .section .section__header .section__label,
.page-kaap .section .section__header .section__title,
.page-kaap .section .section__header .section__subtitle,
.page-kaap .section p[style*="color:var(--text-secondary)"],
.page-kaap .section p[style*="color:var(--text)"],
.page-kaap .section div[style*="color:var(--text-secondary)"],
.page-kaap .section div[style*="color:var(--text)"] {
    color: var(--text-secondary);
}

.page-kaap .section .section__header .section__title {
    color: var(--text-bright);
}

.page-kaap .section:not(.cta-section),
.page-services .section--alt,
.page-products .section--alt {
    background:
        radial-gradient(circle at 50% 0%, rgba(114, 230, 255, 0.05), transparent 24%),
        linear-gradient(180deg, rgba(10, 15, 28, 0.96), rgba(6, 10, 18, 0.98));
}

.page-kaap .kaap-screen-stack,
.page-kaap .corpus-type,
.page-kaap .demo-corpus,
.page-kaap .section section,
.page-kaap .section [style*="background:rgba(201,168,76,0.06)"] {
    box-shadow: 0 18px 54px rgba(0,0,0,0.24);
}

.page-kaap .section [style*="background:rgba(201,168,76,0.06)"] {
    background: linear-gradient(180deg, rgba(14, 20, 35, 0.88), rgba(7, 11, 20, 0.96)) !important;
    border-color: rgba(201,168,76,0.20) !important;
}

[data-theme="light"] .service-card__image::after {
    background:
        radial-gradient(circle at 20% 20%, rgba(74, 111, 165, 0.08), transparent 40%),
        linear-gradient(to bottom, transparent 40%, rgba(250, 248, 243, 0.5));
}

/* ══════════════════════════════════════════════════════════════
   LIGHT THEME — Keep dark hero / card / spotlight panels dark
   All Jazz Noir pages use dark hero sections + dark cards even
   in light mode. Only body-level sections switch to cream.
   ══════════════════════════════════════════════════════════════ */

/* 1 ── Hero sections: override style.css light hero bg ────── */
[data-theme="light"] :is(
    .page-services, .page-products, .page-about,
    .page-kaap, .page-corpusai, .page-corpusai-guide,
    .page-case-studies, .page-clients, .page-wiki,
    .page-links, .page-resources, .page-tech-resources,
    .page-flywheel, .page-consulting
) .page-hero {
    background:
        radial-gradient(circle at 15% 15%, rgba(114, 230, 255, 0.08), transparent 22%),
        radial-gradient(circle at 84% 18%, rgba(255, 123, 184, 0.06), transparent 20%),
        linear-gradient(180deg, rgba(9, 14, 26, 0.97), rgba(6, 10, 18, 0.99));
}

/* Keep dark overlay on hero background images in light mode */
[data-theme="light"] :is(
    .page-services, .page-products, .page-about,
    .page-consulting, .page-resources, .page-tech-resources,
    .page-case-studies, .page-clients, .page-wiki, .page-links
) .page-hero.page-hero--has-bg::before {
    background: linear-gradient(
        180deg,
        rgba(10, 15, 28, 0.85) 0%,
        rgba(10, 15, 28, 0.9) 100%
    );
}

/* KaaP hero uses .kaap-hero not .page-hero */
[data-theme="light"] .page-kaap .kaap-hero {
    background:
        radial-gradient(circle at 18% 12%, rgba(114, 230, 255, 0.14), transparent 24%),
        radial-gradient(circle at 86% 14%, rgba(255, 123, 184, 0.14), transparent 22%),
        linear-gradient(180deg, rgba(10, 15, 28, 0.96), rgba(6, 10, 18, 0.98));
}

/* Hero text stays light on dark hero bg */
[data-theme="light"] :is(
    .page-services, .page-products, .page-about,
    .page-kaap, .page-corpusai, .page-corpusai-guide,
    .page-case-studies, .page-clients, .page-wiki,
    .page-links, .page-resources, .page-tech-resources,
    .page-flywheel, .page-consulting
) .page-hero .page-hero__eyebrow,
[data-theme="light"] :is(
    .page-services, .page-products, .page-about,
    .page-kaap, .page-corpusai, .page-corpusai-guide,
    .page-case-studies, .page-clients, .page-wiki,
    .page-links, .page-resources, .page-tech-resources,
    .page-flywheel, .page-consulting
) .page-hero .page-hero__title {
    color: #f4f8ff;
}

[data-theme="light"] :is(
    .page-services, .page-products, .page-about,
    .page-kaap, .page-corpusai, .page-corpusai-guide,
    .page-case-studies, .page-clients, .page-wiki,
    .page-links, .page-resources, .page-tech-resources,
    .page-flywheel, .page-consulting
) .page-hero .page-hero__subtitle {
    color: rgba(215, 225, 239, 0.82);
}

[data-theme="light"] :is(
    .page-services, .page-products, .page-about,
    .page-case-studies, .page-clients, .page-wiki,
    .page-links, .page-resources, .page-tech-resources, .page-consulting
) .page-hero .page-hero__breadcrumb,
[data-theme="light"] :is(
    .page-services, .page-products, .page-about,
    .page-case-studies, .page-clients, .page-wiki,
    .page-links, .page-resources, .page-tech-resources, .page-consulting
) .page-hero .page-hero__breadcrumb a,
[data-theme="light"] :is(
    .page-services, .page-products, .page-about,
    .page-case-studies, .page-clients, .page-wiki,
    .page-links, .page-resources, .page-tech-resources, .page-consulting
) .page-hero .page-hero__breadcrumb span {
    color: rgba(215, 225, 239, 0.82);
}

/* 2 ── Service & product cards: dark bg + light text ──────── */
[data-theme="light"] :is(.page-services, .page-products) .service-card {
    --text: #e7edf5;
    --text-bright: #f4f8ff;
    --text-secondary: rgba(215, 225, 239, 0.82);
    --text-muted: rgba(153, 173, 198, 0.78);
    background: linear-gradient(180deg, rgba(15, 22, 38, 0.95), rgba(8, 11, 21, 0.98));
    border-color: rgba(120, 100, 60, 0.12);
}

[data-theme="light"] :is(.page-services, .page-products) .service-card__title { color: #f4f8ff; }
[data-theme="light"] :is(.page-services, .page-products) .service-card__desc { color: rgba(215, 225, 239, 0.82); }
[data-theme="light"] :is(.page-services, .page-products) .service-card__tagline { color: rgba(215, 225, 239, 0.68); }
[data-theme="light"] :is(.page-services, .page-products) .service-card__cta { color: var(--poster-cyan, #72e6ff); }
[data-theme="light"] :is(.page-services, .page-products) .service-card__eyebrow { color: var(--poster-cyan, #72e6ff); }
[data-theme="light"] :is(.page-services, .page-products) .service-card__meta span {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
    color: rgba(215, 225, 239, 0.82);
}

/* 3 ── Spotlight sections: dark bg + light text ───────────── */
[data-theme="light"] :is(.page-services, .page-products) .spotlight {
    --text: #e7edf5;
    --text-bright: #f4f8ff;
    --text-secondary: rgba(215, 225, 239, 0.82);
    background: linear-gradient(180deg, rgba(12, 18, 32, 0.96), rgba(7, 10, 19, 0.99));
    border-color: rgba(120, 100, 60, 0.12);
}

/* 4 ── Dark alt-sections on services/products ─────────────── */
[data-theme="light"] :is(.page-services, .page-products) .section--alt {
    background:
        radial-gradient(circle at 50% 0%, rgba(114, 230, 255, 0.03), transparent 24%),
        linear-gradient(180deg, rgba(10, 15, 28, 0.97), rgba(6, 10, 18, 0.99));
}
[data-theme="light"] :is(.page-services, .page-products) .section--alt .section__label,
[data-theme="light"] :is(.page-services, .page-products) .section--alt .section__title {
    color: #f4f8ff;
}

/* 5 ── Case study / wiki / links / resource cards ─────────── */
[data-theme="light"] :is(
    .page-case-studies .case-study-card,
    .page-case-studies .proof-intro,
    .page-clients .client-card,
    .page-clients .case-study-card,
    .page-wiki .wiki-card,
    .page-wiki .wiki-sidebar,
    .page-wiki .wiki-content-panel,
    .page-links .links-card,
    .page-links .link-detail__commentary,
    .page-resources .resource-card,
    .page-tech-resources .links-card
) {
    --text: #e7edf5;
    --text-bright: #f4f8ff;
    --text-secondary: rgba(215, 225, 239, 0.82);
    --text-muted: rgba(153, 173, 198, 0.78);
}

/* 6 ── KaaP / CorpusAI dark panels ────────────────────────── */
[data-theme="light"] :is(
    .page-kaap .corpus-type,
    .page-kaap .demo-corpus,
    .page-kaap .services-grid .service-card,
    .page-kaap .kaap-screen-stack,
    .page-corpusai .service-card,
    .page-corpusai .pricing-tier,
    .page-corpusai .model-table,
    .page-corpusai .corpusai-code-block,
    .page-corpusai .feature-showcase-image,
    .page-corpusai .stats-bar__grid,
    .page-corpusai-guide .guide-toc,
    .page-corpusai-guide .guide-section
) {
    --text: #e7edf5;
    --text-bright: #f4f8ff;
    --text-secondary: rgba(215, 225, 239, 0.82);
    --text-muted: rgba(153, 173, 198, 0.78);
}

/* 7 ── Flywheel dark panels ───────────────────────────────── */
[data-theme="light"] :is(
    .page-flywheel .phase__media,
    .page-flywheel .value-card,
    .page-flywheel .infra-item
) {
    --text: #e7edf5;
    --text-bright: #f4f8ff;
    --text-secondary: rgba(215, 225, 239, 0.82);
}

/* 8 ── About page: dark panels keep light text ────────────── */
[data-theme="light"] :is(
    .page-about .about-sidebar__box,
    .page-about .team-card,
    .page-about .location-card,
    .page-about .stats-bar__grid
) {
    --text: #e7edf5;
    --text-bright: #f4f8ff;
    --text-secondary: rgba(215, 225, 239, 0.82);
}

/* About body sections: dark text on cream bg */
[data-theme="light"] .page-about .section .section__header .section__label,
[data-theme="light"] .page-about .section .section__header .section__title {
    color: #23180f;
}
[data-theme="light"] .page-about .section .section__header .section__subtitle,
[data-theme="light"] .page-about .about-text,
[data-theme="light"] .page-about .about-text p {
    color: #5a4a38;
}

/* About contact card & form: light bg in light mode */
[data-theme="light"] .page-about .about-contact-card {
    background: linear-gradient(180deg, rgba(255, 250, 242, 0.96), rgba(244, 238, 227, 0.98));
    border-color: rgba(120, 100, 60, 0.14);
    box-shadow: 0 18px 44px rgba(120, 100, 60, 0.12);
}
[data-theme="light"] .page-about .about-contact-card .contact-info__label,
[data-theme="light"] .page-about .about-contact-card .contact-info__value {
    color: #2a2118;
}
[data-theme="light"] .page-about .about-contact-card .contact-info__social-link,
[data-theme="light"] .page-about .about-contact-card .contact-info__icon {
    color: #8c6d27;
}
[data-theme="light"] .page-about .about-contact-card__meta {
    color: #6b5636;
}
[data-theme="light"] .page-about .about-contact-form {
    background: linear-gradient(180deg, rgba(255, 250, 242, 0.96), rgba(244, 238, 227, 0.98));
    border-color: rgba(120, 100, 60, 0.14);
    box-shadow: 0 18px 44px rgba(120, 100, 60, 0.12);
}
[data-theme="light"] .page-about .about-contact-form .form-group label,
[data-theme="light"] .page-about .about-contact-form .form-input,
[data-theme="light"] .page-about .about-contact-form .form-select,
[data-theme="light"] .page-about .about-contact-form .form-textarea {
    color: #2a2118;
}
[data-theme="light"] .page-about .about-contact-form .form-input,
[data-theme="light"] .page-about .about-contact-form .form-select,
[data-theme="light"] .page-about .about-contact-form .form-textarea {
    background: rgba(255, 255, 255, 0.84);
    border-color: rgba(120, 100, 60, 0.15);
}
[data-theme="light"] .page-about .about-contact-form .form-input::placeholder,
[data-theme="light"] .page-about .about-contact-form .form-textarea::placeholder {
    color: #7b6b58;
}

/* 8b ── Resources page: dark text on cream sections ─────────── */
[data-theme="light"] .page-resources .section .section__header .section__label,
[data-theme="light"] .page-resources .section .section__header .section__title {
    color: #23180f;
}
[data-theme="light"] .page-resources .section .section__header .section__subtitle {
    color: #5a4a38;
}
[data-theme="light"] .page-resources .section .service-card {
    --text: #e7edf5;
    --text-bright: #f4f8ff;
    --text-secondary: rgba(215, 225, 239, 0.82);
}
[data-theme="light"] .page-resources .section-actions .btn--outline {
    color: #23180f;
    border-color: rgba(120, 100, 60, 0.3);
}
[data-theme="light"] .page-resources .section-actions .btn--outline:hover {
    background: rgba(201, 168, 76, 0.08);
}
[data-theme="light"] .page-resources .newsletter-panel .section__label,
[data-theme="light"] .page-resources .newsletter-panel .section__title {
    color: #23180f;
}
[data-theme="light"] .page-resources .newsletter-panel .section__subtitle,
[data-theme="light"] .page-resources .newsletter-note {
    color: #5a4a38;
}
[data-theme="light"] .page-resources .directory-filter {
    color: #5a4a38;
}
[data-theme="light"] .page-resources .directory-filter--active {
    color: #23180f;
}

/* 9 ── CTA sections: keep dark across all pages ───────────── */
[data-theme="light"] :is(
    .page-services, .page-products, .page-about,
    .page-kaap, .page-corpusai, .page-resources, .page-insights,
    .page-case-studies, .page-consulting, .page-flywheel
) .cta-section {
    background:
        radial-gradient(circle at 50% 0%, rgba(201, 168, 76, 0.08), transparent 40%),
        linear-gradient(180deg, rgba(10, 15, 28, 0.97), rgba(6, 10, 18, 0.99));
}
[data-theme="light"] :is(
    .page-services, .page-products, .page-about,
    .page-kaap, .page-corpusai, .page-resources, .page-insights,
    .page-case-studies, .page-consulting, .page-flywheel
) .cta-section .cta-section__title {
    color: #f4f8ff;
}
[data-theme="light"] :is(
    .page-services, .page-products, .page-about,
    .page-kaap, .page-corpusai, .page-resources, .page-insights,
    .page-case-studies, .page-consulting, .page-flywheel
) .cta-section .cta-section__desc,
[data-theme="light"] :is(
    .page-services, .page-products, .page-about,
    .page-kaap, .page-corpusai, .page-resources, .page-insights,
    .page-case-studies, .page-consulting, .page-flywheel
) .cta-section p {
    color: rgba(215, 225, 239, 0.82);
}

@media (max-width: 1100px) {
    .page-kaap .kaap-hero__grid,
    .page-corpusai .corpusai-hero__grid {
        grid-template-columns: 1fr;
    }

    .page-kaap .kaap-hero__poster,
    .page-corpusai .corpusai-hero__poster,
    .page-about .about-poster {
        max-width: 720px;
        width: 100%;
        margin: 0 auto 1.25rem;
    }
}

@media (max-width: 767px) {
    .page-kaap .kaap-hero__actions,
    .page-corpusai .corpusai-hero__actions {
        flex-direction: column;
    }
}

.page-case-studies,
.page-clients,
.page-wiki,
.page-links,
.page-resources,
.page-tech-resources,
.page-corpusai-guide {
    --poster-cyan: #72e6ff;
    --poster-violet: #7365ff;
    --poster-rose: #ff7bb8;
    --poster-border: rgba(255, 255, 255, 0.08);
    --poster-surface: linear-gradient(180deg, rgba(14, 20, 35, 0.88), rgba(7, 11, 20, 0.97));
    --poster-surface-strong: linear-gradient(180deg, rgba(12, 18, 32, 0.94), rgba(7, 10, 19, 0.99));
    --poster-text: #e7edf5;
    --poster-text-bright: #f4f8ff;
    --poster-text-secondary: rgba(215, 225, 239, 0.82);
    --poster-text-muted: rgba(153, 173, 198, 0.78);
}

.page-case-studies .page-hero,
.page-clients .page-hero,
.page-wiki .page-hero,
.page-links .page-hero,
.page-resources .page-hero,
.page-tech-resources .page-hero,
.page-corpusai-guide .page-hero {
    overflow: hidden;
    background:
        radial-gradient(circle at 15% 15%, rgba(114, 230, 255, 0.12), transparent 22%),
        radial-gradient(circle at 84% 18%, rgba(255, 123, 184, 0.1), transparent 20%),
        linear-gradient(180deg, rgba(9, 14, 26, 0.96), rgba(6, 10, 18, 0.98));
}

.page-case-studies .page-hero__title,
.page-clients .page-hero__title,
.page-wiki .page-hero__title,
.page-links .page-hero__title,
.page-resources .page-hero__title,
.page-tech-resources .page-hero__title,
.page-case-studies .proof-intro__title,
.page-clients .section__title,
.page-corpusai-guide .page-hero__title,
.page-corpusai-guide .guide-section h2,
.page-corpusai-guide .guide-section h3,
.page-corpusai-guide .guide-toc h3 {
    color: #f4f8ff;
}

.page-case-studies .page-hero__subtitle,
.page-clients .page-hero__subtitle,
.page-wiki .page-hero__subtitle,
.page-links .page-hero__subtitle,
.page-resources .page-hero__subtitle,
.page-tech-resources .page-hero__subtitle,
.page-case-studies .proof-intro__body,
.page-clients .section__subtitle,
.page-corpusai-guide .page-hero__subtitle,
.page-corpusai-guide .guide-section p,
.page-corpusai-guide .guide-section li {
    color: rgba(215, 225, 239, 0.82);
}

.page-home #results .case-study-card,
.page-case-studies .proof-intro,
.page-case-studies .case-study-card,
.page-clients .client-card,
.page-clients .case-study-card,
.page-wiki .wiki-card,
.page-wiki .wiki-sidebar,
.page-wiki .wiki-content-panel,
.page-links .links-card,
.page-links .link-detail__commentary,
.page-resources .resource-card,
.page-tech-resources .links-card,
.page-corpusai .pricing-tier,
.page-corpusai-guide .guide-toc,
.page-corpusai-guide .guide-section {
    border: 1px solid var(--poster-border);
    background: var(--poster-surface);
    box-shadow: 0 18px 54px rgba(0, 0, 0, 0.24);
}

.page-corpusai-guide .guide-section {
    padding: 1.6rem 1.6rem 1.75rem;
    border-radius: 24px;
}

.page-home #results .case-study-card,
.page-case-studies .proof-intro,
.page-case-studies .case-study-card,
.page-clients .client-card,
.page-clients .case-study-card,
.page-wiki .wiki-card,
.page-links .links-card,
.page-resources .resource-card,
.page-tech-resources .links-card,
.page-corpusai .pricing-tier,
.page-corpusai-guide .guide-toc,
.page-corpusai-guide .guide-section {
    color: var(--poster-text);
}

.page-home #results .case-study-card__meta span,
.page-case-studies .case-study-card__meta span,
.page-clients .case-study-card__meta span,
.page-clients .client-card__meta span,
.page-clients .client-card__stats span,
.page-links .service-card__meta span,
.page-resources .service-card__meta span,
.page-tech-resources .service-card__meta span {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
    color: var(--poster-text-secondary);
}

.page-home #results .case-study-card__title,
.page-case-studies .case-study-card__title,
.page-clients .case-study-card__title,
.page-clients .client-card__title,
.page-wiki .wiki-card__title,
.page-links .service-card__title,
.page-resources .service-card__title,
.page-tech-resources .service-card__title,
.page-corpusai .pricing-tier h3 {
    color: var(--poster-text-bright);
}

.page-home #results .case-study-card__subtitle,
.page-case-studies .case-study-card__subtitle,
.page-links .links-card__badge,
.page-wiki .wiki-card__category,
.page-corpusai-guide .guide-tip strong,
.page-corpusai-guide .guide-table th {
    color: var(--accent-bright);
}

.page-home #results .case-study-card__summary,
.page-home #results .case-study-card__metrics li,
.page-case-studies .case-study-card__summary,
.page-case-studies .case-study-card__metrics li,
.page-clients .client-card__summary,
.page-clients .case-study-card__summary,
.page-wiki .wiki-card__excerpt,
.page-wiki .wiki-sidebar__link,
.page-wiki .wiki-sidebar__count,
.page-wiki .wiki-links__list a,
.page-links .service-card__desc,
.page-links .link-detail__commentary .cms-content,
.page-resources .service-card__desc,
.page-tech-resources .service-card__desc,
.page-corpusai .pricing-tier li,
.page-corpusai-guide .guide-toc a {
    color: var(--poster-text-secondary);
}

.page-home #results .case-study-card__metrics li,
.page-case-studies .case-study-card__metrics li {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
}

.page-home #results .proof-link,
.page-case-studies .proof-link,
.page-clients .proof-link,
.page-clients .service-card__cta,
.page-wiki .wiki-card__link,
.page-wiki .wiki-sidebar__title,
.page-wiki .wiki-sidebar__title a,
.page-links .service-card__cta,
.page-links .link-detail__commentary-label,
.page-resources .service-card__cta,
.page-tech-resources .service-card__cta,
.page-corpusai .pricing-tier .btn--outline,
.page-corpusai-guide .guide-note strong,
.page-corpusai-guide .guide-code {
    color: var(--poster-cyan);
}

.page-corpusai .pricing-tier,
.page-corpusai .pricing-tier.featured {
    background: var(--poster-surface-strong);
}

.page-corpusai .pricing-tier .btn--outline {
    border-color: rgba(114, 230, 255, 0.24);
}

.page-corpusai-guide .guide-toc a:hover,
.page-corpusai-guide .guide-toc a.active,
.page-wiki .wiki-sidebar__link:hover,
.page-wiki .wiki-sidebar__link--active {
    color: var(--poster-text-bright);
    background: rgba(114, 230, 255, 0.08);
}

.page-wiki .wiki-sidebar__search input,
.page-wiki .wiki-links__list li {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.08);
    color: var(--poster-text);
}

.page-wiki .wiki-sidebar__search input::placeholder {
    color: var(--poster-text-muted);
}

.page-links .link-detail__commentary,
.page-corpusai-guide .guide-tip,
.page-corpusai-guide .guide-note,
.page-corpusai-guide .guide-important {
    border-left-width: 3px;
}

.page-wiki .wiki-card__image img,
.page-links .links-card__image img,
.page-tech-resources .links-card__image img,
.page-clients .client-card__thumb img,
.page-case-studies .case-study-card__image img,
.page-clients .case-study-card__image img,
.page-resources .resource-card__preview img {
    filter: saturate(0.82) contrast(1.04);
}

.page-flywheel .flywheel-hero__title,
.page-flywheel .section__title,
.page-flywheel .phase__title,
.page-flywheel .cta-section__title {
    color: var(--text-bright);
}

.page-flywheel .flywheel-hero__desc,
.page-flywheel .phase__desc,
.page-flywheel .timeline__text {
    color: var(--text-secondary);
}

.page-flywheel .phase__media,
.page-flywheel .value-card,
.page-flywheel .infra-item,
.page-flywheel .arch-flow__node {
    --text: #e7edf5;
    --text-bright: #f4f8ff;
    --text-secondary: rgba(215, 225, 239, 0.82);
    background: linear-gradient(180deg, rgba(14, 20, 35, 0.84), rgba(7, 11, 20, 0.96));
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.22);
}

.page-flywheel .phase__title,
.page-flywheel .value-card__title,
.page-flywheel .infra-item__value,
.page-flywheel .arch-flow__label {
    color: var(--text-bright);
}

.page-flywheel .phase__points li,
.page-flywheel .value-card__desc,
.page-flywheel .infra-item__label {
    color: var(--text-secondary);
}

/* ── Tech Resources: card text + category headers ────────── */
.page-tech-resources .links-category-header__name {
    color: var(--poster-text-bright);
}
.page-tech-resources .links-category-header__desc {
    color: var(--poster-text-secondary);
}
.page-tech-resources .links-category-header__count {
    color: var(--poster-text-muted);
}
.page-tech-resources .tech-resource-card__specs {
    color: var(--poster-text-muted);
}
.page-tech-resources .tech-resource-badge {
    color: var(--poster-text-bright);
}
.page-tech-resources .directory-filter {
    color: var(--poster-text-secondary);
}
.page-tech-resources .directory-filter--active {
    color: var(--poster-text-bright);
}

/* ── CorpusAI Overview: keep ALL sections dark in light mode ─ */
[data-theme="light"] .page-corpusai .section,
[data-theme="light"] .page-corpusai .section--alt {
    background:
        radial-gradient(circle at 50% 0%, rgba(114, 230, 255, 0.03), transparent 24%),
        linear-gradient(180deg, rgba(10, 15, 28, 0.97), rgba(6, 10, 18, 0.99));
}

[data-theme="light"] .page-corpusai .section__kicker,
[data-theme="light"] .page-corpusai .page-hero__kicker {
    color: var(--poster-cyan, #72e6ff);
}

[data-theme="light"] .page-corpusai .section__title,
[data-theme="light"] .page-corpusai .feature-showcase-text h3 {
    color: #f4f8ff;
}

[data-theme="light"] .page-corpusai .section__header .section__title,
[data-theme="light"] .page-corpusai .feature-showcase-text p,
[data-theme="light"] .page-corpusai .feature-showcase-text li,
[data-theme="light"] .page-corpusai .stats-bar__label {
    color: rgba(215, 225, 239, 0.82);
}

[data-theme="light"] .page-corpusai .stats-bar__value {
    color: var(--poster-cyan, #72e6ff);
}

/* ── CorpusAI Guide: keep body sections dark in light mode ── */
[data-theme="light"] .page-corpusai-guide .section {
    background:
        radial-gradient(circle at 50% 0%, rgba(114, 230, 255, 0.03), transparent 24%),
        linear-gradient(180deg, rgba(10, 15, 28, 0.97), rgba(6, 10, 18, 0.99));
}
