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

:root {
    --bg-primary: #0a0a1a;
    --bg-secondary: #0f0f2a;
    --bg-card: rgba(15, 15, 42, 0.7);
    --bg-card-hover: rgba(25, 25, 60, 0.85);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.4);
    --accent-red: #f5202a;
    --accent-red-glow: rgba(245, 32, 42, 0.4);
    --accent-orange: #ff6a00;
    --accent-blue: #3a7bd5;
    --accent-cyan: #00d4ff;
    --accent-gold: #ffd700;
    --accent-evolved: #c084fc;
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-glow: rgba(245, 32, 42, 0.3);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 40px rgba(245, 32, 42, 0.15);
    --transition-fast: 0.2s ease;
    --transition-med: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    --font-display: 'Bungee Inline', 'Orbitron', sans-serif;
    --font-heading: 'Orbitron', sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --container-max: 1200px;
    --nav-height: 72px;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { border: none; background: none; cursor: pointer; font-family: inherit; color: inherit; }

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

/* ========== STARFIELD CANVAS ========== */
#starfield {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* ========== NAVBAR ========== */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    height: var(--nav-height);
    transition: var(--transition-med);
    backdrop-filter: blur(0px);
}

.navbar.scrolled {
    background: rgba(10, 10, 26, 0.92);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
}

.nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 2px;
    color: var(--text-primary);
    flex-shrink: 0;
}

.nav-logo-img {
    width: 36px;
    height: 36px;
    border-radius: 8px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    padding: 8px 16px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
    letter-spacing: 0.5px;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.06);
}

.nav-cta {
    padding: 10px 24px;
    background: var(--accent-red);
    color: white;
    font-weight: 600;
    font-size: 0.875rem;
    border-radius: var(--radius-xl);
    transition: var(--transition-fast);
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

.nav-cta:hover {
    background: #d91a23;
    box-shadow: 0 0 20px var(--accent-red-glow);
    transform: translateY(-1px);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition-fast);
}

.nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ========== HERO ========== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    z-index: 1;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(10, 10, 26, 0.3) 0%,
        rgba(10, 10, 26, 0.5) 40%,
        rgba(10, 10, 26, 0.7) 70%,
        rgba(10, 10, 26, 1) 100%
    );
}

.hero-content {
    text-align: center;
    padding: 120px 24px 60px;
    max-width: 720px;
    animation: heroFadeIn 1s ease-out 0.3s both;
}

@keyframes heroFadeIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-badge {
    display: inline-block;
    padding: 6px 20px;
    background: rgba(245, 32, 42, 0.15);
    border: 1px solid rgba(245, 32, 42, 0.3);
    border-radius: var(--radius-xl);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 3px;
    color: var(--accent-red);
    margin-bottom: 28px;
}

.hero-title {
    margin-bottom: 24px;
}

.hero-title-sub {
    display: block;
    font-family: var(--font-heading);
    font-size: clamp(1rem, 3vw, 1.4rem);
    font-weight: 500;
    letter-spacing: 8px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.hero-title-main {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(3rem, 8vw, 5.5rem);
    line-height: 1.05;
    background: linear-gradient(135deg, #ffffff 0%, #ff4444 50%, #ff8800 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 30px rgba(245, 32, 42, 0.3));
}

.hero-desc {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-secondary);
    max-width: 520px;
    margin: 0 auto 36px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: var(--radius-xl);
    transition: var(--transition-med);
    letter-spacing: 0.5px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-red), var(--accent-orange));
    color: white;
    box-shadow: 0 4px 20px var(--accent-red-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(245, 32, 42, 0.5);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text-primary);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
}

.stat {
    text-align: center;
}

.stat-num {
    display: block;
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text-primary);
}

.stat-plus {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--accent-red);
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border-subtle);
}

.hero-scroll {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: var(--text-muted);
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    animation: heroFadeIn 1s ease-out 1s both;
}

.scroll-indicator {
    width: 24px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    position: relative;
}

.scroll-indicator::after {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--accent-red);
    border-radius: 4px;
    animation: scrollBounce 2s infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); opacity: 1; }
    50% { transform: translateX(-50%) translateY(14px); opacity: 0.3; }
}

/* ========== SECTIONS COMMON ========== */
.section-header {
    text-align: center;
    margin-bottom: 56px;
}

.section-tag {
    display: inline-block;
    padding: 4px 16px;
    background: rgba(245, 32, 42, 0.1);
    border: 1px solid rgba(245, 32, 42, 0.2);
    border-radius: var(--radius-xl);
    font-family: var(--font-heading);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 3px;
    color: var(--accent-red);
    margin-bottom: 16px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: 1px;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto;
}

/* ========== FEATURES ========== */
.features {
    position: relative;
    z-index: 1;
    padding: 120px 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    padding: 36px 28px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    transition: var(--transition-med);
    opacity: 0;
    transform: translateY(30px);
}

.feature-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.feature-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-glow);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}

.feature-icon {
    width: 48px;
    height: 48px;
    color: var(--accent-red);
    margin-bottom: 20px;
}

