/* ===== CONFLUX COPILOT WEBSITE STYLES ===== */

/* ===== FONTS ===== */
@font-face {
    font-family: "apk-galeria";
    src: url("./fonts/APK-Galeria-Regular.woff2") format("woff2");
    font-display: block;
}

@font-face {
    font-family: "gt-pressura";
    src: url("./fonts/GT-Pressura-Standard-Regular.woff2") format("woff2");
    font-display: block;
}

@font-face {
    font-family: "fk-grotesk";
    src: url("./fonts/FKGroteskNeue-Regular.woff2") format("woff2");
    font-display: block;
}

@font-face {
    font-family: "fk-grotesk-mono";
    src: url("./fonts/FKGroteskMono-Regular.woff2") format("woff2");
    font-display: block;
}

/* ===== VARIABLES ===== */
:root {
    /* Brand Colors */
    --color-primary-blue: #1000EB;
    --color-dark-blue: #030037;
    --color-alice-blue: #EFF6FF;
    --color-pure-white: #FFFFFF;
    --color-lavender: #C6CFFF;
    --color-purple-blue: #9A94EB;
    --color-neon-green: #D0F200;
    --color-independence: #485563;

    /* Functional Colors */
    --color-text-primary: #030037;
    --color-text-secondary: #485563;
    --color-text-light: #6B7280;
    --color-border: #E0E0EB;

    /* Severity Colors */
    --color-critical: #FF5A7C;
    --color-critical-bg: #FFF0F3;
    --color-critical-text: #9B1B3A;
    --color-warning: #FF9861;
    --color-warning-bg: #FFF8F0;
    --color-warning-text: #8B4513;
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    --spacing-3xl: 6rem;

    /* Layout */
    --max-width: 1200px;
    --banner-height: 0px;
    --header-height: 56px;
}

body:not(:has(.launch-banner)) {
    --banner-height: 0px;
}

/* ===== RESET & BASE ===== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    background-color: var(--color-dark-blue);
}

body {
    font-family: "fk-grotesk";
    color: var(--color-text-primary);
    background-color: var(--color-pure-white);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* ===== TYPOGRAPHY ===== */
.heading-hero {
    font-family: "apk-galeria";
    font-size: clamp(2.5rem, 6vw, 4rem);
    line-height: 1.1;
    color: var(--color-primary-blue);
}

.heading-section {
    font-family: "apk-galeria";
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    line-height: 1.2;
    color: var(--color-primary-blue);
}

.eyebrow,
.post-feature-item__label {
    font-family: "gt-pressura";
    text-transform: uppercase;
    font-size: 0.75rem;
    color: var(--color-primary-blue);
}

.eyebrow {
    letter-spacing: 0.1em;
}

.ctx-panel__header,
.output-label,
.proof-report__header,
.proof-panel__title,
.foundry-card__type {
    font-family: "gt-pressura";
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.ctx-response-card__badge,
.copilot-mode__badge,
.mock-card__label {
    font-family: "gt-pressura";
    font-size: 0.5625rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.mock-flag,
.mock-signout-count-flag,
.mock-drug-if,
.proof-error-card__pill {
    font-family: "gt-pressura";
    font-size: 0.5625rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.launch-banner__badge,
.ctx-source-label,
.dictation-col__label {
    font-family: "gt-pressura";
    font-size: 0.625rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.team-card__role,
.meta-author {
    font-family: "gt-pressura";
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.body-text {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-text-secondary);
}

.body-large {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--color-text-secondary);
}

/* ===== LAYOUT ===== */
.container {
    max-width: 1480px;
    margin: 0 auto;
    width: 100%;
    padding: 0 var(--spacing-lg);
}

.section,
.feature-section {
    padding: var(--spacing-3xl) 0;
}

.section--light,
.feature-section--light {
    background: var(--color-pure-white);
}

/* ===== LAUNCH BANNER ===== */
.launch-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--banner-height);
    background: var(--color-dark-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1001;
    gap: 0.5rem;
    text-decoration: none;
    transition: background 0.2s ease;
}

.launch-banner:hover {
    background: #0a0050;
}

.launch-banner__badge {
    font-weight: 500;
    color: var(--color-dark-blue);
    background: var(--color-neon-green);
    padding: 2px 8px;
    border-radius: 3px;
    flex-shrink: 0;
}

.launch-banner__text {
    font-size: 0.8125rem;
    color: var(--color-lavender);
    letter-spacing: 0.01em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.launch-banner__arrow {
    flex-shrink: 0;
    color: var(--color-lavender);
    opacity: 0.6;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.launch-banner:hover .launch-banner__arrow {
    opacity: 1;
    transform: translateX(2px);
}

/* ===== HEADER ===== */
.header {
    position: fixed;
    top: var(--banner-height);
    left: 0;
    right: 0;
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;

}

.header__logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.header__brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.header__logo-svg,
.footer__logo-svg {
    height: 24px;
    width: auto;
    display: block;
}

.nav {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.nav__link {
    font-size: 0.9375rem;
    color: var(--color-text-primary);
    transition: color 0.2s ease;
    position: relative;
    outline: none;
}

.nav__link:focus-visible {
    outline: 2px solid var(--color-primary-blue);
    outline-offset: 4px;
    border-radius: 2px;
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary-blue);
    transition: width 0.2s ease;
}

.nav__link:hover::after,
.nav__link--active::after {
    width: 100%;
}

.nav__link:hover {
    color: var(--color-primary-blue);
}

.nav__link--secondary {
    color: var(--color-text-secondary);
}

.nav__cta {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-pure-white);
    background: var(--color-primary-blue);
    padding: 7px 16px;
    border-radius: 4px;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.nav__cta:hover {
    background: var(--color-dark-blue);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 0, 235, 0.25);
}

.nav__divider {
    display: inline-block;
    width: 1px;
    height: 14px;
    background: var(--color-lavender);
    vertical-align: middle;
    margin: 0 -0.5rem;
}

/* ===== HAMBURGER / MOBILE MENU ===== */
.nav__hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

.nav__hamburger span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--color-text-primary);
    border-radius: 1px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav--open .nav__hamburger span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav--open .nav__hamburger span:nth-child(2) {
    opacity: 0;
}

.nav--open .nav__hamburger span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.nav__mobile-menu {
    display: none;
    position: fixed;
    top: calc(var(--header-height) + var(--banner-height));
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
    padding: var(--spacing-sm) var(--spacing-md);
    flex-direction: column;
    gap: var(--spacing-sm);
    z-index: 999;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.nav--open .nav__mobile-menu {
    display: flex;
}

.nav__mobile-link {
    font-size: 0.9375rem;
    color: var(--color-text-secondary);
    padding: var(--spacing-xs) 0;
    transition: color 0.2s ease;
}

.nav__mobile-link:hover,
.nav__mobile-link--active {
    color: var(--color-primary-blue);
}

/* ===== HERO ===== */
.hero {
    min-height: auto;
    padding: 0 !important;
    max-width: 100%;
    margin: 0;
    width: 100%;
    position: relative;
}

.hero__frame {
    position: relative;
    border-radius: 0;
    overflow: hidden;
    background-color: var(--color-dark-blue);
    background-image: url('./proteomics.png');
    background-size: cover;
    background-position: center;
    min-height: clamp(520px, 78vh, 760px);
    display: flex;
    align-items: flex-end;
    box-shadow: none;
    border: none;
}

.hero__canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    pointer-events: none;
    z-index: 1;
}

.hero__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    pointer-events: none;
    z-index: 1;
    opacity: 0;
    transition: opacity 1.8s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: opacity;
}

.hero__video.is-active {
    opacity: 1;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    opacity: 60%;
    background:
        linear-gradient(to top, rgba(3, 0, 55, 0.95) 0%, rgba(3, 0, 55, 0.65) 45%, rgba(3, 0, 55, 0.2) 75%, transparent 100%),
        linear-gradient(to right, rgba(3, 0, 55, 0.88) 0%, rgba(3, 0, 55, 0.5) 45%, transparent 85%);
}

.hero__content {
    position: relative;
    z-index: 3;
    padding: clamp(2rem, 5vw, 4.25rem);
    max-width: 720px;
}

.hero__eyebrow {
    color: var(--color-lavender);
    margin-bottom: var(--spacing-sm);
    letter-spacing: 0.12em;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.hero__eyebrow::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--color-neon-green);
    box-shadow: 0 0 8px var(--color-neon-green);
}

.hero__title {
    color: var(--color-pure-white);
    font-size: clamp(2.35rem, 4.8vw, 3.85rem);
    font-weight: 100;
    line-height: 1.08;
    letter-spacing: -0.025em;
    margin-bottom: var(--spacing-md);
    text-shadow: 0 2px 24px rgba(3, 0, 55, 0.85);
}

.hero__subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(1.0625rem, 1.3vw, 1.1875rem);
    line-height: 1.68;
    text-shadow: 0 1px 12px rgba(3, 0, 55, 0.85);
    margin-bottom: var(--spacing-md);
    max-width: 640px;
}

.hero__subtitle + .hero__subtitle {
    margin-top: calc(-1 * var(--spacing-xs));
    margin-bottom: 0;
}

.hero__cta-note {
    font-size: 0.75rem;
    color: var(--color-text-light);
    margin-top: 4px;
    margin-bottom: 0;
}

/* ===== HOME PAGE (Single Viewport / Zero Scroll) ===== */
.page-home {
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
}

.page-home .header {
    position: absolute;
    top: 0;
    z-index: 20;
    background: transparent;
    backdrop-filter: none;
}

.page-home .header__logo-svg {
    filter: brightness(0) invert(1);
}

.page-home .nav__link,
.page-home .nav__link:hover {
    color: var(--color-pure-white);
    text-shadow: 0 1px 8px rgba(3, 0, 55, 0.8);
}

.page-home .nav__link::after,
.page-home .nav__hamburger span {
    background: var(--color-pure-white);
}

.page-home .nav__link:focus-visible,
.page-home .nav__hamburger:focus-visible,
.page-home .header__brand:focus-visible,
.page-home .nav__mobile-link:focus-visible {
    outline: 2px solid var(--color-pure-white);
    outline-offset: 4px;
}

.page-home .nav {
    position: relative;
}

.page-home .nav__mobile-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: auto;
    right: 0;
    min-width: 120px;
    padding: 0 4px;
    gap: 0;
    text-align: right;
    background: transparent;
    backdrop-filter: none;
    border-bottom: none;
    box-shadow: none;
}

.page-home .nav__mobile-link {
    color: rgba(255, 255, 255, 0.8);
    text-shadow: 0 1px 8px rgba(3, 0, 55, 0.8);
    padding: 12px 0;
}

.page-home .nav__mobile-link:hover,
.page-home .nav__mobile-link--active {
    color: var(--color-pure-white);
}

.page-home .hero {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    padding: 0 !important;
    max-width: 100%;
    margin: 0;
    width: 100%;
}

.page-home .hero__frame {
    flex: 1;
    min-height: 0;
    height: 100%;
    width: 100%;
    border-radius: 0;
    box-shadow: none;
    border: none;
    display: flex;
    align-items: center;
}

.hero__container {
    position: relative;
    z-index: 4;
    width: 100%;
}

.page-home .hero__content {
    padding: 0;
    max-width: 860px;
}

.page-home .footer--home {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10;
    padding: 0.5rem 0 clamp(0.5rem, 1.2vh, 0.875rem);
    border-top: none;
    background: transparent;
    pointer-events: none;
}

.page-home .footer--home .footer__inner {
    justify-content: center;
    height: auto;
}

.page-home .footer--home .footer__copyright {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.65);
    text-shadow: 0 1px 4px rgba(3, 0, 55, 0.8);
    text-align: center;
    margin: 0;
    opacity: 0.9;
}

@media (max-width: 768px) {
    .page-home {
        height: 100vh;
        height: 100dvh;
        overflow: hidden;
    }

    .page-home .hero {
        padding: 0 !important;
    }

    .page-home .hero__frame {
        border-radius: 0;
        display: flex;
        align-items: center;
    }

    .page-home .hero__content {
        padding: 0;
    }

    .page-home .hero__title {
        font-size: clamp(1.75rem, 6vw, 2.25rem);
        margin-bottom: var(--spacing-xs);
    }

    .page-home .hero__subtitle {
        font-size: 0.875rem;
        line-height: 1.5;
        margin-bottom: var(--spacing-xs);
    }
}

@media (max-height: 520px) {
    .page-home {
        height: auto;
        min-height: 100vh;
        overflow-y: auto;
    }
}

/* -- Floating subscribe tray -- */

.subscribe-tray {
    display: none !important;
}

.subscribe-tray--visible {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.subscribe-tray__close {
    position: absolute;
    top: 8px;
    right: 10px;
    background: none;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
    color: var(--color-text-light);
    line-height: 1;
}

.subscribe-tray__label {
    font-weight: 600;
    font-size: 0.9375rem;
    margin-bottom: var(--spacing-xs);
    color: var(--color-text-dark);
}

.subscribe-tray__form {
    display: flex;
    gap: 0;
}

.subscribe-tray__input {
    flex: 1;
    min-width: 0;
    padding: 0.5rem 0.75rem;
    border: 2px solid var(--color-primary-blue);
    border-right: none;
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
    font-size: 0.875rem;
    font-family: inherit;
    outline: none;
}

.subscribe-tray__input:focus {
    border-color: var(--color-dark-blue);
}

.subscribe-tray__btn {
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0 !important;
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
    white-space: nowrap;
    flex-shrink: 0;
}

.subscribe-tray__msg {
    font-size: 0.8125rem;
    margin-top: var(--spacing-xs);
    margin-bottom: 0;
}

.subscribe-tray__msg--ok {
    color: var(--color-accent-green, #2e7d32);
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-sm) var(--spacing-lg);
    font-size: 1rem;
    font-weight: 500;
    border-radius: 4px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn--primary,
.post-body__inner .post-btn--primary {
    background: var(--color-primary-blue);
    color: var(--color-pure-white);
    border-color: var(--color-primary-blue);
}

.btn--primary:hover {
    background: var(--color-dark-blue);
    border-color: var(--color-dark-blue);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 0, 235, 0.3);
}

.btn--secondary {
    background: transparent;
    color: var(--color-primary-blue);
    border-color: var(--color-primary-blue);
}

.btn--secondary:hover {
    background: var(--color-alice-blue);
    transform: translateY(-2px);
}

/* ===== FEATURE SECTIONS ===== */
.feature-section {
    position: relative;
}

.feature-section__header,
.copilot-section__header {
    text-align: left;
    max-width: 720px;
    margin: 0 0 var(--spacing-xl);
}

.feature-section__meta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: var(--spacing-sm);
    border: 1px solid rgba(16, 0, 235, 0.25);
    border-radius: 4px;
    padding: 3px 10px;
}

