/* ==================== RESET & BASE ==================== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --bg-deep: #060d1a;
    --bg-card: #0c1829;
    --border: #1a3050;
    --accent: #38BDF8;
    --accent-dark: #0369A1;
    --cyan: #22D3EE;
    --red: #FF4444;
    --text: #ccc;
    --text-dim: #8899aa;
    --text-bright: #fff;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-deep);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
}

/* ==================== STAR BACKGROUND ==================== */
#stars-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* ==================== NAVBAR ==================== */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 0 2rem;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background 0.3s, backdrop-filter 0.3s;
}

nav.scrolled {
    background: rgba(6, 13, 26, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.nav-logo {
    font-family: 'Orbitron', sans-serif;
    font-weight: 800;
    font-size: 1.3rem;
    color: var(--text-bright);
    text-decoration: none;
    letter-spacing: 3px;
    text-shadow: 0 0 20px rgba(56, 189, 248, 0.4);
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: color 0.3s;
}

.nav-links a:hover { color: var(--accent); }
.nav-links a.active { color: var(--accent); }

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text);
    font-size: 1.5rem;
    cursor: pointer;
}

/* ==================== HERO ==================== */
.hero {
    position: relative;
    min-height: 100vh;
    text-align: center;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
}

.hero-logo {
    position: fixed;
    top: 40vh;
    left: 50%;
    transform: translate(-50%, -50%);
    width: clamp(280px, 50vw, 600px);
    max-height: 30vh;
    object-fit: contain;
    z-index: 1;
    filter: drop-shadow(0 0 30px rgba(34, 211, 238, 0.3));
}

.hero-tagline {
    margin-top: 56vh;
}

.hero-tagline {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(0.9rem, 2.5vw, 1.3rem);
    color: var(--text-bright);
    letter-spacing: 4px;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.hero-sub {
    font-size: 1rem;
    color: var(--text-dim);
    margin-bottom: 2.5rem;
}

/* ==================== CTA BUTTON ==================== */
.cta-btn {
    display: inline-block;
    position: relative;
    padding: 1rem 3rem;
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 3px;
    color: var(--text-bright);
    background: linear-gradient(135deg, var(--accent-dark), #0C4A6E);
    border: 1px solid var(--accent);
    border-radius: 4px;
    text-decoration: none;
    overflow: hidden;
    transition: box-shadow 0.3s, transform 0.2s;
}

.cta-btn:hover {
    box-shadow: 0 0 30px rgba(56, 189, 248, 0.5), 0 0 60px rgba(56, 189, 248, 0.2);
    transform: translateY(-2px);
}

.cta-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* ==================== SECTIONS ==================== */
.page-content {
    position: relative;
    z-index: 1;
}

section {
    max-width: 900px;
    margin: 0 auto;
    padding: 5rem 2rem;
}

.section-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 3px;
    margin-bottom: 2rem;
    text-transform: uppercase;
}

.divider {
    width: 60px;
    height: 2px;
    background: var(--accent-dark);
    margin-bottom: 2rem;
}

/* ==================== PAGE HEADER (non-hero pages) ==================== */
.page-header {
    padding-top: 120px;
    padding-bottom: 0;
    text-align: center;
}

.page-header .section-title {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.page-header .divider {
    margin: 0 auto 0;
}

/* ==================== DESCRIPTION ==================== */
.description-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 2rem 2.5rem;
}

.description-card p {
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.description-card p:last-child { margin-bottom: 0; }

.team-gamma { color: var(--cyan); font-weight: 700; }
.team-delta { color: var(--red); font-weight: 700; }

/* ==================== FEATURES GRID ==================== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.5rem 1.75rem;
    transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}

.feature-card:hover {
    border-color: var(--accent-dark);
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.1);
    transform: translateY(-3px);
}

.feature-label {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}

.feature-desc {
    font-size: 0.9rem;
    color: var(--text-dim);
    line-height: 1.6;
}

/* ==================== ARSENAL TABLE ==================== */
.arsenal-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
}

.arsenal-table tr {
    border-bottom: 1px solid var(--border);
    transition: background 0.2s;
}

.arsenal-table tr:last-child { border-bottom: none; }
.arsenal-table tr:hover { background: rgba(56, 189, 248, 0.04); }

.arsenal-table td {
    padding: 1rem 1.25rem;
    font-size: 0.9rem;
}

.weapon-name {
    color: var(--text-bright);
    font-weight: 600;
    white-space: nowrap;
}

.weapon-type {
    color: var(--text-dim);
    font-size: 0.8rem;
    white-space: nowrap;
}

.weapon-desc {
    color: var(--text-dim);
    text-align: right;
}

/* ==================== ARMOR CLASSES ==================== */
.armor-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.armor-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}

.armor-card:hover {
    transform: translateY(-3px);
}

.armor-card.light:hover {
    border-color: var(--cyan);
    box-shadow: 0 0 20px rgba(83, 209, 223, 0.15);
}

.armor-card.medium:hover {
    border-color: #e0e0e0;
    box-shadow: 0 0 20px rgba(224, 224, 224, 0.1);
}

.armor-card.heavy:hover {
    border-color: var(--red);
    box-shadow: 0 0 20px rgba(255, 68, 68, 0.15);
}

.armor-name {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.armor-name.light { color: var(--cyan); }
.armor-name.medium { color: #e0e0e0; }
.armor-name.heavy { color: var(--red); }

.armor-stats {
    font-size: 0.8rem;
    color: var(--text-dim);
    margin-bottom: 0.5rem;
}

.armor-slots {
    font-size: 0.8rem;
    color: var(--text);
    line-height: 1.6;
}

/* ==================== HOW IT PLAYS ==================== */
.gameplay-quote {
    background: var(--bg-card);
    border-left: 3px solid var(--accent-dark);
    border-radius: 0 8px 8px 0;
    padding: 2rem 2.5rem;
}

.gameplay-quote p {
    font-size: 1rem;
    line-height: 1.8;
    color: #bbb;
    margin-bottom: 1rem;
}

.gameplay-quote p:last-child { margin-bottom: 0; }

/* ==================== CTA FOOTER ==================== */
.cta-section {
    text-align: center;
    padding: 6rem 2rem;
}

.cta-section h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    color: var(--text-bright);
    letter-spacing: 3px;
    margin-bottom: 2rem;
}

footer {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 2rem;
    border-top: 1px solid var(--border);
}

footer p {
    font-size: 0.8rem;
    color: #555;
}

/* ==================== SCROLL ANIMATIONS ==================== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }
.fade-in-delay-4 { transition-delay: 0.4s; }
.fade-in-delay-5 { transition-delay: 0.5s; }

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .nav-links.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        background: rgba(6, 13, 26, 0.95);
        backdrop-filter: blur(12px);
        padding: 1rem 2rem;
        gap: 1rem;
        border-bottom: 1px solid var(--border);
    }
    .nav-toggle { display: block; }

    .features-grid { grid-template-columns: 1fr; }
    .armor-grid { grid-template-columns: 1fr; }

    .arsenal-table td { padding: 0.75rem 0.75rem; font-size: 0.8rem; }

    section { padding: 3rem 1.25rem; }

    .description-card { padding: 1.5rem; }
    .gameplay-quote { padding: 1.5rem; }
}

@media (max-width: 480px) {
    .hero-tagline { letter-spacing: 2px; }
    .cta-btn { padding: 0.85rem 2rem; font-size: 0.95rem; }
}
