:root {
    /* Color Palette - Dark Glassmorphism */
    --bg-base: #0a0b10;
    --bg-surface: rgba(20, 22, 35, 0.4);
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-bg-hover: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.1);
    
    --neon-cyan: #00f3ff;
    --neon-cyan-glow: rgba(0, 243, 255, 0.4);
    --neon-purple: #bc13fe;
    --neon-purple-glow: rgba(188, 19, 254, 0.4);
    
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --text-dark: #020617;
    
    /* Spacing Scale (px) */
    --sp-4: 4px;
    --sp-8: 8px;
    --sp-12: 12px;
    --sp-16: 16px;
    --sp-24: 24px;
    --sp-40: 40px;
    --sp-64: 64px;
    
    /* Typography */
    --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    lang: en;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--bg-base);
    background-image: 
        radial-gradient(circle at 15% 50%, rgba(188, 19, 254, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 85% 30%, rgba(0, 243, 255, 0.08) 0%, transparent 40%);
    background-attachment: fixed;
    color: var(--text-main);
    font-family: var(--font-sans);
    line-height: 1.6;
    min-width: 280px;
    overflow-wrap: anywhere;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    margin: 0 0 var(--sp-24) 0;
    line-height: 1.2;
    font-weight: 700;
    color: var(--text-main);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.75rem); }

p {
    margin: 0 0 var(--sp-16) 0;
}

a {
    color: var(--neon-cyan);
    text-decoration: none;
    transition: color 0.2s ease, text-shadow 0.2s ease;
}

a:hover {
    color: #fff;
    text-shadow: 0 0 8px var(--neon-cyan-glow);
}

/* Accessibility */
:focus-visible {
    outline: 2px solid var(--neon-cyan);
    outline-offset: 4px;
    border-radius: 2px;
}

/* Layout Utilities */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--sp-24);
}

.section {
    padding: var(--sp-64) 0;
}

.grid {
    display: grid;
    gap: var(--sp-40);
    min-width: 0;
}

.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }

/* Glassmorphism Elements */
.glass-panel {
    background: var(--bg-surface);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: var(--sp-40);
    position: relative;
    overflow: hidden;
}

.glass-panel::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--neon-purple), transparent);
    opacity: 0.5;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--sp-12) var(--sp-24);
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    border: 1px solid transparent;
    color: var(--text-main);
}

.btn-primary {
    background: linear-gradient(135deg, rgba(0, 243, 255, 0.1), rgba(188, 19, 254, 0.1));
    border-color: var(--neon-cyan);
    box-shadow: 0 0 15px var(--neon-cyan-glow);
    color: var(--neon-cyan);
}

.btn-primary:hover {
    background: linear-gradient(135deg, rgba(0, 243, 255, 0.2), rgba(188, 19, 254, 0.2));
    color: #fff;
    box-shadow: 0 0 25px var(--neon-cyan-glow);
}

.btn-outline {
    background: transparent;
    border-color: var(--glass-border);
}

.btn-outline:hover {
    background: var(--glass-bg-hover);
    border-color: var(--neon-purple);
}

/* Header */
.site-header {
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--sp-24);
    background: rgba(10, 11, 16, 0.8);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--glass-border);
}

.brand {
    display: flex;
    align-items: center;
    gap: var(--sp-8);
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--text-main);
    z-index: 100;
}

.brand svg {
    flex-shrink: 0;
}

.site-nav {
    display: flex;
    gap: var(--sp-24);
    align-items: center;
}

.site-nav a {
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 500;
}

.site-nav a:hover {
    color: var(--text-main);
}

.nav-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-main);
    cursor: pointer;
    padding: var(--sp-8);
    z-index: 100;
}

.header-cta {
    display: flex;
    align-items: center;
}

@media (max-width: 768px) {
    .site-header {
        height: 52px;
        padding: 0 var(--sp-16);
    }
    
    .nav-toggle {
        display: block;
    }
    
    .site-nav {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(10, 11, 16, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: var(--sp-40);
        font-size: 1.5rem;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
        z-index: 90;
    }
    
    .site-nav.is-active {
        opacity: 1;
        visibility: visible;
    }
    
    .header-cta {
        display: none;
    }
}

/* Card Style 3: Glass Overlay */
.card-glass-overlay {
    display: block;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 4/3;
    text-decoration: none;
    color: var(--text-main);
    border: 1px solid var(--glass-border);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.card-glass-overlay img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card-overlay-panel {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--sp-24);
    background: linear-gradient(to top, rgba(10, 11, 16, 0.95) 0%, rgba(10, 11, 16, 0.6) 70%, transparent 100%);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    transform: translateY(0);
    transition: transform 0.3s ease, background 0.3s ease;
}

.card-overlay-panel h3 {
    margin-bottom: var(--sp-8);
    font-size: 1.25rem;
}

.card-overlay-panel p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-glass-overlay:hover {
    transform: translateY(-4px);
    border-color: var(--neon-cyan);
    box-shadow: 0 10px 30px rgba(0, 243, 255, 0.15);
}

.card-glass-overlay:hover img {
    transform: scale(1.05);
}

.card-glass-overlay:hover .card-overlay-panel {
    background: linear-gradient(to top, rgba(10, 11, 16, 0.98) 0%, rgba(10, 11, 16, 0.8) 80%, rgba(10, 11, 16, 0.4) 100%);
}

/* Hero Section */
.hero {
    padding: 120px 0 var(--sp-64) 0;
    text-align: center;
    position: relative;
}

.hero::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, var(--neon-purple-glow) 0%, transparent 70%);
    z-index: -1;
    filter: blur(60px);
    opacity: 0.5;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto var(--sp-40) auto;
}