.feature-icon svg {
    width: 100%;
    height: 100%;
}

.feature-card h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}

.feature-card p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

/* ========== SHIPS ========== */
.ships {
    position: relative;
    z-index: 1;
    padding: 120px 0;
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 50%, var(--bg-primary) 100%);
}

.ships-showcase {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.ship-card {
    position: relative;
    padding: 28px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    text-align: center;
    transition: var(--transition-med);
    overflow: hidden;
    cursor: pointer;
}

.ship-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent-red), transparent);
    opacity: 0;
    transition: var(--transition-med);
}

.ship-card:hover, .ship-card.active {
    border-color: var(--border-glow);
    background: var(--bg-card-hover);
    transform: translateY(-6px);
}

.ship-card:hover::before, .ship-card.active::before {
    opacity: 1;
}

.ship-glow {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(245, 32, 42, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.ship-img-wrap {
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.ship-img {
    max-height: 140px;
    max-width: 140px;
    object-fit: contain;
    filter: drop-shadow(0 4px 20px rgba(245, 32, 42, 0.2));
    transition: var(--transition-med);
}

.ship-img-character {
    max-height: 160px;
    max-width: 120px;
}

.ship-card:hover .ship-img {
    transform: scale(1.08);
    filter: drop-shadow(0 8px 30px rgba(245, 32, 42, 0.3));
}

.ship-info h3 {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.ship-class {
    font-size: 0.75rem;
    color: var(--accent-cyan);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 16px;
}

.ship-class.evolved {
    color: var(--accent-evolved);
}

.ship-stats-bar {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ship-stat-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.ship-stat-row span {
    width: 52px;
    text-align: right;
    flex-shrink: 0;
}

.bar {
    flex: 1;
    height: 4px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-red), var(--accent-orange));
    border-radius: 4px;
    transition: width 0.8s ease;
}

.bar-fill.evolved {
    background: linear-gradient(90deg, var(--accent-evolved), #e879f9);
}

.ship-evolved-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 4px 10px;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: var(--radius-sm);
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--accent-cyan);
}

.ship-evolved-badge.evolved {
    background: rgba(192, 132, 252, 0.15);
    border-color: rgba(192, 132, 252, 0.3);
    color: var(--accent-evolved);
}

/* ========== BOSSES ========== */
.bosses {
    position: relative;
    z-index: 1;
    padding: 120px 0;
    overflow: hidden;
}

.bosses-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.bosses-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
}

.bosses-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        var(--bg-primary) 0%,
        rgba(10, 10, 26, 0.6) 30%,
        rgba(10, 10, 26, 0.6) 70%,
        var(--bg-primary) 100%
    );
}

.section-header.light .section-title {
    color: var(--text-primary);
}

.bosses-carousel {
    position: relative;
    overflow: hidden;
}

.boss-slide {
    display: none;
    animation: bossFadeIn 0.5s ease;
}

.boss-slide.active {
    display: block;
}

@keyframes bossFadeIn {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}

.boss-card {
    display: flex;
    align-items: center;
    gap: 48px;
    max-width: 800px;
    margin: 0 auto;
    padding: 40px;
    background: rgba(10, 10, 26, 0.7);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(10px);
}

.boss-img-wrap {
    flex-shrink: 0;
    width: 220px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.boss-img {
    max-width: 200px;
    max-height: 180px;
    object-fit: contain;
    filter: drop-shadow(0 0 20px rgba(255, 106, 0, 0.3));
    transition: var(--transition-med);
}

.boss-card:hover .boss-img {
    filter: drop-shadow(0 0 30px rgba(255, 106, 0, 0.5));
    transform: scale(1.05);
}

.boss-details {
    flex: 1;
}

.boss-stage {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 3px;
    color: var(--accent-orange);
    margin-bottom: 8px;
}

.boss-details h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.boss-details p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.boss-difficulty {
    display: flex;
    align-items: center;
    gap: 12px;
}

.boss-difficulty span {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.diff-dots {
    display: flex;
    gap: 6px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.dot.active {
    background: var(--accent-orange);
    border-color: var(--accent-orange);
    box-shadow: 0 0 8px rgba(255, 106, 0, 0.4);
}

.carousel-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 32px;
}

.carousel-btn {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    transition: var(--transition-fast);
}

.carousel-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.2);
}

.carousel-dots {
    display: flex;
    gap: 8px;
}

.carousel-dots .c-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    cursor: pointer;
    transition: var(--transition-fast);
}

.carousel-dots .c-dot.active {
    background: var(--accent-red);
    width: 24px;
    border-radius: 4px;
}

/* ========== LEADERBOARD ========== */
.leaderboard {
    position: relative;
    z-index: 1;
    padding: 120px 0;
}

.leaderboard-tabs {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 32px;
}

.lb-tab {
    padding: 10px 24px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
    border-radius: var(--radius-xl);
    transition: var(--transition-fast);
    border: 1px solid transparent;
}

.lb-tab:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.06);
}

