/* Internal pages: demos list, models list, detail */
.internal-main {
    padding: 6rem 0 4rem;
    min-height: 60vh;
}

/* CWV: defer paint for below-fold internal sections — not FAQ (500px reserve broke layout) */
.internal-section:not([aria-labelledby="faq-h"]):not(.demo-faq-section),
.internal-grid {
    content-visibility: auto;
    contain-intrinsic-size: auto 500px;
}

.internal-container {
    max-width: 960px;
}

.internal-breadcrumb {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-family: var(--font-body);
}

.internal-breadcrumb a {
    color: var(--text-muted);
    text-decoration: none;
}

.internal-breadcrumb a:hover {
    color: var(--accent-light);
}

.bc-sep {
    opacity: 0.5;
    margin: 0 0.35rem;
}

.internal-top {
    margin-bottom: 0.25rem;
}

.internal-page-head {
    margin-bottom: 2.5rem;
}

/* h2 between page intro and card grid (outline: h1 → h2 → h3 per card) */
.internal-list-subheading {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    margin: -1rem 0 1.25rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.internal-aside.internal-related {
    margin-bottom: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.internal-aside.internal-related h2 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text);
}

.internal-page-head h1 {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 800;
    margin-bottom: 0.75rem;
    line-height: 1.25;
}

.internal-lead {
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 42rem;
    line-height: 1.7;
}

.internal-card .hub-poc-badge {
    margin-top: auto;
    margin-bottom: 0.35rem;
}

.internal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.25rem;
}

/* Semantic list wrapper: grid applies to cards inside <li> via display:contents */
ul.internal-grid {
    list-style: none;
    margin: 0;
    padding: 0;
}

.internal-grid > li {
    display: contents;
}

/* Breadcrumb: ordered list, visually inline */
.bc-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0;
    font-size: inherit;
    font-family: inherit;
}

.bc-list > li {
    display: inline-flex;
    align-items: center;
}

.bc-list > li:not(:last-child)::after {
    content: "/";
    opacity: 0.5;
    margin: 0 0.35rem;
}

.internal-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: right;
    padding: 1.35rem 1.5rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.internal-card:hover {
    border-color: rgba(99, 102, 241, 0.35);
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
}

.internal-card-emoji {
    font-size: 1.75rem;
    line-height: 1;
    margin-bottom: 0.75rem;
}

.internal-card-title {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.35;
    direction: ltr;
    text-align: left;
    unicode-bidi: isolate;
    align-self: stretch;
    width: 100%;
}

.internal-card-desc {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.55;
    flex: 1;
    margin-bottom: 0.75rem;
}

.internal-card-meta {
    font-size: 0.75rem;
    color: var(--accent-light);
    font-weight: 600;
}

.internal-card[hidden] {
    display: none !important;
}

.hub-catalog-toolbar {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin: 0 0 1.5rem;
}

.hub-catalog-search {
    position: relative;
}

.hub-catalog-search label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

.hub-catalog-search input {
    width: 100%;
    padding: 0.75rem 2.6rem 0.75rem 1rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 0.95rem;
}

.hub-catalog-search input:focus {
    outline: 2px solid rgba(99, 102, 241, 0.45);
    outline-offset: 1px;
}

.hub-catalog-search__icon {
    position: absolute;
    top: 50%;
    right: 0.9rem;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
}

.hub-catalog-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    align-items: center;
}

.hub-filter-chip {
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-muted);
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
}

.hub-filter-chip:hover,
.hub-filter-chip:focus-visible {
    color: var(--text);
    border-color: rgba(99, 102, 241, 0.45);
}

.hub-filter-chip.is-active {
    color: var(--accent-light);
    border-color: rgba(99, 102, 241, 0.55);
    background: rgba(99, 102, 241, 0.12);
}

.hub-catalog-count {
    margin-inline-start: auto;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.hub-empty {
    padding: 1.5rem;
    border: 1px dashed var(--border);
    border-radius: 14px;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 1.5rem;
}

.internal-article {
    max-width: 720px;
}

.internal-hero-detail {
    margin-bottom: 2.5rem;
}

.internal-hero-detail h1 {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3.5vw, 2rem);
    font-weight: 800;
    margin: 0.75rem 0 1rem;
    line-height: 1.3;
}

