/* tactical-style.css */
:root {
    --bg-color: #0c0e12;
    --text-color: #e2e8f0;
    --primary-color: #22c55e; /* Phosphor Lime Green */
    --secondary-color: #111827;
    --card-bg: rgba(17, 24, 39, 0.7);
    --border-color: rgba(34, 197, 94, 0.3);
    --text-muted: #94a3b8;
    --btn-hover: #16a34a;
    --nav-bg: rgba(12, 14, 18, 0.95);
    --shadow: 0 0 15px rgba(34, 197, 94, 0.1);
    
    --tactical-cyan: #06b6d4;
    --tactical-grid: linear-gradient(rgba(34, 197, 94, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(34, 197, 94, 0.05) 1px, transparent 1px);
    
    --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-mono: "Courier New", Courier, "Lucida Sans Typewriter", "Lucida Typewriter", monospace;
}

[data-theme="light"] {
    --bg-color: #f8fafc;
    --text-color: #0f172a;
    --primary-color: #16a34a; 
    --secondary-color: #e2e8f0;
    --card-bg: rgba(255, 255, 255, 0.9);
    --border-color: rgba(22, 163, 74, 0.4);
    --text-muted: #475569;
    --btn-hover: #15803d;
    --nav-bg: rgba(248, 250, 252, 0.95);
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    --tactical-cyan: #0284c7;
    --tactical-grid: linear-gradient(rgba(15, 23, 42, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(15, 23, 42, 0.05) 1px, transparent 1px);
}

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

html {
    scroll-behavior: smooth;
}
body {
    font-family: var(--font-sans);
    background-color: var(--bg-color);
    background-image: var(--tactical-grid);
    background-size: 30px 30px;
    color: var(--text-color);
    transition: background-color 0.3s ease, color 0.3s ease;
    line-height: 1.6;
}

a { text-decoration: none; color: var(--primary-color); }

/* HUD Top Bar */
.hud-top-bar {
    background: var(--primary-color);
    color: #000;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: bold;
    padding: 4px 5%;
    display: flex;
    justify-content: space-between;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 1001;
    position: fixed;
    top: 0;
    width: 100%;
}

.hud-marquee { display: flex; gap: 30px; overflow: hidden; white-space: nowrap; }
.hud-item { animation: blink 2s infinite; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.7; } }

/* Header & Nav */
.navbar {
    position: fixed;
    top: 24px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    background-color: var(--nav-bg);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.logo a {
    font-size: 22px;
    font-weight: 900;
    color: var(--primary-color);
    letter-spacing: 2px;
    text-transform: uppercase;
    text-shadow: 0 0 10px rgba(34,197,94,0.4);
}

.nav-links { display: flex; gap: 20px; }
.nav-links a {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-color);
    text-transform: uppercase;
    transition: color 0.2s ease, text-shadow 0.2s;
}
.nav-links a:hover {
    color: var(--primary-color);
    text-shadow: 0 0 8px rgba(34,197,94,0.5);
}

.nav-right { display: flex; align-items: center; }

/* Theme Switch */
.theme-switch {
    position: relative;
    background: var(--secondary-color);
    border: 1px solid var(--border-color);
    border-radius: 30px;
    width: 56px;
    height: 30px;
    cursor: pointer;
    margin-left: 20px;
    padding: 0 4px;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}
.theme-switch:hover { border-color: var(--tactical-cyan); box-shadow: 0 0 10px rgba(6,182,212,0.3); }
.switch-thumb {
    width: 22px; height: 22px;
    background-color: #fff;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    display: flex; justify-content: center; align-items: center;
    transition: transform 0.4s cubic-bezier(0.4, 0.0, 0.2, 1);
    color: #f39c12; position: absolute; left: 3px;
}
[data-theme="light"] .switch-thumb {
    transform: translateX(26px);
    background-color: #1a1a1a;
    color: #f1c40f;
}
.moon-icon { display: none; }
[data-theme="light"] .sun-icon { display: none; }
[data-theme="light"] .moon-icon { display: block; }

/* Hero Section */
.hero {
    padding: 160px 5% 100px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 100vh;
    max-width: 1400px;
    margin: 0 auto;
    gap: 40px;
}

.hero-content { flex: 1; max-width: 650px; }
.hero h1 {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 20px;
    line-height: 1.2;
    color: var(--text-color);
    border-left: 5px solid var(--primary-color);
    padding-left: 20px;
    text-shadow: 0 0 20px rgba(34,197,94,0.2);
}
.hero-sub {
    font-size: 1.5rem;
    color: var(--tactical-cyan);
    margin-bottom: 20px;
    font-weight: 600;
}
.hero-desc {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    font-family: var(--font-mono);
}

.hero-actions { display: flex; gap: 20px; flex-wrap: wrap; }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 14px 32px; border-radius: 4px; font-weight: bold;
    font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 1px;
    transition: all 0.2s ease; cursor: pointer; text-align: center;
    position: relative; overflow: hidden;
}
.btn:active { transform: scale(0.98); }
.btn-tactical {
    background-color: rgba(34, 197, 94, 0.1);
    color: var(--primary-color) !important;
    border: 1px solid var(--primary-color);
    box-shadow: inset 0 0 15px rgba(34,197,94,0.1), 0 0 15px rgba(34,197,94,0.2);
}
.btn-tactical:hover {
    background-color: var(--primary-color);
    color: #000 !important;
    box-shadow: 0 0 25px rgba(34,197,94,0.5);
}
.btn-ghost {
    background: transparent;
    color: var(--tactical-cyan);
    border: 1px solid var(--tactical-cyan);
}
.btn-ghost:hover {
    background: rgba(6,182,212,0.1);
    box-shadow: 0 0 15px rgba(6,182,212,0.3);
}

