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

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, sans-serif;
    line-height: 1.6;
    color: #f0f0f0;
    background: #000;
}

@font-face {
    font-family: 'Open Sans';
    src: url('/fonts/OpenSans-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

a {
    color: #00faff;
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}

h1, h2, h3, h4 {
    line-height: 1.3;
    font-weight: 700;
}

h1 { font-size: 2.25rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.25rem; }

p { margin-bottom: 1rem; }

ul, ol {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

code {
    background: #111d33;
    padding: 0.15em 0.4em;
    border-radius: 4px;
    font-size: 0.9em;
    font-family: 'Fira Code', 'Consolas', monospace;
    word-break: break-all;
    color: #98c3ff;
}

img {
    max-width: 100%;
    height: auto;
}

/* Selection */
::selection {
    background: #8ec4ff;
    color: #0b1521;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: #091119;
}
::-webkit-scrollbar-thumb {
    background: #294264;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #3a5a80;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.6rem 1.4rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s ease;
    text-align: center;
}
.btn:hover {
    text-decoration: none;
    opacity: 0.9;
}
.btn-primary {
    background: #00faff;
    color: #000;
    border-color: #00faff;
}
.btn-primary:hover {
    background: #00e0e5;
    border-color: #00e0e5;
}
.btn-outline {
    background: transparent;
    color: #00faff;
    border-color: #294264;
}
.btn-outline:hover {
    background: #111d33;
    color: #00faff;
    border-color: #00faff;
}
.btn-lg {
    padding: 0.8rem 2rem;
    font-size: 1.05rem;
}
.btn-sm {
    padding: 0.35rem 0.9rem;
    font-size: 0.85rem;
}

/* Layout */
#site-wrap {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

#page-wrap {
    flex: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    width: 100%;
}

/* Header */
#site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.8rem 2rem;
    background: #0b1521;
    border-bottom: 1px solid #294264;
    position: sticky;
    top: 0;
    z-index: 100;
}

#logo-wrap {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

#logo {
    font-size: 1.4rem;
    font-weight: 800;
    text-decoration: none;
    color: #f0f0f0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.site-tagline {
    font-size: 0.8rem;
    color: #7a8ea6;
    display: none;
}

@media (min-width: 768px) {
    .site-tagline { display: inline; }
}

/* Navigation */
.site-nav {
    display: flex;
    align-items: center;
}
.nav-inner {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}
.nav-link {
    padding: 0.4rem 0.8rem;
    color: #98c3ff;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.15s;
    cursor: pointer;
}
.nav-link:hover {
    background: #111d33;
    color: #f0f0f0;
    text-decoration: none;
}
.nav-link.active {
    color: #00faff;
    background: rgba(0, 250, 255, 0.08);
}

/* Dropdown nav */
.nav-dropdown {
    position: relative;
}
.nav-dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}
.nav-arrow {
    font-size: 0.7em;
}
.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #0b1521;
    border: 1px solid #294264;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
    min-width: 160px;
    padding: 0.4rem 0;
    z-index: 200;
}
.nav-dropdown:hover .nav-dropdown-menu {
    display: block;
}
.nav-dropdown-item {
    display: block;
    padding: 0.5rem 1rem;
    color: #98c3ff;
    font-size: 0.9rem;
    text-decoration: none;
}
.nav-dropdown-item:hover {
    background: #111d33;
    color: #f0f0f0;
    text-decoration: none;
}

/* Footer */
#site-footer {
    background: transparent;
    color: #7a8ea6;
    padding: 2.5rem 2rem;
    margin-top: auto;
    border-top: 1px solid #294264;
}
.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}
.footer-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: #f0f0f0;
}
.footer-desc {
    font-size: 0.85rem;
    margin: 0.3rem 0 1rem;
    color: #7a8ea6;
}
.footer-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1.2rem;
}
.footer-links a {
    color: #98c3ff;
    font-size: 0.85rem;
    text-decoration: none;
}
.footer-links a:hover {
    color: #00faff;
}
.footer-copy {
    font-size: 0.8rem;
    color: #7a8ea6;
}
.footer-copy a {
    color: #98c3ff;
}

/* Cookie banner */
#cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #0b1521;
    color: #98c3ff;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    z-index: 1000;
    font-size: 0.85rem;
    border-top: 1px solid #294264;
}
#cookie-banner p {
    margin: 0;
}
#cookie-banner a {
    color: #a5b4fc;
}

/* Section helpers */
.section-title {
    text-align: center;
    margin-bottom: 0.5rem;
}
.section-subtitle {
    text-align: center;
    color: #7a8ea6;
    margin-bottom: 2rem;
}

/* Responsive */
@media (max-width: 768px) {
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.4rem; }

    #site-header {
        flex-direction: column;
        gap: 0.5rem;
        padding: 0.6rem 1rem;
    }

    .nav-inner {
        flex-wrap: wrap;
        justify-content: center;
    }

    #page-wrap {
        padding: 1.5rem 1rem;
    }

    #cookie-banner {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
    }
}
