/* Palette: Blueprint Blue, White Lines, Dark Grid */
:root {
    --blue: #003366;
    --blue-dark: #002244;
    --white: #FFFFFF;
    --line: rgba(255, 255, 255, 0.3);
    --highlight: #4da6ff;
    
    --font-mono: 'Share Tech Mono', monospace;
    --font-sans: 'Roboto', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background-color: var(--blue);
    color: var(--white);
    font-family: var(--font-sans);
    line-height: 1.6;
    position: relative;
}

/* Grid Background */
.grid-bg {
    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;
    opacity: 0.2;
    pointer-events: none;
}

.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; filter: grayscale(100%) sepia(100%) hue-rotate(180deg) saturate(300%); border: 1px solid var(--white); }

/* Header */
.plan-header { padding: 20px 0; background: rgba(0, 51, 102, 0.95); position: sticky; top: 0; z-index: 1000; border-bottom: 2px solid var(--white); }
.header-flex { display: flex; justify-content: space-between; align-items: center; }

.logo { font-family: var(--font-mono); font-size: 1.8rem; letter-spacing: 2px; }
.ruler-icon { margin: 0 10px; font-size: 1.5rem; }

.tech-specs { font-family: var(--font-mono); font-size: 0.7rem; border: 1px solid var(--line); padding: 5px; color: var(--highlight); display: none; }
@media (min-width: 768px) { .tech-specs { display: flex; gap: 10px; } }

.draw-nav a { margin-left: 20px; font-family: var(--font-mono); font-size: 1rem; color: #ccc; }
.draw-nav a:hover, .draw-nav a.active { color: var(--highlight); text-decoration: underline; }

.mobile-toggle { display: none; background: transparent; border: 1px solid var(--white); color: var(--white); padding: 5px 10px; font-family: var(--font-mono); cursor: pointer; }

/* Mobile Menu */
.mobile-menu { position: fixed; top: 0; right: -100%; width: 300px; height: 100%; background: var(--blue-dark); z-index: 2000; padding: 50px; transition: 0.3s; border-left: 2px solid var(--white); }
.mobile-menu.active { right: 0; }
.close-btn { background: none; border: none; font-family: var(--font-mono); color: var(--white); font-size: 1.5rem; margin-bottom: 30px; cursor: pointer; }
.mobile-menu a { display: block; font-family: var(--font-mono); font-size: 1.5rem; margin-bottom: 20px; }

@media (max-width: 900px) {
    .draw-nav, .tech-specs { display: none; }
    .mobile-toggle { display: block; }
}

/* Hero */
.hero-plan { height: 80vh; display: flex; align-items: center; justify-content: center; text-align: center; }
.hero-content { position: relative; max-width: 800px; }

.plan-frame { border: 2px solid var(--white); padding: 60px; position: relative; }
.plan-frame::before, .plan-frame::after { content: ''; position: absolute; width: 20px; height: 20px; border: 2px solid var(--white); }
.plan-frame::before { top: -2px; left: -2px; border-bottom: none; border-right: none; }
.plan-frame::after { bottom: -2px; right: -2px; border-top: none; border-left: none; }

.label-top { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--blue); padding: 0 10px; font-family: var(--font-mono); font-size: 0.8rem; color: var(--highlight); }