.internal-hero-emoji {
    font-size: 2.5rem;
    line-height: 1;
    display: block;
}

.internal-hero-emoji i {
    color: var(--accent-light);
}

.internal-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.internal-section {
    margin-bottom: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.internal-section h2 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text);
}

.internal-dl {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.5rem 1.25rem;
    font-size: 0.9rem;
}

.internal-dl dt {
    color: var(--text-muted);
    font-weight: 600;
}

.internal-dl dd {
    margin: 0;
    word-break: break-word;
}

.internal-dl code {
    font-size: 0.85em;
    background: var(--surface-2);
    padding: 0.15rem 0.45rem;
    border-radius: 6px;
}

.chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.chip {
    display: inline-block;
    padding: 0.25rem 0.65rem;
    background: var(--surface-2);
    border-radius: 999px;
    font-size: 0.75rem;
    color: var(--text-muted);
    border: 1px solid var(--border);
}

.internal-footer {
    margin-top: 3rem;
    padding-top: 2rem;
}

.internal-footer .footer-inner {
    flex-wrap: wrap;
    gap: 1rem;
}

.internal-footer .footer-links a {
    margin-inline-end: 1rem;
}

/* Industry hub & detail pages */
.industry-page-main {
    padding-top: 4.5rem;
}

.industry-hero {
    position: relative;
    padding: 2.5rem 0 3rem;
    overflow: hidden;
    isolation: isolate;
}

.industry-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 60% at 80% 20%, var(--hero-glow, rgba(34, 211, 238, 0.08)) 0%, transparent 55%),
        radial-gradient(ellipse 50% 40% at 10% 80%, var(--hero-glow-2, rgba(99, 102, 241, 0.06)) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

.industry-hero-inner {
    max-width: 720px;
}

.industry-hero-inner .internal-breadcrumb {
    margin-bottom: 1.25rem;
}

.industry-hero-badge {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--hero-accent, var(--accent-light));
    background: color-mix(in srgb, var(--hero-accent, var(--accent)) 12%, transparent);
    border: 1px solid color-mix(in srgb, var(--hero-accent, var(--accent)) 25%, transparent);
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    margin-bottom: 1rem;
}

.industry-hero-emoji {
    display: block;
    font-size: 2.5rem;
    line-height: 1;
    margin-bottom: 0.75rem;
}

