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

:root {
    /* Base Layers */
    --bg-primary: #07130f;
    --bg-secondary: #0c1f18;
    --bg-elevated: rgba(255, 255, 255, 0.04);
    --bg-glass: rgba(12, 31, 24, 0.6);
    
    /* Accents */
    --accent-primary: #22c55e;
    --accent-secondary: #4ade80;
    --accent-highlight: #facc15;
    
    /* Typography Colors */
    --text-primary: #ecfdf5;
    --text-secondary: #bbf7d0;
    --text-muted: #6ee7b7;
    --text-dark: #022c22;
    
    /* Borders & Shadows */
    --border-glass: rgba(34, 197, 94, 0.15);
    --border-glow: rgba(34, 197, 94, 0.4);
    --shadow-soft: 0 8px 32px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 20px rgba(34, 197, 94, 0.15);
    
    /* Layout */
    --max-width: 1320px;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 20px;
    
    /* Fonts */
    --font-sans: 'Inter', sans-serif;
    --font-heading: 'Poppins', sans-serif;
}

/* Base Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-primary);
    line-height: 1.2;
    margin-bottom: 1rem;
    font-weight: 600;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -0.01em; }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }

p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

a {
    color: var(--accent-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--accent-primary);
}

/* Layout System */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 120px 0;
    position: relative;
    z-index: 1;
}

.flow-grid {
    display: grid;
    gap: 40px;
}

/* Background Effects */
.bg-gradient-mesh {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 30%, rgba(34, 197, 94, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 80% 70%, rgba(250, 204, 21, 0.03) 0%, transparent 50%);
    z-index: -1;
    pointer-events: none;
}

/* Components */
.glass-panel {
    background: var(--bg-elevated);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

.glass-panel:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
    border-color: var(--border-glow);
}

/* Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-glow);
    transition: all 0.3s ease;
}

.site-header.scrolled {
    background: rgba(7, 19, 15, 0.85);
    box-shadow: var(--shadow-soft);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.logo-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-highlight));
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.logo-icon::after {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    background: var(--bg-primary);
    border-radius: 50%;
}

.nav-links {
    display: flex;
    gap: 32px;
    list-style: none;
}

.nav-links a {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
    position: relative;
    padding-bottom: 4px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-primary);
    transition: width 0.3s ease;
    box-shadow: 0 0 8px var(--accent-primary);
}

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

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: var(--radius-md);
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    outline: none;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-highlight));
    color: var(--text-dark);
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(250, 204, 21, 0.4);
    filter: brightness(1.1);
    color: var(--text-dark);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid var(--border-glass);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-secondary);
    color: var(--text-primary);
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    position: relative;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content h1 span {
    color: var(--accent-secondary);
    text-shadow: 0 0 20px rgba(74, 222, 128, 0.3);
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 500px;
}

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

.hero-visual {
    position: relative;
    width: 100%;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.globe-container {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, var(--bg-secondary), var(--bg-primary));
    box-shadow: inset -20px -20px 60px rgba(0,0,0,0.5),
                0 0 60px rgba(34, 197, 94, 0.1);
    position: relative;
    border: 1px solid rgba(255,255,255,0.05);
}

.globe-overlay {
    position: absolute;
    top: -10%;
    left: -10%;
    width: 120%;
    height: 120%;
    background-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="48" fill="none" stroke="rgba(34,197,94,0.2)" stroke-width="0.5" stroke-dasharray="2 4"/></svg>');
    background-size: cover;
    border-radius: 50%;
}

.data-node {
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--accent-secondary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-secondary);
}

.node-1 { top: 30%; left: 20%; }
.node-2 { top: 60%; left: 70%; }
.node-3 { top: 40%; left: 80%; background: var(--accent-highlight); box-shadow: 0 0 10px var(--accent-highlight); }
.node-4 { top: 70%; left: 40%; }

.floating-card {
    position: absolute;
    background: rgba(7, 19, 15, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-glass);
    padding: 16px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    gap: 12px;
}

.fc-1 { top: 10%; right: 0; }
.fc-2 { bottom: 20%; left: -10%; }

/* Live Dashboard Preview */
.dashboard-preview {
    background: var(--bg-secondary);
    border-top: 1px solid rgba(255,255,255,0.02);
    border-bottom: 1px solid rgba(255,255,255,0.02);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
    max-width: 700px;
    margin-inline: auto;
}

