@charset "UTF-8";

/* ==========================================================================
   RESET & FOUNDATION
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
}

:root {
    /* Color Palette */
    --bg-color: #0b0d14;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --accent-primary: #38bdf8;
    --accent-secondary: #c084fc;
    
    /* Dark Glassmorphism */
    --glass-bg: rgba(15, 23, 42, 0.4);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-glow: rgba(56, 189, 248, 0.15);
    
    /* Spacing Scale */
    --sp-4: 4px;
    --sp-8: 8px;
    --sp-12: 12px;
    --sp-16: 16px;
    --sp-24: 24px;
    --sp-40: 40px;
    --sp-64: 64px;

    /* Header */
    --header-height: 64px;
}

@media (max-width: 767px) {
    :root {
        --header-height: 52px;
    }
}

body {
    margin: 0;
    padding: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    min-width: 320px;
    position: relative;
    z-index: 0;
}

/* Background Orbs for Glass Refraction */
.bg-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    pointer-events: none;
}
.bg-orb.orb-1 {
    top: -10%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: var(--glass-glow);
}
.bg-orb.orb-2 {
    bottom: -10%;
    right: -10%;
    width: 40vw;
    height: 40vw;
    background: rgba(192, 132, 252, 0.1);
}

/* Typography & Responsiveness */
h1, h2, h3, h4, h5, h6, .brand-name, .nav-link {
    margin: 0 0 var(--sp-24) 0;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

p, ul, ol {
    margin: 0 0 var(--sp-24) 0;
    overflow-wrap: break-word;
}

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

a:hover {
    color: var(--text-main);
    text-shadow: 0 0 8px var(--accent-primary);
}

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

@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 & COMPONENTS
   ========================================================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--sp-24);
    min-width: 0;
}

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

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

.header-left {
    display: flex;
    align-items: center;
    gap: var(--sp-8);
}

.brand-name {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
    color: var(--text-main);
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.header-center {
    display: flex;
    gap: var(--sp-24);
    min-width: 0;
}

.nav-link {
    color: var(--text-main);
    font-weight: 500;
    font-size: 0.95rem;
    margin: 0;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--sp-8) var(--sp-16);
    background: rgba(56, 189, 248, 0.1);
    color: var(--accent-primary);
    border: 1px solid var(--accent-primary);
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn:hover {
    background: var(--accent-primary);
    color: var(--bg-color);
    box-shadow: 0 0 16px var(--glass-glow);
}

.btn-primary {
    background: var(--accent-primary);
    color: var(--bg-color);
}
.btn-primary:hover {
    background: #0ea5e9;
    color: #fff;
}

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

@media (max-width: 767px) {
    .header-center {
        display: none;
        position: absolute;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: rgba(11, 13, 20, 0.95);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        flex-direction: column;
        padding: var(--sp-24);
        border-bottom: 1px solid var(--glass-border);
        gap: var(--sp-16);
        z-index: 50;
    }
    .header-center.is-visible {
        display: flex;
    }
    .header-right .btn {
        display: none;
    }
    .nav-toggle {
        display: block;
    }
}

/* Glassmorphism Panels */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: var(--sp-40);
    position: relative;
    min-width: 0;
}

.neon-edge {
    position: relative;
}
.neon-edge::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    background: linear-gradient(135deg, var(--accent-primary), transparent 50%, var(--accent-secondary));
    z-index: -1;
    opacity: 0.5;
}

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

.hero h1 {
    font-size: clamp(2rem, 5vw, 4rem);
    margin-bottom: var(--sp-24);
}

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

/* Grid & Cards (Glass Overlay Style) */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--sp-24);
    min-width: 0;
}

.card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    min-height: 340px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    text-decoration: none;
    min-width: 0;
}

.card-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    transition: transform 0.4s ease;
}

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

.card-overlay {
    position: relative;
    z-index: 2;
    background: linear-gradient(to top, rgba(11, 13, 20, 0.95) 20%, rgba(11, 13, 20, 0.6) 80%, transparent);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    padding: var(--sp-24);
    border-top: 1px solid var(--glass-border);
    min-width: 0;
}

.card-title {
    color: var(--text-main);
    font-size: 1.5rem;
    margin-bottom: var(--sp-8);
}

.card-desc {
    color: var(--text-muted);
    margin-bottom: 0;
    font-size: 0.95rem;
}

/* Content Pages */
.content-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.content-wrapper h2 {
    margin-top: var(--sp-40);
    color: var(--accent-primary);
}

.content-wrapper ul {
    padding-left: var(--sp-24);
}

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

.stat-block {
    display: flex;
    align-items: baseline;
    gap: var(--sp-12);
    margin-bottom: var(--sp-24);
    background: rgba(0,0,0,0.2);
    padding: var(--sp-16);
    border-radius: 8px;
}
.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-secondary);
}

.table-wrapper {
    overflow-x: auto;
    margin-bottom: var(--sp-24);
    border-radius: 8px;
    border: 1px solid var(--glass-border);
}

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

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(--accent-primary);
}

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

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

input, textarea {
    width: 100%;
    padding: var(--sp-12);
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    border-radius: 4px;
    color: var(--text-main);
    font-family: inherit;
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 8px rgba(56, 189, 248, 0.2);
}

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

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

.map-block {
    width: 100%;
    height: 300px;
    background: linear-gradient(45deg, rgba(15,23,42,0.8), rgba(30,41,59,0.8));
    border-radius: 8px;
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: var(--sp-24);
}

/* Footer */
.site-footer {
    border-top: 1px solid var(--glass-border);
    background: rgba(11, 13, 20, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: var(--sp-64) 0 var(--sp-40);
    margin-top: var(--sp-64);
}

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

.footer-col h4 {
    color: var(--accent-primary);
    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(--accent-secondary);
}

.footer-bottom {
    border-top: 1px solid var(--glass-border);
    padding-top: var(--sp-24);
    text-align: center;
    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);
    background: var(--glass-bg);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: var(--sp-24);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: var(--sp-16);
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

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

.cookie-content {
    flex: 1;
}

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

@media (min-width: 768px) {
    .cookie-banner {
        flex-direction: row;
        align-items: center;
        max-width: 900px;
        margin: 0 auto;
    }
    .cookie-actions {
        flex-wrap: nowrap;
    }
}

/* Responsive Overrides */
@media (max-width: 399px) {
    .glass-panel {
        padding: var(--sp-24);
    }
    .hero h1 {
        font-size: 1.75rem;
    }
}