/* Palette: Industrial Navy, Tech Blue, Steel Grey */
:root {
    --navy: #0A192F;
    --navy-light: #172A45;
    --blue: #007BFF;
    --blue-neon: #64FFDA;
    --grey: #8892B0;
    --white: #E6F1FF;
    --line: rgba(100, 255, 218, 0.1);
    
    --font-head: 'Barlow', sans-serif;
    --font-mono: 'Roboto Mono', monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background-color: var(--navy);
    color: var(--grey);
    font-family: var(--font-head);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Flow Background */
.flow-background {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at 50% 50%, #172a45 0%, #0a192f 100%);
    z-index: -1;
}
.flow-background::after {
    content: ''; position: absolute; inset: 0;
    background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.3;
}

.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; }

/* Header */
.header { padding: 20px 0; background: rgba(10, 25, 47, 0.95); border-bottom: 1px solid var(--navy-light); position: sticky; top: 0; z-index: 1000; backdrop-filter: blur(10px); }
.header-grid { display: flex; justify-content: space-between; align-items: center; }

.logo { font-size: 1.8rem; font-weight: 800; color: var(--white); letter-spacing: 1px; }
.blue-dot { color: var(--blue); }

.status-indicator { font-family: var(--font-mono); font-size: 0.7rem; color: var(--blue-neon); border: 1px solid var(--blue-neon); padding: 4px 8px; border-radius: 2px; display: none; }
@media(min-width: 768px) { .status-indicator { display: block; } }
.blink { animation: blink 2s infinite; }
@keyframes blink { 50% { opacity: 0; } }

.nav a { margin-left: 30px; font-weight: 600; color: var(--grey); font-size: 0.9rem; text-transform: uppercase; }
.nav a:hover, .nav a.active { color: var(--blue-neon); }

.mobile-toggle { display: none; background: transparent; border: 1px solid var(--blue); color: var(--blue); font-family: var(--font-mono); padding: 5px 10px; cursor: pointer; }

