/* ==========================================================================
   TRUTHIMATICS DESIGN SYSTEM — FUNCTIONAL BRUTALISM
   Aesthetics: Tactical terminal, HPC workstation, industrial control system
   Zero compromise. Every pixel serves a data purpose.
   ========================================================================== */

/* Font import handled via <link> in HTML head for optimal performance */
/* Accessibility: Skip link */
.skiplink {
    position: absolute;
    top: -100px;
    left: 0;
    z-index: 2000;
}

.skiplink:focus {
    top: 10px;
}

/* CSS Variables — Functional Brutalist Palette */
:root {
    /* Base backgrounds — absolute black, industrial charcoal */
    --bg-base: #000000;
    --bg-card: #09090b;
    --bg-card-hover: #0c0c0e;
    --bg-elevated: #0c0c0e;
    --bg-surface: #111113;

    /* Text — strict monochrome hierarchy */
    --text-primary: #e4e4e7;
    --text-muted: #71717a;
    --text-dim: #52525b;
    --text-highlight: #fafafa;

    /* Functional accent tones — no decorative colors */
    --color-status-green: #22c55e;
    --color-status-amber: #f59e0b;
    --color-status-red: #dc2626;
    --color-status-cyan: #06b6d4;

    /* Borders — ultra-thin, sharp, no softening */
    --border-default: #1e1e24;
    --border-hover: #3f3f46;
    --border-active: #fafafa;
    --border-focus: #fafafa;

    /* Transitions — instant, binary, no easing curves */
    --transition-instant: 0s;
    --transition-fast: 0.05s;
}

/* Base Reset & Semantic Elements */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: auto;
    font-size: 15px;
    background-color: var(--bg-base);
    color: var(--text-primary);
    font-family: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', 'Consolas', monospace;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.5;
    background-color: var(--bg-base);
    position: relative;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 96px 96px;
    opacity: 0.18;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.25) 70%, rgba(0, 0, 0, 0));
}

/* Accessibility: Focus styles — sharp white outline, no softening */
*:focus-visible {
    outline: 1px solid var(--border-active);
    outline-offset: 2px;
}

/* Support High Contrast Mode */
@media (forced-colors: active) {
    .system-card,
    .philosophy-card,
    .btn,
    .filter-tab,
    .sim-engine-btn {
        border: 2px solid ButtonText;
    }
}

/* Scrollbar — raw, functional */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-base);
}
::-webkit-scrollbar-thumb {
    background: #2a2a2e;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* Utility Containers */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ─── TYPOGRAPHY — Monospace Manifesto ─── */

h1, h2, h3, h4, h5, h6,
p, span, a, li, button, input, select, textarea,
.brand-text, .badge, .system-category-badge,
.system-tag, .metric-value, .metric-label,
.sim-title, .sim-engine-btn, .filter-tab,
.faq-trigger, .footer-links, .footer-description,
.hero-description, .btn {
    font-family: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', 'Consolas', monospace;
}

h1, h2, h3, h4 {
    font-weight: 600;
    color: var(--text-highlight);
    letter-spacing: -0.01em;
}

h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    line-height: 1.1;
    margin-bottom: 1.25rem;
}

h2 {
    font-size: clamp(1.4rem, 3vw, 2rem);
    line-height: 1.2;
    margin-bottom: 1.25rem;
    display: inline-block;
}

/* No decorative underlines on h2 — removed gradient accent bar */
h2::after {
    display: none;
}

h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.text-muted {
    color: var(--text-muted);
}

.text-highlight {
    color: var(--text-highlight);
}

.text-dim {
    color: var(--text-dim);
}

.text-status-green {
    color: var(--color-status-green);
}

.text-status-amber {
    color: var(--color-status-amber);
}

/* No gradient text classes — removed text-gradient-cyan, text-gradient-green */

/* System-style lowercase with underscores */
.system-process-name {
    font-weight: 400;
    color: var(--text-muted);
    letter-spacing: 0;
}

.system-process-name::before {
    content: "[ ";
    color: var(--text-dim);
}

.system-process-name::after {
    content: " ]";
    color: var(--text-dim);
}

/* ─── ASCII Structural Elements ─── */

.ascii-divider {
    display: block;
    color: var(--text-dim);
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    user-select: none;
    white-space: pre;
}

