/* ========================================
   SKYBREAK — Game Website
   Dark sci-fi theme matching the launcher
   ======================================== */

:root {
    --bg: #0D1117;
    --surface: #161B22;
    --surface-light: #21262D;
    --cyan: #00D4FF;
    --cyan-dim: #00A5CC;
    --cyan-glow: rgba(0, 212, 255, 0.15);
    --purple: #7B61FF;
    --purple-glow: rgba(123, 97, 255, 0.15);
    --text: #E6EDF3;
    --text-secondary: #8B949E;
    --success: #3FB950;
    --amber: #F0A030;
    --error: #F85149;
    --border: rgba(255, 255, 255, 0.06);
    --radius: 12px;
    --radius-sm: 8px;
    --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

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

a {
    color: var(--cyan);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: #fff;
}

/* ========================================
   LAYOUT
   ======================================== */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

section {
    padding: 100px 0;
}

/* ========================================
   NAV BAR
   ======================================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(13, 17, 23, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: background var(--transition);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-brand img {
    height: 28px;
}

.nav-brand span {
    font-size: 16px;
    font-weight: 700;
    color: var(--cyan);
    letter-spacing: 4px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

.nav-links a {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: color var(--transition);
}

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

.nav-cta {
    background: var(--cyan);
    color: var(--bg) !important;
    padding: 8px 20px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 13px;
    transition: all var(--transition);
}

.nav-cta:hover {
    background: #fff;
    color: var(--bg) !important;
    box-shadow: 0 0 20px var(--cyan-glow);
    transform: translateY(-1px);
}

/* Mobile nav toggle */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text);
    font-size: 24px;
    cursor: pointer;
}

/* ========================================
   HERO
   ======================================== */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: url('../images/hero.png') center/cover no-repeat;
    opacity: 0.3;
}

.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(13, 17, 23, 0.6) 0%,
        rgba(13, 17, 23, 0.4) 40%,
        rgba(13, 17, 23, 0.7) 70%,
        rgba(13, 17, 23, 1) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 24px;
}

.hero-logo {
    height: 80px;
    margin-bottom: 24px;
    filter: drop-shadow(0 0 30px rgba(0, 212, 255, 0.3));
}

.hero-title {
    font-size: clamp(48px, 8vw, 96px);
    font-weight: 800;
    color: var(--cyan);
    letter-spacing: 12px;
    line-height: 1.1;
    text-shadow: 0 0 40px rgba(0, 212, 255, 0.3);
    margin-bottom: 16px;
}

.hero-tagline {
    font-size: clamp(16px, 2.5vw, 22px);
    color: var(--text-secondary);
    margin-bottom: 40px;
    letter-spacing: 2px;
}

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

/* ========================================
   BUTTONS
   ======================================== */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 36px;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
}

.btn-primary {
    background: var(--cyan);
    color: var(--bg);
}

.btn-primary:hover {
    background: #fff;
    color: var(--bg);
    box-shadow: 0 0 30px var(--cyan-glow), 0 4px 20px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

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

.btn-secondary:hover {
    border-color: var(--cyan);
    color: var(--cyan);
    box-shadow: 0 0 20px var(--cyan-glow);
    transform: translateY(-2px);
}

/* ========================================
   SECTION HEADERS
   ======================================== */

.section-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--cyan);
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.section-title {
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 700;
    color: var(--text);
    margin-bottom: 16px;
}

.section-desc {
    font-size: 16px;
    color: var(--text-secondary);
    max-width: 600px;
    margin-bottom: 48px;
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-header .section-desc {
    margin-left: auto;
    margin-right: auto;
}

/* ========================================
   TRAILER
   ======================================== */

.trailer {
    background: var(--bg);
    padding-bottom: 80px;
}

.trailer-wrapper {
    position: relative;
    width: 100%;
    margin: 0 auto;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(0, 212, 255, 0.1);
    aspect-ratio: 16 / 9;
    background: var(--surface);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5), 0 0 80px rgba(0, 212, 255, 0.06);
    transition: all var(--transition);
}

.trailer-wrapper:hover {
    border-color: rgba(0, 212, 255, 0.25);
    box-shadow: 0 16px 60px rgba(0, 0, 0, 0.6), 0 0 100px rgba(0, 212, 255, 0.1);
}

.trailer-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* ========================================
   GAME MODES
   ======================================== */

.modes {
    background: var(--bg);
}

.modes-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

@media (max-width: 768px) {
    .modes-grid {
        grid-template-columns: 1fr;
    }
}