.feature-section__header .eyebrow {
    font-size: 0.8125rem;
    margin-bottom: 0;
}

.feature-number {
    font-family: "apk-galeria";
    font-size: 0.875rem;
    color: var(--color-lavender);
    letter-spacing: 0.05em;
}

.feature-section__desc {
    margin-top: var(--spacing-sm);
    max-width: 640px;
    margin-left: 0;
    margin-right: 0;
}

.feature-section__demo {
    max-width: 900px;
    margin: 0 auto;
}

[data-feature="dictation"] .feature-section__header {
    margin-bottom: var(--spacing-lg);
}


/* ===== DEMO WINDOW ===== */
.demo-window {
    background: var(--color-pure-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(16, 0, 235, 0.12);
    border: 1px solid var(--color-border);
}

.demo-window__header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: var(--color-alice-blue);
    border-bottom: 1px solid var(--color-border);
}

.demo-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.demo-dot--red {
    background: #ff5f57;
}

.demo-dot--yellow {
    background: #febc2e;
}

.demo-dot--green {
    background: #28c840;
}

.demo-window__title,
.meta-date {
    font-family: "fk-grotesk-mono";
    font-size: 0.75rem;
    color: var(--color-text-light);
}

.demo-window__title {
    margin-left: auto;
}

.demo-window__content {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: var(--spacing-sm);
    padding: var(--spacing-md);
    min-height: 280px;
    align-items: start;
    position: relative;
}

.demo-hint {
    text-align: center;
    margin-top: 20px;
    color: var(--color-text-light);
    opacity: 0.7;
}

/* ===== TRACE / EVIDENCE LINKING (Demo 1) ===== */
.trace-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5;
}

