/* Palette: Void Black, Phosphor Green, Dark Grid */
:root {
    --bg: #050505;
    --panel: #0a0a0a;
    --green: #00FF41;
    --green-dim: rgba(0, 255, 65, 0.2);
    --grid: #111111;
    --text: #e0e0e0;
    
    --font-mono: 'Share Tech Mono', monospace;
    --font-sans: 'Roboto', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Background Effects */
.grid-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-image: 
        linear-gradient(var(--grid) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid) 1px, transparent 1px);
    background-size: 30px 30px;
    z-index: -1;
}

.scanline {
    width: 100%; height: 100px;
    background: linear-gradient(0deg, rgba(0,0,0,0) 0%, rgba(0, 255, 65, 0.05) 50%, rgba(0,0,0,0) 100%);
    opacity: 0.1;
    position: absolute; bottom: 100%;
    animation: scanline 10s linear infinite;
    pointer-events: none;
    z-index: 999;
}
@keyframes scanline { 0% { bottom: 100%; } 100% { bottom: -100px; } }

.container { width: 90%; max-width: 1200px; margin: 0 auto; }
.section-padding { padding: 100px 0; }
a { text-decoration: none; color: inherit; transition: 0.3s; }

/* Header */
.data-header { padding: 20px 0; border-bottom: 1px solid var(--green); background: rgba(5,5,5,0.9); position: sticky; top: 0; z-index: 1000; box-shadow: 0 0 15px var(--green-dim); }
.header-flex { display: flex; justify-content: space-between; align-items: center; }

.logo { font-family: var(--font-mono); font-size: 1.5rem; color: var(--green); letter-spacing: 2px; }
.cursor { animation: blink 1s infinite; }
@keyframes blink { 50% { opacity: 0; } }

