:root {
    /* Neutral / Sci-Fi Lab Palette */
    --black: #050505;
    --dark-grey: #111111;
    --graphite: #2a2a2a;
    --cool-grey: #8c92ac;
    --platinum: #e5e5e5;
    --white: #ffffff;
    
    --font-head: 'Exo 2', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

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

body { background-color: var(--black); color: var(--platinum); font-family: var(--font-head); overflow-x: hidden; }

/* HUD Overlay */
.hud-overlay { position: fixed; inset: 0; pointer-events: none; z-index: 999; border: 1px solid rgba(140, 146, 172, 0.1); }
.hud-top-left { position: absolute; top: 20px; left: 20px; font-family: var(--font-mono); font-size: 10px; color: var(--cool-grey); }
.hud-top-right { position: absolute; top: 20px; right: 20px; font-family: var(--font-mono); font-size: 10px; color: var(--cool-grey); }
.hud-bottom-left { position: absolute; bottom: 20px; left: 20px; font-family: var(--font-mono); font-size: 10px; color: var(--cool-grey); }
.hud-bottom-right { position: absolute; bottom: 20px; right: 20px; font-family: var(--font-mono); font-size: 10px; color: var(--cool-grey); }
/* HUD scanning line animation */
.hud-overlay::after { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 2px; background: rgba(255,255,255,0.05); animation: scanline 8s linear infinite; }
@keyframes scanline { 0% { top: -5%; } 100% { top: 105%; } }

/* Tactical Cursor */
.tactical-cursor {
    position: fixed; width: 30px; height: 30px; pointer-events: none; z-index: 10000; transform: translate(-50%, -50%); transition: transform 0.1s;
}
.tactical-cursor::before { content: ''; position: absolute; top: 50%; left: 0; right: 0; height: 1px; background: var(--platinum); opacity: 0.5; }
.tactical-cursor::after { content: ''; position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; background: var(--platinum); opacity: 0.5; }
.tactical-cursor.hover { transform: translate(-50%, -50%) scale(1.5) rotate(45deg); }
.tactical-cursor.hover::before, .tactical-cursor.hover::after { opacity: 1; background: var(--white); }

/* Nav */
.star-nav {
    position: fixed; top: 40px; left: 50%; transform: translateX(-50%); width: 90%; max-width: 1400px; display: flex; justify-content: space-between; align-items: center; z-index: 100;
    border-top: 1px solid var(--graphite); border-bottom: 1px solid var(--graphite); padding: 15px 0; background: rgba(5,5,5,0.8); backdrop-filter: blur(10px);
}
.logo { font-size: 1.5rem; font-weight: 800; letter-spacing: 5px; color: var(--white); }
.nav-links a { color: var(--cool-grey); text-decoration: none; font-size: 0.8rem; text-transform: uppercase; font-weight: 600; letter-spacing: 2px; margin: 0 20px; transition: color 0.3s; }
.nav-links a:hover { color: var(--white); }
.launch-btn { background: var(--white); color: var(--black); border: none; padding: 10px 20px; font-family: var(--font-head); font-size: 0.8rem; font-weight: 800; letter-spacing: 2px; transition: all 0.3s; }
.launch-btn:hover { background: var(--cool-grey); color: var(--white); }

/* Hero */
.warp-hero { height: 100vh; position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; }
#warp-canvas { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; opacity: 0.6; }
.hero-content { position: relative; z-index: 2; text-align: center; max-width: 800px; }
.hero-content h1 { font-size: 6rem; font-weight: 800; color: var(--white); line-height: 1; margin-bottom: 30px; letter-spacing: 10px; }
.hero-content p { font-size: 1.2rem; color: var(--cool-grey); line-height: 1.6; margin-bottom: 40px; font-weight: 300; }
.mission-status { display: inline-flex; align-items: center; gap: 15px; border: 1px solid var(--graphite); padding: 10px 20px; font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 1px; color: var(--white); }
.status-indicator { width: 8px; height: 8px; background: var(--white); border-radius: 50%; }
.beep { animation: blink 1s infinite; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

/* Telemetry Stats */
.telemetry-section { padding: 80px 5%; background: var(--dark-grey); border-top: 1px solid var(--graphite); border-bottom: 1px solid var(--graphite); }
.tel-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; max-width: 1200px; margin: 0 auto; }
.tel-card { padding-left: 20px; border-left: 2px solid var(--graphite); }
.t-label { font-family: var(--font-mono); font-size: 0.8rem; color: var(--cool-grey); margin-bottom: 15px; }
.t-val { font-size: 3.5rem; font-weight: 300; color: var(--white); line-height: 1; margin-bottom: 15px; }
.t-val .unit { font-size: 1rem; color: var(--cool-grey); margin-left: 10px; font-weight: 600; }
.t-graph { height: 2px; width: 100%; background: var(--black); position: relative; }
.t-graph .line { position: absolute; left: 0; top: 0; height: 100%; background: var(--white); }
.w-70 { width: 70%; } .w-90 { width: 90%; } .w-100 { width: 100%; }

/* Fleet Section */
.fleet-section { padding: 150px 5%; }
.section-heading { text-align: center; margin-bottom: 80px; }
.section-heading h2 { font-size: 3rem; font-weight: 800; letter-spacing: 5px; color: var(--white); margin-bottom: 15px; }
.section-heading p { color: var(--cool-grey); }

.fleet-showcase { display: flex; align-items: stretch; max-width: 1400px; margin: 0 auto; height: 500px; border: 1px solid var(--graphite); }
.ship-controls { width: 250px; display: flex; flex-direction: column; border-right: 1px solid var(--graphite); }
.ship-btn { flex: 1; background: transparent; border: none; border-bottom: 1px solid var(--graphite); color: var(--cool-grey); font-family: var(--font-mono); font-size: 1rem; text-align: left; padding: 0 30px; letter-spacing: 2px; transition: all 0.3s; }
.ship-btn:last-child { border-bottom: none; }
.ship-btn:hover { background: rgba(255,255,255,0.05); color: var(--white); }
.ship-btn.active { background: var(--white); color: var(--black); font-weight: 600; border-left: 5px solid var(--black); }

.ship-display { flex: 1; position: relative; display: flex; align-items: center; justify-content: flex-end; overflow: hidden; background: radial-gradient(circle at center, var(--dark-grey) 0%, var(--black) 100%); }
#ship-canvas { position: absolute; inset: 0; z-index: 1; }
.ship-info { position: relative; z-index: 2; max-width: 400px; padding: 40px; background: rgba(5,5,5,0.8); border: 1px solid var(--graphite); margin-right: 40px; backdrop-filter: blur(10px); }
.ship-info h3 { font-size: 2rem; color: var(--white); margin-bottom: 15px; }
.ship-info p { font-size: 0.9rem; line-height: 1.6; color: var(--cool-grey); margin-bottom: 30px; }
.specs { display: flex; gap: 30px; }
.spec { font-family: var(--font-mono); font-size: 1.2rem; color: var(--white); }
.spec span { font-size: 0.7rem; color: var(--cool-grey); }

/* Missions */
.missions-section { padding: 100px 5%; background: var(--dark-grey); }
.mission-cards { display: flex; flex-direction: column; gap: 40px; max-width: 1000px; margin: 0 auto; }
.m-card { display: flex; border: 1px solid var(--graphite); background: var(--black); transition: transform 0.3s; }
.m-card:hover { transform: translateX(10px); border-color: var(--cool-grey); }
.m-img { flex: 1; overflow: hidden; }
.m-img img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(100%); transition: filter 0.5s; }
.m-card:hover .m-img img { filter: grayscale(0%); }
.m-data { flex: 1.5; padding: 40px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.m-tag { font-family: var(--font-mono); font-size: 0.7rem; color: var(--black); background: var(--platinum); padding: 5px 10px; margin-bottom: 20px; }
.m-data h3 { font-size: 2.5rem; color: var(--white); margin-bottom: 15px; }
.m-data p { color: var(--cool-grey); line-height: 1.6; margin-bottom: 30px; }
.btn-text { color: var(--white); font-family: var(--font-mono); font-size: 0.9rem; text-decoration: none; }
.btn-text:hover { text-decoration: underline; }

/* Footer */
.star-footer { padding: 80px 5% 40px; border-top: 1px solid var(--graphite); }
.f-top { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--graphite); padding-bottom: 40px; margin-bottom: 40px; }
.f-logo { font-size: 1.2rem; font-weight: 800; letter-spacing: 2px; }
.f-links a { color: var(--cool-grey); text-decoration: none; font-size: 0.9rem; font-family: var(--font-mono); margin-left: 30px; }
.f-links a:hover { color: var(--white); }
.f-bot { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 0.8rem; color: var(--graphite); }

@media (max-width: 900px) {
    .fleet-showcase { flex-direction: column; height: auto; }
    .ship-controls { width: 100%; flex-direction: row; border-right: none; border-bottom: 1px solid var(--graphite); }
    .ship-btn { padding: 15px; font-size: 0.8rem; text-align: center; border-bottom: none; border-left: none !important;}
    .ship-btn.active { border-bottom: 3px solid var(--white) !important; }
    .ship-display { height: 400px; justify-content: center; }
    .ship-info { margin-right: 0; margin-top: auto; }
    .m-card { flex-direction: column; }
    .hero-content h1 { font-size: 4rem; }
}