.trace-svg path {
    stroke: var(--color-primary-blue);
    stroke-width: 2;
    fill: none;
    stroke-linejoin: round;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.trace-svg path.trace-line--visible {
    opacity: 0.65;
}


.phrase-highlight {
    background: rgba(154, 148, 235, 0.45);
    border-radius: 2px;
    padding: 1px 2px;
    color: inherit;
    /* Reset browser's default <mark> styling */
    -webkit-text-fill-color: inherit;
}

/* ===== CONTEXT DEMO (On-Demand Extraction) ===== */
.demo-window__content--context {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    padding: 0;
    height: 400px;
    align-items: stretch;
    overflow: hidden;
}

.ctx-panel {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.ctx-panel--source {
    border-right: 1px solid var(--color-border);
    overflow-y: auto;
}

.ctx-panel__header {
    padding: 8px 12px;
    background: var(--color-lavender);
    color: var(--color-primary-blue);
}

.ctx-panel__body {
    padding: 12px;
    font-size: 0.8125rem;
    line-height: 1.6;
    color: var(--color-text-primary);
    flex: 1;
    overflow-y: auto;
}

.ctx-source-label,
.dictation-col__label {
    color: var(--color-text-light);
    margin-bottom: 2px;
}

.ctx-source-label {
    margin-top: 6px;
}

.ctx-source-label:first-child {
    margin-top: 0;
}

.ctx-source-content {
    font-family: "fk-grotesk-mono";
    font-size: 0.75rem;
    line-height: 1.7;
    margin-bottom: 4px;
}

.ctx-sentence {
    display: block;
    margin-bottom: 2px;
    padding: 2px 4px;
    border-left: 2px solid transparent;
    border-radius: 3px;
    transition: all 0.2s ease;
}

.ctx-sentence--trace-active {
    background: rgba(154, 148, 235, 0.22);
    border-left-color: var(--color-purple-blue);
}

/* Query input */
.ctx-query-input {
    background: var(--color-pure-white);
    border: 1px solid var(--color-primary-blue);
    box-shadow: 0 0 0 1px rgba(16, 0, 235, 0.15);
    border-radius: 6px;
    padding: 8px 12px;
    font-family: "fk-grotesk-mono";
    font-size: 0.8125rem;
    color: var(--color-primary-blue);
    min-height: 20px;
    margin-bottom: 12px;
}

.ctx-query-text {
    white-space: pre-wrap;
}

.ctx-cursor {
    display: inline-block;
    width: 1px;
    height: 1em;
    background: var(--color-primary-blue);
    margin-left: 1px;
    vertical-align: text-bottom;
    animation: blink 0.8s step-end infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* Response cards */
.ctx-response-cards {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ctx-response-card {
    background: var(--color-alice-blue);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 10px 12px;
    opacity: 0;
    transform: translateY(6px);
    cursor: pointer;
    transition: opacity 0.3s ease, transform 0.3s ease, border-color 0.2s ease;
}

.ctx-response-card--visible {
    opacity: 1;
    transform: translateY(0);
}

.ctx-response-card--trace-active {
    border-color: var(--color-purple-blue);
    box-shadow: 0 0 0 1px rgba(154, 148, 235, 0.3);
}

.ctx-response-card__header {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
}

.ctx-response-card__badge {
    flex-shrink: 0;
    background: var(--color-lavender);
    color: var(--color-primary-blue);
    padding: 2px 8px;
    border-radius: 3px;
}

.ctx-response-card__title,
.proof-panel__count {
    font-family: "fk-grotesk-mono";
    font-size: 0.6875rem;
    color: var(--color-text-light);
}

.ctx-response-card__answer {
    font-size: 0.8125rem;
    color: var(--color-text-primary);
    font-weight: 500;
    line-height: 1.5;
}

.ctx-response-card__answer--grid {
    display: grid;
    grid-template-columns: repeat(3, auto);
    gap: 2px 12px;
}

.ctx-check-item {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.8125rem;
    color: var(--color-text-primary);
    font-weight: 500;
}

.ctx-check-item svg {
    flex-shrink: 0;
    color: #22c55e;
}

/* ===== SCREEN SYNC DEMO ===== */
.ss-demo-layout {
    display: grid;
    grid-template-columns: 1fr 80px 1fr;
    gap: 0;
    align-items: stretch;
    max-width: 960px;
    margin: 0 auto;
}

.ss-window {
    min-height: 300px;
}

.ss-window--lis.demo-window {
    background: #f0f0f0;
    border-radius: 4px;
    border: 1px solid #b0b0b0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Enterprise LIS header */
.lis-header {
    background: linear-gradient(180deg, #e8e8e8 0%, #d4d4d4 100%);
    border-bottom: 1px solid #b0b0b0;
    padding: 0;
}

.lis-header__toolbar {
    display: flex;
    gap: 0;
    padding: 3px 6px;
    background: linear-gradient(180deg, #f5f5f5 0%, #e0e0e0 100%);
    border-bottom: 1px solid #c0c0c0;
}

.lis-header__menu {
    font-family: "Segoe UI", Tahoma, Geneva, sans-serif;
    font-size: 0.6875rem;
    color: #333;
    padding: 2px 8px;
    cursor: default;
}

.lis-header__menu:first-child {
    text-decoration: underline;
    text-underline-offset: 2px;
}

.lis-header__title {
    display: block;
    text-align: center;
    font-family: "Segoe UI", Tahoma, Geneva, sans-serif;
    font-size: 0.6875rem;
    font-weight: 600;
    color: #444;
    padding: 6px 12px;
    background: linear-gradient(180deg, #dde4ed 0%, #c8d0dc 100%);
    border-bottom: 1px solid #b0b8c4;
}

/* Override shared demo-window styles for LIS */
.ss-window--lis .ss-panel__body {
    background: #f4f4f4;
    font-family: "Segoe UI", Tahoma, Geneva, sans-serif;
}

.ss-window--lis .ss-field {
    border-bottom: 1px solid #ddd;
    padding-bottom: 8px;
}

.ss-window--lis .ss-field__label,
.ss-window--lis .ss-diagnosis__label {
    font-family: "Segoe UI", Tahoma, Geneva, sans-serif;
    font-weight: 600;
    color: #555;
    text-transform: none;
    letter-spacing: normal;
}

.ss-window--lis .ss-field__label {
    font-size: 0.6875rem;
}

.ss-window--lis .ss-field__value {
    font-family: "Segoe UI", Tahoma, Geneva, sans-serif;
    font-size: 0.8125rem;
}

.ss-window--lis .ss-diagnosis__textarea {
    font-family: "Segoe UI", Tahoma, Geneva, sans-serif;
    background: #fff;
    border: 1px inset #999;
    border-radius: 1px;
}

.ss-window--conflux {
    background: var(--color-pure-white);
}

.ss-panel__body {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* LIS fields */
.ss-field {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.ss-field__label,
.ss-diagnosis__label {
    font-family: "fk-grotesk-mono";
    font-size: 0.6875rem;
    color: var(--color-text-light);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.ss-field__label {
    min-width: 72px;
}

.ss-field__value {
    font-size: 0.8125rem;
    color: var(--color-text-primary);
}

/* Diagnosis textarea */
.ss-diagnosis {
    margin-top: 8px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.ss-diagnosis__label {
    margin-bottom: 6px;
}

.ss-diagnosis__textarea {
    font-size: 0.8125rem;
    line-height: 1.5;
    color: var(--color-text-primary);
    background: var(--color-pure-white);
    border: 1px solid var(--color-border);
    border-radius: 6px;
    padding: 10px 12px;
    min-height: 60px;
    flex: 1;
}

.ss-caret {
    display: inline-block;
    width: 2px;
    height: 1em;
    background: var(--color-primary-blue);
    vertical-align: text-bottom;
    animation: blink 1s step-end infinite;
}

/* Sync bridge */
.ss-bridge {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0 14px;
    width: 80px;
    flex-shrink: 0;
}

.ss-bridge__arrow {
    color: var(--color-border);
    transition: color 0.4s ease, opacity 0.4s ease;
    opacity: 0.6;
}

.ss-bridge__arrow svg {
    display: block;
}

.ss-bridge__label {
    font-family: "fk-grotesk-mono";
    font-size: 0.5625rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-text-light);
    transition: color 0.4s ease;
}

/* Bridge active: subtle pulse on the arrow */
.ss-bridge--active .ss-bridge__arrow {
    color: var(--color-primary-blue);
    opacity: 1;
    animation: ss-arrow-pulse 2s ease-in-out infinite;
}

.ss-bridge--active .ss-bridge__label {
    color: var(--color-primary-blue);
}

@keyframes ss-arrow-pulse {

    0%,
    100% {
        opacity: 0.55;
    }

    50% {
        opacity: 1;
    }
}

/* Insight cards */
.ss-insights {
    gap: 10px;
}

.ss-insight {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid var(--color-border);
    background: var(--color-pure-white);
    transform: translateX(16px);
    opacity: 0;
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.ss-insight--visible {
    transform: translateX(0);
    opacity: 1;
}

.ss-insight--hidden {
    transform: translateX(16px);
    opacity: 0;
}

.ss-insight__icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ss-insight__icon--context {
    background: var(--color-alice-blue);
    color: var(--color-primary-blue);
}

.ss-insight__icon--evidence {
    background: #F3F0FF;
    color: var(--color-purple-blue);
}

.ss-insight__icon--proofread {
    background: var(--color-warning-bg);
    color: var(--color-warning);
}

.ss-insight__text,
.mock-part__body {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.ss-insight__text strong {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-text-primary);
}

.ss-insight__text span {
    font-size: 0.6875rem;
    color: var(--color-text-secondary);
    line-height: 1.4;
}

/* Screen sync responsive */
@media (max-width: 640px) {
    .ss-demo-layout {
        grid-template-columns: 1fr;
    }

    .ss-bridge {
        flex-direction: row;
        padding: 12px 0;
    }

    .ss-bridge__arrow svg {
        transform: rotate(90deg);
    }
}

/* ===== DICTATION DEMO ===== */
.demo-window__content--dictation,
.dictation-col {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.dictation-step-arrow {
    display: flex;
    justify-content: center;
    color: var(--color-text-light);
    opacity: 0.5;
    margin: 0;
}

.dictation-input {
    display: flex;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-md);
    background: var(--color-alice-blue);
    border-radius: 4px;
    align-items: center;
    box-sizing: border-box;
    height: 110px;
}

.mic-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.mic-icon {
    font-size: 1.5rem;
    opacity: 0.5;
    transition: all 0.3s ease;
}

.mic-active .mic-icon {
    opacity: 1;
    animation: micPulse 1s ease-in-out infinite;
}

@keyframes micPulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

.mic-waves {
    display: flex;
    gap: 3px;
    height: 20px;
    align-items: center;
}

.mic-waves span {
    width: 3px;
    height: 8px;
    background: var(--color-border);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.waves-active span {
    background: var(--color-primary-blue);
    animation: wave 0.5s ease-in-out infinite;
}

.waves-active span:nth-child(2) {
    animation-delay: 0.1s;
}

.waves-active span:nth-child(3) {
    animation-delay: 0.2s;
}

@keyframes wave {

    0%,
    100% {
        height: 8px;
    }

    50% {
        height: 16px;
    }
}

.dictation-text {
    flex: 1;
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--color-text-primary);
}

.dictation-placeholder,
.proof-empty {
    color: var(--color-text-light);
    font-style: italic;
}

.dictation-live {
    color: var(--color-text-primary);
}

.dictation-reasoning {
    padding: var(--spacing-sm) var(--spacing-md);
    background: var(--color-pure-white);
    border: 1px solid var(--color-border);
    border-radius: 4px;
    box-sizing: border-box;
    position: relative;
}

.dictation-sizer {
    visibility: hidden;
    pointer-events: none;
    user-select: none;
}

.dictation-diagnosis .dictation-sizer {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.dictation-reasoning__overlay,
.dictation-diagnosis__overlay {
    position: absolute;
    inset: 0;
    box-sizing: border-box;
    overflow: hidden;
}

.dictation-reasoning__overlay {
    padding: var(--spacing-sm) var(--spacing-md);
}

.dictation-diagnosis__overlay {
    padding: var(--spacing-md);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.output-label {
    color: var(--color-primary-blue);
    margin-bottom: 6px;
}

.output-fields {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
}

.output-field {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 6px;
}

.output-key {
    font-size: 0.6875rem;
    color: var(--color-text-light);
    text-transform: uppercase;
    font-family: "gt-pressura";
    flex-shrink: 0;
    width: 72px;
}

.output-val {
    font-size: 0.8125rem;
    color: var(--color-text-secondary);
    transition: color 0.3s ease;
}

.output-highlight {
    color: var(--color-primary-blue);
    font-weight: 500;
}

.skeleton-bar {
    display: inline-block;
    height: 8px;
    width: 72px;
    background: linear-gradient(90deg, var(--color-border) 25%, #f0f0f6 50%, var(--color-border) 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.4s ease-in-out infinite;
    border-radius: 4px;
    vertical-align: middle;
}

@keyframes skeleton-shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

.dictation-diagnosis {
    padding: var(--spacing-md);
    background: linear-gradient(135deg, var(--color-alice-blue) 0%, var(--color-lavender) 100%);
    border-radius: 4px;
    border: 1px solid var(--color-lavender);
    box-sizing: border-box;
    overflow: hidden;
    position: relative;
}

.diagnosis-actions {
    display: flex;
    gap: 6px;
    position: absolute;
    top: var(--spacing-md);
    right: var(--spacing-md);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.diagnosis-actions--visible {
    opacity: 1;
}

.diagnosis-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 0 10px;
    height: 28px;
    border-radius: 4px;
    border: 1px solid var(--color-border);
    background: var(--color-pure-white);
    cursor: pointer;
    color: var(--color-text-light);
    font-family: "gt-pressura";
    font-size: 0.6875rem;
    transition: all 0.2s ease;
}

.diagnosis-action-btn:hover {
    border-color: var(--color-primary-blue);
    color: var(--color-primary-blue);
    background: var(--color-alice-blue);
}

.diagnosis-action-btn--approve:hover {
    border-color: #28c840;
    color: #28c840;
    background: #f0fdf4;
}

.diag-lines {
    display: flex;
    flex-direction: column;
    padding-right: 116px;
}

.diag-line {
    font-size: 0.8125rem;
    line-height: 1.6;
    min-height: calc(0.8125rem * 1.6);
    display: flex;
    align-items: center;
    color: var(--color-text-secondary);
    transition: color 1s ease;
    overflow: hidden;
}

.diag-line--fresh {
    color: var(--color-primary-blue);
    animation: diagLinePop 0.2s ease forwards;
}

@keyframes diagLinePop {
    from {
        opacity: 0.5;
        transform: translateY(3px);
    }

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

/* ===== GUIDELINES & VALIDATION DEMO ===== */
.demo-window__content--guidelines {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0;
    min-height: auto;
}

.guidelines-cards {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 6px 10px;
}

.guideline-card--hidden {
    opacity: 0;
    transform: translateY(20px);
}

.guideline-card--show {
    animation: slideIn 0.4s ease forwards;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

/* ===== ARTICLE RECOMMENDATION CARDS ===== */
.article-card {
    background: var(--color-pure-white);
    border: 1px solid var(--color-border);
    border-radius: 10px;
    padding: 8px 11px;
    margin-bottom: 6px;
    transition: all 0.4s ease;
    opacity: 1;
    transform: translateY(0);
}

.article-card__header {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: "gt-pressura";
    font-size: 0.625rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-primary-blue);
    margin-bottom: 5px;
}

.article-card__ext {
    margin-left: auto;
    color: var(--color-text-light);
    opacity: 0.5;
}

.article-card__source {
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--color-text-primary);
    line-height: 1.3;
}

.article-card__authors {
    font-size: 0.75rem;
    color: var(--color-text-secondary);
    margin-bottom: 4px;
}

.article-card__link {
    display: block;
    font-size: 0.75rem;
    font-style: italic;
    color: var(--color-primary-blue);
    text-decoration: underline;
    text-decoration-color: rgba(16, 0, 235, 0.35);
    text-underline-offset: 2px;
    margin-bottom: 4px;
    line-height: 1.4;
    cursor: pointer;
    transition: color 0.2s ease;
}

.article-card__link:hover {
    color: var(--color-dark-blue);
    text-decoration-color: var(--color-dark-blue);
}

.article-card__desc {
    font-size: 0.725rem;
    color: var(--color-text-secondary);
    line-height: 1.45;
    margin-bottom: 6px;
}

.article-card__callout {
    background: var(--color-bg);
    border-left: 3px solid var(--color-primary-blue);
    border-radius: 0 8px 8px 0;
    padding: 5px 9px;
}

.article-card__callout-tag {
    display: inline-block;
    font-family: "gt-pressura";
    font-size: 0.575rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-text-primary);
    padding: 2px 7px;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    margin-bottom: 3px;
}

.article-card__callout-quote {
    font-size: 0.725rem;
    font-style: italic;
    color: var(--color-text-primary);
    line-height: 1.45;
    margin-bottom: 4px;
}

.article-card__callout-explanation {
    font-size: 0.725rem;
    color: var(--color-text-secondary);
    line-height: 1.4;
}

/* ===== NARRATIVE BAND ===== */
.narrative-band {
    padding: var(--spacing-3xl) 0;
    background: var(--color-dark-blue);
    color: var(--color-pure-white);
    position: relative;
    overflow: hidden;
}

.narrative-band::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -15%;
    width: 60%;
    height: 140%;
    background: radial-gradient(circle, rgba(198, 207, 255, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.narrative-band__header {
    text-align: left;
    max-width: 100%;
    margin: 0;
}

.narrative-band__header .eyebrow {
    color: var(--color-lavender);
    margin-bottom: var(--spacing-sm);
}

.narrative-band__title {
    color: var(--color-pure-white);
    margin-bottom: var(--spacing-md);
    text-wrap: balance;
}

.narrative-band__subtitle {
    color: rgba(255, 255, 255, 0.7);
}

.narrative-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
    max-width: 100%;
    margin: var(--spacing-2xl) 0 var(--spacing-xl);
}

.narrative-stat {
    text-align: left;
    padding: var(--spacing-lg) var(--spacing-md);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(198, 207, 255, 0.12);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.narrative-stat:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(198, 207, 255, 0.25);
    transform: translateY(-2px);
}

.narrative-stat__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: rgba(198, 207, 255, 0.1);
    color: var(--color-lavender);
    margin: 0 0 var(--spacing-sm);
}

.narrative-stat__text {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
}

.narrative-band__bridge {
    text-align: left;
    max-width: 100%;
    margin: var(--spacing-2xl) 0 0;
    padding: var(--spacing-lg) var(--spacing-xl);
    border: 1px solid rgba(198, 207, 255, 0.18);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
}

.narrative-band__bridge p {
    color: rgba(255, 255, 255, 0.88);
    font-size: 1.0625rem;
    margin: 0;
}

.narrative-band__bridge strong {
    color: var(--color-lavender);
    font-weight: 600;
}

/* Two-column layout for narrative band */
.narrative-band__layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: var(--spacing-2xl);
    align-items: center;
}

/* H&E Pathology image visual */
.narrative-band__visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-sm);
    flex-shrink: 0;
}

.he-image-frame {
    position: relative;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow:
        0 0 0 1px rgba(198, 207, 255, 0.15),
        0 8px 32px rgba(0, 0, 0, 0.5),
        0 0 80px rgba(71, 229, 188, 0.12);
    transition: box-shadow 0.4s ease, transform 0.4s ease;
    border: 4px solid rgba(255, 255, 255, 0.05);
}

.he-image-frame:hover {
    box-shadow:
        0 0 0 1px rgba(198, 207, 255, 0.25),
        0 12px 48px rgba(0, 0, 0, 0.6),
        0 0 120px rgba(71, 229, 188, 0.2);
    transform: translateY(-4px) scale(1.01);
}

.he-image {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 16px;
}

.he-image__glow {
    position: absolute;
    inset: 0;
    border-radius: 16px;
    background: linear-gradient(135deg,
            rgba(71, 229, 188, 0.04) 0%,
            transparent 50%,
            rgba(198, 207, 255, 0.04) 100%);
    pointer-events: none;
}

.he-image__caption {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: "fk-grotesk-mono";
    font-size: 0.6875rem;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.he-caption-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #47E5BC;
    opacity: 0.7;
    animation: captionPulse 2.5s ease-in-out infinite;
}

@keyframes captionPulse {

    0%,
    100% {
        opacity: 0.7;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.3);
    }
}

/* ===== COPILOT CONVERGENCE SECTION ===== */
.copilot-section {
    padding: var(--spacing-2xl) 0;
    background: linear-gradient(180deg, var(--color-alice-blue) 0%, #dde4ff 100%);
    position: relative;
    overflow: hidden;
}

.copilot-section::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -10%;
    width: 55%;
    height: 140%;
    background: radial-gradient(circle, rgba(16, 0, 235, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.copilot-section__header {
    position: relative;
    z-index: 1;
}

.copilot-section__header .eyebrow {
    margin-bottom: var(--spacing-sm);
}

.copilot-section__title {
    margin-bottom: var(--spacing-md);
}


.copilot-section__platform {
    text-align: left;
    max-width: 640px;
    margin: 0;
    color: var(--color-text-light);
    font-size: 0.9375rem;
    position: relative;
    z-index: 1;
}

/* ===== THREE MODES ===== */

.copilot-section__modes-heading {
    font-family: "apk-galeria", serif;
    font-size: 1.5rem;
    color: var(--color-primary-blue);
    margin-top: var(--spacing-xl);
    margin-bottom: 0.25rem;
    position: relative;
    z-index: 1;
}

.copilot-modes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: var(--spacing-xl);
    position: relative;
    z-index: 1;
}

.copilot-mode {
    padding: 2rem 1.5rem;
    border: 1px solid var(--color-lavender);
    border-top: 3px solid var(--color-lavender);
    border-radius: 12px;
    background: var(--color-pure-white);
    transition: box-shadow 0.2s ease;
}

.copilot-mode:hover {
    box-shadow: 0 8px 24px rgba(16, 0, 235, 0.08);
}

.copilot-mode--proofread {
    border-top-color: #0EA5A5;
}

.copilot-mode--review {
    border-top-color: var(--color-purple-blue);
}

.copilot-mode__icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-alice-blue);
    border-radius: 10px;
    color: var(--color-primary-blue);
    margin-bottom: var(--spacing-sm);
}

.copilot-mode__icon--proofread {
    background: #EFFAFA;
    color: #0EA5A5;
}

.copilot-mode__icon--review {
    background: #F0EFFE;
    color: var(--color-purple-blue);
}

/* Integration card — future/coming-soon treatment */
.copilot-mode--integration {
    position: relative;
    border: 1px dashed rgba(16, 0, 235, 0.2);
    border-top: 3px dashed rgba(16, 0, 235, 0.25);
    background: linear-gradient(135deg, rgba(239, 246, 255, 0.5) 0%, rgba(221, 228, 255, 0.3) 100%);
}

.copilot-mode--integration:hover {
    box-shadow: 0 8px 24px rgba(16, 0, 235, 0.06);
    border-color: rgba(16, 0, 235, 0.3);
    border-top-color: rgba(16, 0, 235, 0.35);
}

.copilot-mode--integration .copilot-mode__title {
    color: var(--color-text-secondary);
}

.copilot-mode__badge {
    position: absolute;
    top: 12px;
    right: 12px;
    color: var(--color-primary-blue);
    background: rgba(198, 207, 255, 0.35);
    border: 1px solid rgba(16, 0, 235, 0.15);
    padding: 3px 10px;
    border-radius: 4px;
}

.copilot-mode__icon--integration {
    background: rgba(198, 207, 255, 0.25);
    color: var(--color-text-light);
}

.copilot-mode__title {
    font-family: "gt-pressura", sans-serif;
    font-size: 1.125rem;
    font-weight: 400;
    color: var(--color-primary-blue);
    margin-bottom: 0.5rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.copilot-mode--proofread .copilot-mode__title {
    color: #0E8F8F;
}

.copilot-mode--review .copilot-mode__title {
    color: #6B63D0;
}

.copilot-mode__desc {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--color-text-secondary);
    margin: 0;
}

.copilot-mode__contact {
    font-weight: 600;
    color: var(--color-primary-blue);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1.5px;
    transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.copilot-mode__contact:hover {
    color: var(--color-dark-blue, #0a00b0);
    text-decoration-color: currentColor;
}

@media (max-width: 768px) {
    .copilot-section__modes-heading {
        font-size: 1.25rem;
        margin-top: var(--spacing-lg);
    }

    .copilot-modes {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .copilot-mode {
        padding: 1.5rem 1.25rem;
    }
}

/* ===== COPILOT PRODUCT MOCK ===== */

.copilot-mock-wrap {
    position: relative;
    z-index: 1;
    margin-bottom: var(--spacing-lg);
}

.copilot-mock {
    background: var(--color-pure-white);
    border-radius: 12px;
    border: 1px solid var(--color-border);
    box-shadow: 0 24px 64px rgba(16, 0, 235, 0.13), 0 2px 8px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    max-width: 780px;
    margin: 0 auto;
}

/* Chrome bar */
.mock-chrome {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    background: var(--color-alice-blue);
    border-bottom: 1px solid var(--color-border);
}

.mock-chrome__dots {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
}


.mock-chrome__brand {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mock-chrome__logo {
    height: 15px;
    width: auto;
    display: block;
}

.mock-chrome__export {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 9px;
    border: 1px solid var(--color-border);
    border-radius: 5px;
    font-size: 0.6875rem;
    color: var(--color-text-secondary);
    flex-shrink: 0;
    cursor: default;
}

/* Two-column body */
.mock-body {
    display: grid;
    grid-template-columns: 1fr 290px;
}

/* ─── Left: report panel ─── */
.mock-report {
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--color-border);
    overflow: hidden;
}

.mock-report__hdr {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 14px 7px;
    border-bottom: 1px solid var(--color-border);
    font-family: "apk-galeria";
    font-size: 0.875rem;
    color: var(--color-text-primary);
    flex-shrink: 0;
}

/* Specimen part row */
.mock-part {
    display: flex;
    gap: 9px;
    padding: 6px 14px;
    border-bottom: 1px solid rgba(224, 224, 235, 0.6);
    border-left: 3px solid transparent;
    flex-shrink: 0;
}

.mock-part--ai {
    border-left-color: rgba(16, 0, 235, 0.25);
}

.mock-part--warned {
    border-left-color: rgba(255, 152, 97, 0.5);
}

.mock-part--info {
    border-left-color: rgba(198, 207, 255, 0.7);
}

.mock-part__idx {
    font-size: 0.75rem;
    color: var(--color-text-light);
    width: 12px;
    flex-shrink: 0;
    padding-top: 1px;
}

.mock-part__body {
    flex: 1;
}

.mock-part__spec {
    font-size: 0.75rem;
    color: var(--color-text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mock-part__dx {
    font-size: 0.8125rem;
    color: var(--color-text-primary);
    line-height: 1.4;
}

/* Flag chip */
.mock-flag {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    margin-top: 3px;
    padding: 2px 6px;
    border-radius: 4px;
    align-self: flex-start;
}

.mock-flag--warn {
    background: rgba(255, 152, 97, 0.12);
    color: #8B4513;
    border: 1px solid rgba(255, 152, 97, 0.28);
}

.mock-flag--info {
    background: rgba(198, 207, 255, 0.25);
    color: var(--color-primary-blue);
    border: 1px solid rgba(198, 207, 255, 0.55);
}

/* Bottom bar */
.mock-signout-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 7px 14px;
    background: #FAFBFF;
    border-top: 1px solid var(--color-border);
}

.mock-case-info {
    font-family: "fk-grotesk-mono";
    font-size: 0.5625rem;
    color: var(--color-text-light);
    white-space: nowrap;
}

.mock-signout-count-flag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--color-warning);
}

/* ─── Right: sidebar ─── */
.mock-sidebar {
    display: flex;
    flex-direction: column;
    background: #F8F9FF;
    overflow: hidden;
}

/* Card base */
.mock-card {
    padding: 13px 14px;
    border-bottom: 1px solid var(--color-border);
    flex-shrink: 0;
}

.mock-card__label {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--color-text-light);
    margin-bottom: 7px;
}

/* Pharma card */
.mock-card--pharma {
    background: linear-gradient(160deg, #FFFDF0 0%, #FFF7DC 100%);
    border-left: 3px solid #D4920A;
    border-bottom-color: rgba(212, 146, 10, 0.18);
}

.mock-card--pharma .mock-card__label {
    color: #7A5208;
}

.mock-pharma__title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: 5px;
    line-height: 1.3;
}

.mock-pharma__body {
    font-size: 0.75rem;
    color: var(--color-text-secondary);
    line-height: 1.5;
    margin-bottom: 9px;
}

.mock-pharma__drug {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 4px;
    padding: 5px 8px;
    background: rgba(212, 146, 10, 0.09);
    border-radius: 6px;
    border: 1px solid rgba(212, 146, 10, 0.2);
    overflow: hidden;
}

.mock-drug-if {
    color: #7A5208;
    flex-shrink: 0;
}

.mock-drug-name {
    font-size: 0.6875rem;
    color: var(--color-text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.mock-drug-ref {
    font-family: "fk-grotesk-mono";
    font-size: 0.5625rem;
    color: var(--color-text-light);
    border: 1px solid var(--color-border);
    border-radius: 3px;
    padding: 1px 4px;
    background: var(--color-pure-white);
    white-space: nowrap;
    flex-shrink: 0;
    margin-left: auto;
}

/* Evidence card */
.mock-card--evidence {
    background: var(--color-pure-white);
    flex: 1;
}

.mock-card--evidence .mock-card__label {
    color: var(--color-primary-blue);
}

.mock-evidence__title {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: 5px;
}

.mock-evidence__body {
    font-size: 0.75rem;
    color: var(--color-text-secondary);
    line-height: 1.55;
    font-style: italic;
}

/* Feature legend */
.mock-legend,
.cta-section__buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

.mock-legend {
    margin-top: var(--spacing-sm);
}

.mock-legend-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-family: "gt-pressura";
    font-size: 0.5625rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--color-text-light);
}

.mock-legend-pip {
    width: 8px;
    height: 8px;
    border-radius: 2px;
    flex-shrink: 0;
}

/* ─── Mobile wireframe mode ─── */
@media (max-width: 640px) {
    .mock-body {
        grid-template-columns: 1fr;
    }

    .mock-report {
        border-right: none;
        border-bottom: 1px solid var(--color-border);
    }

    .mock-case-info,
    .mock-typed {
        display: none;
    }

    /* Text content becomes wireframe bars */
    .mock-part__spec {
        background: rgba(72, 85, 99, 0.14);
        color: transparent;
        border-radius: 2px;
        height: 7px;
        width: 58%;
        display: block;
        margin-bottom: 1px;
    }

    .mock-part__dx {
        background: rgba(3, 0, 55, 0.09);
        color: transparent;
        border-radius: 2px;
        height: 8px;
        width: 82%;
        display: block;
    }

    .mock-part--ai .mock-part__dx {
        background: rgba(16, 0, 235, 0.1);
        width: 68%;
    }

    .mock-sidebar {
        background: var(--color-pure-white);
    }

    .mock-pharma__body {
        background: rgba(212, 146, 10, 0.08);
        color: transparent;
        border-radius: 2px;
        height: 8px;
        width: 90%;
        display: block;
        margin-bottom: 9px;
    }

    .mock-evidence__body {
        background: rgba(72, 85, 99, 0.1);
        color: transparent;
        border-radius: 2px;
        height: 8px;
        width: 88%;
        display: block;
    }

    .mock-legend {
        gap: var(--spacing-sm);
    }

    .mock-legend-item {
        font-size: 0.5rem;
    }
}

/* ===== PROOFREADING DEMO ===== */
.demo-window__content--proofreading {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    padding: 0;
    min-height: 340px;
}

/* Left: report panel */
.proof-report {
    display: flex;
    flex-direction: column;
    background: var(--color-alice-blue);
    border-right: 1px solid var(--color-border);
    padding: 16px;
    gap: 0;
}

.proof-report__header,
.proof-panel__title {
    color: var(--color-text-light);
}

.proof-report__header {
    margin-bottom: 12px;
}

.proof-report__body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.proof-line {
    display: flex;
    gap: 6px;
    align-items: baseline;
    padding: 7px 8px;
    border-radius: 6px;
    margin-bottom: 2px;
    transition: background 0.3s ease, border-left 0.3s ease;
    border-left: 3px solid transparent;
}

.proof-line--error,
.proof-line--warning {
    animation: proofLineFlash 0.4s ease;
}

.proof-line--error {
    background: rgba(255, 90, 124, 0.08);
    border-left-color: var(--color-critical);
}

.proof-line--warning {
    background: rgba(255, 152, 97, 0.08);
    border-left-color: var(--color-warning);
}

@keyframes proofLineFlash {
    0% {
        opacity: 0.4;
    }

    100% {
        opacity: 1;
    }
}

.proof-label {
    font-family: "gt-pressura";
    font-size: 0.625rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-light);
    flex-shrink: 0;
    min-width: 68px;
    padding-top: 1px;
}

.proof-text {
    font-size: 0.8125rem;
    color: var(--color-text-secondary);
    line-height: 1.45;
}

.proof-signout {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 14px;
    padding: 8px 14px;
    border-radius: 6px;
    border: 1px solid var(--color-border);
    background: var(--color-pure-white);
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--color-text-secondary);
    cursor: default;
    transition: all 0.4s ease;
    align-self: flex-start;
    position: relative;
}

.proof-signout--blocked {
    border-color: var(--color-critical);
    color: var(--color-critical);
    background: var(--color-critical-bg);
    animation: signoutShake 0.4s ease;
}

@keyframes signoutShake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-3px);
    }

    75% {
        transform: translateX(3px);
    }
}

.proof-signout__blocker {
    display: none;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    background: var(--color-critical);
    color: #fff;
    font-family: "fk-grotesk-mono";
    font-size: 0.625rem;
    font-weight: 700;
    padding: 0 4px;
}

/* Right: live checks panel */
.proof-panel {
    display: flex;
    flex-direction: column;
    background: var(--color-pure-white);
}

.proof-panel__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px 10px;
    border-bottom: 1px solid var(--color-border);
    flex-shrink: 0;
}

.proof-panel__count {
    transition: color 0.3s ease;
}

.proof-panel__count--active {
    color: var(--color-critical);
    font-weight: 600;
}

.proof-errors {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 10px 12px;
    gap: 8px;
    overflow: hidden;
}

.proof-placeholder {
    font-size: 0.8125rem;
    color: var(--color-text-light);
    font-style: italic;
    padding: 4px 2px;
    animation: proofScanPulse 1.4s ease-in-out infinite;
}

@keyframes proofScanPulse {

    0%,
    100% {
        opacity: 0.6;
    }

    50% {
        opacity: 1;
    }
}

/* Proofreading error cards */
.proof-error-card {
    display: flex;
    gap: 0;
    background: var(--color-critical-bg);
    border: 1px solid rgba(255, 90, 124, 0.15);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.35s ease;
    opacity: 1;
    transform: translateY(0);
}

.proof-error-card--hidden {
    opacity: 0;
    transform: translateY(14px);
    pointer-events: none;
}

.proof-error-card--show {
    animation: proofCardIn 0.35s ease forwards;
}

@keyframes proofCardIn {
    from {
        opacity: 0;
        transform: translateY(14px);
    }

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

.proof-error-card__bar {
    width: 3px;
    flex-shrink: 0;
}

.proof-error-card__bar--critical {
    background: var(--color-critical);
}

.proof-error-card__bar--warning {
    background: var(--color-warning);
}

.proof-error-card__body {
    padding: 10px 12px;
    flex: 1;
}

.proof-error-card:has(.proof-error-card__bar--warning) {
    background: var(--color-warning-bg);
    border-color: rgba(255, 152, 97, 0.15);
}

.proof-error-card__pill {
    display: inline-flex;
    padding: 2px 7px;
    border-radius: 3px;
    margin-bottom: 5px;
}

.proof-error-card__pill--critical {
    background: rgba(255, 90, 124, 0.12);
    color: var(--color-critical-text);
}

.proof-error-card__pill--warning {
    background: rgba(255, 152, 97, 0.12);
    color: var(--color-warning-text);
}

.proof-error-card__title {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: 2px;
    line-height: 1.3;
}

.proof-error-card__desc {
    font-size: 0.75rem;
    color: var(--color-text-secondary);
    line-height: 1.45;
}

/* ===== CTA SECTION ===== */
.cta-section {
    text-align: center;
    background: linear-gradient(135deg, var(--color-dark-blue) 0%, #1a0080 100%);
    padding: var(--spacing-3xl) 0;
}

.cta-section__title {
    margin-bottom: var(--spacing-sm);
    color: var(--color-pure-white);
}

.cta-section__subtitle {
    margin-bottom: var(--spacing-xl);
    color: var(--color-lavender);
}

.cta-section__email-btn {
    display: inline-flex;
    align-items: center;
    padding: var(--spacing-sm) var(--spacing-lg);
    background: var(--color-neon-green);
    color: var(--color-dark-blue);
    font-weight: 500;
    font-size: 1rem;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.cta-section__email-btn:hover {
    background: #bcd900;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(208, 242, 0, 0.3);
}

.cta-section__email-btn--secondary {
    background: rgba(198, 207, 255, 0.15);
    color: var(--color-pure-white);
}

.cta-section__email-btn--secondary:hover {
    background: rgba(198, 207, 255, 0.25);
    box-shadow: 0 8px 25px rgba(198, 207, 255, 0.15);
}

.cta-neon-btn {
    display: inline-block;
    padding: var(--spacing-md) var(--spacing-2xl);
    font-size: clamp(0.9375rem, 4vw, 1.125rem);
    font-weight: 600;
    color: #0a0040;
    background: var(--color-neon, #d0f200);
    border: none;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 0 20px rgba(208, 242, 0, 0.4), 0 0 60px rgba(208, 242, 0, 0.15);
    transition: all 0.25s ease;
    text-align: center;
    max-width: 100%;
    text-wrap: balance;
}

.cta-neon-btn:hover {
    background: #e0ff33;
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(208, 242, 0, 0.6), 0 0 80px rgba(208, 242, 0, 0.25);
}

.contact-pill {
    display: inline-flex;
    align-items: center;
    padding: var(--spacing-xs) var(--spacing-md);
    background: var(--color-pure-white);
    border-radius: 999px;
    font-family: "fk-grotesk-mono";
    font-size: 0.875rem;
    color: var(--color-text-primary);
    border: 1px solid var(--color-border);
    transition: all 0.2s ease;
}

.contact-pill:hover {
    border-color: var(--color-primary-blue);
    box-shadow: 0 4px 12px rgba(16, 0, 235, 0.1);
}

/* ===== FOOTER ===== */
.footer {
    background: var(--color-pure-white);
    border-top: 1px solid var(--color-border);
    padding: var(--spacing-xl) 0;
}

.footer__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--spacing-md);
}

.footer__copyright {
    font-size: 0.875rem;
    color: var(--color-text-light);
}

.footer__links {
    display: flex;
    gap: var(--spacing-lg);
}

.footer__link {
    font-size: 0.875rem;
    color: var(--color-text-secondary);
    transition: color 0.2s ease;
}

.footer__link:hover {
    color: var(--color-primary-blue);
}

/* ===== ABOUT PAGE ===== */
.about-hero,
.foundry-hero {
    padding-top: calc(var(--header-height) + var(--banner-height) + var(--spacing-3xl));
    background: var(--color-pure-white);
}

.blog-hero,
.post-hero {
    padding-top: calc(var(--header-height) + var(--banner-height) + var(--spacing-3xl));
    background: linear-gradient(180deg, var(--color-alice-blue) 0%, var(--color-pure-white) 100%);
}

.mission-card {
    background: linear-gradient(135deg, var(--color-alice-blue) 0%, #dde4ff 100%);
    border-radius: 8px;
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

.mission-card__eyebrow {
    font-size: 0.875rem;
    margin-bottom: var(--spacing-sm);
}

.mission-card__text {
    font-size: 1.0625rem;
    color: var(--color-text-primary);
    line-height: 1.8;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(357px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

.team-card {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    background: var(--color-pure-white);
    border-radius: 6px;
    border: 1px solid var(--color-border);
    transition: all 0.3s ease;
}

.team-card__header {
    display: flex;
    gap: var(--spacing-md);
    align-items: center;
}


.team-card__photo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--color-alice-blue), var(--color-lavender));
}

.team-card__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-card__info {
    flex: 1;
}

.team-card__name {
    font-family: "apk-galeria";
    font-size: 1.125rem;
    color: var(--color-primary-blue);
    margin-bottom: 2px;
}

.team-card__role {
    font-size: 0.75rem;
    color: var(--color-purple-blue);
    margin-bottom: var(--spacing-xs);
}

.team-card__bio {
    font-size: 0.9375rem;
    color: var(--color-text-light);
    line-height: 1.6;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .nav {
        gap: var(--spacing-md);
    }

    .hero {
        min-height: auto;
        padding: 0 !important;
    }

    .hero__frame {
        border-radius: 0;
        min-height: 480px;
    }

    .hero__content {
        padding: 2rem 1.25rem;
    }

    .hero__title {
        font-size: 2.25rem;
    }

    .hero__subtitle {
        font-size: 1rem;
        line-height: 1.6;
    }

    .section,
    .feature-section {
        padding: var(--spacing-lg) 0;
    }

    .feature-section__header {
        margin-bottom: var(--spacing-md);
    }

    .narrative-band {
        padding: var(--spacing-xl) 0;
    }

    .narrative-band__layout {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }

    .narrative-band__visual {
        order: -1;
        max-width: 320px;
        margin: 0 auto;
    }

    .narrative-stats {
        grid-template-columns: 1fr;
        gap: var(--spacing-sm);
    }

    .footer__inner {
        flex-direction: column;
        text-align: center;
    }

    .team-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    .team-card {
        padding: var(--spacing-sm);
    }

    .team-card__header {
        gap: var(--spacing-sm);
    }

    .narrative-band__bridge {
        padding-left: var(--spacing-md);
        padding-right: var(--spacing-md);
    }

    .blog-hero,
    .foundry-hero,
    .about-hero {
        padding-top: var(--spacing-lg);
        padding-bottom: var(--spacing-lg);
    }
}

@media (max-width: 640px) {

    .launch-banner {
        position: relative;
        height: auto;
        min-height: var(--banner-height);
        padding: 0.5rem 1rem;
        text-align: center;
        width: 100%;
        left: 0;
        right: 0;
    }

    .header {
        position: sticky;
        top: 0;
    }

    .nav__mobile-menu {
        top: 100%;
    }

    .launch-banner__text {
        font-size: 0.75rem;
        white-space: normal;
        overflow: visible;
        text-overflow: unset;
        line-height: 1.4;
        text-wrap: balance;
    }

    .launch-banner__arrow,
    .nav__divider,
    .nav > .nav__link,
    .nav__cta,
    .trace-svg {
        display: none;
    }

    .nav__hamburger {
        display: flex;
    }

    .demo-window__content {
        grid-template-columns: 1fr;
    }

    .demo-window__content--context {
        grid-template-columns: 1fr;
        height: auto;
        max-height: 500px;
    }

    .ctx-panel--source {
        border-right: none;
        border-bottom: 1px solid var(--color-border);
        max-height: 180px;
        overflow-y: auto;
    }

    .ctx-panel--source .ctx-panel__body {
        padding: 8px 10px;
    }

    .ctx-panel--source .ctx-source-content {
        line-height: 1.4;
    }

    .ctx-panel--source .ctx-sentence {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        margin-bottom: 1px;
        padding: 1px 4px;
    }

    .dictation-reasoning,
    .dictation-reasoning__overlay {
        padding: var(--spacing-xs) var(--spacing-sm);
    }

    .output-fields {
        grid-template-columns: 1fr;
    }

    .output-field {
        gap: 6px;
    }

    .diag-lines {
        padding-right: 0;
    }

    .diagnosis-actions {
        position: static;
        opacity: 1;
        justify-content: flex-start;
    }
}

@media (max-width: 480px) {
    .output-fields {
        grid-template-columns: 1fr;
    }

    .output-key {
        width: auto;
    }

    .team-card {
        flex-direction: column;
    }

    .subscribe-tray {
        right: var(--spacing-sm);
        left: var(--spacing-sm);
        bottom: var(--spacing-sm);
        padding: var(--spacing-sm);
        max-width: none;
    }

    .btn {
        width: 100%;
    }

    .subscribe-tray .btn {
        width: auto;
    }
}

/* ===== BLOG LIST PAGE ===== */
.blog-grid,
.foundry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: var(--spacing-lg);
}

.blog-card,
.foundry-card {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    padding: var(--spacing-lg);
    background: var(--color-pure-white);
    border-radius: 8px;
    border: 1px solid var(--color-border);
    transition: all 0.3s ease;
    color: inherit;
}

.blog-card:hover,
.foundry-card:hover,
.team-card:hover {
    border-color: var(--color-lavender);
    box-shadow: 0 8px 30px rgba(16, 0, 235, 0.08);
}

.blog-card:hover,
.foundry-card:hover {
    transform: translateY(-2px);
}

.meta-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.meta-sep {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--color-border);
    display: inline-block;
}

.meta-author {
    font-size: 0.6875rem;
    color: var(--color-purple-blue);
}

.blog-card__title,
.foundry-card__title {
    font-family: "apk-galeria";
    font-size: 1.375rem;
    line-height: 1.3;
    color: var(--color-primary-blue);
}

.blog-card__excerpt,
.foundry-card__description {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--color-text-secondary);
    flex: 1;
}

.blog-card__read-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.875rem;
    color: var(--color-primary-blue);
    margin-top: var(--spacing-xs);
    transition: gap 0.2s ease;
}

.blog-card:hover .blog-card__read-more {
    gap: 10px;
}

/* ===== BLOG POST PAGE ===== */
.post-hero__back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.875rem;
    color: var(--color-text-light);
    margin-bottom: var(--spacing-lg);
    transition: color 0.2s ease;
}

.post-hero__back:hover {
    color: var(--color-primary-blue);
}

.post-hero .meta-row {
    margin-bottom: var(--spacing-md);
}

.post-hero .meta-date {
    font-size: 0.8125rem;
}

.post-hero .meta-author {
    font-size: 0.75rem;
}

.post-body {
    padding: var(--spacing-3xl) 0;
}

.post-body__inner {
    max-width: 720px;
}

.post-body__inner h2 {
    font-family: "apk-galeria";
    font-size: clamp(1.375rem, 3vw, 1.875rem);
    line-height: 1.2;
    color: var(--color-primary-blue);
    margin-top: var(--spacing-2xl);
    margin-bottom: var(--spacing-md);
}

.post-body__inner h3 {
    font-family: "apk-galeria";
    font-size: 1.25rem;
    line-height: 1.3;
    color: var(--color-primary-blue);
    margin-top: var(--spacing-xl);
    margin-bottom: var(--spacing-sm);
}

.post-body__inner p,
.post-body__inner li {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--color-text-secondary);
}

.post-body__inner p {
    margin-bottom: var(--spacing-md);
}

.post-body__inner ul,
.post-body__inner ol {
    margin-bottom: var(--spacing-md);
    padding-left: var(--spacing-lg);
}

.post-body__inner li {
    margin-bottom: var(--spacing-xs);
}

.post-body__inner strong {
    color: var(--color-text-primary);
    font-weight: 600;
}

.post-body__inner a {
    color: var(--color-primary-blue);
    text-decoration: underline;
    text-decoration-color: rgba(16, 0, 235, 0.3);
    transition: text-decoration-color 0.2s ease;
}

.post-body__inner a:hover {
    text-decoration-color: var(--color-primary-blue);
}

.post-body__inner pre {
    background: var(--color-dark-blue);
    border-radius: 8px;
    padding: var(--spacing-md);
    overflow-x: auto;
    margin-bottom: var(--spacing-md);
}

.post-body__inner pre code {
    font-family: "fk-grotesk-mono";
    font-size: 0.875rem;
    color: var(--color-lavender);
    line-height: 1.7;
    background: none;
    padding: 0;
}

.post-body__inner p code,
.post-body__inner li code {
    background: var(--color-alice-blue);
    color: var(--color-primary-blue);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.875em;
    font-family: "fk-grotesk-mono";
}

.post-highlight {
    background: linear-gradient(135deg, var(--color-alice-blue) 0%, #dde4ff 100%);
    border-radius: 8px;
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
    border-left: 4px solid var(--color-primary-blue);
}

.post-highlight p {
    margin-bottom: 0 !important;
    color: var(--color-text-primary) !important;
    font-size: 1.0625rem;
}

.post-table-wrap {
    overflow-x: auto;
    margin-bottom: var(--spacing-lg);
}

.post-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9375rem;
}

.post-table th {
    font-family: "gt-pressura";
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-text-light);
    padding: 10px 16px;
    text-align: left;
    border-bottom: 2px solid var(--color-border);
    white-space: nowrap;
}

.post-table td {
    padding: 10px 16px;
    color: var(--color-text-secondary);
    border-bottom: 1px solid var(--color-border);
    line-height: 1.5;
}

.post-table tr:last-child td {
    border-bottom: none;
}

.post-table td:first-child {
    font-weight: 600;
    color: var(--color-text-primary);
}

.post-table tr.post-table__highlight td {
    background: rgba(16, 0, 235, 0.04);
    color: var(--color-primary-blue);
}

.post-feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.post-feature-item {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
    padding: var(--spacing-md);
    background: var(--color-alice-blue);
    border-radius: 8px;
    border: 1px solid var(--color-border);
}

.post-feature-item__label {
    letter-spacing: 0.05em;
}

.post-feature-item__desc {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--color-text-secondary);
}

