@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;700;900&display=swap');

:root {
    /* Base Colors */
    --bg-black: #050505;
    --card-bg: rgba(15, 15, 15, 0.7);
    --border-glow: rgba(255, 255, 255, 0.05);
    
    /* Category Glows (BoringBase v1.6.0 Extended) */
    --glow-finance: #10b981;   /* Institutional Green */
    --glow-sanctuary: #f472b6; /* Sanctuary Pink */
    --glow-biometric: #a855f7; /* Biological Purple */
    --glow-celestial: #3b82f6; /* Temporal Blue */
    --glow-system: #fbbf24;    /* System Amber */
    --glow-logistics: #94a3b8; /* Logistics Slate */
    
    /* Text */
    --text-main: #f8fafc;  /* Brighter Slate White */
    --text-dim: #94a3b8;   /* High-contrast Slate */
    
    /* Grid Architecture */
    --accent: var(--glow-system);
    --card-radius: 45px;
    --card-padding: 3.5rem; /* More breathing room */
    --card-min-width: 420px;
}

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

body {
    background: #0a0a0b;
    background-image: 
        radial-gradient(circle at 0% 0%, rgba(16, 185, 129, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 100% 100%, rgba(244, 114, 182, 0.05) 0%, transparent 50%);
    color: var(--text-main);
    font-family: 'Outfit', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    font-size: 18px; /* Global Font Increase */
}

.container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 6rem 2rem;
}

/* --- HERO SECTION --- */
.hero {
    text-align: center;
    margin-bottom: 8rem;
    position: relative;
}

.hero-title {
    font-size: 10rem; /* Massive Institutional Presence */
    font-weight: 900;
    letter-spacing: -8px;
    color: #fff;
    margin-bottom: 1rem;
    line-height: 0.8;
}

.hero-motto {
    font-size: 1.1rem; /* Boost from 0.8rem */
    font-weight: 700;
    letter-spacing: 5px;
    color: var(--text-dim);
    text-transform: uppercase;
}

/* --- GRID SYSTEM --- */
.terminal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(var(--card-min-width), 1fr));
    gap: 2.5rem;
    perspective: 1000px;
}

.terminal-card {
    background: var(--card-bg);
    border: 1px solid var(--border-glow);
    padding: 3rem;
    border-radius: 40px;
    text-decoration: none;
    color: #fff;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 380px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(20px);
}

.card-logo {
    width: 60px;
    height: 60px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border-glow);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 900;
    margin-bottom: 2rem;
    color: var(--text-dim);
    transition: all 0.4s ease;
}

.terminal-card:hover .card-logo {
    background: rgba(255,255,255,0.1);
    transform: scale(1.1) rotate(-5deg);
}

.terminal-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255,255,255,0.05) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.terminal-card:hover {
    transform: translateY(-10px) rotateX(2deg);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 40px 80px rgba(0,0,0,0.8);
}

.terminal-card:hover::before {
    opacity: 1;
}

.card-tag {
    font-size: 0.7rem;
    font-weight: 900;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-tag::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 10px currentColor;
}
/* --- SOVEREIGN HUD --- */
#sovereign-hud {
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 2000;
}

.hud-content {
    max-width: 1600px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hud-brand {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 15px;
}

.hud-logo {
    background: var(--glow-finance);
    color: #000;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 950;
    border-radius: 6px;
    box-shadow: 0 0 15px var(--glow-finance);
}

.hud-title {
    color: #fff;
    font-weight: 900;
    letter-spacing: 1px;
    font-size: 0.8rem;
}

.hud-actions {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.hud-nav-btn {
    text-decoration: none;
    color: var(--text-dim);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 2px;
    transition: color 0.3s;
}

.hud-nav-btn:hover { color: #fff; }

.hud-search-trigger {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.05);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.3s;
}

.hud-search-trigger:hover { border-color: rgba(255,255,255,0.2); background: rgba(255,255,255,0.08); }

.search-hint { font-size: 0.55rem; color: var(--text-dim); font-weight: 900; }

/* --- ADSENSE BAR --- */
.hud-ad-bar {
    max-width: 1600px;
    margin: 0.5rem auto 0;
    display: flex;
    justify-content: center;
}

.boring-ad-slot {
    width: 100%;
    max-width: 728px;
    height: 40px;
    background: repeating-linear-gradient(45deg, rgba(255,255,255,0.02), rgba(255,255,255,0.02) 10px, transparent 10px, transparent 20px);
    border: 1px dashed rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.5rem;
    letter-spacing: 4px;
    color: var(--text-dim);
    border-radius: 8px;
}

/* --- GLOBAL SEARCH MODAL --- */
#global-search-modal {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.9);
    backdrop-filter: blur(10px);
    z-index: 3000;
    display: none;
    align-items: center;
    justify-content: center;
}

#global-search-modal.active { display: flex; }

.search-container {
    width: 100%;
    max-width: 600px;
    background: #111;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 50px 100px rgba(0,0,0,0.8);
}

#global-search-input {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 2px solid var(--glow-finance);
    padding: 1rem 0;
    color: #fff;
    font-size: 2rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 900;
    outline: none;
}

.search-footer {
    margin-top: 2rem;
    font-size: 0.6rem;
    color: var(--text-dim);
    text-align: center;
    letter-spacing: 2px;
}

.card-title {
    font-size: 2.8rem; /* Significant boost from 2.2rem */
    font-weight: 900;
    margin-bottom: 1.5rem;
    letter-spacing: -2px;
    color: #fff;
    line-height: 1;
}

.card-desc {
    font-size: 1.1rem; /* Boost from 0.8rem */
    color: var(--text-dim);
    line-height: 1.6;
    margin-bottom: 2rem;
    font-weight: 500;
}

/* --- CATEGORY VARIATIONS --- */
.cat-finance { color: var(--glow-finance); }
.cat-sanctuary { color: var(--glow-sanctuary); }
.cat-biometric { color: var(--glow-biometric); }
.cat-celestial { color: var(--glow-celestial); }
.cat-system { color: var(--glow-system); }
.cat-logistics { color: var(--glow-logistics); }

.card-finance:hover { box-shadow: 0 40px 80px rgba(16, 185, 129, 0.15); border-color: var(--glow-finance); }
.card-sanctuary:hover { box-shadow: 0 40px 80px rgba(244, 114, 182, 0.15); border-color: var(--glow-sanctuary); }
.card-biometric:hover { box-shadow: 0 40px 80px rgba(168, 85, 247, 0.15); border-color: var(--glow-biometric); }
.card-celestial:hover { box-shadow: 0 40px 80px rgba(59, 130, 246, 0.15); border-color: var(--glow-celestial); }
.card-system:hover { box-shadow: 0 40px 80px rgba(251, 191, 36, 0.15); border-color: var(--glow-system); }
.card-logistics:hover { box-shadow: 0 40px 80px rgba(148, 163, 184, 0.15); border-color: var(--glow-logistics); }

/* --- NAVIGATION / FOOTER --- */
.footer {
    margin-top: 10rem;
    padding-top: 4rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    text-align: center;
}

.footer-brand {
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: -1px;
    margin-bottom: 0.5rem;
}

.footer-status {
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--text-dim);
}

/* --- ANIMATIONS --- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade {
    animation: fadeInUp 1s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}
