/* Tactical Theme Base Variables */
:root {
    --bg-color: #060B11;
    --text-color: #e0e0e0;
    --text-muted: #647b91;
    --primary-color: #00F5D4;
    --primary-hover: #00c7ac;
    --warning-color: #FB8500;
    --grid-color: #1B2A38;
    --card-bg: rgba(27, 42, 56, 0.4);
    --section-bg-alt: #0a111a;
    --font-mono: 'Courier New', Courier, monospace;
}

[data-theme="light"] {
    --bg-color: #eef2f5;
    --text-color: #111820;
    --text-muted: #536b80;
    --primary-color: #009988;
    --primary-hover: #007a6c;
    --warning-color: #d97700;
    --grid-color: #c4d1de;
    --card-bg: rgba(255, 255, 255, 0.7);
    --section-bg-alt: #e4e9f0;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
    scroll-behavior: smooth;
    position: relative;
    overflow-x: hidden;
}

/* Background Grid Overlay */
.bg-grid {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background-image: 
        linear-gradient(var(--grid-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.3;
    z-index: -1;
    pointer-events: none;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: all 0.2s;
}
a:hover {
    color: var(--primary-hover);
    text-shadow: 0 0 8px var(--primary-color);
}

.cyan { color: var(--primary-color) !important; }
.warning { color: var(--warning-color) !important; }
.amber { color: var(--warning-color) !important; }

/* HUD Header */
.hud-header {
    background-color: var(--section-bg-alt);
    border-bottom: 1px solid var(--grid-color);
    padding: 0.4rem 5%;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    display: flex;
    justify-content: flex-end;
}
.hud-metrics { display: flex; gap: 2rem; }
.metric .label { color: var(--text-muted); }
.metric .value { color: var(--text-color); font-weight: bold; }
.metric.highlight .value { color: var(--primary-color); text-shadow: 0 0 5px var(--primary-color); }

/* Navbar */
.navbar {
    display: flex; justify-content: space-between; align-items: center;
    padding: 1.5rem 5%;
    background-color: rgba(6, 11, 17, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--grid-color);
    position: sticky; top: 0; z-index: 1000;
}
[data-theme="light"] .navbar { background-color: rgba(238, 242, 245, 0.8); }

.logo {
    font-size: 1.8rem; font-weight: 900; color: var(--text-color);
    letter-spacing: 2px; font-family: var(--font-mono);
}
.logo .cursor {
    color: var(--primary-color); animation: blink 1s step-end infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.nav-links { list-style: none; display: flex; gap: 2rem; align-items: center; }
.nav-links a {
    color: var(--text-color); font-size: 0.95rem; font-weight: bold;
    text-transform: uppercase; letter-spacing: 1px;
}
.nav-links a.nav-special { color: var(--warning-color); }
.nav-links a:hover { color: var(--primary-color); }

/* Theme Toggle */
.theme-toggle {
    background: transparent; border: 1px solid var(--grid-color);
    width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
    cursor: pointer; color: var(--text-color); transition: all 0.3s ease;
    border-radius: 4px;
}
.theme-toggle:hover { background-color: var(--card-bg); border-color: var(--primary-color); }
.theme-toggle svg { transition: transform 0.3s ease; }

/* Tactical HUD Cards */
.hud-card {
    position: relative; background: var(--card-bg);
    border: 1px solid var(--grid-color); padding: 2.5rem 2rem;
    backdrop-filter: blur(5px); transition: all 0.3s;
}
.hud-card::before, .hud-card::after {
    content: ''; position: absolute; width: 15px; height: 15px;
    border: 2px solid transparent; pointer-events: none;
}
.hud-card::before {
    top: -1px; left: -1px; border-top-color: var(--primary-color); border-left-color: var(--primary-color);
}
.hud-card::after {
    bottom: -1px; right: -1px; border-bottom-color: var(--primary-color); border-right-color: var(--primary-color);
}
.corner-tr, .corner-bl { position: absolute; width: 15px; height: 15px; pointer-events: none; }
.corner-tr { top: -1px; right: -1px; border-top: 2px solid var(--primary-color); border-right: 2px solid var(--primary-color); }
.corner-bl { bottom: -1px; left: -1px; border-bottom: 2px solid var(--primary-color); border-left: 2px solid var(--primary-color); }

.hud-card:hover { border-color: var(--primary-color); box-shadow: 0 0 20px rgba(0, 245, 212, 0.05) inset; }

/* Tactical Buttons */
.tactical-btn {
    display: inline-block; background-color: var(--primary-color); color: #060B11 !important;
    padding: 0.8rem 2rem; font-weight: 800; font-family: var(--font-mono);
    letter-spacing: 1px; border: 1px solid var(--primary-color);
    position: relative; text-align: center; text-transform: uppercase; cursor: pointer; transition: all 0.2s;
}
.tactical-btn::after {
    content: ''; position: absolute; right: -1px; bottom: -1px;
    width: 12px; height: 12px; background-color: var(--bg-color);
    clip-path: polygon(100% 0, 0 100%, 100% 100%); transition: background-color 0.3s;
}
.tactical-btn:hover {
    background-color: transparent; color: var(--primary-color) !important;
    box-shadow: 0 0 15px rgba(0, 245, 212, 0.3) inset;
}
.tactical-btn.outline { background-color: transparent; color: var(--primary-color) !important; }
.tactical-btn.outline:hover { background-color: var(--primary-color); color: #060B11 !important; }
.tactical-btn.small { padding: 0.5rem 1.5rem; font-size: 0.9rem; }

/* Sections */
.section { padding: 5rem 5%; }
.bg-alt { background-color: var(--section-bg-alt); }
.section-title {
    font-size: 2.5rem; margin-bottom: 3rem; font-weight: 800;
    text-transform: uppercase; display: flex; align-items: center; gap: 1rem;
}
.title-decor { color: var(--primary-color); font-weight: normal; font-family: var(--font-mono); font-size: 1.5rem; }

/* Hero Section */
.hero { padding: 4rem 5% 6rem; }
.hero-layout {
    display: grid; grid-template-columns: 1fr 1fr; gap: 4rem;
    align-items: center; max-width: 1400px; margin: 0 auto;
}
.hero-content h1 { font-size: 2.8rem; line-height: 1.3; margin: 1.5rem 0; font-weight: 900;}
.highlight-text { color: var(--primary-color); text-shadow: 0 0 10px rgba(0, 245, 212, 0.3); }
.hero-content p { font-size: 1.1rem; color: var(--text-muted); margin-bottom: 2.5rem; max-width: 500px; }
.tactical-badge {
    display: inline-block; background: var(--warning-color); color: #060B11;
    padding: 3px 10px; font-family: var(--font-mono); font-size: 0.8rem; font-weight: bold; margin-bottom: 1rem;
}

/* Interactive Globe */
.tactical-globe-container { position: relative; width: 100%; aspect-ratio: 1; max-width: 500px; margin: 0 auto; }
.wireframe-globe {
    width: 100%; height: 100%; border-radius: 50%; border: 2px dashed var(--grid-color);
    position: relative; animation: rotate 30s linear infinite; transform-style: preserve-3d;
}
@keyframes rotate { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
.globe-grid-h, .globe-grid-v { position: absolute; border: 1px solid var(--grid-color); border-radius: 50%; }
.globe-grid-h { width: 100%; height: 30%; top: 35%; }
.globe-grid-h:nth-child(2) { height: 70%; top: 15%; }
.globe-grid-v { height: 100%; width: 30%; left: 35%; }
.globe-grid-v:nth-child(5) { width: 70%; left: 15%; }

.node {
    position: absolute; width: 24px; height: 24px; transform: translate(-50%, -50%);
    cursor: crosshair; z-index: 10;
}
.reticle {
    width: 100%; height: 100%; border: 1px solid var(--primary-color); border-radius: 50%;
    position: relative; transition: all 0.2s;
}
.reticle::after {
    content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 4px; height: 4px; background: var(--primary-color);
}
.node:hover .reticle { border-color: var(--warning-color); border-radius: 0; transform: scale(1.2); }
.node:hover .reticle::after { background: var(--warning-color); }

.telemetry-tooltip {
    position: absolute; top: 50%; left: 100%; margin-left: 15px; transform: translateY(-50%);
    background: rgba(6, 11, 17, 0.95); border: 1px solid var(--primary-color); padding: 10px;
    font-family: var(--font-mono); font-size: 0.8rem; white-space: nowrap;
    opacity: 0; pointer-events: none; transition: opacity 0.2s; z-index: 20;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}
.telemetry-tooltip::before {
    content: ''; position: absolute; top: 50%; left: -15px; transform: translateY(-50%);
    width: 15px; height: 1px; background: var(--primary-color);
}
.node:hover .telemetry-tooltip { opacity: 1; }

/* Grid Layouts */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; max-width: 1200px; margin: 0 auto; }
.col-2 { grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); }

/* Feature Icons */
.card h3 { margin-bottom: 1rem; font-size: 1.2rem; font-family: var(--font-mono); color: var(--text-color); }
.card p { color: var(--text-muted); }
.icon-radar, .icon-target, .icon-node {
    width: 50px; height: 50px; border: 1px solid var(--grid-color); margin-bottom: 1.5rem; position: relative;
    display: flex; justify-content: center; align-items: center; background: rgba(0,0,0,0.2);
}
.radar-sweep {
    width: 36px; height: 36px; border-radius: 50%; border: 1px dashed var(--primary-color);
    border-top-color: transparent; animation: spin 2s linear infinite;
}
@keyframes spin { 100% { transform: rotate(360deg); } }
.target-crosshair {
    width: 28px; height: 28px; border: 1px solid var(--warning-color);
    background: linear-gradient(var(--warning-color), var(--warning-color)) center/100% 1px no-repeat,
                linear-gradient(var(--warning-color), var(--warning-color)) center/1px 100% no-repeat;
}
.node-pulse {
    width: 12px; height: 12px; background: var(--primary-color); border-radius: 50%;
    animation: pulse 2s infinite;
}
@keyframes pulse { 70% { box-shadow: 0 0 0 15px rgba(0, 245, 212, 0); } 100% { box-shadow: 0 0 0 0 rgba(0, 245, 212, 0); } }

/* Telemetry Widgets */
.telemetry-panel {
    height: 60px; border: 1px solid var(--grid-color); background: #000; margin-bottom: 1.5rem; position: relative; overflow: hidden;
}
.graph-line {
    position: absolute; bottom: 0; left: -100%; width: 200%; height: 100%;
    background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 100 30" preserveAspectRatio="none" xmlns="http://www.w3.org/2000/svg"><path d="M0,25 Q10,25 20,20 T40,15 T60,20 T80,10 T100,25" fill="none" stroke="%2300F5D4" stroke-width="2"/></svg>') repeat-x;
    background-size: 50% 100%; animation: slide 3s linear infinite;
}
@keyframes slide { 100% { left: 0; } }

.status-bar-container { margin-bottom: 1.5rem; }
.status-bar { height: 10px; border: 1px solid var(--grid-color); background: #000; padding: 2px; width: 100%; }
.status-bar .fill { height: 100%; background: var(--primary-color); box-shadow: 0 0 8px var(--primary-color); }
.status-text { font-family: var(--font-mono); font-size: 0.8rem; margin-top: 5px; color: var(--text-muted); }

/* Pricing */
.pricing-card { text-align: center; display: flex; flex-direction: column; }
.pricing-card .tier { font-family: var(--font-mono); font-weight: bold; letter-spacing: 1px; margin-bottom: 1rem;}
.pricing-card .price { font-size: 2.8rem; font-weight: 900; margin-bottom: 1.5rem; }
.pricing-card .period { font-size: 1rem; color: var(--text-muted); font-weight: normal; }
.spec-list { list-style: none; text-align: left; margin-bottom: 2rem; font-family: var(--font-mono); font-size: 0.95rem;}
.spec-list li { padding: 0.8rem 0; border-bottom: 1px dashed var(--grid-color); color: var(--text-muted); }
.pricing-card .cta-btn { margin-top: auto; }
.top-badge { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); }
.pricing-card.popular { border-color: var(--primary-color); box-shadow: 0 0 30px rgba(0,245,212,0.1) inset;}

/* Reviews */
.review-status {
    font-family: var(--font-mono); font-size: 0.8rem; color: var(--primary-color);
    margin-bottom: 1rem; border-bottom: 1px solid var(--grid-color); padding-bottom: 5px;
}
.review-card p { font-style: italic; color: var(--text-color); }
.review-card .author { margin-top: 1.5rem; font-family: var(--font-mono); text-align: right; color: var(--text-muted); font-size: 0.85rem; }

/* FAQ */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item { margin-bottom: 1.5rem; padding-bottom: 1.5rem; border-bottom: 1px dashed var(--grid-color); }
.faq-item:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.faq-item h4 { margin-bottom: 0.5rem; color: var(--primary-color); font-family: var(--font-mono); }

/* Footer */
.tactical-footer {
    background-color: var(--section-bg-alt); padding: 4rem 5% 2rem;
    text-align: center; border-top: 1px solid var(--grid-color);
}
.footer-links { display: flex; justify-content: center; gap: 2rem; margin-bottom: 2rem; flex-wrap: wrap; }
.footer-links a { color: var(--text-muted); font-family: var(--font-mono); font-weight: bold;}
.footer-links a:hover { color: var(--primary-color); }
.copyright { color: var(--text-muted); font-family: var(--font-mono); font-size: 0.8rem; }

/* Responsive */
@media (max-width: 900px) {
    .hero-layout { grid-template-columns: 1fr; text-align: center; }
    .hero-content p { margin: 1.5rem auto; }
    .hud-header { justify-content: center; }
    .nav-links { display: none; }
}