/* Announcement bars */
.post-announce {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-sm);
    padding: var(--spacing-md);
    background: var(--color-alice-blue);
    border-radius: 8px;
    border-left: 4px solid var(--color-primary-blue);
    margin-bottom: var(--spacing-lg);
}

.post-announce__text {
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--color-text-primary);
}

/* Action button group */
.post-btn-group {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-xl);
    margin-top: var(--spacing-md);
}

.post-body__inner .post-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    font-size: 0.9375rem;
    color: var(--color-primary-blue);
    background: var(--color-pure-white);
    border: 1px solid var(--color-lavender);
    border-radius: 6px;
    transition: all 0.2s ease;
    text-decoration: none;
}

.post-body__inner .post-btn:hover {
    background: var(--color-alice-blue);
    border-color: var(--color-primary-blue);
    box-shadow: 0 4px 12px rgba(16, 0, 235, 0.1);
    text-decoration: none;
}

.post-body__inner .post-btn--primary:hover {
    background: var(--color-dark-blue);
    border-color: var(--color-dark-blue);
    box-shadow: 0 4px 12px rgba(16, 0, 235, 0.25);
    color: var(--color-pure-white);
}

/* Image frame */
.post-image-frame {
    margin-bottom: var(--spacing-xs);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--color-border);
    box-shadow: 0 8px 30px rgba(16, 0, 235, 0.08);
}

