/* Concordiatra Design System - Command Crew Aesthetic
   Based on CLAUDE.md design standards */

@import url('https://fonts.googleapis.com/css2?family=B612:wght@400;700&family=B612+Mono:wght@400;700&family=Crimson+Text:wght@400;600&display=swap');

/* ===== CSS Custom Properties ===== */
:root {
    /* Command Colors */
    --command-blue: #1E40AF;
    --status-cyan: #0891B2;
    --alert-amber: #F59E0B;
    --critical-red: #DC2626;
    --operational-green: #059669;

    /* Background & Surface */
    --bg-dark: #0F172A;
    --surface-dark: #1E293B;
    --surface-hover: #334155;

    /* Typography */
    --text-primary: #F8FAFC;
    --text-secondary: #CBD5E1;
    --text-muted: #94A3B8;

    /* Fonts */
    --font-primary: 'B612', sans-serif;
    --font-mono: 'B612 Mono', monospace;
    --font-ceremonial: 'Crimson Text', serif;

    /* Spacing (8px grid) */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-xxl: 48px;
    --space-3xl: 64px;

    /* Layout */
    --max-width: 1200px;
    --nav-height: 60px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

/* ===== Navigation ===== */
.site-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    background: var(--surface-dark);
    border-bottom: 2px solid var(--command-blue);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--space-lg);
    z-index: 9999;
}

.nav-logo {
    font-family: var(--font-ceremonial);
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: 0.05em;
}

.nav-logo span {
    color: var(--status-cyan);
}

.nav-links {
    display: flex;
    gap: var(--space-lg);
    list-style: none;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: var(--space-sm) 0;
    border-bottom: 2px solid transparent;
    transition: color 0.2s, border-color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-primary);
    border-bottom-color: var(--status-cyan);
}

.nav-toggle {
    display: none;
    background: none;
    border: 1px solid var(--text-muted);
    color: var(--text-primary);
    padding: var(--space-sm) var(--space-md);
    cursor: pointer;
    font-family: var(--font-primary);
    font-size: 14px;
}

/* ===== Main Content ===== */
.page-content {
    margin-top: var(--nav-height);
    min-height: calc(100vh - var(--nav-height));
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

/* ===== Hero Section ===== */
.hero {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: brightness(0.3);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: var(--space-xxl);
}

.hero h1 {
    font-family: var(--font-ceremonial);
    font-size: clamp(36px, 6vw, 64px);
    font-weight: 600;
    letter-spacing: 0.06em;
    margin-bottom: var(--space-lg);
    line-height: 1.1;
}

.hero h1 .subtitle {
    display: block;
    font-family: var(--font-primary);
    font-size: clamp(14px, 2vw, 18px);
    font-weight: 400;
    color: var(--text-secondary);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-top: var(--space-md);
}

.hero p {
    font-size: clamp(15px, 1.8vw, 18px);
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: var(--space-xl);
}

/* ===== Section Styles ===== */
.section {
    padding: var(--space-3xl) 0;
}

.section-dark {
    background: var(--surface-dark);
}

.section h2 {
    font-size: 24px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: var(--space-xl);
    padding-bottom: var(--space-md);
    border-bottom: 2px solid var(--command-blue);
}

.section h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--status-cyan);
    margin-bottom: var(--space-md);
    margin-top: var(--space-xl);
}

.section p {
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
    max-width: 75ch;
}

/* ===== Cards Grid ===== */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-lg);
    margin-top: var(--space-xl);
}

.card {
    background: var(--surface-dark);
    border: 1px solid var(--command-blue);
    padding: var(--space-lg);
    transition: border-color 0.2s;
}

.section-dark .card {
    background: var(--bg-dark);
}

.card:hover {
    border-color: var(--status-cyan);
}

.card h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: var(--space-sm);
}

.card p {
    font-size: 13px;
    color: var(--text-muted);
}

.card .card-label {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--status-cyan);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-sm);
    display: block;
}

/* ===== Spec Table ===== */
.spec-table {
    width: 100%;
    border-collapse: collapse;
    margin: var(--space-xl) 0;
    font-size: 14px;
}

.spec-table th {
    text-align: left;
    font-weight: 700;
    color: var(--status-cyan);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: var(--space-sm) var(--space-md);
    border-bottom: 2px solid var(--command-blue);
}

.spec-table td {
    padding: var(--space-sm) var(--space-md);
    border-bottom: 1px solid #1a2744;
    color: var(--text-secondary);
}

.spec-table td:first-child {
    color: var(--text-primary);
    font-weight: 700;
    white-space: nowrap;
}

.spec-table td.mono {
    font-family: var(--font-mono);
    text-align: right;
}

/* ===== Interactive Embed ===== */
.interactive-embed {
    width: 100%;
    height: 80vh;
    min-height: 500px;
    border: 1px solid var(--command-blue);
    background: #000;
}

/* ===== Stat Highlights ===== */
.stat-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: var(--space-lg);
    margin: var(--space-xl) 0;
}

.stat {
    text-align: center;
    padding: var(--space-lg);
    border: 1px solid #1a2744;
}

.stat .value {
    font-family: var(--font-mono);
    font-size: 28px;
    font-weight: 700;
    color: var(--status-cyan);
    display: block;
}

.stat .label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-top: var(--space-xs);
    display: block;
}

/* ===== Status Indicators ===== */
.status-operational { color: var(--operational-green); }
.status-warning { color: var(--alert-amber); }
.status-critical { color: var(--critical-red); }

/* ===== Concept Art Gallery ===== */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-md);
    margin: var(--space-xl) 0;
}

.gallery img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border: 1px solid #1a2744;
    transition: border-color 0.2s;
    cursor: pointer;
}

.gallery img:hover {
    border-color: var(--status-cyan);
}

/* ===== Blockquote ===== */
blockquote {
    border-left: 3px solid var(--status-cyan);
    padding: var(--space-md) var(--space-lg);
    margin: var(--space-xl) 0;
    font-style: italic;
    color: var(--text-secondary);
    background: rgba(8, 145, 178, 0.05);
}

/* ===== Two Column Layout ===== */
.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: start;
}

/* ===== Footer ===== */
.site-footer {
    background: var(--surface-dark);
    border-top: 2px solid var(--command-blue);
    padding: var(--space-xl) 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
}

.site-footer a {
    color: var(--status-cyan);
    text-decoration: none;
}

/* ===== CTA Links ===== */
.cta-link {
    display: inline-block;
    color: var(--status-cyan);
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border: 1px solid var(--status-cyan);
    padding: var(--space-sm) var(--space-lg);
    transition: background 0.2s, color 0.2s;
}

.cta-link:hover {
    background: var(--status-cyan);
    color: var(--bg-dark);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: var(--nav-height);
        left: 0;
        right: 0;
        background: var(--surface-dark);
        flex-direction: column;
        padding: var(--space-md);
        border-bottom: 2px solid var(--command-blue);
    }

    .nav-links.open {
        display: flex;
    }

    .nav-toggle {
        display: block;
    }

    .two-col {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: 60vh;
    }

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