/* Palette: Blueprint Blue, Tech White, Grid Grey */
:root {
    --blue: #0055FF;
    --blue-dark: #003399;
    --blue-light: #E6F0FF;
    --white: #FFFFFF;
    --black: #111111;
    --grey: #F5F5F5;
    --line: #E0E0E0;
    
    --font-mono: 'IBM Plex Mono', monospace;
    --font-sans: 'Inter', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background-color: var(--white);
    color: var(--black);
    font-family: var(--font-sans);
    line-height: 1.5;
}

/* Grid Background */
.grid-background {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-image: 
        linear-gradient(var(--line) 1px, transparent 1px),
        linear-gradient(90deg, var(--line) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: -1;
}

.container { width: 90%; max-width: 1200px; margin: 0 auto; }
.section-padding { padding: 100px 0; }
a { text-decoration: none; color: inherit; transition: 0.3s; }
img { max-width: 100%; height: auto; display: block; border-radius: 2px; }

/* Header */
.header { padding: 20px 0; background: rgba(255,255,255,0.95); border-bottom: 2px solid var(--blue); position: sticky; top: 0; z-index: 1000; backdrop-filter: blur(5px); }
.header-flex { display: flex; justify-content: space-between; align-items: center; }

.logo { font-family: var(--font-mono); font-weight: 600; font-size: 1.4rem; letter-spacing: -1px; }
.bracket { color: var(--blue); }

.system-status { font-family: var(--font-mono); font-size: 0.75rem; border: 1px solid var(--line); padding: 4px 10px; background: var(--grey); display: flex; align-items: center; gap: 8px; }
.dot { width: 8px; height: 8px; background: #00FF00; border-radius: 50%; }

.nav a { margin-left: 25px; font-family: var(--font-mono); font-size: 0.9rem; color: #666; }
.nav a:hover, .nav a.active { color: var(--blue); font-weight: 600; }

.mobile-toggle { display: none; background: var(--blue); color: var(--white); border: none; padding: 5px 15px; font-family: var(--font-mono); cursor: pointer; }

/* Mobile Menu */
.mobile-menu { position: fixed; top: 0; right: -100%; width: 300px; height: 100%; background: var(--white); z-index: 2000; padding: 50px; transition: 0.3s; border-left: 2px solid var(--blue); }
.mobile-menu.active { right: 0; }
.close-btn { background: none; border: none; font-family: var(--font-mono); font-size: 1.2rem; cursor: pointer; margin-bottom: 30px; }
.mobile-menu a { display: block; font-family: var(--font-mono); font-size: 1.2rem; margin-bottom: 20px; color: var(--black); }

@media (max-width: 900px) {
    .nav, .system-status { display: none; }
    .mobile-toggle { display: block; }
}

/* Hero */
.hero { padding: 100px 0; border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 60px; align-items: center; }

.code-tag { font-family: var(--font-mono); color: var(--blue); background: var(--blue-light); padding: 2px 8px; font-size: 0.8rem; display: inline-block; margin-bottom: 20px; }
.hero h1 { font-size: 4rem; font-weight: 700; line-height: 1; margin-bottom: 25px; letter-spacing: -2px; }
.blue-highlight { color: var(--blue); }
.hero p { font-size: 1.2rem; margin-bottom: 40px; color: #555; max-width: 500px; }

.hero-btns { display: flex; gap: 20px; }
.btn-tech { background: var(--blue); color: var(--white); padding: 15px 35px; font-family: var(--font-mono); font-size: 0.9rem; border: none; cursor: pointer; transition: 0.3s; }
.btn-tech:hover { background: var(--blue-dark); transform: translateY(-2px); box-shadow: 5px 5px 0 rgba(0,85,255,0.2); }
.btn-ghost { border: 1px solid var(--black); background: transparent; padding: 13px 33px; font-family: var(--font-mono); font-size: 0.9rem; transition: 0.3s; }
.btn-ghost:hover { background: var(--black); color: var(--white); }

.blueprint-frame { border: 1px dashed var(--blue); padding: 10px; position: relative; }
.specs-overlay { position: absolute; bottom: 20px; right: -20px; background: var(--blue); color: var(--white); padding: 15px; font-family: var(--font-mono); font-size: 0.8rem; box-shadow: 10px 10px 0 rgba(0,0,0,0.1); }
.specs-overlay span { display: block; margin-bottom: 5px; }

/* Stats Bar */
.stats-bar { background: var(--blue-light); padding: 40px 0; border-bottom: 1px solid var(--line); }
.stats-flex { display: flex; justify-content: space-around; text-align: center; }
.stat strong { display: block; font-size: 3rem; font-family: var(--font-mono); color: var(--blue); line-height: 1; }
.stat span { font-size: 0.9rem; font-weight: 600; text-transform: uppercase; }

/* Advantages */
.section-head h2 { font-family: var(--font-mono); font-size: 2rem; margin-bottom: 15px; }
.tech-line { width: 100px; height: 4px; background: var(--blue); margin-bottom: 40px; }
.left { margin-right: auto; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.adv-card { background: var(--white); border: 1px solid var(--line); padding: 40px; transition: 0.3s; }
.adv-card:hover { border-color: var(--blue); box-shadow: 0 10px 30px rgba(0,85,255,0.05); }
.adv-card h3 { font-family: var(--font-mono); margin-bottom: 15px; color: var(--blue); }

/* Tech Page */
.tech-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.tech-list { margin-top: 40px; }
.tech-item { margin-bottom: 30px; border-left: 2px solid var(--line); padding-left: 20px; }
.tech-item h4 { font-family: var(--font-mono); margin-bottom: 5px; color: var(--blue); }
.exploded-view { position: relative; border: 1px solid var(--line); padding: 20px; background: var(--white); }
.label { position: absolute; background: var(--blue); color: var(--white); font-family: var(--font-mono); font-size: 0.7rem; padding: 2px 5px; }
.l1 { top: 10%; left: 10%; } .l2 { top: 50%; right: 10%; } .l3 { bottom: 10%; left: 30%; }

/* Models Page */
.model-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.model-card { border: 1px solid var(--line); background: var(--white); transition: 0.3s; }
.model-card:hover { border-color: var(--blue); transform: translateY(-5px); }
.model-card.featured { border: 2px solid var(--blue); transform: scale(1.02); }
.m-header { background: var(--grey); padding: 20px; border-bottom: 1px solid var(--line); text-align: center; }
.m-header h3 { font-family: var(--font-mono); margin: 0; }
.size { display: block; color: var(--blue); font-weight: 700; }
.m-body { padding: 30px; text-align: center; }
.specs { list-style: none; margin: 20px 0; font-family: var(--font-mono); font-size: 0.85rem; text-align: left; padding-left: 20px; }
.btn-outline { border: 1px solid var(--black); padding: 10px 20px; font-family: var(--font-mono); font-size: 0.8rem; transition: 0.3s; display: inline-block; }
.btn-outline:hover { background: var(--black); color: var(--white); }

/* Timeline */
.timeline-container { max-width: 800px; margin: 0 auto; }
.timeline { border-left: 2px solid var(--blue); margin-left: 20px; padding-left: 40px; margin-top: 40px; }
.t-item { position: relative; margin-bottom: 50px; }
.t-date { position: absolute; left: -140px; top: 0; font-family: var(--font-mono); color: var(--blue); font-weight: 600; text-align: right; width: 80px; }
.t-item::before { content: ''; position: absolute; left: -45px; top: 5px; width: 12px; height: 12px; background: var(--white); border: 2px solid var(--blue); border-radius: 50%; }
.t-content h3 { font-family: var(--font-mono); margin-bottom: 5px; }

/* Config Terminal */
.config-terminal { max-width: 600px; margin: 0 auto; background: #2b2b2b; border-radius: 6px; box-shadow: 0 20px 50px rgba(0,0,0,0.2); overflow: hidden; }
.term-head { background: #1a1a1a; padding: 10px; display: flex; gap: 8px; align-items: center; }
.circle { width: 10px; height: 10px; border-radius: 50%; }
.red { background: #ff5f56; } .yellow { background: #ffbd2e; } .green { background: #27c93f; }
.title { color: #888; font-family: var(--font-mono); font-size: 0.8rem; margin-left: 10px; }

.tech-form { padding: 40px; color: #fff; font-family: var(--font-mono); }
.tech-form h2 { color: var(--white); margin-bottom: 20px; font-weight: 400; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.f-grp { margin-bottom: 20px; }
.f-grp label { display: block; font-size: 0.7rem; color: #aaa; margin-bottom: 5px; }
.f-grp input, .f-grp select, .f-grp textarea { width: 100%; background: #333; border: 1px solid #444; color: #fff; padding: 10px; font-family: var(--font-mono); font-size: 0.9rem; }
.f-grp input:focus, .f-grp select:focus { border-color: var(--blue); outline: none; }
.full { width: 100%; margin-top: 10px; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 60px 0 20px; margin-top: 100px; background: var(--grey); }
.footer-content { display: flex; justify-content: space-between; margin-bottom: 40px; }
.f-brand h4 { font-family: var(--font-mono); font-weight: 600; margin-bottom: 5px; }
.f-links a { margin-left: 20px; font-family: var(--font-mono); font-size: 0.8rem; color: #666; }
.copyright { text-align: center; font-family: var(--font-mono); font-size: 0.7rem; color: #999; border-top: 1px solid #ddd; padding-top: 20px; }

@media (max-width: 900px) {
    .hero h1 { font-size: 2.5rem; }
    .hero-grid, .grid-3, .tech-wrapper, .model-grid, .form-row { grid-template-columns: 1fr; }
    .t-date { position: relative; left: 0; display: block; margin-bottom: 5px; text-align: left; }
    .timeline { margin-left: 0; padding-left: 20px; border-left: 2px solid #ddd; }
    .t-item::before { left: -26px; }
}