.post-image-frame img {
    display: block;
    width: 100%;
    height: auto;
}

/* Image / demo caption */
.post-image-caption {
    font-size: 0.875rem;
    color: var(--color-text-light);
    font-style: italic;
    text-align: center;
    margin-top: var(--spacing-xs);
    margin-bottom: var(--spacing-lg);
    line-height: 1.5;
}

/* Example slide grid */
.post-example-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
}

.post-example-item {
    background: var(--color-pure-white);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--color-border);
}

.post-example-item__img {
    width: 100%;
    aspect-ratio: 4/3;
    background: linear-gradient(135deg, #e8ecff 0%, #d0d8ff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-lavender);
    font-family: "fk-grotesk-mono";
    font-size: 0.6875rem;
    text-align: center;
    padding: var(--spacing-sm);
}

.post-example-item__caption {
    padding: var(--spacing-sm);
    border-top: 1px solid var(--color-border);
}

.post-example-item__id {
    font-family: "fk-grotesk-mono";
    font-size: 0.6875rem;
    color: var(--color-primary-blue);
    margin-bottom: 4px;
}

.post-example-item__desc {
    font-size: 0.8125rem;
    color: var(--color-text-secondary);
    line-height: 1.5;
}

/* Subsection heading (h4 level) */
.post-body__inner h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text-primary);
    margin-top: var(--spacing-lg);
    margin-bottom: var(--spacing-xs);
}

@media (max-width: 768px) {

    .blog-grid,
    .foundry-grid {
        grid-template-columns: 1fr;
        margin-top: 0;
    }

    .post-feature-grid {
        grid-template-columns: 1fr;
    }

    .post-example-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .post-example-grid {
        grid-template-columns: 1fr;
    }

    .post-btn-group {
        flex-direction: column;
    }
}

/* ===== FOUNDRY PAGE ===== */
.foundry-hero__tagline {
    font-size: 1.0625rem;
    color: var(--color-text-light);
    margin-top: var(--spacing-sm);
    font-style: italic;
    max-width: 640px;
}

.foundry-card__type {
    display: inline-flex;
    align-items: center;
    color: var(--color-purple-blue);
    border: 1px solid var(--color-lavender);
    border-radius: 4px;
    padding: 2px 8px;
    width: fit-content;
}

.foundry-card__links {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-xs);
    margin-top: var(--spacing-xs);
}

.foundry-card__link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.8125rem;
    color: var(--color-primary-blue);
    border: 1px solid var(--color-border);
    border-radius: 4px;
    padding: 4px 10px;
    transition: all 0.2s ease;
}

.foundry-card__link:hover {
    border-color: var(--color-primary-blue);
    background: var(--color-alice-blue);
}

/* ===== TRUST & COMPLIANCE SECTION ===== */
.trust-section {
    background: linear-gradient(160deg, var(--color-dark-blue) 0%, #0d005c 100%);
    padding: var(--spacing-3xl) 0;
    position: relative;
    overflow: hidden;
}

.trust-section::before {
    content: '';
    position: absolute;
    top: -30%;
    left: -10%;
    width: 50%;
    height: 130%;
    background: radial-gradient(circle, rgba(154, 148, 235, 0.12) 0%, transparent 70%);
    pointer-events: none;
}

.trust-section__header {
    max-width: 720px;
    margin: 0 auto var(--spacing-2xl);
    text-align: center;
}

.trust-section__shield {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: rgba(208, 242, 0, 0.12);
    border: 1px solid rgba(208, 242, 0, 0.25);
    color: var(--color-neon-green);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-sm);
}

.trust-section__eyebrow {
    color: var(--color-neon-green);
    margin-bottom: var(--spacing-sm);
}

.trust-section__title {
    color: var(--color-pure-white);
    margin-bottom: var(--spacing-md);
}

.trust-section__subtitle {
    color: var(--color-lavender);
}

/* Trust Content — two-column editorial layout */
.trust-content {
    display: grid;
    grid-template-columns: 1fr 1px 1fr;
    gap: 0 var(--spacing-2xl);
    max-width: 1100px;
    margin: 0 auto var(--spacing-2xl);
    align-items: start;
}

.trust-content::before {
    content: '';
    grid-column: 2;
    grid-row: 1;
    background: linear-gradient(180deg, rgba(198, 207, 255, 0.08) 0%, rgba(198, 207, 255, 0.2) 50%, rgba(198, 207, 255, 0.08) 100%);
    align-self: stretch;
}

