/* --- GLOBAL ENGINE: VETERANVETTED --- */
* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --bg-dark: #0a0a0a;
    --white: #ffffff;
    --gold: #d4af37;
    --text-primary: #e0e0e0;
    --text-secondary: #a0a0a0;
    --console-green: #00ff41;
}

html { scroll-behavior: smooth; }

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: 'Segoe UI', sans-serif;
    line-height: 1.7;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main { flex: 1; }
.page-container { width: 90%; max-width: 1200px; margin: 0 auto; }

/* Header & Navigation */
.site-header { background: #0a0a0a; border-bottom: 1px solid #222; padding: 20px 0; }
.header-flex { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.logo { font-weight: 800; letter-spacing: 2px; font-size: 1.4rem; white-space: nowrap; }
.gold-text { color: var(--gold); }

nav { display: flex; flex-wrap: wrap; align-items: center; }

.btn-minimal {
    border: 1px solid var(--gold);
    padding: 8px 18px;
    margin-left: 15px;
    font-size: 0.85rem;
    color: var(--gold);
    text-decoration: none;
    transition: 0.3s;
    letter-spacing: 1px;
    display: inline-block;
}
.btn-minimal:hover { background: var(--gold); color: #000; }
.btn-minimal.active { background: var(--gold); color: #000; }

.nav-toggle { display: none; background: none; border: 1px solid var(--gold); color: var(--gold); font-size: 1.4rem; padding: 4px 12px; cursor: pointer; }

/* Hero Section */
.hero-section { text-align: center; padding: 110px 0 70px 0; }
.hero-section .eyebrow {
    display: block;
    letter-spacing: 4px;
    font-size: 0.75rem;
    color: var(--gold);
    margin-bottom: 18px;
    text-transform: uppercase;
}
.hero-section h1 { font-size: 3.6rem; margin-bottom: 20px; letter-spacing: -1px; line-height: 1.15; }
.hero-section p { font-size: 1.2rem; color: #888; max-width: 650px; margin: 0 auto 35px; }
.hero-actions { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; }

/* Action Buttons */
.btn-gold {
    display: inline-block;
    padding: 16px 40px;
    background-color: var(--gold);
    color: #000;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-align: center;
}
.btn-gold:hover {
    background-color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}
.btn-ghost {
    display: inline-block;
    padding: 15px 40px;
    border: 1px solid var(--gold);
    color: var(--gold);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    background: transparent;
    text-align: center;
}
.btn-ghost:hover { background: var(--gold); color: #000; }

.btn-custom {
    padding: 6px 12px;
    border: 1px solid var(--gold);
    color: var(--gold);
    text-decoration: none;
    font-size: 0.7rem;
    margin: 0 10px;
    transition: 0.3s;
    display: inline-block;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.btn-custom:hover { background: var(--gold); color: #000; }

/* Status / Mission Ribbon */
.status-ribbon { background: #050505; border-bottom: 1px solid #222; padding: 12px 0; font-size: 0.65rem; letter-spacing: 2.5px; color: #666; text-transform: uppercase; }
.status-ribbon .page-container { display: flex; justify-content: center; align-items: center; gap: 20px; flex-wrap: wrap; text-align: center; }
.status-dot { color: var(--green); margin-right: 5px; animation: pulse 2s infinite; }
.divider { color: #222; }

/* Page Header */
.page-header { padding: 70px 0 20px 0; text-align: center; }
.page-header h1 { font-size: 2.4rem; letter-spacing: 1px; margin-bottom: 12px; }
.page-header p { color: #888; max-width: 700px; margin: 0 auto; }

/* Methodology */
.methodology { text-align: center; margin: 40px 0; }
.methodology .line { width: 60px; height: 1px; background: var(--gold); margin: 0 auto 20px; }
.methodology h3 { font-size: 0.7rem; letter-spacing: 5px; color: var(--gold); margin-bottom: 10px; }
.methodology p { color: #666; font-size: 0.9rem; letter-spacing: 1px; }

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
    margin: 40px 0;
}
.service-module {
    background: #0d0d0d;
    border: 1px solid #1a1a1a;
    padding: 40px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
}
.service-module:hover { border-color: var(--gold); background: #121212; transform: translateY(-3px); }

.module-header { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.module-icon { font-size: 1.3rem; color: var(--gold); display: flex; align-items: center; }
.service-module h2 { margin: 0; font-size: 1.1rem; text-transform: uppercase; letter-spacing: 2px; color: var(--text-primary); line-height: 1; }
.service-module p { color: var(--text-secondary); font-size: 0.95rem; margin-bottom: 20px; flex-grow: 1; }

.specs-list { list-style: none; border-top: 1px solid #222; padding-top: 15px; margin-bottom: 20px; }
.specs-list li { font-size: 0.8rem; color: #888; margin-bottom: 5px; }
.specs-list li span { color: var(--gold); font-weight: bold; margin-right: 10px; }

.code-tag {
    font-family: 'Courier New', 'Monaco', monospace;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--green);
    background: #0a140a;
    padding: 8px 12px;
    border-left: 2px solid var(--green);
    display: inline-block;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Logic & Terminal Layout */
.logic-terminal-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-bottom: 60px;
}
.console-output {
    background: #050505;
    border: 1px solid #222;
    padding: 30px;
    font-family: 'Courier New', monospace;
    height: 100%;
}
.command-line { color: var(--text-primary); margin-bottom: 20px; font-weight: bold; font-size: 0.95rem; overflow-wrap: break-word; }
.user-prompt { color: var(--gold); margin-right: 10px; }
.console-response { color: var(--green); font-size: 0.9rem; line-height: 1.8; }
.cursor { display: inline-block; width: 8px; height: 18px; background: var(--green); animation: blink 1s infinite; }

/* Status Page */
.status-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; margin-bottom: 60px; }
.status-card { background: #0d0d0d; border: 1px solid #1a1a1a; padding: 25px; }
.status-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.status-header h3 { font-size: 0.9rem; letter-spacing: 1.5px; text-transform: uppercase; }
.status-header h3 i { color: var(--gold); margin-right: 8px; }
.status-card p { color: #888; font-size: 0.85rem; }
.badge { font-size: 0.6rem; padding: 4px 8px; border-radius: 2px; font-weight: bold; text-transform: uppercase; letter-spacing: 1px; }
.online { background: #0a140a; color: var(--green); border: 1px solid var(--green); }
.degraded { background: #1a140a; color: var(--gold); border: 1px solid var(--gold); }
.dev {
    background: #14141a;
    color: #6a5acd;
    border: 1px solid #6a5acd;
}
.summary-card { text-align: center; padding: 30px; border: 1px solid var(--gold); margin-bottom: 40px; }
.summary-card h3 { font-size: 0.8rem; letter-spacing: 3px; color: #888; margin-bottom: 10px; }
.summary-card p { font-size: 1.8rem; color: var(--green); font-family: 'Courier New', monospace; }

/* Project Registry */
.project-registry { margin: 80px 0; border-top: 1px solid #222; padding-top: 40px; }
.project-registry > h3 { text-align: center; font-size: 0.7rem; letter-spacing: 5px; margin-bottom: 40px; color: var(--gold); text-transform: uppercase; }
.registry-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.registry-card h3 { color: var(--gold); margin-bottom: 20px; letter-spacing: 2px; font-size: 0.95rem; text-transform: uppercase; }
.registry-card h3 i { margin-right: 8px; }
.registry-card h4 { color: var(--gold); margin-bottom: 15px; letter-spacing: 2px; font-size: 0.85rem; text-transform: uppercase; }
.registry-card ul { list-style: none; padding: 0; margin: 0; }
.registry-card li { margin-bottom: 10px; }
.registry-card a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: 0.3s;
    justify-content: space-between;
}
.registry-card a:hover { color: var(--gold); }
.dev-group { margin-bottom: 25px; }
.dev-large { grid-row: span 2; }

/* Badge Engine */
.registry-card a span {
    font-size: 0.65rem;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 4px;
    text-transform: uppercase;
    min-width: 90px;
    text-align: center;
    white-space: nowrap;
    flex-shrink: 0;
    letter-spacing: 0.5px;
    border: 1.5px solid;
    transition: all 0.3s ease;
}
.status-live, .status-active, .status-stable, .status-safe {
    color: var(--green);
    border-color: var(--green);
    background: rgba(0, 255, 65, 0.1);
    box-shadow: 0 0 12px rgba(0, 255, 65, 0.6);
    animation: pulse-glow 1.5s infinite;
}
.status-cloud, .status-v2 {
    color: #00d4ff;
    border-color: #00d4ff;
    background: rgba(0, 212, 255, 0.1);
    box-shadow: 0 0 12px rgba(0, 212, 255, 0.6);
}
.status-root, .status-admin, .status-local {
    color: #ffcc00;
    border-color: #ffcc00;
    background: rgba(255, 204, 0, 0.1);
    box-shadow: 0 0 12px rgba(255, 204, 0, 0.6);
}

/* Library / Registry */
.library-header { text-align: center; padding: 60px 0 40px 0; }
.library-header h1 { font-size: 2.6rem; letter-spacing: 1px; margin-bottom: 12px; }
.library-header h1 span { color: var(--gold); }
.library-header p { color: #888; max-width: 650px; margin: 0 auto; }
.library-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 25px; margin: 40px 0 80px 0; }
.library-card {
    background: #0d0d0d;
    border: 1px solid #1a1a1a;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: all 0.4s ease;
}
.library-card:hover { border-color: var(--gold); transform: translateY(-6px); box-shadow: 0 10px 30px rgba(212, 175, 55, 0.08); }
.library-card .cover {
    height: 200px;
    background: #0f0f0f;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-bottom: 1px solid #1a1a1a;
}
.library-card .cover img { max-width: 100%; max-height: 100%; object-fit: contain; padding: 12px; }
.library-card .body { padding: 24px; display: flex; flex-direction: column; flex-grow: 1; }
.library-card h3 { font-size: 1.05rem; color: #fff; margin-bottom: 10px; letter-spacing: 0.5px; }
.library-card .desc { color: var(--text-secondary); font-size: 0.88rem; margin-bottom: 20px; flex-grow: 1; }
.library-card .price { font-family: 'Courier New', monospace; font-size: 1.3rem; color: var(--gold); margin-bottom: 16px; font-weight: 700; }
.library-card .btn-gold,
.library-card .btn-ghost {
    padding: 12px 20px;
    font-size: 0.75rem;
    width: 100%;
}

/* CTA Band */
.cta-container { display: flex; justify-content: center; align-items: center; margin: 60px 0; flex-wrap: wrap; gap: 10px; }
.cta-section { text-align: center; padding: 70px 0; border-top: 1px solid #222; }
.cta-section h2 { margin-bottom: 15px; font-size: 1.6rem; letter-spacing: 1px; }
.cta-section p { color: #888; max-width: 600px; margin: 0 auto 30px; }

/* Footer */
.site-footer {
    margin-top: auto;
    padding: 4rem 0 2rem 0;
    border-top: 1px solid #222;
    background-color: #050505;
    color: #666;
    text-align: center;
    width: 100%;
}
.footer-links { margin-bottom: 20px; }
.footer-copyright {
    font-family: 'Courier New', monospace;
    font-size: 0.7rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}
.footer-tagline { font-size: 0.7rem; letter-spacing: 3px; color: #444; text-transform: uppercase; margin: 8px 0 20px 0; }
.footer-group {
    font-size: 0.7rem;
    letter-spacing: 2px;
    color: #888;
    text-transform: uppercase;
    margin: 0 0 20px 0;
}
.footer-group a { color: var(--gold); text-decoration: none; }
.footer-group a:hover { text-decoration: underline; }
.footer-legal { margin-top: 20px; font-size: 0.75rem; letter-spacing: 1px; text-transform: uppercase; }
.footer-legal a { color: #666; text-decoration: none; margin: 0 12px; }
.footer-legal a:hover { color: var(--gold); }

/* Legal Pages */
.legal-panel {
    border-top: 1px solid #222;
    text-align: left;
    max-width: 850px;
    margin: 0 auto;
    padding: 40px 0 60px 0;
}
.legal-panel p { color: #a0a0a0; font-size: 0.95rem; margin-bottom: 1rem; }
.legal-panel ul { margin-left: 1.5rem; margin-bottom: 1rem; }
.legal-panel li { color: #a0a0a0; font-size: 0.95rem; margin-bottom: 0.6rem; }
.legal-panel h2 {
    font-size: 1.1rem;
    color: var(--gold);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin: 2rem 0 0.75rem 0;
}
.legal-link { color: var(--gold); text-decoration: none; }
.legal-link:hover { text-decoration: underline; }

/* Contact Grid */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; padding-bottom: 60px; }
.contact-info-card {
    border: 1px solid #222;
    padding: 24px;
    background: #0d0d0d;
}
.contact-info-card h2 { color: var(--gold); font-size: 1rem; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 12px; }
.contact-info-card p { color: #a0a0a0; font-size: 0.9rem; }
.contact-info-card a.legal-link { color: var(--gold); }

/* Animations */
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
@keyframes pulse-glow { 0% { opacity: 1; } 50% { opacity: 0.5; } 100% { opacity: 1; } }
@keyframes pulse { 0% { opacity: 1; } 50% { opacity: 0.3; } 100% { opacity: 1; } }

/* Responsive */
@media (max-width: 900px) {
    .logic-terminal-container { grid-template-columns: 1fr; }
    .hero-section h1 { font-size: 2.6rem; }
}
@media (max-width: 768px) {
    .registry-grid { grid-template-columns: 1fr; }
    .nav-toggle { display: block; }
    #main-nav { display: none; width: 100%; flex-direction: column; gap: 10px; padding-top: 12px; }
    #main-nav.open { display: flex; }
    #main-nav .btn-minimal { margin: 0; text-align: center; }
    .hero-section { padding: 70px 0 50px 0; }
    .hero-section h1 { font-size: 2rem; }
    .btn-gold, .btn-ghost { width: 100%; }
}