.hero-content h1 { font-family: var(--font-mono); font-size: 4rem; line-height: 1.1; margin-bottom: 20px; font-weight: 400; }
.hero-content p { font-size: 1.2rem; margin-bottom: 40px; font-family: var(--font-mono); color: #ccc; }

.btn-group { display: flex; justify-content: center; gap: 20px; }
.btn-blueprint { background: var(--white); color: var(--blue); padding: 12px 30px; font-family: var(--font-mono); font-weight: 700; border: none; cursor: pointer; transition: 0.3s; }
.btn-blueprint:hover { background: var(--highlight); }
.btn-outline { border: 1px solid var(--white); color: var(--white); padding: 12px 30px; font-family: var(--font-mono); transition: 0.3s; }
.btn-outline:hover { border-color: var(--highlight); color: var(--highlight); }

.measurement-line { height: 1px; background: var(--white); width: 100%; margin-top: 40px; position: relative; }
.measurement-line::before, .measurement-line::after { content: ''; position: absolute; width: 1px; height: 10px; background: var(--white); top: -5px; }
.measurement-line::before { left: 0; } .measurement-line::after { right: 0; }

/* Specs Bar */
.specs-bar { border-bottom: 1px solid var(--line); padding: 30px 0; background: rgba(0,0,0,0.2); }
.specs-grid { display: flex; justify-content: space-around; text-align: center; }
.spec-item { display: flex; flex-direction: column; font-family: var(--font-mono); }
.spec-item .label { font-size: 0.8rem; color: var(--highlight); margin-bottom: 5px; }
.spec-item .val { font-size: 2rem; font-weight: 700; }

/* Pillars */
.section-head h2 { font-family: var(--font-mono); font-size: 2.5rem; margin-bottom: 10px; }
.dashed-line { width: 100px; height: 2px; background: repeating-linear-gradient(90deg, var(--white) 0, var(--white) 5px, transparent 5px, transparent 10px); margin-bottom: 40px; }
.dashed-line.left { margin-right: auto; }
.center { text-align: center; }
.center .dashed-line { margin: 0 auto 40px; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.blueprint-card { border: 1px solid var(--white); padding: 40px; position: relative; transition: 0.3s; background: rgba(0,0,0,0.1); }
.blueprint-card:hover { background: rgba(255,255,255,0.05); box-shadow: 0 0 20px rgba(77, 166, 255, 0.2); }
.corner-mark { position: absolute; top: 0; right: 0; background: var(--white); color: var(--blue); padding: 2px 8px; font-family: var(--font-mono); font-weight: 700; }
.blueprint-card h3 { font-family: var(--font-mono); font-size: 1.5rem; margin-bottom: 15px; }

/* Course List */
.course-blueprint { display: flex; flex-direction: column; gap: 20px; max-width: 900px; margin: 0 auto; }
.course-row { display: grid; grid-template-columns: 100px 1fr 100px; border: 1px solid var(--line); padding: 20px; align-items: center; background: rgba(0,0,0,0.2); }
.c-code { font-family: var(--font-mono); color: var(--highlight); font-weight: 700; border-right: 1px solid var(--line); padding-right: 20px; }
.c-detail { padding: 0 20px; }
.c-detail h3 { font-family: var(--font-mono); font-size: 1.2rem; margin-bottom: 5px; }
.specs { list-style: none; padding: 0; font-family: var(--font-mono); font-size: 0.8rem; color: #ccc; display: flex; gap: 20px; }
.btn-sm { font-family: var(--font-mono); color: var(--white); border: 1px solid var(--white); padding: 5px 10px; font-size: 0.8rem; }
.btn-sm:hover { background: var(--white); color: var(--blue); }

/* Method */
.method-layout { display: grid; grid-template-columns: 1.5fr 1fr; gap: 60px; align-items: center; }
.method-text h1 { font-family: var(--font-mono); font-size: 3rem; margin-bottom: 20px; line-height: 1.1; }
.blueprint-box { border: 1px dashed var(--white); padding: 20px; margin-top: 30px; font-family: var(--font-mono); }
.blueprint-box ul { list-style: none; padding: 0; margin-top: 10px; }
.blueprint-box li { margin-bottom: 5px; color: var(--highlight); }
.img-border { position: absolute; inset: 10px; border: 1px solid var(--white); pointer-events: none; }
.method-img { position: relative; }

/* Contact Form */
.form-wrapper { max-width: 700px; margin: 0 auto; border: 2px solid var(--white); padding: 50px; background: rgba(0,0,0,0.3); }
.form-header { text-align: center; margin-bottom: 40px; font-family: var(--font-mono); border-bottom: 1px solid var(--line); padding-bottom: 20px; }
.contact-info { margin-top: 10px; font-size: 0.8rem; color: var(--highlight); display: flex; justify-content: center; gap: 20px; }

.tech-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { margin-bottom: 20px; }
.field label { display: block; font-family: var(--font-mono); font-size: 0.8rem; margin-bottom: 5px; color: #ccc; }
.field input, .field select, .field textarea { width: 100%; background: transparent; border: 1px solid var(--line); color: var(--white); padding: 10px; font-family: var(--font-mono); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--highlight); outline: none; background: rgba(255,255,255,0.05); }
.full { width: 100%; margin-top: 10px; }

/* Legal */
.legal-doc { max-width: 800px; margin: 0 auto; font-family: var(--font-mono); }
.legal-doc h1 { border-bottom: 2px solid var(--white); padding-bottom: 10px; display: inline-block; }

/* Footer */
.plan-footer { border-top: 1px solid var(--white); padding: 60px 0 20px; margin-top: 100px; background: var(--blue-dark); font-family: var(--font-mono); }
.footer-content { display: flex; justify-content: space-between; align-items: center; margin-bottom: 40px; }
.f-info h4 { margin-bottom: 5px; color: var(--highlight); }
.f-nav a { margin-left: 20px; color: #ccc; }
.f-nav a:hover { color: var(--white); text-decoration: underline; }
.copyright { text-align: center; font-size: 0.7rem; opacity: 0.6; }

@media (max-width: 900px) {
    .hero-content h1 { font-size: 3rem; }
    .grid-3, .course-row, .method-layout, .tech-form .form-row { grid-template-columns: 1fr; }
    .specs-grid { flex-direction: column; gap: 20px; }
    .course-row { gap: 10px; }
    .c-code { border-right: none; border-bottom: 1px solid var(--line); padding-bottom: 10px; }
    .footer-content { flex-direction: column; gap: 20px; text-align: center; }
}