/* =========================================
   1. SYSTEM VARIABLES & FONTS
   ========================================= */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;700;900&family=Space+Mono&display=swap');

:root {
    --bg-pearl: #FBFCF8; 
    --main: #000000;
    --accent: #800020; /* Deep Burgundy */
    --border: #e1e1e1;
    --grid-color: rgba(128, 0, 32, 0.04);
}

/* =========================================
   2. GLOBAL STYLES & CHECKERBOARD
   ========================================= */
body, html { 
    margin: 0; padding: 0; 
    font-family: 'Inter', sans-serif; 
    background-color: var(--bg-pearl);
    /* Subtle Checkerboard */
    background-image: 
        linear-gradient(var(--grid-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
    background-size: 40px 40px;
    color: var(--main);
    line-height: 1.6; 
    scroll-behavior: smooth;
}

/* =========================================
   3. NAVIGATION
   ========================================= */
nav {
    position: sticky; top: 0; 
    background: rgba(255,255,255,0.8);
    backdrop-filter: blur(10px); 
    border-bottom: 1px solid var(--border);
    display: flex; justify-content: space-between; align-items: center;
    padding: 20px 10%; z-index: 1000;
}
.logo { font-weight: 900; letter-spacing: -1px; font-size: 1.2rem; }
nav a { text-decoration: none; color: var(--main); font-size: 0.8rem; font-weight: 700; margin-left: 30px; text-transform: uppercase; }
nav a:hover { color: var(--accent); }

/* =========================================
   4. TYPOGRAPHY & SECTIONS
   ========================================= */
header { padding: 80px 10% 40px 10%; }
section { padding: 30px 10%; }

.hero-title { font-size: clamp(2.5rem, 8vw, 5rem); font-weight: 900; line-height: 1; margin: 0; text-transform: uppercase; }
.hero-sub { color: var(--accent); font-family: 'Space Mono', monospace; font-size: 1rem; margin-top: 10px; display: block; }
.section-label { font-family: 'Space Mono', monospace; color: var(--accent); font-size: 24px; margin-bottom: 20px; display: block; font-weight: bold; }

/* =========================================
   5. WIDGET GRID SYSTEM
   ========================================= */
.grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
    gap: 20px; 
}

.card {
    border: 1px solid var(--border); 
    padding: 30px;
    background: white; 
    transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex; flex-direction: column;
}

.card:hover { 
    border-color: var(--main); 
    transform: translateY(-5px); 
    box-shadow: 10px 10px 0px var(--accent);
}

.card h3 { margin: 0 0 15px 0; font-size: 1.3rem; text-transform: uppercase; }
.card p { font-size: 0.95rem; color: #444; margin-bottom: 10px; }

/* Action Widgets (Same color as rest) */
.clickable { cursor: pointer; }

/* =========================================
   6. MOBILE COMPATIBILITY
   ========================================= */
@media (max-width: 768px) {
    header, section { padding: 40px 5%; }
    .grid { grid-template-columns: 1fr; }
    nav { flex-direction: column; padding: 15px; }
    nav a { margin: 5px 10px; }
    .hero-title { font-size: 2.8rem; }
}

/* =========================================
   7. FOOTER
   ========================================= */
footer {
    padding: 100px 10% 40px 10%;
    background: #0a0a0a; color: white;
    display: flex; flex-direction: column; align-items: center;
}
.footer-headline { font-weight: 900; font-size: clamp(2rem, 5vw, 4rem); text-align: center; line-height: 1; margin: 30px 0; text-transform: uppercase; }
.main-email { font-family: 'Space Mono', monospace; font-size: 1.2rem; color: white; text-decoration: underline; }
.social-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 30px; margin: 50px 0; }
.social-nav a { color: white; opacity: 0.6; text-decoration: none; font-size: 0.8rem; font-weight: 700; }
.social-nav a:hover { opacity: 1; color: var(--accent); }