:root {
    /* Spacing Scale */
    --space-4: 4px;
    --space-8: 8px;
    --space-12: 12px;
    --space-16: 16px;
    --space-24: 24px;
    --space-40: 40px;
    --space-64: 64px;

    /* Dark Glassmorphism Aesthetics */
    --clr-bg: #0B0D17;
    --clr-surface: rgba(255, 255, 255, 0.03);
    --clr-surface-blur: blur(12px);
    --clr-border: rgba(0, 240, 255, 0.2);
    --clr-border-hover: rgba(0, 240, 255, 0.6);
    --clr-neon-cyan: #00F0FF;
    --clr-neon-cyan-dim: rgba(0, 240, 255, 0.15);
    --clr-neon-purple: #B026FF;
    --clr-text: #F8F9FA;
    --clr-text-mut: #A1A5B5;
    
    /* Typography */
    --font-base: system-ui, -apple-system, sans-serif;
    --font-head: 'Inter', system-ui, sans-serif;
}

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

html {
    scroll-behavior: smooth;
    background-color: var(--clr-bg);
    color: var(--clr-text);
    font-family: var(--font-base);
    line-height: 1.6;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

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

a:hover {
    color: var(--clr-text);
}

img, svg {
    display: block;
    max-width: 100%;
}

h1, h2, h3, h4, .brand-name {
    font-family: var(--font-head);
    font-weight: 700;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); margin-bottom: var(--space-24); }
h2 { font-size: clamp(1.5rem, 4vw, 2.2rem); margin-bottom: var(--space-16); margin-top: var(--space-40); }
h3 { font-size: clamp(1.2rem, 3vw, 1.5rem); margin-bottom: var(--space-8); }
p { margin-bottom: var(--space-16); }
ul { padding-left: var(--space-24); margin-bottom: var(--space-16); }

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

/* Reduced Motion */
@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;
    }
}

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

.section-spacing {
    padding-top: var(--space-64);
    padding-bottom: var(--space-64);
}

#main-content {
    flex-grow: 1;
}

/* Glassmorphism Classes */
.glass-panel {
    background: var(--clr-surface);
    backdrop-filter: var(--clr-surface-blur);
    -webkit-backdrop-filter: var(--clr-surface-blur);
    border: 1px solid var(--clr-border);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

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

.btn-primary {
    background: linear-gradient(90deg, var(--clr-neon-cyan), var(--clr-neon-purple));
    color: #000;
    border: none;
}
.btn-primary:hover {
    box-shadow: 0 0 15px var(--clr-neon-cyan-dim);
    color: #fff;
}

.btn-outline {
    background: transparent;
    color: var(--clr-neon-cyan);
    border-color: var(--clr-neon-cyan);
}
.btn-outline:hover {
    background: var(--clr-neon-cyan-dim);
    color: var(--clr-text);
}

.btn-block {
    width: 100%;
}

/* Header & Nav */
.site-header {
    position: relative;
    z-index: 100;
    height: 64px;
    border-bottom: 1px solid var(--clr-border);
    background: rgba(11, 13, 23, 0.8);
    backdrop-filter: var(--clr-surface-blur);
    -webkit-backdrop-filter: var(--clr-surface-blur);
}

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

.brand {
    display: flex;
    align-items: center;
    gap: var(--space-8);
    color: var(--clr-text);
}

.brand-mark {
    width: 32px;
    height: 32px;
}

.site-nav {
    display: flex;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: var(--space-24);
    margin: 0;
    padding: 0;
}

.nav-list a {
    color: var(--clr-text-mut);
    font-weight: 500;
}

.nav-list a:hover,
.nav-list a[aria-current="page"] {
    color: var(--clr-neon-cyan);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--clr-text);
    cursor: pointer;
    padding: var(--space-8);
}

.hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background: currentColor;
    position: relative;
}
.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background: currentColor;
    left: 0;
}
.hamburger::before { top: -6px; }
.hamburger::after { bottom: -6px; }

/* Responsive Header */
@media (max-width: 767px) {
    .site-header {
        height: 52px;
    }
    .header-actions {
        display: none;
    }
    .nav-toggle {
        display: block;
        z-index: 200;
    }
    
    .site-nav {
        position: fixed;
        inset: 0;
        background: var(--clr-bg);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
        z-index: 150;
    }
    
    .site-nav.is-visible {
        opacity: 1;
        pointer-events: auto;
    }
    
    .nav-list {
        flex-direction: column;
        align-items: center;
        gap: var(--space-40);
        font-size: 1.5rem;
    }
}

@media (max-width: 399px) {
    .brand-name {
        font-size: 1.2rem;
    }
}

/* Home Hero */
.hero {
    position: relative;
    border-bottom: 1px solid var(--clr-border);
    overflow: hidden;
}

.hero-inner {
    position: relative;
    z-index: 2;
    padding-top: 120px;
    padding-bottom: 120px;
}

.hero-content {
    max-width: 600px;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--clr-text-mut);
    margin-bottom: var(--space-40);
}

