:root {
    /* Color Palette: Dark Glassmorphism */
    --bg-dark: #0a0f1a;
    --bg-darker: #05080f;
    --accent-primary: #00f0ff;
    --accent-secondary: #b026ff;
    --text-main: #e2e8f0;
    --text-muted: #94a3b8;
    --white: #ffffff;
    
    /* Glass Panel Config */
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
    
    /* Spacing Scale */
    --space-4: 4px;
    --space-8: 8px;
    --space-12: 12px;
    --space-16: 16px;
    --space-24: 24px;
    --space-40: 40px;
    --space-64: 64px;
    
    /* Typography */
    --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, h3, h4, p, ul, figure { margin: 0; padding: 0; }
ul { list-style: none; }
img, svg { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden; /* Only at root to prevent horizontal scroll from bg, inner elements handled responsibly */
    min-width: 320px;
}

/* Typography Overrides */
.brand, h1, h2, h3, h4, h5, h6, nav a {
    overflow-wrap: anywhere;
}
h1, h2, h3, h4 {
    color: var(--white);
    line-height: 1.2;
    margin-bottom: var(--space-16);
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.75rem); }
p { margin-bottom: var(--space-16); }

/* Utilities */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-24);
    min-width: 0; /* Flex/Grid shrink rule */
}
.section { padding: var(--space-64) 0; }
[hidden] { display: none !important; }

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

/* Buttons */
.btn-primary, .btn-outline, .btn-compact {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-12) var(--space-24);
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}
.btn-primary {
    background: var(--accent-primary);
    color: var(--bg-darker);
    border: none;
}
.btn-primary:hover { background: #00d6e6; }
.btn-outline {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--glass-border);
}
.btn-outline:hover { background: var(--glass-bg); }
.btn-compact {
    padding: var(--space-8) var(--space-16);
    background: var(--glass-bg);
    border: 1px solid var(--accent-primary);
    color: var(--accent-primary);
    font-size: 0.9rem;
}
.btn-compact:hover {
    background: var(--accent-primary);
    color: var(--bg-darker);
}

/* Glassmorphism Classes */
.glass, .glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
}
.neon-border {
    position: relative;
}
.neon-border::after {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}
.neon-text {
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--accent-primary);
}

/* Header */
.site-header {
    position: relative;
    height: 64px;
    border-bottom: 1px solid var(--glass-border);
    z-index: 100;
}
.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}
.brand {
    display: flex;
    align-items: center;
    gap: var(--space-8);
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--white);
}
.main-nav {
    display: flex;
    gap: var(--space-24);
}
.main-nav a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-main);
    transition: color 0.3s;
}
.main-nav a:hover { color: var(--accent-primary); }
.header-actions {
    display: flex;
    align-items: center;
    gap: var(--space-16);
}
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    cursor: pointer;
    padding: var(--space-4);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    padding: var(--space-64) 0;
    border-bottom: 1px solid var(--glass-border);
}
.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
}
.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hero-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, var(--bg-dark) 0%, rgba(10,15,26,0.8) 50%, rgba(10,15,26,0.4) 100%);
}
.hero-content {
    max-width: 600px;
    margin: 0;
}
.lead-text {
    font-size: 1.25rem;
    margin-bottom: var(--space-24);
    color: var(--text-muted);
}
.hero-cta { display: flex; gap: var(--space-16); }