/* ─── NAVIGATION — Tactical Terminal Bar ─── */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.84);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border-default);
    height: 56px;
    display: flex;
    align-items: center;
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
}

.brand-icon {
    width: 24px;
    height: 24px;
    stroke: var(--text-highlight);
    /* No glow filter */
}

.brand-text {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-highlight);
    letter-spacing: 0;
    text-transform: lowercase;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 400;
    text-transform: lowercase;
    letter-spacing: 0.02em;
    transition: color var(--transition-fast);
}

.nav-links a:hover {
    color: var(--text-highlight);
}

.nav-network-status {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    padding: 0.3rem 0.6rem;
    border: 1px solid var(--border-default);
}

.status-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    background: var(--color-status-green);
    /* No glow, no animation, no border-radius */
}

/* ─── HERO SECTION ─── */

.hero {
    padding-top: 140px;
    padding-bottom: 60px;
    position: relative;
    text-align: left;
    border-bottom: 1px solid var(--border-default);
    overflow: hidden;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 42%);
}

.hero .container {
    max-width: 900px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    border: 1px solid var(--border-default);
    color: var(--text-muted);
    padding: 0.3rem 0.6rem;
    font-size: 0.75rem;
    font-weight: 400;
    margin-bottom: 1.25rem;
    text-transform: lowercase;
    letter-spacing: 0.02em;
}

.badge .status-dot {
    width: 5px;
    height: 5px;
    background: var(--color-status-green);
}

.hero-description {
    max-width: 760px;
    margin: 0 0 2rem 0;
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-muted);
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    max-width: 720px;
    margin-top: 1.5rem;
    background: var(--border-default);
    border: 1px solid var(--border-default);
}

.hero-stat {
    padding: 1rem 1.1rem;
    background: var(--bg-card);
}

.hero-stat-value {
    display: block;
    color: var(--text-highlight);
    font-size: 1.3rem;
    font-weight: 600;
    line-height: 1.1;
}

.hero-stat-label {
    display: block;
    margin-top: 0.25rem;
    color: var(--text-dim);
    font-size: 0.72rem;
    text-transform: lowercase;
    letter-spacing: 0.02em;
}

@media (max-width: 720px) {
    .hero-stats {
        grid-template-columns: 1fr;
    }
}

.hero-ctas {
    display: flex;
    justify-content: flex-start;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ─── BUTTONS — Sharp, Rectangular, Instant Inversion ─── */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 1.2rem;
    font-size: 0.8rem;
    font-weight: 500;
    border-radius: 0;
    cursor: pointer;
    text-decoration: none;
    text-transform: lowercase;
    letter-spacing: 0.02em;
    transition: background var(--transition-fast), color var(--transition-fast);
    border: 1px solid var(--border-hover);
}

.btn-primary {
    background: var(--text-highlight);
    color: var(--bg-base);
    border: 1px solid var(--text-highlight);
}

.btn-primary:hover {
    background: var(--bg-base);
    color: var(--text-highlight);
}

.btn-secondary {
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--border-hover);
}

.btn-secondary:hover {
    background: var(--text-highlight);
    color: var(--bg-base);
    border-color: var(--text-highlight);
}

.btn-icon {
    width: 16px;
    height: 16px;
    fill: currentColor;
    stroke: currentColor;
}

/* ─── PHILOSOPHY / CORE CARDS ─── */

.philosophy {
    padding: 60px 0;
    border-bottom: 1px solid var(--border-default);
}

.philosophy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1px;
    margin-top: 2.5rem;
    background: var(--border-default);
}

.philosophy-card {
    background: var(--bg-card);
    padding: 2rem;
    position: relative;
    transition: background var(--transition-fast);
}

.philosophy-card:hover {
    background: var(--bg-card-hover);
}

/* Remove the gradient bar ::before — deleted */

.philosophy-icon {
    width: 32px;
    height: 32px;
    stroke: var(--text-muted);
    margin-bottom: 1.25rem;
}

/* ─── SIMULATOR — Terminal Workstation ─── */

.simulator-section {
    padding: 60px 0;
    border-bottom: 1px solid var(--border-default);
}

.simulator-container {
    background: var(--bg-base);
    border: 1px solid var(--border-default);
    margin-top: 2.5rem;
}