.system-status { font-family: var(--font-mono); font-size: 0.8rem; color: #666; border: 1px solid #333; padding: 5px 10px; }
.green { color: var(--green); }

.terminal-nav a { margin-left: 20px; font-family: var(--font-mono); color: #888; font-size: 0.9rem; }
.terminal-nav a:hover, .terminal-nav a.active { color: var(--green); text-shadow: 0 0 5px var(--green); }

.mobile-cmd { display: none; background: transparent; border: 1px solid var(--green); color: var(--green); padding: 5px 10px; font-family: var(--font-mono); cursor: pointer; }

/* Mobile Console */
.mobile-console { position: fixed; top: 0; right: -100%; width: 100%; height: 100%; background: var(--bg); z-index: 2000; display: flex; flex-direction: column; justify-content: center; align-items: center; transition: 0.3s; border-left: 2px solid var(--green); }
.mobile-console.active { right: 0; }
.close-console { position: absolute; top: 20px; right: 20px; background: none; border: 1px solid var(--text); color: var(--text); padding: 5px 10px; font-family: var(--font-mono); cursor: pointer; }
.mobile-console a { font-family: var(--font-mono); font-size: 1.5rem; margin: 15px 0; color: var(--text); }
.mobile-console a:hover { color: var(--green); }

@media (max-width: 900px) {
    .terminal-nav, .system-status { display: none; }
    .mobile-cmd { display: block; }
}

/* Hero */
.hero-monitor { height: 80vh; display: flex; align-items: center; border-bottom: 1px solid #333; }
.hero-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 50px; align-items: center; width: 100%; }

.pulse-svg { width: 100%; height: 100px; }
.pulse-path { fill: none; stroke: var(--green); stroke-width: 2; stroke-dasharray: 1000; stroke-dashoffset: 1000; animation: draw 2s linear infinite; filter: drop-shadow(0 0 5px var(--green)); }
@keyframes draw { 0% { stroke-dashoffset: 1000; } 100% { stroke-dashoffset: 0; } }

.hero-grid h1 { font-family: var(--font-mono); font-size: 3.5rem; line-height: 1.1; margin-bottom: 20px; color: var(--white); text-transform: uppercase; }
.mono-text { font-family: var(--font-mono); color: var(--green); margin-bottom: 40px; font-size: 1rem; line-height: 1.8; }

.cta-terminal { display: flex; gap: 20px; }
.btn-neon { background: transparent; border: 2px solid var(--green); color: var(--green); padding: 12px 30px; font-family: var(--font-mono); font-weight: 700; cursor: pointer; transition: 0.3s; box-shadow: 0 0 10px var(--green-dim); }
.btn-neon:hover { background: var(--green); color: var(--bg); box-shadow: 0 0 20px var(--green); }
.btn-border { border: 1px solid #555; color: #aaa; padding: 12px 30px; font-family: var(--font-mono); }
.btn-border:hover { border-color: var(--text); color: var(--white); }

/* Radar */
.radar-box { width: 300px; height: 300px; border: 2px solid var(--green); border-radius: 50%; position: relative; margin: 0 auto; background: radial-gradient(circle, transparent 20%, var(--green-dim) 21%, transparent 22%), radial-gradient(circle, transparent 50%, var(--green-dim) 51%, transparent 52%); }
.radar-sweep { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border-radius: 50%; background: conic-gradient(from 0deg, transparent 0deg, var(--green-dim) 60deg, transparent 60deg); animation: sweep 4s linear infinite; border-right: 2px solid var(--green); }
.radar-point { width: 8px; height: 8px; background: var(--green); border-radius: 50%; position: absolute; box-shadow: 0 0 5px var(--green); animation: fade 4s infinite; opacity: 0; }
.p1 { top: 20%; left: 30%; animation-delay: 0.5s; }
.p2 { top: 60%; left: 70%; animation-delay: 2s; }
.p3 { top: 70%; left: 20%; animation-delay: 3s; }
@keyframes sweep { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes fade { 0% { opacity: 1; } 50% { opacity: 0; } 100% { opacity: 0; } }

/* Ticker */
.ticker-wrap { background: var(--green); color: var(--bg); font-family: var(--font-mono); font-weight: 700; padding: 5px 0; overflow: hidden; white-space: nowrap; }
.ticker { display: inline-block; padding-left: 100%; animation: ticker 20s linear infinite; }
@keyframes ticker { 0% { transform: translateX(0); } 100% { transform: translateX(-100%); } }

/* Features */
.section-head h2 { font-family: var(--font-mono); font-size: 2.5rem; color: var(--text); margin-bottom: 10px; }
.green-bar { width: 50px; height: 5px; background: var(--green); margin-bottom: 40px; }
.green-bar.left { margin: 20px 0 40px; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.module-card { background: var(--panel); border: 1px solid #333; padding: 30px; transition: 0.3s; }
.module-card:hover { border-color: var(--green); box-shadow: 0 0 15px var(--green-dim); }
.mod-header { font-family: var(--font-mono); color: var(--green); font-size: 0.8rem; border-bottom: 1px solid #333; padding-bottom: 10px; margin-bottom: 20px; }
.module-card h3 { font-family: var(--font-mono); font-size: 1.5rem; margin-bottom: 15px; }

/* About */
.data-layout { display: grid; grid-template-columns: 1.5fr 1fr; gap: 50px; align-items: center; }
.data-text h1 { font-family: var(--font-mono); font-size: 3rem; line-height: 1.1; }
.terminal-list { list-style: none; margin-top: 30px; font-family: var(--font-mono); color: var(--green); }
.graph-container { width: 100%; height: 200px; display: flex; align-items: flex-end; gap: 10px; border-left: 2px solid var(--text); border-bottom: 2px solid var(--text); padding: 10px; }
.bar { flex: 1; background: var(--green); opacity: 0.7; transition: height 0.5s; }
.bar:hover { opacity: 1; box-shadow: 0 0 10px var(--green); }

/* Reports */
.report-list { display: flex; flex-direction: column; gap: 20px; max-width: 800px; margin: 0 auto; }
.report-item { background: var(--panel); border: 1px solid #333; padding: 20px; display: flex; justify-content: space-between; align-items: center; transition: 0.3s; }
.report-item:hover, .report-item.active { border-color: var(--green); background: rgba(0, 255, 65, 0.05); }
.r-date { font-family: var(--font-mono); color: #666; font-size: 0.9rem; }
.r-content h3 { font-family: var(--font-mono); font-size: 1.2rem; color: var(--white); margin-bottom: 5px; }
.tag { font-size: 0.7rem; background: #222; padding: 2px 6px; color: var(--green); border: 1px solid var(--green); }
.btn-download { font-family: var(--font-mono); color: var(--green); text-decoration: none; }

/* Contact */
.login-terminal { max-width: 700px; margin: 0 auto; background: #000; border: 1px solid var(--green); font-family: var(--font-mono); box-shadow: 0 0 20px var(--green-dim); }
.term-header { background: #111; padding: 10px; border-bottom: 1px solid var(--green); display: flex; gap: 5px; color: #555; font-size: 0.8rem; }
.dot { width: 10px; height: 10px; border-radius: 50%; }
.red { background: #ff5f56; } .yellow { background: #ffbd2e; } .green { background: #27c93f; }
.term-body { padding: 40px; color: var(--green); }
.access-info { margin-bottom: 30px; border-bottom: 1px dashed var(--green); padding-bottom: 20px; }

.neon-form .input-line { margin-bottom: 20px; }
.neon-form label { display: block; margin-bottom: 5px; font-size: 0.8rem; opacity: 0.8; }
.neon-form input, .neon-form textarea { width: 100%; background: #050505; border: 1px solid #333; color: var(--white); padding: 10px; font-family: var(--font-mono); }
.neon-form input:focus, .neon-form textarea:focus { border-color: var(--green); outline: none; }
.full { width: 100%; margin-top: 10px; }

/* Legal */
.legal-block { max-width: 800px; margin: 0 auto; color: #ccc; font-family: var(--font-mono); }
.legal-block h1 { color: var(--white); }

/* Footer */
.data-footer { border-top: 1px solid #333; padding: 60px 0 20px; margin-top: 100px; font-family: var(--font-mono); }
.footer-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 40px; }
.f-node h4 { color: var(--green); margin-bottom: 5px; }
.f-links a { margin-left: 20px; color: #666; }
.f-links a:hover { color: var(--green); }
.copyright { text-align: center; font-size: 0.7rem; color: #444; }

@media (max-width: 900px) {
    .hero-grid { grid-template-columns: 1fr; }
    .hero-text h1 { font-size: 2.5rem; }
    .grid-3, .data-layout, .report-item { grid-template-columns: 1fr; flex-direction: column; align-items: flex-start; }
    .btn-download { margin-top: 15px; }
    .footer-row { flex-direction: column; gap: 20px; text-align: center; }
}