/* Terminal Modal */
.terminal-box {
    margin-top: 30px;
    background: #000;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 15px;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--primary-color);
    min-height: 180px;
    box-shadow: inset 0 0 20px rgba(34,197,94,0.1);
}
.terminal-box.hidden { display: none; }
.terminal-header {
    border-bottom: 1px solid rgba(34,197,94,0.3);
    padding-bottom: 8px; margin-bottom: 10px;
    color: var(--text-muted); font-size: 0.8rem;
}

/* Advanced Radar Globe UI */
.hero-visual { flex: 1; display: flex; justify-content: center; align-items: center; position: relative; }

/* Outer decorative bracket ring */
.radar-outer-ring {
    position: relative;
    padding: 25px;
    border-radius: 50%;
    border: 1px dashed rgba(6,182,212,0.3);
    animation: slow-reverse-spin 60s linear infinite;
}
@keyframes slow-reverse-spin { 100% { transform: rotate(-360deg); } }

/* Fix rotation for inner elements so they don't spin with the outer ring */
.radar-wrapper {
    position: relative; width: 420px; height: 420px;
    border-radius: 50%; border: 3px solid rgba(6,182,212,0.5);
    background: radial-gradient(circle, rgba(12,14,18,0.7) 0%, rgba(12,14,18,1) 100%);
    box-shadow: 0 0 40px rgba(6,182,212,0.15), inset 0 0 60px rgba(6,182,212,0.25);
    overflow: hidden;
    animation: slow-spin 60s linear infinite; /* Counteracts outer ring spin */
}
@keyframes slow-spin { 100% { transform: rotate(360deg); } }

/* Concentric rings */
.radar-rings {
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: repeating-radial-gradient(
        transparent 0,
        transparent 28px,
        rgba(6,182,212,0.2) 29px,
        rgba(6,182,212,0.2) 30px
    );
    border-radius: 50%;
}

/* Polar Crosshairs (Angles) */
.radar-cross {
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: 
        repeating-conic-gradient(
            from 0deg,
            transparent 0deg,
            transparent 14deg,
            rgba(6,182,212,0.15) 14.5deg,
            rgba(6,182,212,0.15) 15deg
        ),
        linear-gradient(90deg, transparent calc(50% - 1px), rgba(6,182,212,0.7) 50%, transparent calc(50% + 1px)),
        linear-gradient(0deg, transparent calc(50% - 1px), rgba(6,182,212,0.7) 50%, transparent calc(50% + 1px));
    border-radius: 50%;
}

/* Central Core */
.radar-core {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 12px; height: 12px; background: #fff;
    border-radius: 50%; box-shadow: 0 0 15px 3px var(--tactical-cyan);
    z-index: 10;
}

/* Highly detailed Sweep */
.radar-sweep {
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    border-radius: 50%;
    background: conic-gradient(from 0deg, transparent 70%, rgba(34,197,94,0.1) 85%, rgba(34,197,94,0.6) 99.5%, transparent 100%);
    animation: radar-spin 3s linear infinite;
    z-index: 5;
}
/* Sharp leading edge */
.radar-sweep::before {
    content: ''; position: absolute;
    top: 0; left: calc(50% - 1px);
    width: 2px; height: 50%;
    background: #22c55e;
    box-shadow: 0 0 20px 2px #22c55e, 0 0 40px 5px rgba(34,197,94,0.5);
    transform-origin: bottom;
}
@keyframes radar-spin { 100% { transform: rotate(360deg); } }

/* Refined Radar Pins */
.pin {
    position: absolute; width: 6px; height: 6px;
    background-color: #fff; border-radius: 50%;
    box-shadow: 0 0 10px 2px var(--primary-color);
    z-index: 10;
}
/* Expanding echo effect */
.pin::before {
    content: ''; position: absolute;
    top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 100%; height: 100%; border-radius: 50%;
    border: 1px solid var(--primary-color);
    animation: pin-echo 2s ease-out infinite;
}
@keyframes pin-echo {
    0% { width: 6px; height: 6px; opacity: 1; }
    100% { width: 40px; height: 40px; opacity: 0; }
}
/* Data Label */
.pin::after {
    content: attr(data-city); position: absolute; left: 14px; top: -6px;
    color: var(--primary-color); font-family: var(--font-mono);
    font-size: 13px; font-weight: bold; white-space: nowrap;
    text-shadow: 0 0 5px rgba(0,0,0,0.9), 0 0 10px rgba(0,0,0,0.8);
    pointer-events: none;
}

