@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;700&display=swap');

:root {
    --bg-color: #fcfbf9;
    --accent-color: #1a1a1a;
    --text-primary: #111827;
    --text-secondary: #4b5563;
    --border-color: #e5e7eb;
    --card-bg: #ffffff;
    --stat-bg: #f3f4f6;
    --danger: #ef4444;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Navbar */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 3rem 0;
    border-bottom: 1px solid var(--border-color);
}

.logo {
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: 2px;
    color: var(--accent-color);
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 600;
    transition: color 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-links a:hover {
    color: var(--accent-color);
}

/* Hero Section */
.hero {
    padding: 10rem 0 8rem 0;
    text-align: left;
    max-width: 800px;
}

.hero h1 {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 2rem;
    color: var(--accent-color);
    letter-spacing: -2px;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin-bottom: 3rem;
    font-weight: 400;
}

.btn {
    padding: 0.8rem 2rem;
    background: var(--accent-color);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: opacity 0.2s ease;
    display: inline-block;
}

.btn:hover {
    opacity: 0.85;
}

/* Features Grid */
.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background-color: var(--border-color);
    border: 1px solid var(--border-color);
}

.card {
    background: var(--card-bg);
    padding: 4rem 2.5rem;
    transition: background 0.3s ease;
}

.card:hover {
    background: #fafafa;
}

.card h3 {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* Stats Section */
.stats {
    margin-top: 8rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.stat-item {
    padding: 4rem 2.5rem;
    border-right: 1px solid var(--border-color);
}

.stat-item:last-child {
    border-right: none;
}

.stat-item h2 {
    font-size: 3rem;
    font-weight: 800;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.stat-item p {
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Threat Dashboard Style */
.threat-section {
    margin-top: 8rem;
}

.threat-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 3rem;
}

.threat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.threat-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
}

.threat-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background: var(--danger);
}

.threat-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.threat-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
}

.threat-val {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    color: var(--accent-color);
}

.progress-bar {
    height: 8px;
    background: #f3f4f6;
    width: 100%;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: var(--accent-color);
    width: 0;
    transition: width 2s cubic-bezier(0.1, 0, 0, 1);
}

.pulse-red {
    width: 6px;
    height: 6px;
    background: var(--danger);
    border-radius: 50%;
    display: inline-block;
    margin-right: 10px;
    box-shadow: 0 0 10px var(--danger);
    animation: pulse-simple 2s infinite;
}

@keyframes pulse-simple {
    0% { opacity: 1; }
    50% { opacity: 0.4; }
    100% { opacity: 1; }
}

/* Footer */
footer {
    padding: 8rem 0 4rem 0;
    color: var(--text-secondary);
    font-size: 0.75rem;
    font-weight: 500;
    text-align: center;
}

/* Live Stream Terminal */
.terminal-window {
    background: #0d0d0d;
    border: 1px solid #333;
    border-radius: 4px;
    margin-top: 8rem;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}

.terminal-header {
    background: #1a1a1a;
    padding: 0.75rem 1.5rem;
    border-bottom: 1px solid #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.terminal-title {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    font-weight: 700;
    color: #666;
    letter-spacing: 2px;
}

.terminal-controls {
    display: flex;
    gap: 6px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #333;
}

.terminal-body {
    padding: 2rem;
    height: 400px;
    overflow-y: auto;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    line-height: 1.8;
}

.log-line {
    margin-bottom: 4px;
    opacity: 0;
    transform: translateX(-10px);
    animation: logIn 0.3s forwards;
}

.log-time { color: #555; margin-right: 15px; }
.log-tag { font-weight: 700; margin-right: 15px; }
.log-msg { color: #aaa; }

.tag-allow { color: #10b981; }
.tag-warn { color: #f59e0b; }
.tag-block { color: #ef4444; }

@keyframes logIn {
    to { opacity: 1; transform: translateX(0); }
}

/* Global Map Section */
.map-section {
    margin-top: 8rem;
    text-align: center;
}

.map-container {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 4rem auto;
}

.world-map {
    width: 100%;
    height: auto;
    opacity: 0.1; /* Very subtle Palantir style */
    filter: grayscale(1);
}

.node {
    position: absolute;
    width: 12px;
    height: 12px;
    background: var(--accent-color);
    border-radius: 50%;
}

.node::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px solid var(--accent-color);
    border-radius: 50%;
    animation: nodePulse 2s infinite;
}

@keyframes nodePulse {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(4); opacity: 0; }
}

.node-label {
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
    color: var(--text-secondary);
}

.connection-line {
    stroke: var(--accent-color);
    stroke-width: 1.5;
    stroke-dasharray: 10, 15;
    opacity: 0.2;
    animation: flow 20s linear infinite;
}

@keyframes flow {
    to { stroke-dashoffset: -500; }
}

/* Position nodes to match SVG 1000x500 coordinates */
.node-ny { top: 35%; left: 24%; }
.node-madrid { top: 38%; left: 47%; }
.node-tokyo { top: 40%; left: 85%; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

body { animation: fadeIn 0.8s ease-out; }