.sim-header {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-default);
    padding: 0.75rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sim-window-dots {
    display: flex;
    gap: 0.4rem;
}

.sim-dot {
    width: 8px;
    height: 8px;
}

.sim-dot-red { background-color: var(--color-status-red); }
.sim-dot-yellow { background-color: var(--color-status-amber); }
.sim-dot-green { background-color: var(--color-status-green); }

.sim-title {
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--text-dim);
    text-transform: lowercase;
}

.sim-engine-selector {
    display: inline-flex;
    align-items: center;
    background: var(--bg-base);
    border: 1px solid var(--border-default);
    padding: 0.3rem 0.6rem;
    color: var(--text-muted);
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 0.75rem;
    cursor: pointer;
    transition: border-color var(--transition-fast);
    border-radius: 0;
}

.sim-engine-selector:hover {
    border-color: var(--border-hover);
}

.sim-grid {
    display: grid;
    grid-template-columns: 1fr;
}

@media (min-width: 992px) {
    .sim-grid {
        grid-template-columns: 280px 1fr;
    }
}

.sim-sidebar {
    border-right: none;
    border-bottom: 1px solid var(--border-default);
    padding: 1rem;
    background: var(--bg-card);
}

@media (min-width: 992px) {
    .sim-sidebar {
        border-right: 1px solid var(--border-default);
        border-bottom: none;
    }
}

.sim-sidebar-title {
    font-size: 0.7rem;
    text-transform: lowercase;
    letter-spacing: 0.05em;
    color: var(--text-dim);
    margin-bottom: 1rem;
    font-weight: 400;
}

.sim-engine-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sim-engine-btn {
    background: transparent;
    border: 1px solid transparent;
    padding: 0.5rem 0.75rem;
    text-align: left;
    color: var(--text-muted);
    cursor: pointer;
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 0.8rem;
    font-weight: 400;
    transition: background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 0;
}

.sim-engine-btn:hover {
    background: var(--bg-surface);
    color: var(--text-primary);
}

.sim-engine-btn.active {
    background: var(--bg-elevated);
    border-color: var(--border-active);
    color: var(--text-highlight);
}

.sim-engine-metric {
    font-size: 0.7rem;
    padding: 0.1rem 0.35rem;
    border: 1px solid var(--border-default);
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
}

.sim-engine-btn.active .sim-engine-metric {
    border-color: var(--border-hover);
    color: var(--color-status-green);
}

/* Simulator Output Screen */
.sim-viewport {
    display: flex;
    flex-direction: column;
    min-height: 420px;
    background: var(--bg-base);
}

.sim-terminal {
    flex: 1;
    padding: 1.25rem;
    font-family: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
    font-size: 0.8rem;
    color: var(--color-status-green);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    line-height: 1.3;
}

.terminal-line {
    word-break: break-all;
}

.terminal-input::before {
    content: "root@truthimatics:~$ ";
    color: var(--text-dim);
}

.terminal-success {
    color: var(--color-status-green);
}

.terminal-cyan {
    color: var(--color-status-cyan);
}

.terminal-warning {
    color: var(--color-status-amber);
}

.terminal-error {
    color: var(--color-status-red);
}

.terminal-cursor {
    display: inline-block;
    width: 8px;
    height: 14px;
    background: var(--color-status-green);
    animation: cursor-blink 0.5s steps(2, start) infinite;
}

@keyframes cursor-blink {
    to { visibility: hidden; }
}

.sim-controls {
    border-top: 1px solid var(--border-default);
    padding: 1rem 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-card);
}

.sim-audit-btn {
    background: var(--color-status-green);
    color: var(--bg-base);
    border: 1px solid var(--color-status-green);
}

.sim-audit-btn:hover:not(:disabled) {
    background: var(--bg-base);
    color: var(--color-status-green);
}

.sim-audit-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.sim-verification-status {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.8rem;
}

.status-indicator {
    padding: 0.2rem 0.6rem;
    font-weight: 500;
    text-transform: lowercase;
    font-size: 0.7rem;
    letter-spacing: 0.02em;
    border: 1px solid var(--border-default);
    border-radius: 0;
}

.status-idle {
    background: transparent;
    color: var(--text-dim);
    border-color: var(--border-default);
}

.status-running {
    background: transparent;
    color: var(--color-status-amber);
    border-color: var(--color-status-amber);
    animation: flash 0.8s infinite;
}