.dashboard-mockup {
    background: var(--bg-primary);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.dashboard-header {
    padding: 20px 32px;
    border-bottom: 1px solid var(--border-glass);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255,255,255,0.02);
}

.live-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--accent-secondary);
    font-weight: 500;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-primary);
    border-radius: 50%;
}

.dashboard-tabs {
    display: flex;
    gap: 10px;
    padding: 16px 32px;
    border-bottom: 1px solid var(--border-glass);
    background: rgba(12, 31, 24, 0.5);
    overflow-x: auto;
}

.tab-btn {
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-secondary);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-family: var(--font-sans);
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.tab-btn:hover {
    color: var(--text-primary);
    background: rgba(255,255,255,0.05);
}

.tab-btn.active {
    background: rgba(34, 197, 94, 0.1);
    color: var(--accent-secondary);
    border-color: rgba(34, 197, 94, 0.2);
}

.dashboard-body {
    padding: 32px;
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 24px;
}

.chart-panel {
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 24px;
    height: 400px;
    position: relative;
    display: flex;
    flex-direction: column;
}

.chart-title {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.simulated-chart {
    flex: 1;
    display: flex;
    align-items: flex-end;
    gap: 10px;
    padding-top: 20px;
}

.chart-bar {
    flex: 1;
    background: linear-gradient(to top, rgba(34, 197, 94, 0.1), var(--accent-primary));
    border-radius: 4px 4px 0 0;
    min-height: 20%;
    opacity: 0.8;
    transition: height 1s ease, opacity 0.3s ease;
}

.chart-bar:hover {
    opacity: 1;
    background: linear-gradient(to top, rgba(34, 197, 94, 0.2), var(--accent-highlight));
}

.metrics-sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.metric-card {
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 20px;
}

.metric-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

.metric-value {
    font-size: 2rem;
    font-weight: 700;
    font-family: var(--font-heading);
    color: var(--text-primary);
}

.metric-trend {
    font-size: 0.85rem;
    color: var(--accent-secondary);
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 4px;
}

.metric-trend.negative {
    color: #f87171;
}

.tab-content {
    display: none;
    animation: fadeIn 0.4s ease;
}

.tab-content.active {
    display: block;
}

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

.feature-icon {
    width: 60px;
    height: 60px;
    background: rgba(34, 197, 94, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: var(--accent-secondary);
    font-size: 24px;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 16px;
}

/* Legal Pages & Forms */
.page-header {
    padding: 160px 0 80px;
    text-align: center;
    background: linear-gradient(to bottom, var(--bg-secondary), var(--bg-primary));
}

.legal-content {
    max-width: 800px;
    margin: 0 auto;
    padding-bottom: 120px;
}

.legal-content h2 {
    font-size: 1.5rem;
    margin-top: 40px;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.legal-content p, .legal-content li {
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.legal-content ul {
    margin-left: 20px;
    margin-bottom: 24px;
}

.legal-divider {
    height: 1px;
    background: var(--border-glass);
    margin: 40px 0;
}

/* Forms */
.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.form-control {
    width: 100%;
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    color: var(--text-primary);
    font-family: var(--font-sans);
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.1);
    background: rgba(255,255,255,0.05);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

/* Footer */
.site-footer {
    background: var(--bg-secondary);
    border-top: 1px solid rgba(255,255,255,0.05);
    padding: 80px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-brand p {
    color: var(--text-muted);
    margin-top: 16px;
    max-width: 300px;
}

.footer-heading {
    font-family: var(--font-heading);
    color: var(--text-primary);
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-muted);
}

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 32px;
    border-top: 1px solid rgba(255,255,255,0.05);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Utilities */
.text-center { text-align: center; }
.mt-4 { margin-top: 2rem; }
.mb-2 { margin-bottom: 1rem; }

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Map specific override for mock */
.map-panel {
    background-image: radial-gradient(circle at center, rgba(34, 197, 94, 0.05) 0%, transparent 70%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.map-grid {
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(34, 197, 94, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(34, 197, 94, 0.1) 1px, transparent 1px);
    background-size: 40px 40px;
    position: relative;
}