/* Card Grid (Glass Overlay) */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto var(--space-40);
}
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-24);
    min-width: 0;
}
.glass-overlay-card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 400px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    transition: transform 0.3s ease, border-color 0.3s ease;
}
.glass-overlay-card:hover {
    transform: translateY(-6px);
    border-color: var(--accent-primary);
}
.card-img {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover;
    z-index: 1;
    transition: transform 0.5s ease;
}
.glass-overlay-card:hover .card-img { transform: scale(1.05); }
.card-overlay {
    position: relative;
    z-index: 2;
    padding: var(--space-24);
    background: linear-gradient(to top, rgba(5,8,15,0.95) 0%, rgba(5,8,15,0.7) 60%, transparent 100%);
    backdrop-filter: blur(4px);
    border-top: 1px solid rgba(255,255,255,0.05);
}
.card-overlay h3 { margin-bottom: var(--space-8); font-size: 1.25rem; }
.card-overlay p { font-size: 0.9rem; color: var(--text-muted); margin-bottom: var(--space-16); }
.card-tag {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(0, 240, 255, 0.1);
    color: var(--accent-primary);
    border: 1px solid rgba(0, 240, 255, 0.2);
    border-radius: 4px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Supporting Section */
.supporting-section {
    margin: var(--space-64) auto;
    border-radius: 16px;
    padding: var(--space-40);
}
.supporting-content { max-width: 800px; margin: 0 auto; }
.supporting-content p { margin-bottom: var(--space-16); }

/* Sub-page Article Styles */
.page-content { padding: var(--space-40) var(--space-24) var(--space-64); }
.article-glass-container {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: var(--space-40);
    max-width: 900px;
    margin: 0 auto;
}
.article-header { margin-bottom: var(--space-40); }
.article-meta { color: var(--accent-primary); font-size: 0.9rem; margin-bottom: var(--space-24); }
.article-hero-img {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
}
.article-body h2 {
    margin-top: var(--space-40);
    padding-bottom: var(--space-8);
    border-bottom: 1px solid var(--glass-border);
}
.article-body p { font-size: 1.05rem; margin-bottom: var(--space-16); }
.article-body ul { margin-bottom: var(--space-16); padding-left: var(--space-24); list-style: disc; }
.article-body li { margin-bottom: var(--space-8); }

/* Tables (Cookie Policy) */
.table-wrapper {
    overflow-x: auto;
    margin-bottom: var(--space-24);
}
table {
    width: 100%;
    min-width: 600px;
    border-collapse: collapse;
}
th, td {
    padding: var(--space-12) var(--space-16);
    border: 1px solid var(--glass-border);
    text-align: left;
}
th { background: rgba(255,255,255,0.05); color: var(--white); }

/* Contact Forms */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: var(--space-40);
}
.contact-info, .contact-form-wrapper {
    padding: var(--space-40);
    border-radius: 16px;
}
.info-block { margin-bottom: var(--space-24); }
.info-block h3 { margin-bottom: var(--space-8); font-size: 1.1rem; color: var(--accent-primary); }
.static-map {
    width: 100%;
    height: 200px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    margin-top: var(--space-24);
}
.form-group { margin-bottom: var(--space-24); position: relative; }
label { display: block; margin-bottom: var(--space-8); color: var(--text-main); font-weight: 500; }
input, select, textarea {
    width: 100%;
    padding: var(--space-12) var(--space-16);
    background: rgba(0,0,0,0.3);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: var(--white);
    font-family: inherit;
}
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 2px rgba(0, 240, 255, 0.2);
}
.error-msg {
    display: none;
    color: #ff4757;
    font-size: 0.85rem;
    margin-top: var(--space-4);
}
.form-group.is-invalid .error-msg { display: block; }
.form-group.is-invalid input, .form-group.is-invalid select, .form-group.is-invalid textarea {
    border-color: #ff4757;
}
.form-success {
    margin-top: var(--space-24);
    padding: var(--space-16);
    background: rgba(46, 213, 115, 0.1);
    border: 1px solid #2ed573;
    color: #2ed573;
    border-radius: 8px;
}

/* Footer */
.site-footer {
    border-top: 1px solid var(--glass-border);
    padding: var(--space-64) 0 var(--space-24);
    margin-top: auto;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: var(--space-40);
    margin-bottom: var(--space-40);
}
.company-details { font-size: 0.9rem; color: var(--text-muted); margin-top: var(--space-16); }
.footer-email { color: var(--accent-primary); font-weight: 500; }
.footer-links h4 { font-size: 1.1rem; margin-bottom: var(--space-16); }
.footer-links ul li { margin-bottom: var(--space-8); }
.footer-links a { color: var(--text-muted); transition: color 0.3s; }
.footer-links a:hover { color: var(--accent-primary); }
.footer-bottom {
    text-align: center;
    border-top: 1px solid var(--glass-border);
    padding-top: var(--space-24);
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: var(--space-24);
    left: var(--space-24);
    right: var(--space-24);
    max-width: 800px;
    margin: 0 auto;
    padding: var(--space-24);
    border-radius: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-24);
    justify-content: space-between;
    align-items: center;
    z-index: 9999;
}
.cookie-content { flex: 1; min-width: 250px; }
.cookie-content h4 { margin-bottom: var(--space-8); font-size: 1.1rem; }
.cookie-content p { margin: 0; font-size: 0.9rem; color: var(--text-muted); }
.cookie-content a { color: var(--accent-primary); text-decoration: underline; }
.cookie-actions { display: flex; gap: var(--space-12); flex-wrap: wrap; }

/* Responsive Adjustments */
@media (max-width: 768px) {
    .site-header { height: 52px; }
    .main-nav {
        display: none;
        position: absolute;
        top: 52px;
        left: 0;
        width: 100%;
        background: var(--bg-dark);
        border-bottom: 1px solid var(--glass-border);
        flex-direction: column;
        padding: var(--space-24);
        gap: var(--space-16);
    }
    .main-nav.is-open { display: flex; }
    .menu-toggle { display: block; }
    .btn-compact { display: none; } /* Hide compact CTA on mobile header if space tight */
    .hero { min-height: 50vh; text-align: center; }
    .hero-gradient { background: linear-gradient(to top, var(--bg-dark) 0%, rgba(10,15,26,0.5) 100%); }
    .hero-content { margin: 0 auto; }
    .hero-cta { justify-content: center; }
    .contact-grid, .footer-grid { grid-template-columns: 1fr; gap: var(--space-24); }
    .article-glass-container { padding: var(--space-24); }
    .supporting-section { padding: var(--space-24); }
    .neon-border::after { padding: 0; display: none; } /* Offset frame reduction rule */
}

@media (max-width: 400px) {
    .site-header { height: 48px; }
    .hero h1 { font-size: 1.75rem; }
    .cookie-banner { bottom: 0; left: 0; right: 0; border-radius: 0; border-left: none; border-right: none; border-bottom: none; }
    .cookie-actions { width: 100%; flex-direction: column; }
    .cookie-actions button { width: 100%; }
}

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