.mode-card {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 16 / 10;
    cursor: pointer;
    transition: all var(--transition);
    border: 1px solid var(--border);
}

.mode-card:hover {
    transform: translateY(-6px) scale(1.02);
    border-color: rgba(0, 212, 255, 0.3);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), 0 0 30px var(--cyan-glow);
}

.mode-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition);
}

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

.mode-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 15%, rgba(13, 17, 23, 0.5) 45%, rgba(13, 17, 23, 0.95) 75%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px;
}

.mode-card-title {
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

.mode-card-desc {
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

.mode-card-title {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
}

.mode-card-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.4;
}

.mode-card-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.badge-live {
    background: rgba(63, 185, 80, 0.2);
    color: var(--success);
    border: 1px solid rgba(63, 185, 80, 0.3);
}

.badge-soon {
    background: rgba(139, 148, 158, 0.15);
    color: var(--text-secondary);
    border: 1px solid rgba(139, 148, 158, 0.2);
}

.mode-card.coming-soon {
    filter: grayscale(0.7);
    opacity: 0.6;
}

.mode-card.coming-soon:hover {
    transform: none;
    box-shadow: none;
    border-color: var(--border);
    filter: grayscale(0.5);
    opacity: 0.7;
}

/* ========================================
   FEATURES
   ======================================== */

.features {
    background: var(--surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

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

.feature-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    transition: all var(--transition);
}

.feature-card:hover {
    border-color: rgba(0, 212, 255, 0.2);
    box-shadow: 0 0 20px var(--cyan-glow);
    transform: translateY(-3px);
}

.feature-icon {
    font-size: 32px;
    margin-bottom: 16px;
    display: block;
}

.feature-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.feature-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ========================================
   DOWNLOAD CTA
   ======================================== */

.download {
    text-align: center;
    position: relative;
}

.download-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 64px 40px;
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.download-card::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 20%;
    right: 20%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--cyan), transparent);
}

.download-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 12px;
}

.download-desc {
    color: var(--text-secondary);
    margin-bottom: 32px;
    font-size: 16px;
}

.download-meta {
    display: flex;
    gap: 32px;
    justify-content: center;
    margin-top: 32px;
    flex-wrap: wrap;
}

.download-meta-item {
    text-align: center;
}

.download-meta-label {
    font-size: 11px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 4px;
}

.download-meta-value {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
}

/* ========================================
   NEWS
   ======================================== */

.news-list {
    max-width: 800px;
    margin: 0 auto;
}

.news-entry {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    margin-bottom: 20px;
    transition: all var(--transition);
}

.news-entry:hover {
    border-color: rgba(0, 212, 255, 0.15);
}

.news-date {
    font-size: 12px;
    color: var(--cyan);
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.news-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
}

.news-video {
    position: relative;
    width: 100%;
    margin: 16px 0 20px 0;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid rgba(0, 212, 255, 0.1);
    aspect-ratio: 16 / 9;
    background: var(--bg);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    transition: border-color var(--transition);
}

.news-video:hover {
    border-color: rgba(0, 212, 255, 0.25);
}

.news-video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.news-body {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.7;
}

.news-body ul {
    margin: 12px 0 0 0;
    padding-left: 20px;
}

.news-body li {
    margin-bottom: 4px;
}

.news-body p {
    margin-bottom: 4px;
}

/* ========================================
   FOOTER
   ======================================== */

.footer {
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding: 48px 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-brand img {
    height: 20px;
}

.footer-brand span {
    font-size: 14px;
    font-weight: 600;
    color: var(--cyan);
    letter-spacing: 3px;
}

.footer-copy {
    font-size: 13px;
    color: var(--text-secondary);
}

.footer-links {
    display: flex;
    gap: 24px;
    list-style: none;
}

.footer-links a {
    font-size: 13px;
    color: var(--text-secondary);
}

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

/* ========================================
   ANIMATIONS
   ======================================== */

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

@keyframes glow-pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.animate-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .nav-toggle {
        display: block;
    }

    .nav-links.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: rgba(13, 17, 23, 0.95);
        backdrop-filter: blur(20px);
        padding: 24px;
        gap: 16px;
        border-bottom: 1px solid var(--border);
    }

    .hero-title {
        letter-spacing: 6px;
    }

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

    .modes-grid {
        grid-template-columns: 1fr;
    }

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

    .download-meta {
        gap: 16px;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    section {
        padding: 60px 0;
    }

    .download-card {
        padding: 40px 24px;
    }
}