/* Mobile Menu */
.mobile-menu { position: fixed; top: 0; right: -100%; width: 100%; height: 100%; background: var(--navy); z-index: 2000; padding: 50px; transition: 0.3s; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.mobile-menu.active { right: 0; }
.close-btn { position: absolute; top: 20px; right: 20px; background: none; border: none; font-family: var(--font-mono); font-size: 1.2rem; color: var(--blue-neon); cursor: pointer; }
.mobile-menu a { display: block; font-size: 2rem; margin: 20px 0; color: var(--white); font-weight: 800; }
.mobile-menu a:hover { color: var(--blue); }

/* Hero */
.hero { padding: 80px 0; position: relative; overflow: hidden; }
.hero-content { position: relative; z-index: 2; max-width: 700px; }

.label-code { font-family: var(--font-mono); color: var(--blue-neon); font-size: 0.9rem; display: block; margin-bottom: 20px; }
.hero h1 { font-size: 4.5rem; line-height: 1; color: var(--white); margin-bottom: 30px; font-weight: 800; }
.hero p { font-size: 1.2rem; margin-bottom: 40px; color: var(--grey); max-width: 500px; }

.btn-row { display: flex; gap: 20px; }
.btn-primary { background: var(--blue); color: var(--white); padding: 15px 35px; font-weight: 700; border-radius: 2px; border: none; cursor: pointer; }
.btn-primary:hover { background: var(--blue-neon); color: var(--navy); }
.btn-ghost { background: transparent; border: 1px solid var(--blue-neon); color: var(--blue-neon); padding: 13px 35px; font-weight: 700; border-radius: 2px; }
.btn-ghost:hover { background: rgba(100, 255, 218, 0.1); }

.hero-graphic { position: absolute; right: 0; top: 50%; transform: translateY(-50%); width: 400px; height: 300px; z-index: 1; opacity: 0.5; }
.process-line { height: 4px; background: var(--blue); margin-bottom: 40px; border-radius: 2px; width: 0; animation: grow 3s infinite ease-in-out; }
.pl-1 { width: 80%; animation-delay: 0s; }
.pl-2 { width: 60%; animation-delay: 0.5s; background: var(--blue-neon); }
.pl-3 { width: 90%; animation-delay: 1s; }
@keyframes grow { 0% { width: 0; opacity: 0; } 50% { opacity: 1; } 100% { width: 100%; opacity: 0; } }

/* Metrics Strip */
.metrics-strip { background: var(--navy-light); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 40px 0; }
.metrics-flex { display: flex; justify-content: space-around; text-align: center; }
.metric .counter { display: block; font-size: 3rem; color: var(--white); line-height: 1; margin-bottom: 5px; font-weight: 800; }
.metric span { font-family: var(--font-mono); font-size: 0.8rem; color: var(--blue-neon); }

/* Modules */
.section-head h2 { font-size: 2.5rem; color: var(--white); font-weight: 800; margin-bottom: 10px; }
.blue-bar { width: 60px; height: 4px; background: var(--blue); margin-bottom: 40px; border-radius: 2px; }
.blue-bar.left { margin-right: auto; }
.center { text-align: center; }
.center .blue-bar { margin: 0 auto 40px; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.module-card { background: var(--navy-light); padding: 40px 30px; border-radius: 4px; transition: 0.3s; border: 1px solid transparent; }
.module-card:hover { border-color: var(--blue-neon); transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0,0,0,0.2); }
.card-icon { font-size: 2.5rem; margin-bottom: 20px; }
.module-card h3 { font-size: 1.5rem; color: var(--white); margin-bottom: 15px; }
.module-card p { font-size: 0.9rem; }

/* About Page */
.about-split { display: grid; grid-template-columns: 1.5fr 1fr; gap: 60px; align-items: center; }
.about-text h1 { font-size: 3rem; color: var(--white); margin-bottom: 20px; line-height: 1.1; }
.check-list { list-style: none; margin-top: 30px; font-family: var(--font-mono); }
.check-list li { margin-bottom: 10px; color: var(--blue-neon); }
.tech-box { border: 1px solid var(--line); padding: 40px; text-align: center; background: rgba(23, 42, 69, 0.5); }
.tech-box span { display: block; margin-bottom: 10px; font-family: var(--font-mono); font-size: 0.8rem; }
.loading-bar { width: 100%; height: 10px; background: var(--navy); border-radius: 5px; overflow: hidden; margin-bottom: 10px; }
.fill { height: 100%; width: 100%; background: var(--blue-neon); animation: load 2s ease-out forwards; }
@keyframes load { from { width: 0; } to { width: 100%; } }

/* Case Studies */
.case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.case-card { background: var(--navy-light); padding: 30px; border-left: 3px solid var(--blue); }
.case-header { font-family: var(--font-mono); font-size: 0.7rem; color: var(--blue); margin-bottom: 15px; display: block; }
.case-card h3 { font-size: 1.3rem; color: var(--white); margin-bottom: 10px; }
.case-card p { font-size: 0.9rem; font-style: italic; margin-bottom: 20px; }
.case-footer strong { color: var(--white); font-size: 0.9rem; }

/* Contact Terminal */
.contact-terminal { max-width: 700px; margin: 0 auto; background: #011627; border-radius: 6px; box-shadow: 0 20px 50px rgba(0,0,0,0.3); overflow: hidden; border: 1px solid #1E2D3D; }
.terminal-head { background: #01121F; padding: 10px 15px; display: flex; align-items: center; gap: 8px; border-bottom: 1px solid #1E2D3D; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: #5F7E97; }
.term-title { margin-left: 10px; font-family: var(--font-mono); font-size: 0.8rem; color: #5F7E97; }
.terminal-body { padding: 40px; }
.terminal-body h2 { font-family: var(--font-mono); color: var(--blue-neon); margin-bottom: 10px; }

.tech-form .input-grp { margin-bottom: 20px; }
.tech-form label { display: block; font-family: var(--font-mono); font-size: 0.8rem; color: var(--blue); margin-bottom: 5px; }
.tech-form input, .tech-form select, .tech-form textarea { width: 100%; background: var(--navy); border: 1px solid var(--navy-light); padding: 12px; color: var(--white); font-family: var(--font-mono); font-size: 0.9rem; }
.tech-form input:focus, .tech-form select:focus, .tech-form textarea:focus { border-color: var(--blue-neon); outline: none; }
.full { width: 100%; margin-top: 10px; font-family: var(--font-mono); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

/* Legal */
.legal-doc { max-width: 800px; margin: 0 auto; }
.legal-doc h1 { font-size: 2.5rem; color: var(--white); }

/* Footer */
.footer { background: var(--navy-light); padding: 60px 0 20px; margin-top: 100px; }
.footer-content { display: flex; justify-content: space-between; align-items: center; margin-bottom: 40px; }
.f-brand h4 { font-size: 1.5rem; color: var(--white); margin-bottom: 5px; font-weight: 800; letter-spacing: 1px; }
.f-links a { margin-left: 20px; font-family: var(--font-mono); font-size: 0.8rem; }
.f-links a:hover { color: var(--blue-neon); }
.copyright { text-align: center; font-family: var(--font-mono); font-size: 0.7rem; color: var(--grey); border-top: 1px solid rgba(255,255,255,0.05); padding-top: 20px; }

@media (max-width: 900px) {
    .hero h1 { font-size: 3rem; }
    .nav, .status-indicator { display: none; }
    .mobile-toggle { display: block; }
    .hero-graphic { display: none; }
    .hero-content { text-align: center; }
    .btn-row { justify-content: center; }
    .metrics-flex { flex-direction: column; gap: 30px; }
    .grid-3, .about-split, .case-grid, .form-row { grid-template-columns: 1fr; }
    .footer-content { flex-direction: column; gap: 20px; text-align: center; }
}