.hero-cta {
    display: flex;
    gap: var(--space-16);
    flex-wrap: wrap;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, var(--clr-bg) 0%, transparent 100%);
}

/* Grid & Cards (Glass Overlay) */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto var(--space-64);
}

.grid-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-40);
    min-width: 0;
}

.card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    min-height: 420px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    border: 1px solid var(--clr-border);
    transition: box-shadow 0.3s, border-color 0.3s;
    min-width: 0;
}

.card:hover {
    border-color: var(--clr-neon-cyan);
    box-shadow: 0 0 20px var(--clr-neon-cyan-dim);
}

.card-media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.card-overlay {
    position: relative;
    z-index: 2;
    background: rgba(11, 13, 23, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: var(--space-24);
    border-top: 1px solid var(--clr-border);
}

.card-meta {
    font-size: 0.85rem;
    color: var(--clr-neon-cyan);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--space-8);
}

.card-title {
    color: var(--clr-text);
}

.card-excerpt {
    color: var(--clr-text-mut);
    font-size: 0.95rem;
    margin-bottom: var(--space-16);
}

.card-link {
    font-weight: 600;
    color: var(--clr-neon-purple);
}

/* Article / Sub-pages */
.article-layout {
    max-width: 900px;
}

.article-header {
    text-align: center;
    margin-bottom: var(--space-40);
}

.lead-text {
    font-size: 1.2rem;
    color: var(--clr-text-mut);
}

.article-hero {
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: var(--space-40);
    border: 1px solid var(--clr-border);
}

.article-img {
    width: 100%;
    height: 500px;
    object-fit: cover;
}

.stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-24);
    padding: var(--space-24);
    border-radius: 12px;
    margin-bottom: var(--space-64);
    text-align: center;
}

.stat-block {
    display: flex;
    flex-direction: column;
    gap: var(--space-12);
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    font-family: var(--font-head);
    color: var(--clr-neon-cyan);
}

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

.article-content {
    font-size: 1.1rem;
    color: #E2E8F0;
}

/* Info Block */
.info-block {
    padding: var(--space-40);
    border-radius: 12px;
}

/* Contact Grid */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-64);
    min-width: 0;
}

@media (max-width: 767px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

.contact-form-wrapper {
    padding: var(--space-40);
    border-radius: 12px;
}

.form-group {
    margin-bottom: var(--space-24);
    display: flex;
    flex-direction: column;
    gap: var(--space-8);
}

label {
    font-weight: 500;
    color: var(--clr-text-mut);
}

input, textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--clr-border);
    color: var(--clr-text);
    padding: var(--space-16);
    border-radius: 4px;
    font-family: var(--font-base);
    transition: border-color 0.3s;
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--clr-neon-cyan);
}

.error-msg {
    color: #ff4b4b;
    font-size: 0.85rem;
}

.is-invalid input, .is-invalid textarea {
    border-color: #ff4b4b;
}

.info-card {
    padding: var(--space-40);
    border-radius: 12px;
    margin-bottom: var(--space-24);
}

address {
    font-style: normal;
    color: var(--clr-text-mut);
    margin-bottom: var(--space-16);
}

.static-map {
    height: 300px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.map-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #111424, #1a1e36);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-16);
}

.map-pin {
    width: 48px;
    height: 48px;
    color: var(--clr-neon-cyan);
}

/* Tables */
.table-wrapper {
    overflow-x: auto;
    margin-bottom: var(--space-24);
}

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

.data-table th, .data-table td {
    padding: var(--space-16);
    text-align: left;
    border-bottom: 1px solid var(--clr-border);
}

.data-table th {
    background: rgba(255, 255, 255, 0.05);
    color: var(--clr-neon-cyan);
}

/* Footer */
.site-footer {
    border-top: 1px solid var(--clr-border);
    background: #05060A;
    padding-top: var(--space-64);
    padding-bottom: var(--space-24);
    margin-top: auto;
}

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

.footer-brand p {
    color: var(--clr-text-mut);
    margin-top: var(--space-16);
}

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

.footer-links a, .footer-company address a {
    color: var(--clr-text-mut);
    text-decoration: none;
}
.footer-links a:hover, .footer-company address a:hover {
    color: var(--clr-neon-cyan);
}

.footer-bottom {
    text-align: center;
    color: var(--clr-text-mut);
    font-size: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: var(--space-24);
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: var(--space-24);
    left: var(--space-24);
    right: var(--space-24);
    z-index: 999;
    padding: var(--space-24);
    border-radius: 12px;
    max-width: 1000px;
    margin: 0 auto;
}

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

.cookie-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-24);
}

.cookie-text {
    flex: 1;
    min-width: 280px;
}

.cookie-text p {
    margin: 0;
    color: var(--clr-text-mut);
    font-size: 0.9rem;
}

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

@media (max-width: 600px) {
    .cookie-banner {
        bottom: 0;
        left: 0;
        right: 0;
        border-radius: 12px 12px 0 0;
    }
    .cookie-actions {
        width: 100%;
    }
    .cookie-actions .btn {
        flex: 1;
        font-size: 0.85rem;
        padding: var(--space-12) var(--space-8);
    }
}