/* Strategic Pin Placements */
.pin.hk { top: 60%; left: 63%; }
.pin.tw { top: 54%; left: 68%; }
.pin.jp { top: 40%; left: 75%; }
.pin.sg { top: 72%; left: 55%; }
.pin.kr { top: 46%; left: 69%; }
.pin.us { top: 42%; left: 20%; }

/* Sections */
.section { padding: 100px 5%; max-width: 1200px; margin: 0 auto; position: relative; }
.section-title {
    text-align: center; font-size: 2.25rem; font-weight: 800;
    margin-bottom: 60px; color: var(--text-color);
    text-transform: uppercase; letter-spacing: 2px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 20px;
}

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }

/* Tactical Card (Replacing basic cards) */
.tactical-card {
    background-color: var(--card-bg);
    padding: 40px 30px;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(5px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.tactical-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(34,197,94,0.15);
}
/* Corner Accents */
.tactical-card::before, .tactical-card::after {
    content: ''; position: absolute; width: 12px; height: 12px;
    border-color: var(--tactical-cyan); border-style: solid;
}
.tactical-card::before { top: 0; left: 0; border-width: 2px 0 0 2px; }
.tactical-card::after { bottom: 0; right: 0; border-width: 0 2px 2px 0; }

/* Hover Scanline effect */
.tactical-card .scanline {
    position: absolute; top: 0; left: 0; width: 100%; height: 2px;
    background: rgba(34,197,94,0.5); opacity: 0;
    box-shadow: 0 0 10px rgba(34,197,94,0.8); pointer-events: none;
}
.tactical-card:hover .scanline {
    opacity: 1; animation: scan-vertical 2s linear infinite;
}
@keyframes scan-vertical { 0% { top: 0; } 100% { top: 100%; } }

/* Matrix Telemetry specifically */
.matrix-card { text-align: center; }
.gauge {
    width: 120px; height: 120px; border-radius: 50%;
    border: 4px solid var(--secondary-color);
    border-top-color: var(--primary-color);
    margin: 0 auto 20px; display: flex;
    justify-content: center; align-items: center;
    flex-direction: column; animation: spin-gauge 10s linear infinite;
}
.gauge-inner {
    font-family: var(--font-mono); font-size: 1.5rem;
    font-weight: bold; color: var(--text-color);
    animation: spin-gauge 10s linear infinite reverse; /* Keep text upright */
}
@keyframes spin-gauge { 100% { transform: rotate(360deg); } }

.tactical-card h3 { font-size: 1.3rem; margin-bottom: 15px; color: var(--tactical-cyan); }
.tactical-card p { color: var(--text-muted); font-size: 0.95rem; }

/* Pricing */
.pricing-card { display: flex; flex-direction: column; }
.pricing-card.popular { border: 1px solid var(--primary-color); background: rgba(34, 197, 94, 0.05); }
.price { font-size: 2.8rem; font-family: var(--font-mono); color: var(--primary-color); margin: 20px 0; font-weight: bold; }
.price span { font-size: 1rem; color: var(--text-muted); font-weight: normal; }
.features-list { list-style: none; margin: 0 0 30px 0; flex-grow: 1; font-family: var(--font-mono); font-size: 0.9rem; }
.features-list li { margin-bottom: 12px; padding-left: 20px; position: relative; color: var(--text-color); border-bottom: 1px dashed rgba(255,255,255,0.1); padding-bottom: 8px;}
[data-theme="light"] .features-list li { border-bottom: 1px dashed rgba(0,0,0,0.1); }
.features-list li::before { content: ">"; color: var(--tactical-cyan); position: absolute; left: 0; font-weight: 900; }
.pricing-card .btn { width: 100%; }

/* FAQ & Reviews */
.faq-item { margin-bottom: 24px; border: 1px solid var(--secondary-color); padding: 20px; background: rgba(0,0,0,0.2); }
.faq-item h4 { font-size: 1.1rem; margin-bottom: 12px; color: var(--tactical-cyan); }
.review-text { font-family: var(--font-mono); font-style: italic; color: var(--text-muted); margin-bottom: 15px; }

/* Footer */
.footer {
    background-color: #000; padding: 40px 5% 20px;
    text-align: center; border-top: 1px solid var(--border-color);
    font-family: var(--font-mono); font-size: 0.85rem;
}
.footer-links { margin-bottom: 20px; display: flex; justify-content: center; gap: 30px; flex-wrap: wrap; }
.footer-links a { color: var(--text-muted); text-transform: uppercase; transition: color 0.2s ease; }
.footer-links a:hover { color: var(--primary-color); }
.footer p { color: var(--text-muted); }

/* Responsive */
@media screen and (max-width: 992px) {
    .hero { flex-direction: column; padding-top: 140px; text-align: center; }
    .hero h1 { border-left: none; padding-left: 0; border-bottom: 5px solid var(--primary-color); padding-bottom: 15px; }
    .hero-actions { justify-content: center; }
    .radar-wrapper { width: 320px; height: 320px; }
    .grid-3, .grid-2 { grid-template-columns: 1fr; }
    .nav-links { display: none; }
    .terminal-box { text-align: left; }
}
