/* * SEI SYSTEMS - CORE DESIGN SYSTEM 
 * v2.0 - Refactored for SOC 2 Compliance & Unified Brand Integrity
 * Standardized: Black, Blue, Silver Palette
 */

:root {
    /* The SEI Professional Palette */
    --black: #0a0a0c;
    --blue: #0070f3;
    --silver: #c0c0c8;
    --dark-gray: #1a1a1e;
    --white: #ffffff;
    
    /* Functional Accents */
    --glow: rgba(0, 112, 243, 0.4);
    --border: #222;
}

/* --- BASE ARCHITECTURE --- */

body {
    background-color: var(--black);
    color: var(--silver);
    font-family: 'Inter', -apple-system, sans-serif;
    line-height: 1.6;
    margin: 0;
    -webkit-font-smoothing: antialiased;
}

/* --- NAVIGATION & HEADER (The Bridge) --- */

.sei-header {
    padding: 6rem 2rem;
    text-align: center;
    background: radial-gradient(circle at top, #001a33 0%, #0a0a0c 100%);
    border-bottom: 1px solid var(--border);
}

.sei-title {
    color: var(--white);
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
    letter-spacing: -2px;
}

.sei-highlight { 
    color: var(--blue);
    text-shadow: 0 0 15px var(--glow);
}

.sei-nav {
    display: flex; 
    justify-content: center; 
    gap: 2.5rem; 
    margin-bottom: 3rem; 
    font-size: 0.85rem; 
    font-weight: 700; 
    text-transform: uppercase; 
    letter-spacing: 1px;
}

.sei-nav-link {
    color: var(--silver);
    text-decoration: none;
    transition: all 0.3s ease;
    padding-bottom: 4px;
    border-bottom: 2px solid transparent;
}

.sei-nav-link:hover {
    color: var(--blue);
}

.sei-nav-link.active {
    color: var(--white);
    border-bottom: 2px solid var(--blue);
}

/* --- LAYOUT & GRID SYSTEM --- */

.sei-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 4rem 2rem;
    min-height: 70vh; /* Keeps layout stable across empty pages */
}

.sei-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

/* --- COMPONENT LIBRARY (Cards & Badges) --- */

.sei-card {
    background: var(--dark-gray);
    padding: 2.5rem;
    border-radius: 16px;
    border: 1px solid var(--border);
    position: relative;
    transition: all 0.4s ease;
}

.sei-card h3 {
    margin-top: 1rem;
    color: var(--white);
}

.sei-card:hover {
    transform: translateY(-5px);
    border-color: var(--blue);
    box-shadow: 0 10px 30px rgba(0, 112, 243, 0.15);
}

.sei-badge {
    border: 1px solid var(--blue);
    color: var(--blue);
    padding: 4px 12px;
    border-radius: 30px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
}

/* --- ACTION ELEMENTS --- */

.sei-btn-action {
    display: inline-block;
    background: transparent;
    border: 1px solid var(--blue);
    color: var(--blue);
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    transition: 0.3s;
    cursor: pointer;
}

.sei-btn-action:hover {
    background: var(--blue);
    color: var(--white);
    box-shadow: 0 0 15px var(--blue);
}

/* --- FORM & DATA INTAKE (HMAC Gateway) --- */

.gateway-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.discovery-form {
    background: var(--dark-gray);
    padding: 3rem;
    border-radius: 16px;
    border: 1px solid var(--border);
}

.form-group { 
    margin-bottom: 1.5rem; 
    text-align: left;
}

.form-group label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--blue);
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.form-input {
    width: 100%;
    background: var(--black);
    border: 1px solid #333;
    color: var(--white);
    padding: 12px;
    border-radius: 8px;
    box-sizing: border-box;
}

.security-banner {
    margin-top: 2rem;
    padding: 1.5rem;
    background: rgba(0, 112, 243, 0.05);
    border-left: 4px solid var(--blue);
    font-size: 0.85rem;
    color: var(--silver);
}

/* --- LABS & SIMULATION UI --- */

.terminal-window {
    background: #050505;
    color: #00ff41; /* Security Green */
    font-family: 'Courier New', monospace;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid var(--border);
    height: 300px;
    overflow-y: auto;
    font-size: 0.85rem;
    margin-top: 1rem;
    box-shadow: inset 0 0 10px #000;
}

/* Velocity Benchmark Bars */
.velocity-track {
    width: 100%;
    background: #151515;
    border-radius: 4px;
    height: 12px;
    overflow: hidden;
    margin: 10px 0;
    border: 1px solid #222;
}

.velocity-bar {
    height: 100%;
    width: 0%;
    transition: width 1s ease-in-out;
}

.bar-manual { background: #444; }
.bar-ai { 
    background: var(--blue); 
    box-shadow: 0 0 10px var(--blue);
}

/* --- FOOTER & RESPONSIVE --- */

footer {
    text-align: center; 
    padding: 4rem; 
    border-top: 1px solid var(--border); 
    font-size: 0.8rem;
}

@media (max-width: 768px) {
    .gateway-grid, .sei-grid { 
        grid-template-columns: 1fr; 
    }
    .sei-title { font-size: 2.5rem; }
}