:root {
    --chip-bg: #121212;
    --chip-surface: #1e1e1e;
    --chip-trace: #333333;
    --chip-gold: #d4af37;
    --chip-text: #e0e0e0;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    background-color: var(--chip-bg); color: var(--chip-text);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    position: relative; overflow-x: hidden;
}

/* PCB Background Pattern */
body::before {
    content: ''; position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background-image: 
        linear-gradient(90deg, var(--chip-trace) 1px, transparent 1px),
        linear-gradient(var(--chip-trace) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: -2; opacity: 0.3;
}
.pcb-circuit {
    position: fixed; width: 100vw; height: 100vh; z-index: -1; pointer-events: none; opacity: 0.15;
}

.core-container {
    max-width: 1300px; margin: 0 auto; padding: 40px 20px;
}

/* Header as a CPU Socket */
.cpu-header {
    display: flex; justify-content: space-between; align-items: center;
    background: var(--chip-surface); padding: 20px 40px;
    border: 2px solid var(--chip-trace); border-radius: 4px;
    position: relative; margin-bottom: 60px;
}
/* Gold Pins */
.cpu-header::before, .cpu-header::after {
    content: ''; position: absolute; left: 10px; right: 10px; height: 6px;
    background: repeating-linear-gradient(90deg, var(--chip-gold), var(--chip-gold) 4px, transparent 4px, transparent 8px);
}
.cpu-header::before { top: -6px; }
.cpu-header::after { bottom: -6px; }

.cpu-brand { font-size: 24px; font-weight: 900; letter-spacing: 2px; color: var(--chip-gold); }
.cpu-nav { display: flex; gap: 30px; }
.cpu-nav a { text-decoration: none; color: var(--chip-text); font-weight: bold; text-transform: uppercase; font-size: 14px; position: relative;}
.cpu-nav a::after { content: ''; position: absolute; bottom: -5px; left: 0; width: 0; height: 2px; background: var(--chip-gold); transition: width 0.3s; }
.cpu-nav a:hover::after, .cpu-nav a.active::after { width: 100%; }
.cpu-btn { border: 1px solid var(--chip-gold); color: var(--chip-gold); padding: 8px 20px; text-decoration: none; font-weight: bold; font-size: 14px; transition: all 0.3s; background: transparent; cursor: pointer;}
.cpu-btn:hover { background: var(--chip-gold); color: var(--chip-bg); }

/* Main Processor Area */
.processor-hero {
    display: flex; background: var(--chip-surface); border: 2px solid var(--chip-trace);
    position: relative; margin-bottom: 60px;
}
.hero-text { padding: 60px; flex: 1; border-right: 2px solid var(--chip-trace); }
.hero-text h1 { font-size: 50px; line-height: 1.1; margin-bottom: 20px; color: #fff;}
.hero-text p { font-size: 18px; line-height: 1.6; margin-bottom: 40px; color: #aaa;}
.hero-data { flex: 0 0 350px; display: flex; flex-direction: column; }
.h-stat { flex: 1; padding: 30px; border-bottom: 2px solid var(--chip-trace); display: flex; flex-direction: column; justify-content: center;}
.h-stat:last-child { border-bottom: none; }
.hs-val { font-size: 36px; font-weight: bold; color: var(--chip-gold); }
.hs-lbl { font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: #888; }

/* Memory Banks (Features) */
.mem-bank { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; background: var(--chip-trace); border: 2px solid var(--chip-trace); margin-bottom: 60px; }
.mem-slot { background: var(--chip-surface); padding: 40px; position: relative; }
.mem-slot::before { content: ''; position: absolute; top: 10px; bottom: 10px; left: 5px; width: 4px; background: repeating-linear-gradient(0deg, var(--chip-gold), var(--chip-gold) 2px, transparent 2px, transparent 4px);}
.mem-slot h3 { font-size: 20px; margin-bottom: 15px; padding-left: 15px; color: #fff;}
.mem-slot p { font-size: 15px; color: #aaa; padding-left: 15px; line-height: 1.5;}

/* Multi-device Grid (Download Area) */
.device-matrix { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 60px;}
.device-node {
    background: var(--chip-surface); border: 1px solid var(--chip-trace); padding: 30px;
    text-align: center; position: relative; transition: all 0.3s;
}
.device-node:hover { border-color: var(--chip-gold); box-shadow: 0 0 20px rgba(212,175,55,0.1); transform: translateY(-5px);}
.dn-icon { font-size: 40px; margin-bottom: 15px; }
.dn-title { font-size: 18px; margin-bottom: 10px; font-weight: bold; color: #fff;}
.dn-btn { display: inline-block; margin-top: 15px; padding: 8px 20px; background: #333; color: #fff; text-decoration: none; font-size: 13px; border-radius: 2px;}
.device-node:hover .dn-btn { background: var(--chip-gold); color: #000; }

/* IO Ports (FAQ) */
.io-ports { background: var(--chip-surface); border: 2px solid var(--chip-trace); padding: 40px; }
.io-title { font-size: 24px; margin-bottom: 30px; color: #fff; text-transform: uppercase; border-bottom: 1px solid var(--chip-trace); padding-bottom: 10px;}
.port-item { margin-bottom: 20px; }
.port-q { font-size: 16px; font-weight: bold; color: var(--chip-gold); cursor: pointer; display: flex; align-items: center;}
.port-q::before { content: '>'; margin-right: 10px; color: #666; font-family: monospace;}
.port-a { font-size: 15px; color: #aaa; margin-top: 10px; padding-left: 20px; display: none; line-height: 1.6;}

@media (max-width: 900px) {
    .cpu-header { flex-direction: column; gap: 20px; }
    .processor-hero { flex-direction: column; }
    .hero-text { border-right: none; border-bottom: 2px solid var(--chip-trace); padding: 30px;}
    .hero-data { flex-direction: row; flex: auto;}
    .h-stat { border-bottom: none; border-right: 2px solid var(--chip-trace); padding: 15px;}
    .mem-bank { grid-template-columns: 1fr; gap: 20px; background: transparent; border: none;}
    .mem-slot { border: 2px solid var(--chip-trace); }
    .device-matrix { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 500px) {
    .hero-data { flex-direction: column; }
    .h-stat { border-right: none; border-bottom: 2px solid var(--chip-trace); }
    .device-matrix { grid-template-columns: 1fr; }
}