.lb-tab.active {
    color: var(--text-primary);
    background: rgba(245, 32, 42, 0.15);
    border-color: rgba(245, 32, 42, 0.3);
}

.leaderboard-table {
    max-width: 640px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.lb-header {
    display: flex;
    padding: 14px 24px;
    background: rgba(255, 255, 255, 0.04);
    border-bottom: 1px solid var(--border-subtle);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
}

.lb-rank { width: 60px; }
.lb-name { flex: 1; }
.lb-value { width: 120px; text-align: right; }

.lb-row {
    display: flex;
    padding: 14px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    align-items: center;
    transition: var(--transition-fast);
    font-size: 0.9rem;
}

.lb-row:hover {
    background: rgba(255, 255, 255, 0.03);
}

.lb-row:last-child {
    border-bottom: none;
}

.lb-row .lb-rank {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.lb-row.top-1 .lb-rank { color: var(--accent-gold); }
.lb-row.top-2 .lb-rank { color: #c0c0c0; }
.lb-row.top-3 .lb-rank { color: #cd7f32; }

.lb-row .lb-name {
    font-weight: 500;
    color: var(--text-primary);
}

.lb-row .lb-value {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--accent-cyan);
}

.lb-note {
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 16px;
}

.lb-loading {
    text-align: center;
    padding: 20px;
    color: var(--text-muted);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.lb-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid var(--border-subtle);
    border-top-color: var(--accent-red);
    border-radius: 50%;
    animation: lbSpin 0.8s linear infinite;
}

@keyframes lbSpin {
    to { transform: rotate(360deg); }
}

.lb-error {
    text-align: center;
    padding: 24px;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ========== DOWNLOAD ========== */
.download {
    position: relative;
    z-index: 1;
    padding: 120px 0;
    overflow: hidden;
}

.download-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.download-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.25;
}

.download-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        var(--bg-primary) 0%,
        rgba(10, 10, 26, 0.5) 40%,
        rgba(10, 10, 26, 0.5) 60%,
        var(--bg-primary) 100%
    );
}

.download-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.download-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 16px;
    background: linear-gradient(135deg, #ffffff, var(--accent-red));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.download-desc {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.download-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.store-btn {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 28px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-md);
    transition: var(--transition-med);
    color: var(--text-primary);
}

.store-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.store-btn small {
    display: block;
    font-size: 0.65rem;
    color: var(--text-muted);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.store-btn strong {
    font-size: 1.1rem;
    font-weight: 600;
}

.download-platforms {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ========== FOOTER ========== */
.footer {
    position: relative;
    z-index: 1;
    padding: 64px 0 32px;
    border-top: 1px solid var(--border-subtle);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 48px;
}

.footer-logo {
    height: 32px;
    width: auto;
    margin-bottom: 12px;
    object-fit: contain;
    object-position: left;
}

.footer-brand p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.footer-links h4 {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.footer-links a {
    display: block;
    font-size: 0.875rem;
    color: var(--text-secondary);
    padding: 4px 0;
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--text-primary);
}

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid var(--border-subtle);
    text-align: center;
}

.footer-bottom p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .ships-showcase {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
}

@media (max-width: 768px) {
    :root {
        --nav-height: 64px;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: var(--nav-height);
        left: 0; right: 0;
        background: rgba(10, 10, 26, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 16px 24px 24px;
        border-bottom: 1px solid var(--border-subtle);
    }

    .nav-links.open {
        display: flex;
    }

    .nav-cta { display: none; }

    .nav-toggle {
        display: flex;
    }

    .hero-content {
        padding: 100px 20px 40px;
    }

    .hero-stats {
        gap: 20px;
    }

    .stat-num {
        font-size: 1.6rem;
    }

    .features, .ships, .bosses, .leaderboard, .download {
        padding: 80px 0;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .feature-card {
        padding: 24px 20px;
    }

    .ships-showcase {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .boss-card {
        flex-direction: column;
        gap: 24px;
        padding: 28px 24px;
        text-align: center;
    }

    .boss-img-wrap {
        width: 180px;
        height: 150px;
    }

    .boss-difficulty {
        justify-content: center;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
        text-align: center;
    }

    .footer-logo {
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 480px) {
    .hero-title-main {
        font-size: 2.5rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

    .hero-stats {
        flex-direction: column;
        gap: 16px;
    }

    .stat-divider {
        width: 40px;
        height: 1px;
    }

    .ships-showcase {
        grid-template-columns: 1fr;
        max-width: 320px;
        margin: 0 auto;
    }

    .leaderboard-tabs {
        flex-wrap: wrap;
    }

    .lb-tab {
        padding: 8px 16px;
        font-size: 0.8rem;
    }

    .download-buttons {
        flex-direction: column;
        align-items: center;
    }

    .store-btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
}

/* ========== ANIMATIONS ========== */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.ship-card:hover .ship-img {
    animation: float 3s ease-in-out infinite;
}

/* Smooth reveal for elements */
.feature-card,
.ship-card {
    transition: opacity 0.6s ease, transform 0.6s ease, background var(--transition-med), border-color var(--transition-med), box-shadow var(--transition-med);
}