/* Trust Block */
.trust-block__label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: "gt-pressura";
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-neon-green);
    margin-bottom: var(--spacing-sm);
}

.trust-block__heading {
    font-family: "apk-galeria";
    font-size: 1.375rem;
    color: var(--color-pure-white);
    margin-bottom: var(--spacing-md);
    line-height: 1.3;
}

.trust-block__prose {
    font-size: 0.9375rem;
    line-height: 1.75;
    color: rgba(198, 207, 255, 0.8);
    margin-bottom: var(--spacing-md);
}

.trust-block__prose--last {
    margin-bottom: 0;
}

/* Key-Value Fact Sheet */
.trust-facts {
    margin: var(--spacing-lg) 0 0;
    display: flex;
    flex-direction: column;
}

.trust-fact {
    display: flex;
    gap: var(--spacing-md);
    padding: 12px 0;
    border-top: 1px solid rgba(198, 207, 255, 0.1);
}

.trust-fact:last-child {
    border-bottom: 1px solid rgba(198, 207, 255, 0.1);
}

.trust-fact dt {
    font-family: "gt-pressura";
    font-size: 0.625rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(198, 207, 255, 0.6);
    min-width: 90px;
    flex-shrink: 0;
    padding-top: 3px;
}

.trust-fact dd {
    font-size: 0.875rem;
    line-height: 1.55;
    color: rgba(198, 207, 255, 0.9);
}

/* Detail Cards Row */
.trust-details-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-md);
    max-width: 860px;
    margin: 0 auto var(--spacing-2xl);
}

.trust-detail {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(198, 207, 255, 0.1);
    border-radius: 10px;
    padding: var(--spacing-md);
}

.trust-detail__title {
    font-family: "apk-galeria";
    font-size: 0.9375rem;
    color: var(--color-pure-white);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.trust-detail__desc {
    font-size: 0.875rem;
    line-height: 1.7;
    color: rgba(198, 207, 255, 0.75);
}

/* Commitment Statement */
.trust-commitment {
    border-left: 2px solid var(--color-neon-green);
    padding: var(--spacing-sm) var(--spacing-md);
    margin: var(--spacing-md) 0;
    font-size: 0.9375rem;
    line-height: 1.75;
    color: var(--color-pure-white);
    font-style: normal;
    background: rgba(208, 242, 0, 0.04);
    border-radius: 0 8px 8px 0;
}

/* Footer Bar */
.trust-footer-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-md);
    flex-wrap: wrap;
    padding-top: var(--spacing-lg);
    border-top: 1px solid rgba(198, 207, 255, 0.15);
    text-align: center;
}

.trust-footer-bar__note {
    font-size: 0.9375rem;
    color: rgba(198, 207, 255, 0.7);
}

.trust-footer-bar__cta {
    color: var(--color-pure-white);
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, 0.4);
    text-underline-offset: 3px;
    transition: text-decoration-color 0.2s ease;
}

.trust-footer-bar__cta:hover {
    text-decoration-color: rgba(255, 255, 255, 0.8);
}

/* ===== DEPLOYMENT OPTIONS SECTION ===== */
.deploy-section {
    background: linear-gradient(180deg, var(--color-alice-blue) 0%, var(--color-pure-white) 100%);
}

.deploy-section__header {
    max-width: 680px;
    margin-bottom: var(--spacing-xl);
}

.deploy-section__title {
    margin-top: var(--spacing-xs);
    margin-bottom: var(--spacing-sm);
}

.deploy-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
}

.deploy-card {
    background: var(--color-pure-white);
    border: 1px solid var(--color-border);
    border-top: 3px solid var(--color-lavender);
    border-radius: 12px;
    padding: var(--spacing-lg);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.deploy-card:hover {
    border-color: var(--color-primary-blue);
    border-top-color: var(--color-primary-blue);
    box-shadow: 0 8px 32px rgba(16, 0, 235, 0.08);
}

.deploy-card--vpc {
    border-top-color: #2DA05A;
}

.deploy-card--vpc:hover {
    border-top-color: #2DA05A;
    border-color: #2DA05A;
}

.deploy-card--byok {
    border-top-color: var(--color-purple-blue);
}

.deploy-card--byok:hover {
    border-color: var(--color-purple-blue);
    border-top-color: var(--color-purple-blue);
}

.deploy-card__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: var(--spacing-sm);
}

.deploy-card__icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--color-alice-blue);
    color: var(--color-primary-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.deploy-card__badge {
    font-family: "gt-pressura";
    font-size: 0.5625rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-primary-blue);
    background: var(--color-alice-blue);
    border: 1px solid var(--color-lavender);
    border-radius: 4px;
    padding: 3px 8px;
}

.deploy-card__badge--green {
    color: #0a7a47;
    background: #f0faf5;
    border-color: #a8d5bb;
}

.deploy-card__title {
    font-family: "apk-galeria";
    font-size: 1.125rem;
    color: var(--color-text-primary);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.deploy-card__desc {
    font-size: 0.9375rem;
    line-height: 1.65;
    color: var(--color-text-secondary);
    margin-bottom: var(--spacing-sm);
}

.deploy-card__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.deploy-card__list li {
    font-size: 0.875rem;
    color: var(--color-text-secondary);
    padding-left: 1.25rem;
    position: relative;
}

.deploy-card__list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 7px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--color-primary-blue);
}

.deploy-card--vpc .deploy-card__list li::before {
    background: #2DA05A;
}

.deploy-section__contact {
    text-align: center;
    padding-top: var(--spacing-xl);
    border-top: 1px solid var(--color-border);
}

.deploy-contact-link {
    color: var(--color-primary-blue);
    text-decoration: underline;
    text-decoration-color: rgba(16, 0, 235, 0.3);
    transition: text-decoration-color 0.2s ease;
}

.deploy-contact-link:hover {
    text-decoration-color: var(--color-primary-blue);
}

@media (max-width: 1024px) {
    .trust-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }

    .trust-content::before {
        display: none;
    }

    .trust-block:first-child {
        padding-bottom: var(--spacing-xl);
        border-bottom: 1px solid rgba(198, 207, 255, 0.12);
    }

}

@media (max-width: 768px) {
    .trust-details-row {
        grid-template-columns: 1fr;
    }

    .deploy-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== UTILITIES ===== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ===== CONTACT PAGE ===== */
.contact-section {
    padding-top: calc(var(--header-height) + var(--spacing-2xl));
    padding-bottom: var(--spacing-3xl);
    background: linear-gradient(180deg, var(--color-alice-blue) 0%, var(--color-pure-white) 420px);
    min-height: calc(100vh - 120px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-container {
    max-width: 640px;
    width: 100%;
    margin: 0 auto;
}

/* Contact Form Card */
.contact-card {
    background: var(--color-pure-white);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: var(--spacing-xl);
    box-shadow: 0 12px 35px rgba(3, 0, 55, 0.04);
}

@media (max-width: 600px) {
    .contact-card {
        padding: var(--spacing-lg) var(--spacing-md);
    }
}

.contact-form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-md);
}

@media (max-width: 640px) {
    .contact-form__row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

.contact-form__field {
    margin-bottom: var(--spacing-md);
}

.contact-form__field label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--color-text-primary);
    margin-bottom: 6px;
}

.contact-form__field label .required {
    color: #e53e3e;
}

.contact-form__field label .optional {
    font-weight: 400;
    color: var(--color-text-light);
    font-size: 0.75rem;
}

.contact-form__field input,
.contact-form__field select,
.contact-form__field textarea {
    width: 100%;
    padding: 12px 14px;
    font-size: 0.9375rem;
    font-family: inherit;
    color: var(--color-text-primary);
    background: var(--color-pure-white);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.contact-form__field input:hover,
.contact-form__field select:hover,
.contact-form__field textarea:hover {
    border-color: #c7cae0;
}

.contact-form__field input:focus,
.contact-form__field select:focus,
.contact-form__field textarea:focus {
    border-color: var(--color-primary-blue);
    box-shadow: 0 0 0 3px rgba(16, 0, 235, 0.12);
}

.contact-form__field textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.6;
}

.contact-form__field select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%234A4868' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 16px;
    padding-right: 40px;
    cursor: pointer;
}

.contact-form__footer {
    margin-top: var(--spacing-lg);
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.contact-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 32px;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--color-pure-white);
    background: var(--color-primary-blue);
    border: 1px solid var(--color-primary-blue);
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.contact-submit:hover:not(:disabled) {
    background: var(--color-dark-blue);
    border-color: var(--color-dark-blue);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(16, 0, 235, 0.25);
}

.contact-submit:active:not(:disabled) {
    transform: translateY(0);
}

.contact-submit:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.contact-submit__arrow {
    transition: transform 0.2s ease;
}

.contact-submit:hover:not(:disabled) .contact-submit__arrow {
    transform: translateX(3px);
}

/* Feedback States */
.contact-status--success {
    text-align: center;
    padding: var(--spacing-xl) var(--spacing-md);
}

.contact-status__icon-wrap {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #ecfdf5;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-md);
}

.contact-status__title {
    font-family: "apk-galeria", serif;
    font-size: 1.75rem;
    font-weight: 400;
    color: var(--color-text-primary);
    margin-bottom: var(--spacing-xs);
}

.contact-status__desc {
    font-size: 1rem;
    color: var(--color-text-secondary);
    max-width: 440px;
    margin: 0 auto var(--spacing-lg);
    line-height: 1.6;
}

.contact-status__reset-btn {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-primary-blue);
    background: var(--color-alice-blue);
    border: 1px solid rgba(16, 0, 235, 0.12);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.contact-status__reset-btn:hover {
    background: #e2e8ff;
    border-color: var(--color-primary-blue);
}

.contact-status--error {
    margin-top: var(--spacing-md);
}

.contact-status__error-text {
    font-size: 0.875rem;
    color: var(--color-critical-text);
    background: var(--color-critical-bg);
    border: 1px solid rgba(220, 38, 38, 0.2);
    padding: 12px 16px;
    border-radius: 8px;
    line-height: 1.5;
}

.contact-status__error-text a {
    color: var(--color-critical-text);
    font-weight: 500;
    text-decoration: underline;
}

/* ==========================================================================
   HERO-INSPIRED DARK THEME SYSTEM
   Mirrors the deep navy/void, luminescent multiplex proteomics colors
   (cyan #00F0FF, magenta #FF1E76, electric cobalt #1000EB, chartreuse #D0F200,
   and lavender #C6CFFF) from the homepage hero imagery.
   ========================================================================== */

.page-dark {
    --color-dark-bg: #030022;
    --color-dark-surface: rgba(8, 6, 42, 0.72);
    --color-dark-surface-hover: rgba(14, 10, 58, 0.85);
    --color-dark-border: rgba(198, 207, 255, 0.12);
    --color-dark-border-hover: rgba(0, 240, 255, 0.45);
    --color-dark-text-primary: #FFFFFF;
    --color-dark-text-secondary: rgba(226, 232, 255, 0.82);
    --color-dark-text-muted: #8E98B5;

    background-color: var(--color-dark-bg);
    color: var(--color-dark-text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Atmospheric Ambient Bioluminescent Gradients */
.page-dark::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background-image:
        radial-gradient(ellipse 90% 55% at 50% -12%, rgba(16, 0, 235, 0.32) 0%, transparent 70%),
        radial-gradient(circle 650px at 90% 22%, rgba(0, 240, 255, 0.08) 0%, transparent 65%),
        radial-gradient(circle 550px at 10% 68%, rgba(255, 30, 118, 0.065) 0%, transparent 65%),
        radial-gradient(circle 750px at 60% 95%, rgba(16, 0, 235, 0.18) 0%, transparent 70%);
    background-attachment: fixed;
}

/* Subtle Proteomics Histology Texture Underlay */
.page-dark::after {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background-image: url('./proteomics.png');
    background-size: cover;
    background-position: center top;
    opacity: 0.055;
    mix-blend-mode: screen;
}

/* Ensure Page Structure Sits Above Ambient Glows */
.page-dark .header,
.page-dark .section,
.page-dark .contact-section,
.page-dark .footer {
    position: relative;
    z-index: 1;
}

/* Dark Header & Navigation */
.page-dark .header {
    background: rgba(3, 0, 36, 0.8);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(198, 207, 255, 0.1);
}

.page-dark .header__logo-svg {
    filter: brightness(0) invert(1);
}

.page-dark .nav__link {
    color: rgba(255, 255, 255, 0.78);
    text-shadow: 0 1px 8px rgba(3, 0, 55, 0.8);
    transition: color 0.2s ease, text-shadow 0.2s ease;
}

.page-dark .nav__link:hover {
    color: var(--color-pure-white);
    text-shadow: 0 0 12px rgba(0, 240, 255, 0.45);
}

.page-dark .nav__link--active {
    color: var(--color-pure-white);
}

.page-dark .nav__link::after {
    background: linear-gradient(90deg, #00F0FF, var(--color-pure-white));
    box-shadow: 0 0 8px rgba(0, 240, 255, 0.55);
}

.page-dark .nav__hamburger span {
    background: var(--color-pure-white);
}

.page-dark .nav__mobile-menu {
    background: rgba(3, 0, 36, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(198, 207, 255, 0.12);
}

.page-dark .nav__mobile-link {
    color: rgba(255, 255, 255, 0.75);
    text-shadow: 0 1px 8px rgba(3, 0, 55, 0.8);
}

.page-dark .nav__mobile-link:hover,
.page-dark .nav__mobile-link--active {
    color: var(--color-pure-white);
}

/* Theme Switcher Toggle Button */
.theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(198, 207, 255, 0.15);
    color: rgba(255, 255, 255, 0.85);
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
    margin-left: 4px;
    outline: none;
}

.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.16);
    color: var(--color-pure-white);
    border-color: rgba(0, 240, 255, 0.45);
    box-shadow: 0 0 12px rgba(0, 240, 255, 0.3);
    transform: scale(1.05);
}

.theme-toggle:focus-visible {
    outline: 2px solid #00F0FF;
    outline-offset: 2px;
}

.theme-toggle__icon-sun {
    display: block;
}

.theme-toggle__icon-moon {
    display: none;
}

/* When in light mode (if user toggles) */
body:not(.page-dark) .theme-toggle {
    background: rgba(3, 0, 55, 0.06);
    border-color: var(--color-border);
    color: var(--color-text-primary);
}

body:not(.page-dark) .theme-toggle:hover {
    background: rgba(3, 0, 55, 0.12);
    border-color: var(--color-primary-blue);
    box-shadow: 0 0 8px rgba(16, 0, 235, 0.2);
}