/* Stats / Data Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--sp-24);
    margin: var(--sp-40) 0;
}

.stat-item {
    padding: var(--sp-24);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--neon-cyan);
    margin-bottom: var(--sp-12);
    text-shadow: 0 0 10px var(--neon-cyan-glow);
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Content Pages */
.content-header {
    padding: var(--sp-64) 0 var(--sp-40) 0;
    border-bottom: 1px solid var(--glass-border);
    margin-bottom: var(--sp-40);
}

.content-body {
    max-width: 800px;
    margin: 0 auto;
}

.content-body h2 {
    margin-top: var(--sp-64);
    color: var(--neon-cyan);
}

.content-body h3 {
    margin-top: var(--sp-40);
}

.content-body ul {
    margin-bottom: var(--sp-24);
    padding-left: var(--sp-24);
}

.content-body li {
    margin-bottom: var(--sp-8);
}

/* Tables */
.table-wrapper {
    width: 100%;
    overflow-x: auto;
    margin: var(--sp-40) 0;
    border-radius: 8px;
    border: 1px solid var(--glass-border);
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

th, td {
    padding: var(--sp-16);
    text-align: left;
    border-bottom: 1px solid var(--glass-border);
}

th {
    background: rgba(255, 255, 255, 0.05);
    font-weight: 600;
    color: var(--neon-cyan);
}

tr:last-child td {
    border-bottom: none;
}

/* Forms */
.form-group {
    margin-bottom: var(--sp-24);
}

.form-label {
    display: block;
    margin-bottom: var(--sp-8);
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: var(--sp-16);
    background: rgba(10, 11, 16, 0.5);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: var(--text-main);
    font-family: inherit;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--neon-cyan);
    box-shadow: 0 0 0 2px var(--neon-cyan-glow);
}

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

.form-control.is-invalid {
    border-color: #ef4444;
}

.error-msg {
    display: none;
    color: #ef4444;
    font-size: 0.85rem;
    margin-top: var(--sp-4);
}

.form-control.is-invalid + .error-msg {
    display: block;
}

/* Map Block */
.static-map {
    width: 100%;
    height: 300px;
    background: linear-gradient(45deg, #0f172a, #1e293b);
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.static-map::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: 
        linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
    background-size: 20px 20px;
}

.map-pin {
    z-index: 2;
    color: var(--neon-cyan);
    filter: drop-shadow(0 0 10px var(--neon-cyan-glow));
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Footer */
.site-footer {
    margin-top: var(--sp-64);
    padding: var(--sp-64) 0 var(--sp-24) 0;
    border-top: 1px solid var(--glass-border);
    background: rgba(10, 11, 16, 0.8);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--sp-40);
    margin-bottom: var(--sp-64);
}

.footer-col h4 {
    color: var(--text-main);
    margin-bottom: var(--sp-16);
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col li {
    margin-bottom: var(--sp-8);
}

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

.footer-col a:hover {
    color: var(--neon-cyan);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--sp-24);
    border-top: 1px solid var(--glass-border);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: var(--sp-24);
    left: var(--sp-24);
    right: var(--sp-24);
    max-width: 800px;
    margin: 0 auto;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: var(--sp-24);
    z-index: 1000;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    transform: translateY(150%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.cookie-banner.is-visible {
    transform: translateY(0);
}

.cookie-banner[hidden] {
    display: none;
}

.cookie-content {
    margin-bottom: var(--sp-16);
}

.cookie-actions {
    display: flex;
    gap: var(--sp-12);
    flex-wrap: wrap;
}

/* Responsive Overrides */
@media (max-width: 400px) {
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    .section { padding: var(--sp-40) 0; }
    .glass-panel { padding: var(--sp-24); }
    .cookie-actions { flex-direction: column; }
    .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    *, ::before, ::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}