:root {
    --bg: #050508;
    --surface: rgba(15, 15, 20, 0.7);
    --primary: #00f2ff;
    --accent: #ff3e3e;
    --text: #e0e0e0;
    --text-dim: #a0a0a0;
    --glass: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.1);
    --container-width: 1200px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg);
}
::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.container.narrow {
    max-width: 800px;
}

.text-center { text-align: center; }

/* Header */
#main-header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(5, 5, 8, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    padding: 15px 0;
}

#main-header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 1.5rem;
    letter-spacing: 2px;
}

.logo span {
    color: var(--primary);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.nav-links a.active {
    color: var(--primary);
    border-bottom: 2px solid var(--primary);
}

.section-subtitle {
    text-align: center;
    color: var(--text-dim);
    margin-bottom: 40px;
    font-size: 1.1rem;
}

/* Hero Section */
#hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: url('../img/hero.png') no-repeat center center/cover;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(5, 5, 8, 0.4) 0%, rgba(5, 5, 8, 1) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: left;
}

.hero-content h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 5rem;
    font-weight: 900;
    margin: 10px 0;
    line-height: 1;
    color: #fff;
    text-shadow: 0 0 20px rgba(0, 242, 255, 0.4);
}

.badge {
    display: inline-block;
    background: rgba(0, 242, 255, 0.1);
    color: var(--primary);
    padding: 5px 15px;
    border: 1px solid var(--primary);
    border-radius: 5px;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-dim);
    max-width: 600px;
    margin-bottom: 30px;
}

.hero-btns {
    display: flex;
    gap: 15px;
}

.btn {
    padding: 15px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 800;
    font-size: 0.9rem;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.btn.primary {
    background: var(--primary);
    color: #000;
    box-shadow: 0 0 20px rgba(0, 242, 255, 0.3);
}

.btn.secondary {
    border: 2px solid var(--text);
    color: var(--text);
}

.btn.outline {
    border: 2px solid var(--primary);
    color: var(--primary);
    background: transparent;
}

.btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

.btn.primary:hover {
    box-shadow: 0 0 30px rgba(0, 242, 255, 0.5);
}

/* Sections */
.section {
    padding: 100px 0;
}

.page-content {
    padding-top: 80px; /* Offset for sticky header */
}

.section.alternate {
    background: #08080c;
}

.section-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 50px;
    text-transform: uppercase;
}

/* Map */
.map-wrapper {
    width: 100%;
    height: 600px;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
}

#windy-map {
    width: 100%;
    height: 100%;
}

.glass {
    background: var(--glass);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 30px;
}

/* Alerts */
.alert-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 30px;
}

.alert-info h3 {
    color: var(--primary);
    font-size: 1.5rem;
    margin-bottom: 15px;
}

#alert-status {
    margin-top: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #00ff55;
    display: flex;
    align-items: center;
}

.pulse {
    width: 10px;
    height: 10px;
    background: #00ff55;
    border-radius: 50%;
    display: inline-block;
    margin-right: 10px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(0, 255, 85, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(0, 255, 85, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 255, 85, 0); }
}

#alert-ticker {
    height: 300px;
    overflow-y: auto;
}

.ticker-header {
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 15px;
    border-bottom: 2px solid var(--accent);
    display: inline-block;
}

.warning-item {
    margin-bottom: 15px;
    padding: 15px;
    border-left: 4px solid var(--accent);
    background: rgba(255, 62, 62, 0.05);
}

.warning-item h4 {
    color: var(--accent);
    font-size: 1rem;
}

/* Changelog */
.changelog-container {
    text-align: left;
}

.log-entry {
    margin-bottom: 20px;
}

.log-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

.version {
    background: var(--primary);
    color: #000;
    padding: 2px 10px;
    border-radius: 4px;
    font-weight: 800;
}

.date { color: var(--text-dim); font-size: 0.9rem; }

.log-details {
    list-style: none;
    padding-left: 20px;
}

.log-details li {
    position: relative;
    margin-bottom: 10px;
}

.log-details li::before {
    content: '→';
    position: absolute;
    left: -20px;
    color: var(--primary);
}

/* Footer */
#main-footer {
    padding: 50px 0;
    border-top: 1px solid var(--glass-border);
    background: #050508;
}

.discord span {
    color: var(--primary);
    font-weight: 700;
}

.copyright {
    margin-top: 20px;
    font-size: 0.8rem;
    color: var(--text-dim);
}

/* Responsive */
@media (max-width: 992px) {
    .alert-grid { grid-template-columns: 1fr; }
    .hero-content h1 { font-size: 3.5rem; }
}