body:not(.page-dark) .theme-toggle__icon-sun {
    display: none;
}

body:not(.page-dark) .theme-toggle__icon-moon {
    display: block;
}

/* Dark About Page */
.page-dark .section--light,
.page-dark .section {
    background: transparent;
}

.page-dark .team-header {
    margin-bottom: var(--spacing-xl);
    max-width: 820px;
}

.page-dark .team-eyebrow {
    margin-bottom: var(--spacing-xs);
    font-size: 0.75rem;
}

.page-dark .team-title {
    color: var(--color-pure-white);
    font-family: "apk-galeria", serif;
    font-size: clamp(2.2rem, 5vw, 3.25rem);
    line-height: 1.12;
    letter-spacing: -0.02em;
    margin-bottom: var(--spacing-xs);
    text-shadow: 0 2px 24px rgba(3, 0, 55, 0.85);
}

.page-dark .team-subtitle {
    color: rgba(224, 230, 255, 0.85);
    font-size: clamp(1.05rem, 1.35vw, 1.1875rem);
    line-height: 1.65;
    max-width: 720px;
}

.page-dark .team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

.page-dark .team-card {
    position: relative;
    background: var(--color-dark-surface);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--color-dark-border);
    border-radius: 12px;
    padding: var(--spacing-lg);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.28s ease,
                box-shadow 0.28s ease,
                background 0.28s ease;
    overflow: hidden;
}

/* Bioluminescent Top Highlight Bar */
.page-dark .team-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 240, 255, 0.45), rgba(255, 30, 118, 0.35), transparent);
    opacity: 0.65;
    transition: opacity 0.28s ease;
}

/* Hero Scanner Tactical Corner Brackets */
.page-dark .team-card__corner {
    position: absolute;
    top: 0;
    left: 0;
    width: 11px;
    height: 11px;
    border-top: 2px solid rgba(0, 240, 255, 0.35);
    border-left: 2px solid rgba(0, 240, 255, 0.35);
    pointer-events: none;
    transition: all 0.28s ease;
}

.page-dark .team-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 11px;
    height: 11px;
    border-bottom: 2px solid rgba(0, 240, 255, 0.35);
    border-right: 2px solid rgba(0, 240, 255, 0.35);
    pointer-events: none;
    transition: all 0.28s ease;
}

.page-dark .team-card:hover {
    transform: translateY(-4px);
    border-color: var(--color-dark-border-hover);
    background: var(--color-dark-surface-hover);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.5),
                0 0 25px rgba(0, 240, 255, 0.12),
                0 0 40px rgba(16, 0, 235, 0.2);
}

.page-dark .team-card:hover::before {
    opacity: 1;
}

.page-dark .team-card:hover .team-card__corner {
    border-color: #00F0FF;
    width: 15px;
    height: 15px;
    box-shadow: -2px -2px 8px rgba(0, 240, 255, 0.4);
}

.page-dark .team-card:hover::after {
    border-color: #00F0FF;
    width: 15px;
    height: 15px;
    box-shadow: 2px 2px 8px rgba(0, 240, 255, 0.4);
}

/* Fluorescent Cell Membrane Avatar Frame */
.page-dark .team-card__photo {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    padding: 2.5px;
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.75) 0%, rgba(16, 0, 235, 0.4) 50%, rgba(255, 30, 118, 0.65) 100%);
    box-shadow: 0 0 16px rgba(0, 240, 255, 0.25);
    transition: box-shadow 0.28s ease, transform 0.28s ease;
}

.page-dark .team-card:hover .team-card__photo {
    box-shadow: 0 0 24px rgba(0, 240, 255, 0.45);
    transform: scale(1.03);
}

.page-dark .team-card__photo img {
    border-radius: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.page-dark .team-card__name {
    font-family: "apk-galeria", serif;
    font-size: 1.25rem;
    color: var(--color-pure-white);
    letter-spacing: -0.01em;
    margin-bottom: 3px;
}

.page-dark .team-card__role {
    font-family: "gt-pressura", sans-serif;
    font-size: 0.75rem;
    color: var(--color-lavender);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: var(--spacing-xs);
    opacity: 0.95;
}

.page-dark .team-card__bio {
    font-size: 0.9375rem;
    color: var(--color-dark-text-secondary);
    line-height: 1.65;
}

/* Dark Contact Page */
.page-dark .contact-section {
    padding-top: calc(var(--header-height) + var(--spacing-2xl));
    padding-bottom: var(--spacing-3xl);
    background: transparent;
    min-height: calc(100vh - 90px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-dark .contact-container {
    max-width: 680px;
    width: 100%;
    margin: 0 auto;
}

.page-dark .contact-card {
    position: relative;
    background: var(--color-dark-surface);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--color-dark-border);
    border-radius: 16px;
    padding: clamp(1.75rem, 4vw, 2.75rem);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45),
                0 0 35px rgba(16, 0, 235, 0.16);
    overflow: hidden;
}

.page-dark .contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 240, 255, 0.6), rgba(255, 30, 118, 0.45), transparent);
}

.page-dark .contact-card__corner {
    position: absolute;
    top: 0;
    left: 0;
    width: 12px;
    height: 12px;
    border-top: 2px solid rgba(0, 240, 255, 0.4);
    border-left: 2px solid rgba(0, 240, 255, 0.4);
    pointer-events: none;
}

.page-dark .contact-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 12px;
    height: 12px;
    border-bottom: 2px solid rgba(0, 240, 255, 0.4);
    border-right: 2px solid rgba(0, 240, 255, 0.4);
    pointer-events: none;
}

.page-dark .contact-card__header {
    margin-bottom: var(--spacing-lg);
}

.page-dark .contact-eyebrow {
    margin-bottom: var(--spacing-xs);
    font-size: 0.75rem;
}

.page-dark .contact-card__title {
    font-family: "apk-galeria", serif;
    font-size: clamp(1.85rem, 3.8vw, 2.35rem);
    color: var(--color-pure-white);
    line-height: 1.15;
    margin-bottom: var(--spacing-xs);
    text-shadow: 0 2px 20px rgba(3, 0, 55, 0.85);
}

.page-dark .contact-card__subtitle {
    font-size: 0.9375rem;
    color: var(--color-dark-text-secondary);
    line-height: 1.6;
}

.page-dark .contact-form__field label {
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.8125rem;
    font-weight: 500;
    margin-bottom: 6px;
}

.page-dark .contact-form__field label .required {
    color: #FF5A7C;
}

.page-dark .contact-form__field label .optional {
    color: rgba(198, 207, 255, 0.6);
}