@keyframes flash {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

.status-verified {
    background: transparent;
    color: var(--color-status-green);
    border-color: var(--color-status-green);
}

/* ─── PORTFOLIO & SEARCH ─── */

.portfolio-section {
    padding: 60px 0;
    border-bottom: 1px solid var(--border-default);
}

.section-intro {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-bottom: 2.5rem;
}

@media (min-width: 768px) {
    .section-intro {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-end;
    }
}

.section-title-wrap {
    max-width: 600px;
}

.search-filter-controls {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
}

@media (min-width: 768px) {
    .search-filter-controls {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

.search-box-wrapper {
    position: relative;
    flex: 1;
    max-width: 400px;
}

.search-input {
    width: 100%;
    background: var(--bg-card);
    border: 1px solid var(--border-default);
    padding: 0.6rem 0.75rem 0.6rem 2.25rem;
    color: var(--text-highlight);
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 0.85rem;
    transition: border-color var(--transition-fast);
    border-radius: 0;
}

.search-input:focus {
    background: var(--bg-base);
    border-color: var(--border-active);
    outline: none;
}

.search-icon {
    position: absolute;
    left: 0.7rem;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    stroke: var(--text-dim);
    pointer-events: none;
}

.search-input:focus + .search-icon {
    stroke: var(--text-highlight);
}

.filter-tabs {
    display: flex;
    gap: 1px;
    background: var(--border-default);
    padding: 0;
    overflow-x: auto;
    white-space: nowrap;
}

.filter-tab {
    background: var(--bg-card);
    border: none;
    padding: 0.5rem 1rem;
    color: var(--text-muted);
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 0.75rem;
    font-weight: 400;
    cursor: pointer;
    transition: background var(--transition-fast), color var(--transition-fast);
    border-radius: 0;
    text-transform: lowercase;
}

.filter-tab:hover {
    background: var(--bg-surface);
    color: var(--text-primary);
}

.filter-tab.active {
    background: var(--text-highlight);
    color: var(--bg-base);
}

/* ─── CATEGORY SECTIONS ─── */

.category-container {
    margin-bottom: 3rem;
}

.category-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.category-label-accent {
    font-size: 0.7rem;
    letter-spacing: 0.05em;
    text-transform: lowercase;
    color: var(--text-dim);
    border: 1px solid var(--border-default);
    padding: 0.2rem 0.5rem;
}

/* ─── SYSTEM GRID & CARDS ─── */

.systems-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1px;
    background: var(--border-default);
}

.system-card {
    background: var(--bg-card);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: background var(--transition-fast);
    position: relative;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.01);
}

.system-card:hover {
    background: var(--bg-card-hover);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

/* Remove category accent left borders — replaced with pure text distinction */

.system-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.system-title-link {
    text-decoration: none;
    color: var(--text-highlight);
}

.system-title-link:hover h3 {
    color: var(--text-highlight);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.system-card-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
}

.system-category-badge {
    font-size: 0.65rem;
    font-weight: 400;
    text-transform: lowercase;
    letter-spacing: 0.02em;
    padding: 0.15rem 0.4rem;
    border: 1px solid var(--border-default);
    color: var(--text-dim);
}

/* Remove per-category badge colors — uniform monochrome */

.system-description {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 1.25rem;
    flex-grow: 1;
}

.system-metrics-box {
    border: 1px solid var(--border-default);
    padding: 0.75rem 1rem;
    margin-bottom: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    background: var(--bg-base);
}

.metric-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.78rem;
}

.metric-label {
    color: var(--text-dim);
    font-weight: 400;
}

.metric-value {
    color: var(--text-highlight);
    font-weight: 500;
}

.system-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
    margin-bottom: 1.25rem;
}

.system-tag {
    font-size: 0.7rem;
    border: 1px solid var(--border-default);
    color: var(--text-dim);
    padding: 0.1rem 0.4rem;
    background: transparent;
}

