/* Swiss Industrial Design System */
:root {
    --black: #000000;
    --white: #ffffff;
    --gray-light: #f5f5f5;
    --gray: #666666;
    --border: #e0e0e0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Courier New', Courier, monospace;
    background-color: var(--white);
    color: var(--black);
    line-height: 1.6;
    padding: 0;
    max-width: 1200px;
    margin: 0 auto;
}

/* Navigation */
nav {
    border-bottom: 1px solid var(--black);
    padding: 1rem 2rem;
    background: var(--white);
    position: sticky;
    top: 0;
    z-index: 100;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

nav a {
    text-decoration: none;
    color: var(--black);
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    padding: 0.5rem 0.75rem;
    display: inline-block;
    min-height: 44px;
    line-height: 44px;
    margin: -0.5rem -0.75rem;
}

nav a:hover {
    text-decoration: underline;
    background: var(--gray-light);
}

/* Typography */
h1 {
    font-family: 'Courier New', Courier, monospace;
    font-weight: 700;
    font-size: 2.5rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}

h2 {
    font-family: 'Courier New', Courier, monospace;
    font-size: 1.1rem;
    color: var(--gray);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

h3 {
    font-family: 'Courier New', Courier, monospace;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-bottom: 2px solid var(--black);
    padding-bottom: 0.5rem;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
}

h4 {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 2rem;
    margin-bottom: 0.5rem;
}

p {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

/* Layout */
.container {
    padding: 2rem;
}

.hero {
    border-bottom: 1px solid var(--black);
    padding: 3rem 2rem;
    background: var(--white);
}

.hero h1 {
    margin-bottom: 0.25rem;
}

.status-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #00ff00;
    border-radius: 50%;
    margin-left: 0.5rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.tagline {
    font-style: italic;
    color: var(--gray);
    margin-top: 0.5rem;
    display: block;
}

/* TRUST BAR CONTAINER */
.trust-bar-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
    max-width: 1400px;
    margin: 3rem auto;
    padding: 2rem 1rem;
    border-top: 2px solid #000;
    border-bottom: 2px solid #000;
    flex-wrap: wrap;
}

/* INDIVIDUAL ITEMS */
.trust-item {
    flex: 1;
    min-width: 200px;
    display: flex;
    flex-direction: column;
    padding: 0 0.75rem;
}

/* TYPOGRAPHY */
.trust-org {
    font-family: 'Helvetica', 'Arial', sans-serif;
    font-weight: 900;
    font-size: 1.2rem;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.trust-role {
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 0.2rem;
    text-transform: uppercase;
}

.trust-context {
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    color: #666;
    text-transform: uppercase;
}

/* VERTICAL DIVIDER LINE */
.trust-divider {
    width: 1px;
    background-color: #ccc;
    height: 80px;
    align-self: center;
}

/* Sections */
section {
    padding: 2rem;
    border-bottom: 1px solid var(--border);
}

section:last-child {
    border-bottom: none;
}

/* Abstract */
.abstract {
    font-size: 1rem;
    line-height: 1.8;
    max-width: 800px;
}

/* Buttons */
.btn {
    display: inline-block;
    background: var(--black);
    color: var(--white);
    padding: 12px 20px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-right: 10px;
    margin-top: 10px;
    border: 1px solid var(--black);
    min-height: 44px;
    line-height: 20px;
    text-align: center;
}

.btn:hover {
    background: var(--white);
    color: var(--black);
}

.btn-secondary {
    background: var(--white);
    color: var(--black);
    border: 1px solid var(--black);
}

.btn-secondary:hover {
    background: var(--black);
    color: var(--white);
}

/* Grid Layout */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

/* Case Study Cards */
.case-study {
    border: 1px solid var(--black);
    padding: 1.5rem;
    background: var(--white);
}

.case-study h4 {
    margin-top: 0;
    border-bottom: 1px solid var(--black);
    padding-bottom: 0.5rem;
}

.case-study .role {
    font-size: 0.85rem;
    color: var(--gray);
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.case-study .mission,
.case-study .engineering,
.case-study .result {
    margin-top: 1.5rem;
}

.case-study .mission strong,
.case-study .engineering strong,
.case-study .result strong {
    text-transform: uppercase;
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
}

/* Venture Blocks */
.venture {
    border: 1px solid var(--black);
    padding: 1.5rem;
    margin-bottom: 2rem;
    background: var(--white);
}

.venture h4 {
    margin-top: 0;
    border-bottom: 1px solid var(--black);
    padding-bottom: 0.5rem;
}

.venture .sector {
    font-size: 0.85rem;
    color: var(--gray);
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.venture .role {
    font-size: 0.85rem;
    color: var(--gray);
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.venture .pitch {
    font-style: italic;
    line-height: 1.8;
}

/* Footer */
footer {
    border-top: 1px solid var(--black);
    padding: 2rem;
    text-align: center;
    font-size: 0.8rem;
    color: var(--gray);
    background: var(--gray-light);
}

/* Links */
a {
    color: var(--black);
    text-decoration: underline;
}

a:hover {
    text-decoration: none;
}

/* Diagram Container */
.diagram-container {
    background: #fafafa;
    border: 2px solid var(--black);
    padding: 0;
    margin: 2rem 0;
    position: relative;
}

.diagram-label {
    background: var(--black);
    color: var(--white);
    padding: 0.5rem 1rem;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-bottom: 2px solid var(--black);
}

/* Mermaid Diagrams */
.mermaid {
    background: #fafafa;
    padding: 2rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow-x: auto;
    text-align: center;
    min-height: 400px;
}

.mermaid svg {
    max-width: 100%;
    height: auto;
}

.mermaid svg rect {
    fill: #ffffff !important;
}

.mermaid svg .node rect {
    fill: #ffffff !important;
}

/* Visual Placeholder for Diagrams */
.diagram-placeholder {
    border: 1px solid var(--black);
    background: var(--gray-light);
    padding: 2rem;
    text-align: center;
    font-size: 0.85rem;
    color: var(--gray);
    margin: 2rem 0;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.diagram-placeholder::before {
    content: "[SYSTEM ARCHITECTURE DIAGRAM]";
}

/* Code Blocks */
.code-block {
    background: #1e1e1e;
    border: 1px solid #000;
    padding: 1.5rem;
    margin: 1rem 0;
    overflow-x: auto;
}

.code-block pre {
    margin: 0;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.85rem;
    line-height: 1.6;
}

.code-block code {
    color: #d4d4d4;
    background: transparent;
    padding: 0;
    font-family: 'Courier New', Courier, monospace;
}

.code-block .hljs-comment,
.code-block .hljs-quote {
    color: #6a9955;
}

.code-block .hljs-keyword,
.code-block .hljs-selector-tag {
    color: #569cd6;
}

.code-block .hljs-string,
.code-block .hljs-number {
    color: #ce9178;
}

.code-block .hljs-function {
    color: #dcdcaa;
}

/* OPERATIONS PAGE STYLES */

.page-header {
    margin-bottom: 4rem;
    border-bottom: 4px solid #000;
    padding-bottom: 1rem;
}

.meta-block {
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    color: var(--gray);
    display: flex;
    gap: 2rem;
    margin-top: 0.5rem;
    flex-wrap: wrap;
}

.status-live {
    color: #009900;
    font-weight: bold;
    animation: blink 2s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Dossier Styling */
.project-dossier {
    margin-bottom: 6rem;
}

.dossier-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    border-bottom: 2px solid #000;
    margin-bottom: 2rem;
    padding-bottom: 0.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.dossier-header h4 {
    margin: 0;
    border-bottom: none;
    padding-bottom: 0;
}

.project-tag {
    background: #000;
    color: #fff;
    padding: 4px 12px;
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Specs Grid */
.specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
    background: var(--gray-light);
    padding: 2rem;
    border: 1px solid var(--black);
}

.spec-card {
    display: flex;
    flex-direction: column;
}

.spec-card h3 {
    font-size: 0.9rem;
    font-family: 'Courier New', monospace;
    color: var(--gray);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--border);
    padding-bottom: 0.25rem;
}

.spec-card p {
    font-weight: normal;
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.6;
}

/* Tech Stack List */
.tech-stack-list {
    margin: 2rem 0;
}

.tech-stack-list ul {
    list-style: none;
    padding: 0;
    font-family: 'Courier New', monospace;
    border-left: 2px solid #000;
    padding-left: 1.5rem;
    margin: 1rem 0;
}

.tech-stack-list li {
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
    line-height: 1.6;
}

.tech-stack-list strong {
    font-weight: bold;
    color: var(--black);
}

/* Responsive */
@media (max-width: 768px) {
    body {
        padding: 0;
    }
    
    .container {
        padding: 1rem;
    }
    
    .hero {
        padding: 2rem 1rem;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    nav ul {
        gap: 0.5rem;
        flex-wrap: wrap;
    }
    
    nav a {
        padding: 0.75rem 1rem;
        min-height: 44px;
        line-height: 1.2;
        margin: 0;
    }
    
    .grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .trust-bar-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 2rem;
    }

    .trust-divider {
        width: 50%;
        height: 1px;
    }
    
    .trust-item {
        width: 100%;
        padding: 0;
    }
    
    .mermaid {
        min-height: 300px;
        padding: 1rem;
    }
    
    .btn {
        display: block;
        width: 100%;
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .case-study {
        padding: 1rem;
    }
    
    .meta-block {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .dossier-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .specs-grid {
        grid-template-columns: 1fr;
        padding: 1.5rem;
    }
}