.page-dark .contact-form__field input,
.page-dark .contact-form__field select,
.page-dark .contact-form__field textarea {
    background: rgba(3, 1, 35, 0.65);
    border: 1px solid rgba(198, 207, 255, 0.2);
    border-radius: 8px;
    color: #FFFFFF;
    font-size: 0.9375rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.page-dark .contact-form__field input::placeholder,
.page-dark .contact-form__field textarea::placeholder {
    color: rgba(198, 207, 255, 0.42);
}

.page-dark .contact-form__field input:hover,
.page-dark .contact-form__field select:hover,
.page-dark .contact-form__field textarea:hover {
    border-color: rgba(0, 240, 255, 0.45);
    background: rgba(5, 2, 45, 0.8);
}

.page-dark .contact-form__field input:focus,
.page-dark .contact-form__field select:focus,
.page-dark .contact-form__field textarea:focus {
    border-color: #00F0FF;
    box-shadow: 0 0 0 3px rgba(0, 240, 255, 0.22), 0 0 16px rgba(0, 240, 255, 0.15);
    background: rgba(6, 3, 50, 0.88);
    outline: none;
}

.page-dark .contact-submit {
    background: linear-gradient(135deg, #1000EB 0%, #3000df 60%, #4a00eb 100%);
    border: 1px solid rgba(0, 240, 255, 0.35);
    color: #FFFFFF;
    border-radius: 8px;
    font-weight: 500;
    padding: 13px 32px;
    box-shadow: 0 6px 24px rgba(16, 0, 235, 0.45);
    transition: all 0.25s ease;
}

.page-dark .contact-submit:hover:not(:disabled) {
    background: linear-gradient(135deg, #1c0af8 0%, #3e07f5 100%);
    border-color: #00F0FF;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 240, 255, 0.35), 0 0 24px rgba(16, 0, 235, 0.55);
}

/* Dark Contact Feedback States */
.page-dark .contact-status__icon-wrap {
    background: rgba(0, 240, 255, 0.12);
    border: 1px solid rgba(0, 240, 255, 0.35);
    box-shadow: 0 0 24px rgba(0, 240, 255, 0.25);
}

.page-dark .contact-status__icon-wrap svg {
    stroke: #00F0FF;
}

.page-dark .contact-status__title {
    color: var(--color-pure-white);
}

.page-dark .contact-status__desc {
    color: var(--color-dark-text-secondary);
}

.page-dark .contact-status__reset-btn {
    background: rgba(16, 0, 235, 0.3);
    border: 1px solid rgba(0, 240, 255, 0.4);
    color: #FFFFFF;
    border-radius: 6px;
}

.page-dark .contact-status__reset-btn:hover {
    background: rgba(16, 0, 235, 0.5);
    border-color: #00F0FF;
    box-shadow: 0 0 16px rgba(0, 240, 255, 0.3);
}

.page-dark .contact-status__error-text {
    background: rgba(220, 38, 38, 0.15);
    border: 1px solid rgba(255, 90, 124, 0.35);
    color: #FF8BA7;
}

.page-dark .contact-status__error-text a {
    color: #FFFFFF;
}

/* Dark Footer */
.page-dark .footer {
    background: transparent;
    border-top: 1px solid rgba(198, 207, 255, 0.1);
    padding: var(--spacing-xl) 0;
    margin-top: auto;
}

.page-dark .footer__copyright {
    color: rgba(255, 255, 255, 0.6);
}

.page-dark .footer__link {
    color: rgba(255, 255, 255, 0.72);
    transition: color 0.2s ease, text-shadow 0.2s ease;
}

.page-dark .footer__link:hover {
    color: var(--color-pure-white);
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.45);
}

/* ===== BLUE THEME (DERIVED FROM BRAND COLORS) FOR ABOUT & CONTACT ===== */
body.page-blue,
body.page-purple {
    background-color: var(--color-primary-blue, #1000EB);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    color: var(--color-pure-white);
}

/* Header & White Conflux Logo */
.page-blue .header,
.page-purple .header {
    background: var(--color-primary-blue, #1000EB);
    border-bottom: none;
}

.page-blue .header__logo-svg,
.page-purple .header__logo-svg {
    filter: brightness(0) invert(1);
    transition: opacity 0.2s ease;
}

.page-blue .header__logo-svg:hover,
.page-purple .header__logo-svg:hover {
    opacity: 0.9;
}

.page-blue .nav__link,
.page-purple .nav__link {
    color: #FFFFFF;
    font-weight: 500;
    text-shadow: none;
    transition: opacity 0.2s ease;
}

.page-blue .nav__link:hover,
.page-blue .nav__link--active,
.page-purple .nav__link:hover,
.page-purple .nav__link--active {
    color: #FFFFFF;
    text-shadow: none;
    opacity: 1;
}

.page-blue .nav__link::after,
.page-purple .nav__link::after {
    background: #FFFFFF;
    box-shadow: none;
}

.page-blue .nav__hamburger span,
.page-purple .nav__hamburger span {
    background: #FFFFFF;
}

.page-blue .nav__mobile-menu,
.page-purple .nav__mobile-menu {
    background: var(--color-primary-blue, #1000EB);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.page-blue .nav__mobile-link,
.page-purple .nav__mobile-link {
    color: #FFFFFF;
    text-shadow: none;
}

.page-blue .nav__mobile-link:hover,
.page-blue .nav__mobile-link--active,
.page-purple .nav__mobile-link:hover,
.page-purple .nav__mobile-link--active {
    color: #FFFFFF;
    font-weight: 600;
}

/* About Page */
.page-blue .section--light,
.page-blue .section,
.page-purple .section--light,
.page-purple .section {
    background: transparent;
    padding-top: calc(var(--header-height) + var(--spacing-xl));
    padding-bottom: var(--spacing-3xl);
}

.page-blue .team-header,
.page-purple .team-header {
    margin-bottom: var(--spacing-xl);
}

.page-blue .heading-section,
.page-purple .heading-section {
    color: #FFFFFF;
    font-family: "apk-galeria", serif;
    font-size: clamp(2.25rem, 5vw, 3.25rem);
    line-height: 1.12;
    letter-spacing: -0.02em;
    margin-bottom: var(--spacing-xs);
    text-shadow: none;
    background: none;
}

.page-blue .team-header-desc,
.page-purple .team-header-desc {
    color: rgba(255, 255, 255, 0.88);
    font-size: clamp(1.05rem, 1.35vw, 1.1875rem);
    line-height: 1.6;
    max-width: 720px;
}

.page-blue .team-grid,
.page-purple .team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

.page-blue .team-card,
.page-purple .team-card {
    background: #FFFFFF;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 8px;
    padding: var(--spacing-lg);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    overflow: hidden;
    position: relative;
}

.page-blue .team-card:hover,
.page-purple .team-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.page-blue .team-card__name,
.page-purple .team-card__name {
    font-family: "apk-galeria", serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: #030037;
    margin-bottom: 2px;
}

.page-blue .team-card__role,
.page-purple .team-card__role {
    font-family: "gt-pressura", sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    color: #1000EB;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    margin-bottom: var(--spacing-xs);
}

.page-blue .team-card__bio,
.page-purple .team-card__bio {
    font-size: 0.9375rem;
    color: #485563;
    line-height: 1.62;
}

/* Minimal profile photo: no glow, no border, no padding, no gradient */
.page-blue .team-card__photo,
.page-purple .team-card__photo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    padding: 0;
    background: none;
    box-shadow: none;
    border: none;
}

.page-blue .team-card:hover .team-card__photo,
.page-purple .team-card:hover .team-card__photo {
    transform: none;
    box-shadow: none;
}

.page-blue .team-card__photo img,
.page-purple .team-card__photo img {
    border-radius: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Contact Page */
.page-blue .contact-section,
.page-purple .contact-section {
    padding-top: calc(var(--header-height) + var(--spacing-2xl));
    padding-bottom: var(--spacing-3xl);
    background: transparent;
    min-height: calc(100vh - 90px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-blue .contact-container,
.page-purple .contact-container {
    max-width: 660px;
    width: 100%;
    margin: 0 auto;
}

.page-blue .contact-card,
.page-purple .contact-card {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
}

.page-blue .contact-card__header,
.page-purple .contact-card__header {
    margin-bottom: var(--spacing-xl);
}

.page-blue .contact-card__title,
.page-purple .contact-card__title {
    font-family: "apk-galeria", serif;
    font-size: clamp(2.25rem, 5vw, 3.25rem);
    color: #FFFFFF;
    line-height: 1.12;
    letter-spacing: -0.02em;
    margin-bottom: var(--spacing-xs);
    text-shadow: none;
    background: none;
}

.page-blue .contact-card__subtitle,
.page-purple .contact-card__subtitle {
    font-size: clamp(1.05rem, 1.35vw, 1.1875rem);
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.6;
}

.page-blue .contact-form__field label,
.page-purple .contact-form__field label {
    color: #FFFFFF;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 8px;
}

.page-blue .contact-form__field label .required,
.page-purple .contact-form__field label .required {
    color: #FFA3BA;
}

.page-blue .contact-form__field label .optional,
.page-purple .contact-form__field label .optional {
    color: rgba(255, 255, 255, 0.7);
    font-weight: normal;
}

.page-blue .contact-form__field input,
.page-blue .contact-form__field select,
.page-blue .contact-form__field textarea,
.page-purple .contact-form__field input,
.page-purple .contact-form__field select,
.page-purple .contact-form__field textarea {
    background: #FFFFFF;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    color: #030037;
    font-size: 0.9375rem;
    padding: 12px 14px;
    box-shadow: none;
    transition: border-color 0.2s ease, outline 0.2s ease;
}

.page-blue .contact-form__field input:hover,
.page-blue .contact-form__field select:hover,
.page-blue .contact-form__field textarea:hover,
.page-purple .contact-form__field input:hover,
.page-purple .contact-form__field select:hover,
.page-purple .contact-form__field textarea:hover {
    border-color: #FFFFFF;
}

.page-blue .contact-form__field input:focus,
.page-blue .contact-form__field select:focus,
.page-blue .contact-form__field textarea:focus,
.page-purple .contact-form__field input:focus,
.page-purple .contact-form__field select:focus,
.page-purple .contact-form__field textarea:focus {
    border-color: #FFFFFF;
    outline: 2px solid #FFFFFF;
    outline-offset: 1px;
    box-shadow: none;
}

.page-blue .contact-submit,
.page-purple .contact-submit {
    background: #FFFFFF;
    border: none;
    color: #030037;
    border-radius: 6px;
    font-weight: 600;
    padding: 13px 32px;
    box-shadow: none;
    cursor: pointer;
    transition: background-color 0.15s ease, opacity 0.15s ease;
}

.page-blue .contact-submit:hover:not(:disabled),
.page-purple .contact-submit:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.92);
    box-shadow: none;
    transform: none;
}

/* Success state on transparent blue */
.page-blue .contact-status--success .contact-status__title,
.page-purple .contact-status--success .contact-status__title {
    color: #FFFFFF;
}

.page-blue .contact-status--success .contact-status__desc,
.page-purple .contact-status--success .contact-status__desc {
    color: rgba(255, 255, 255, 0.9);
}

.page-blue .contact-status--success .contact-status__reset-btn,
.page-purple .contact-status--success .contact-status__reset-btn {
    background: #FFFFFF;
    color: #030037;
    border: none;
    box-shadow: none;
}

/* Footer */
.page-blue .footer,
.page-purple .footer {
    background: transparent;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding: var(--spacing-xl) 0;
    margin-top: auto;
}

.page-blue .footer__copyright,
.page-purple .footer__copyright {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.875rem;
}

.page-blue .footer__link,
.page-purple .footer__link {
    color: #FFFFFF;
    font-weight: 500;
    transition: opacity 0.2s ease;
}

.page-blue .footer__link:hover,
.page-purple .footer__link:hover {
    color: #FFFFFF;
    opacity: 0.8;
    text-decoration: underline;
}

/* ===== SPA UNIFIED IN-PLACE VIEW SWITCHER ===== */
/* Persistent Canvas Background Layer */
.site-bg {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
    background-color: var(--color-dark-blue);
}

.site-bg .hero__canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    pointer-events: none;
}

.site-bg .hero__overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    opacity: 0.60;
    background:
        linear-gradient(to top, rgba(3, 0, 55, 0.95) 0%, rgba(3, 0, 55, 0.65) 45%, rgba(3, 0, 55, 0.2) 75%, transparent 100%),
        linear-gradient(to right, rgba(3, 0, 55, 0.88) 0%, rgba(3, 0, 55, 0.5) 45%, transparent 85%);
}

/* 30% Opacity Dark Blue Tint (matching header) on About and Contact */
.site-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    background-color: rgba(3, 0, 55, 0.30);
    opacity: 0;
    transition: opacity 0.3s ease;
}

body.page-about .site-bg::after,
body.page-contact .site-bg::after {
    opacity: 1;
}

/* SPA Body & Layout */
body.page-spa,
body.page-spa.page-blue {
    background-color: var(--color-dark-blue) !important;
    background: transparent !important;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    color: var(--color-pure-white);
    overflow-x: hidden;
    position: relative;
}

/* Disable vertical scroll on Home page */
body.page-spa.page-home {
    height: 100vh;
    height: 100dvh;
    overflow-y: hidden;
}

body.page-spa.page-about,
body.page-spa.page-contact {
    overflow-y: auto;
    height: auto;
    min-height: 100vh;
    min-height: 100dvh;
}

/* SPA Fixed Header */
body.page-spa .header,
body.page-spa.page-blue .header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: transparent;
    border-bottom: none !important;
    box-shadow: none !important;
    transition: background-color 0.25s ease, backdrop-filter 0.25s ease;
}

body.page-spa.page-about .header,
body.page-spa.page-contact .header {
    background: rgba(3, 0, 55, 0.50) !important;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: none !important;
    box-shadow: none !important;
}

body.page-spa .header__logo-svg {
    filter: brightness(0) invert(1);
    transition: opacity 0.2s ease;
}

body.page-spa .header__logo-svg:hover {
    opacity: 0.9;
}

body.page-spa .nav__link {
    position: relative;
    color: #FFFFFF;
    font-weight: 500;
    opacity: 0.85;
    text-shadow: 0 1px 8px rgba(3, 0, 55, 0.8);
    transition: color 0.2s ease, opacity 0.2s ease;
    outline: none !important;
}

body.page-spa .nav__link:hover {
    color: #FFFFFF;
    opacity: 1;
}

body.page-spa .nav__link--active {
    color: #FFFFFF;
    opacity: 1;
    font-weight: 600;
}

body.page-spa .nav__link:focus,
body.page-spa .nav__link:focus-visible,
body.page-spa .header__brand:focus,
body.page-spa .header__brand:focus-visible {
    outline: none !important;
    box-shadow: none !important;
}

/* Header nav links hover underline */
body.page-spa .nav__link::after {
    content: '' !important;
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0 !important;
    height: 2px;
    background: #FFFFFF !important;
    box-shadow: 0 1px 4px rgba(3, 0, 55, 0.4);
    transition: width 0.2s ease;
    display: block !important;
    pointer-events: none;
}

body.page-spa .nav__link:hover::after {
    width: 100% !important;
}

/* Underline only on hover: prevents persistent active underline from jumping or flashing during view changes */
body.page-spa .nav__link--active:not(:hover)::after {
    width: 0 !important;
}

body.page-spa .nav__mobile-link::after {
    display: none !important;
    content: none !important;
}

body.page-spa .nav__hamburger span {
    background: #FFFFFF;
}

body.page-spa .nav__mobile-menu {
    background: rgba(3, 0, 55, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 12px 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

body.page-spa .nav__mobile-link {
    color: #FFFFFF;
}

body.page-spa .nav__mobile-link:hover,
body.page-spa .nav__mobile-link--active {
    color: #FFFFFF;
    font-weight: 600;
}

/* SPA Main Content Area */
.site-main {
    position: relative;
    z-index: 10;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* View Panels */
.view-panel {
    width: 100%;
}

.view-panel[hidden] {
    display: none !important;
}

.view-panel--active {
    animation: viewFadeIn 0.32s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes viewFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* View Panel: Home */
.view-panel--home {
    min-height: calc(100vh - var(--header-height));
    min-height: calc(100dvh - var(--header-height));
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: var(--header-height) 0 var(--spacing-2xl);
    flex: 1;
}

.view-panel--home .hero__content {
    max-width: 860px;
}

.view-panel--home .hero__title {
    color: #FFFFFF;
    font-family: "apk-galeria", serif;
    font-size: clamp(2.5rem, 6vw, 4.25rem);
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: var(--spacing-md);
    text-shadow: 0 2px 20px rgba(3, 0, 55, 0.85);
}

.hero__title-arrow {
    display: inline-block;
    height: 0.65em;
    width: auto;
    vertical-align: middle;
    margin-left: 0.15em;
    filter: brightness(0) invert(1) drop-shadow(0 2px 20px rgba(3, 0, 55, 0.85));
    transition: transform 0.2s ease;
}

.view-panel--home .hero__subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(1.1rem, 1.4vw, 1.25rem);
    line-height: 1.6;
    max-width: 680px;
    text-shadow: 0 1px 12px rgba(3, 0, 55, 0.8);
}

/* View Panel: About */
.view-panel--about {
    padding-top: calc(var(--header-height) + var(--spacing-xl));
    padding-bottom: var(--spacing-3xl);
    flex: 1;
}

.view-panel--about .team-header {
    margin-bottom: var(--spacing-xl);
}

.view-panel--about .heading-section {
    color: #FFFFFF;
    font-family: "apk-galeria", serif;
    font-size: clamp(2.25rem, 5vw, 3.25rem);
    line-height: 1.12;
    letter-spacing: -0.02em;
    margin-bottom: var(--spacing-xs);
    text-shadow: none;
    background: none;
}

.view-panel--about .team-header-desc {
    color: rgba(255, 255, 255, 0.88);
    font-size: clamp(1.05rem, 1.35vw, 1.1875rem);
    line-height: 1.6;
    max-width: 720px;
}

.view-panel--about .team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

.view-panel--about .team-card {
    background: #FFFFFF;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 8px;
    padding: var(--spacing-lg);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.22);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    overflow: hidden;
    position: relative;
}

.view-panel--about .team-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.28);
}

.view-panel--about .team-card__name {
    font-family: "apk-galeria", serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: #030037;
    margin-bottom: 2px;
}

.view-panel--about .team-card__role {
    font-family: "gt-pressura", sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    color: #1000EB;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    margin-bottom: var(--spacing-xs);
}

.view-panel--about .team-card__bio {
    font-size: 0.9375rem;
    color: #485563;
    line-height: 1.62;
}

.view-panel--about .team-card__photo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    padding: 0;
    background: none;
    box-shadow: none;
    border: none;
}

.view-panel--about .team-card__photo img {
    border-radius: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* View Panel: Contact */
.view-panel--contact {
    padding-top: calc(var(--header-height) + var(--spacing-2xl));
    padding-bottom: var(--spacing-3xl);
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.view-panel--contact .contact-container {
    max-width: 660px;
    width: 100%;
    margin: 0 auto;
}

.view-panel--contact .contact-card {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
}

.view-panel--contact .contact-card__header {
    margin-bottom: var(--spacing-xl);
}

.view-panel--contact .contact-card__title {
    font-family: "apk-galeria", serif;
    font-size: clamp(2.25rem, 5vw, 3.25rem);
    color: #FFFFFF;
    line-height: 1.12;
    letter-spacing: -0.02em;
    margin-bottom: var(--spacing-xs);
    text-shadow: none;
    background: none;
}

.view-panel--contact .contact-card__subtitle {
    font-size: clamp(1.05rem, 1.35vw, 1.1875rem);
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.6;
}

.view-panel--contact .contact-form__field label {
    color: #FFFFFF;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 8px;
}

.view-panel--contact .contact-form__field label .required {
    color: #FFA3BA;
}

.view-panel--contact .contact-form__field label .optional {
    color: rgba(255, 255, 255, 0.7);
    font-weight: normal;
}

.view-panel--contact .contact-form__field input,
.view-panel--contact .contact-form__field select,
.view-panel--contact .contact-form__field textarea {
    background: #FFFFFF;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    color: #030037;
    font-size: 0.9375rem;
    padding: 12px 14px;
    box-shadow: none;
    transition: border-color 0.2s ease, outline 0.2s ease;
}

.view-panel--contact .contact-form__field input:hover,
.view-panel--contact .contact-form__field select:hover,
.view-panel--contact .contact-form__field textarea:hover {
    border-color: #FFFFFF;
}

.view-panel--contact .contact-form__field input:focus,
.view-panel--contact .contact-form__field select:focus,
.view-panel--contact .contact-form__field textarea:focus {
    border-color: #FFFFFF;
    outline: 2px solid #FFFFFF;
    outline-offset: 1px;
    box-shadow: none;
}

.view-panel--contact .contact-submit {
    background: #FFFFFF;
    border: none;
    color: #030037;
    border-radius: 6px;
    font-weight: 600;
    padding: 13px 32px;
    box-shadow: none;
    cursor: pointer;
    transition: background-color 0.15s ease, opacity 0.15s ease;
}

.view-panel--contact .contact-submit:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.92);
    box-shadow: none;
    transform: none;
}

.view-panel--contact .contact-status--success .contact-status__title {
    color: #FFFFFF;
}

.view-panel--contact .contact-status--success .contact-status__desc {
    color: rgba(255, 255, 255, 0.9);
}

.view-panel--contact .contact-status--success .contact-status__reset-btn {
    background: #FFFFFF;
    color: #030037;
    border: none;
    box-shadow: none;
}

/* SPA Footer */
body.page-spa .site-footer {
    position: relative;
    z-index: 10;
    background: transparent;
    padding: var(--spacing-lg) 0;
    margin-top: auto;
}

body.page-spa.page-home .site-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.5rem 0 clamp(0.5rem, 1.2vh, 0.875rem);
    border-top: none;
}

body.page-spa.page-home .site-footer .footer__links {
    display: none;
}

body.page-spa.page-about .site-footer,
body.page-spa.page-contact .site-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding: var(--spacing-xl) 0;
}

body.page-spa .site-footer .footer__copyright {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.875rem;
}

body.page-spa .site-footer .footer__link {
    color: #FFFFFF;
    font-weight: 500;
    transition: opacity 0.2s ease;
}

body.page-spa .site-footer .footer__link:hover {
    color: #FFFFFF;
    opacity: 0.8;
    text-decoration: underline;
}