a.system-tag {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

a.system-tag:hover {
    color: var(--text-highlight);
    border-color: var(--text-highlight);
}

.system-actions {
    display: flex;
    gap: 1px;
}

.system-btn {
    flex: 1;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 500;
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    text-decoration: none;
    cursor: pointer;
    transition: background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
    text-transform: lowercase;
    letter-spacing: 0.02em;
    border: 1px solid var(--border-default);
    background: transparent;
    color: var(--text-muted);
    border-radius: 0;
}

.system-btn:hover {
    background: var(--text-highlight);
    color: var(--bg-base);
    border-color: var(--text-highlight);
}

.system-btn-audit {
    /* Same base style */
}

/* Remove per-category scientific color variants — uniform */

/* ─── FAQ SECTION ─── */

.faq-section {
    padding: 60px 0;
    border-bottom: 1px solid var(--border-default);
    background: var(--bg-base);
}

.faq-title-wrap {
    text-align: left;
    max-width: 600px;
    margin: 0 0 2.5rem 0;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1px;
    background: var(--border-default);
}

.faq-item {
    background: var(--bg-card);
    border: none;
    transition: background var(--transition-fast);
}

.faq-item:hover {
    background: var(--bg-card-hover);
}

.faq-trigger {
    width: 100%;
    background: transparent;
    border: none;
    padding: 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-primary);
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 0.9rem;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    transition: color var(--transition-fast);
    border-radius: 0;
}

.faq-trigger:hover {
    color: var(--text-highlight);
}

.faq-icon {
    width: 16px;
    height: 16px;
    stroke: var(--text-dim);
    transition: transform var(--transition-fast);
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
    stroke: var(--text-highlight);
}

.faq-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.1s ease-out;
}

.faq-content {
    padding: 0 1.25rem 1.25rem 1.25rem;
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.5;
}

/* ─── CALL TO ACTION ─── */

.cta-section {
    padding: 60px 0;
    text-align: left;
    position: relative;
    border-bottom: 1px solid var(--border-default);
}

.cta-wrap {
    max-width: 700px;
    margin: 0;
    background: transparent;
    padding: 2rem;
}

.cta-wrap h2 {
    margin-bottom: 1rem;
}

.cta-wrap p {
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

/* ─── BREADCRUMB NAVIGATION ─── */

.breadcrumb-nav {
    margin-bottom: 1.5rem;
}

.breadcrumb-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 0.5rem;
    align-items: center;
    font-size: 0.75rem;
}

.breadcrumb-item {
    color: var(--text-dim);
    display: flex;
    align-items: center;
}

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

.breadcrumb-item a:hover {
    color: var(--text-highlight);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "/";
    color: var(--text-dim);
    margin-right: 0.5rem;
    user-select: none;
}

.breadcrumb-item span[aria-current="page"] {
    color: var(--text-highlight);
    font-weight: 500;
}

/* ─── SECTION DIVIDER (HR) ─── */

.section-divider {
    border: none;
    border-top: 1px solid var(--border-default);
    margin: 0;
    height: 0;
}

/* ─── FOOTER ─── */

.footer {
    border-top: 1px solid var(--border-default);
    padding: 3rem 0 2rem 0;
    background: var(--bg-base);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    margin-bottom: 2.5rem;
}

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

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-description {
    font-size: 0.8rem;
    max-width: 320px;
    color: var(--text-dim);
}

.footer-links-col {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-links-col h4 {
    font-size: 0.8rem;
    text-transform: lowercase;
    letter-spacing: 0.02em;
    color: var(--text-dim);
    font-weight: 400;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.8rem;
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--text-highlight);
}

.footer-bottom {
    border-top: 1px solid var(--border-default);
    padding-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: flex-start;
    font-size: 0.75rem;
    color: var(--text-dim);
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

.footer-legal-links {
    display: flex;
    gap: 1.25rem;
}

.footer-legal-links a {
    text-decoration: none;
    color: var(--text-dim);
    transition: color var(--transition-fast);
}

.footer-legal-links a:hover {
    color: var(--text-highlight);
}

/* ─── NO RESULTS STATE ─── */

.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem 2rem;
    border: 1px dashed var(--border-default);
    color: var(--text-dim);
    font-size: 0.85rem;
}

/* ─── PRINT STYLES ─── */

@media print {
    body {
        background: #fff;
        color: #000;
    }
    .navbar,
    .simulator-section,
    .system-actions,
    .btn,
    .footer {
        display: none;
    }
    .system-card,
    .philosophy-card {
        break-inside: avoid;
        border: 1px solid #ccc;
        background: #fff;
    }
}

/* ─── REDUCED MOTION ─── */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