.industry-hero-title {
    font-family: var(--font-display);
    font-size: clamp(1.85rem, 4.5vw, 2.65rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 0.85rem;
    letter-spacing: -0.02em;
}

.industry-hero-lead {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.75;
    max-width: 42rem;
    margin-bottom: 1.5rem;
}

.industry-hero-cta {
    margin-top: 0.25rem;
}

.industry-hero--hub {
    --hero-accent: var(--accent-light);
    --hero-glow: rgba(99, 102, 241, 0.1);
}

.industry-hero--agriculture {
    --hero-accent: #84cc16;
    --hero-glow: rgba(132, 204, 22, 0.12);
}

.industry-hero--laser {
    --hero-accent: #f97316;
    --hero-glow: rgba(249, 115, 22, 0.12);
}

.industry-hero--construction {
    --hero-accent: #f59e0b;
    --hero-glow: rgba(245, 158, 11, 0.12);
}

.industry-hero--refrigeration {
    --hero-accent: #22d3ee;
    --hero-glow: rgba(34, 211, 238, 0.12);
}

.industry-hero--energy {
    --hero-accent: #fbbf24;
    --hero-glow: rgba(251, 191, 36, 0.12);
}

.industry-hero--mining {
    --hero-accent: #d97706;
    --hero-glow: rgba(217, 119, 6, 0.12);
}

.industry-hero--steel {
    --hero-accent: #94a3b8;
    --hero-glow: rgba(148, 163, 184, 0.12);
}

.industry-hero--security {
    --hero-accent: #34d399;
    --hero-glow: rgba(52, 211, 153, 0.12);
}

.industry-hero--optimization {
    --hero-accent: #22d3ee;
    --hero-glow: rgba(34, 211, 238, 0.12);
}

.industry-hub-section {
    padding-top: 0;
    padding-bottom: 4rem;
}

.industry-hub-container {
    max-width: 1100px;
}

.industry-hub-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.industry-hub-card {
    transition: transform 0.2s, border-color 0.2s;
}

.industry-hub-card:hover {
    transform: translateY(-2px);
    border-color: color-mix(in srgb, var(--hub-accent, var(--accent-light)) 35%, var(--border));
}

.industry-hub-card--agriculture { --hub-accent: #84cc16; }
.industry-hub-card--laser { --hub-accent: #f97316; }
.industry-hub-card--construction { --hub-accent: #f59e0b; }
.industry-hub-card--refrigeration { --hub-accent: #22d3ee; }
.industry-hub-card--energy { --hub-accent: #fbbf24; }
.industry-hub-card--mining { --hub-accent: #d97706; }
.industry-hub-card--steel { --hub-accent: #94a3b8; }

.industry-page-content {
    padding-bottom: 3rem;
}

.industry-page-content .section-sub {
    margin-bottom: 2rem;
}

.industry-page-footer {
    margin-top: 2rem;
    border-top: none;
    padding-top: 0;
}

@media (min-width: 768px) {
    .industry-page-main {
        padding-top: 5rem;
    }

    .industry-hero {
        padding: 3rem 0 3.5rem;
    }
}

/* Portfolio demo pages (DocFlow, ContractGuard, OrgMind, …) */
.demo-status-badge {
    display: inline-block;
    margin-bottom: 1rem;
    padding: 0.35rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    border-radius: 999px;
    border: 1px solid var(--border);
}

.demo-status-badge--static {
    color: var(--accent);
    background: rgba(99, 102, 241, 0.1);
}

.demo-before-after {
    display: grid;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

@media (min-width: 640px) {
    .demo-before-after {
        grid-template-columns: 1fr 1fr;
    }
}

.demo-ba-col {
    padding: 1rem 1.15rem;
    border-radius: 0.75rem;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.02);
}

.demo-ba-label {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    opacity: 0.65;
}

.demo-ba-col--after {
    border-color: rgba(34, 197, 94, 0.35);
}

.demo-kpi-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.65rem;
}

.demo-kpi-list li {
    padding: 0.65rem 0.85rem;
    border-radius: 0.5rem;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.02);
}

.demo-quote {
    margin: 1.25rem 0 0;
    padding: 1rem 1.15rem;
    border-inline-start: 3px solid var(--accent);
    background: rgba(255, 255, 255, 0.03);
    border-radius: 0 0.5rem 0.5rem 0;
}

.demo-quote p {
    margin: 0 0 0.5rem;
    font-style: italic;
}

.demo-quote footer {
    font-size: 0.85rem;
    opacity: 0.75;
}

.demo-pipeline {
    font-family: ui-monospace, monospace;
    font-size: 0.88rem;
    line-height: 1.7;
    padding: 1rem;
    border-radius: 0.75rem;
    border: 1px solid var(--border);
    background: rgba(0, 0, 0, 0.2);
    overflow-x: auto;
}

.demo-metrics-wrap {
    overflow-x: auto;
}

.demo-metrics-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.demo-metrics-table th,
.demo-metrics-table td {
    padding: 0.65rem 0.85rem;
    text-align: start;
    border-bottom: 1px solid var(--border);
}

.demo-metrics-table th {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    opacity: 0.7;
}

.demo-hub-actions {
    flex-wrap: wrap;
}

.demo-cta-section p {
    margin-bottom: 1rem;
    opacity: 0.85;
}

.demo-docs-grid {
    display: grid;
    gap: 1rem;
}

@media (min-width: 768px) {
    .demo-docs-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.demo-doc-card {
    padding: 1.15rem 1.25rem;
    border-radius: 0.85rem;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.025);
}

.demo-doc-card h3 {
    font-family: var(--font-display);
    font-size: 1.05rem;
    margin: 0 0 0.65rem;
}

.demo-doc-card p {
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.75;
    margin: 0 0 0.75rem;
}

.demo-doc-card p:last-child {
    margin-bottom: 0;
}

.demo-industry-grid {
    display: grid;
    gap: 0.85rem;
}

@media (min-width: 640px) {
    .demo-industry-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 960px) {
    .demo-industry-grid {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

.demo-industry-card {
    padding: 1rem 1.1rem;
    border-radius: 0.75rem;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.02);
}

.demo-industry-card h3 {
    font-size: 0.98rem;
    margin: 0 0 0.4rem;
}

.demo-industry-card p {
    margin: 0;
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.demo-stack-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin: 0.75rem 0 0;
    padding: 0;
    list-style: none;
}

.demo-faq-section {
    padding: 2.75rem 0 3.5rem;
    content-visibility: visible;
    contain-intrinsic-size: none;
}

.internal-section[aria-labelledby="faq-h"],
.demo-faq-section {
    content-visibility: visible;
    contain-intrinsic-size: none;
}

/* Orphan FAQ that sat outside .container (full-bleed, no padding) */
main > .internal-section[aria-labelledby="faq-h"] {
    width: 100%;
    max-width: 1200px;
    margin-inline: auto;
    padding: 2.5rem 1.5rem 3.5rem;
}

.demo-faq-section h2,
.internal-section[aria-labelledby="faq-h"] h2 {
    font-family: var(--font-display);
    font-size: clamp(1.2rem, 2.2vw, 1.55rem);
    font-weight: 800;
    margin: 0 0 1.15rem;
    line-height: 1.35;
    color: var(--text);
}

.demo-faq-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 100%;
}

.demo-faq-item {
    border: 1px solid var(--border);
    border-radius: 0.85rem;
    background: rgba(255, 255, 255, 0.02);
    padding: 1rem 1.15rem;
    overflow: hidden;
}

.demo-faq-item h3 {
    font-family: var(--font-display);
    font-size: 0.98rem;
    font-weight: 700;
    margin: 0 0 0.45rem;
    line-height: 1.55;
    overflow-wrap: anywhere;
    word-break: break-word;
    unicode-bidi: plaintext;
}

.demo-faq-item p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.8;
    overflow-wrap: anywhere;
    word-break: break-word;
    unicode-bidi: plaintext;
}

.model-toc {
    margin: 0 0 1.5rem;
    padding: 1rem 1.15rem;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: rgba(99, 102, 241, 0.06);
}

.model-toc h2 {
    font-size: 0.95rem;
    margin-bottom: 0.65rem;
}

.model-toc ol {
    margin: 0;
    padding-inline-start: 1.25rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.8;
}

.model-toc a {
    color: var(--accent-light);
    text-decoration: none;
}

.model-query-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin: 0.75rem 0 0;
    padding: 0;
    list-style: none;
}

.model-query-list li {
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    border: 1px solid var(--border);
    font-size: 0.82rem;
    color: var(--text);
    background: var(--surface);
}

.model-agent-card {
    margin-top: 1rem;
    padding: 1rem 1.15rem;
    border-radius: 12px;
    border: 1px dashed var(--border);
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.model-agent-card strong {
    color: var(--text);
}

.model-seo-article p {
    margin-bottom: 0.9rem;
    line-height: 1.85;
    color: var(--text);
}

.model-usecases {
    margin: 0.5rem 0 1rem;
    padding-inline-start: 1.3rem;
    color: var(--text);
    line-height: 1.85;
}

.model-usecases li {
    margin-bottom: 0.45rem;
}


.internal-container--wide {
    max-width: 1080px;
}

.industry-hero--pharma {
    --hero-accent: #f472b6;
    --hero-glow: rgba(244, 114, 182, 0.12);
}

.industry-hero--vision {
    --hero-accent: #f472b6;
    --hero-glow: rgba(244, 114, 182, 0.12);
}

.industry-hub-card--pharma { --hub-accent: #f472b6; }

.hub-see-also {
    margin: 1rem 0 0;
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-muted);
}

.hub-see-also a {
    color: var(--accent-light);
}

.legal-prose {
    max-width: 46rem;
    padding: 5.5rem 1.25rem 4rem;
    line-height: 1.9;
}

.legal-prose h1 {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 3vw, 2.1rem);
    margin: 1rem 0 0.5rem;
}

.legal-prose h2 {
    font-size: 1.15rem;
    margin: 2rem 0 0.75rem;
}

.legal-prose p {
    margin-bottom: 1rem;
    color: var(--text);
}

.legal-updated {
    color: var(--text-muted);
    font-size: 0.9rem;
}

