/* ==========================================
   TYPER3000 - Landing Page Styles
   Theme: Gritty Cyber / Neon Industrial
   ========================================== */

:root {
    /* Base Colors */
    --bg-darkest: #05070D;
    --bg-dark: #0A0E1A;
    --bg-mid: #0F1420;
    --bg-light: #1A1F2E;

    /* Neon Accents */
    --cyan: #00E5FF;
    --cyan-dim: #007A99;
    --cyan-glow: rgba(0, 229, 255, 0.3);
    --magenta: #FF2A8A;
    --magenta-dim: #991A54;
    --acid-green: #7CFF00;
    --amber: #FFB000;

    /* Text */
    --text-primary: #E8E8E8;
    --text-secondary: #888899;
    --text-dim: #555566;

    /* Spacing */
    --section-padding: 100px 5%;
    --container-max: 1400px;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Rajdhani', sans-serif;
    background: var(--bg-darkest);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Scanline Overlay */
.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 0, 0, 0.03) 2px,
        rgba(0, 0, 0, 0.03) 4px
    );
}

/* Accent Color */
.accent {
    color: var(--cyan);
    text-shadow: 0 0 10px var(--cyan-glow);
}

/* ==========================================
   Navigation
   ========================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 20px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(to bottom, var(--bg-darkest), transparent);
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.nav-logo {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: 2px;
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s, text-shadow 0.3s;
}

.nav-links a:hover {
    color: var(--cyan);
    text-shadow: 0 0 10px var(--cyan-glow);
}

.nav-discord {
    background: var(--bg-light);
    padding: 8px 16px;
    border-radius: 4px;
    border: 1px solid var(--text-dim);
}

.nav-discord:hover {
    border-color: var(--cyan);
}

/* ==========================================
   Hero Section
   ========================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: var(--section-padding);
    padding-top: 120px;
    gap: 60px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at 20% 50%, var(--cyan-glow) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 50%, rgba(255, 42, 138, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    flex: 1;
    z-index: 1;
}

.hero-glitch {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 900;
    letter-spacing: 4px;
    color: var(--text-primary);
    text-shadow:
        0 0 20px var(--cyan-glow),
        0 0 40px var(--cyan-glow);
    position: relative;
    animation: glitch 3s infinite;
}

@keyframes glitch {
    0%, 90%, 100% {
        text-shadow:
            0 0 20px var(--cyan-glow),
            0 0 40px var(--cyan-glow);
    }
    92% {
        text-shadow:
            -2px 0 var(--magenta),
            2px 0 var(--cyan),
            0 0 20px var(--cyan-glow);
    }
    94% {
        text-shadow:
            2px 0 var(--magenta),
            -2px 0 var(--cyan),
            0 0 20px var(--cyan-glow);
    }
}

.hero-tagline {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    color: var(--cyan);
    letter-spacing: 8px;
    margin: 20px 0;
    text-shadow: 0 0 10px var(--cyan-glow);
    min-height: 1.8em;
}

.typing-cursor {
    color: var(--cyan);
    animation: blink 0.7s infinite;
    font-weight: 100;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.hero-description {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 500px;
    margin-bottom: 40px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.hero-early-access-note {
    margin-top: 20px;
    color: var(--text-dim);
    font-size: 0.9rem;
}

.hero-visual {
    flex: 1;
    z-index: 1;
    display: flex;
    justify-content: center;
}

.hero-game-preview {
    position: relative;
    max-width: 600px;
    width: 100%;
}

.hero-image {
    width: 100%;
    border-radius: 8px;
    border: 2px solid var(--bg-light);
    box-shadow:
        0 0 30px rgba(0, 229, 255, 0.2),
        0 20px 60px rgba(0, 0, 0, 0.5);
}

.hero-image-glow {
    position: absolute;
    inset: -20px;
    background: linear-gradient(45deg, var(--cyan-glow), transparent, var(--magenta-dim));
    filter: blur(40px);
    z-index: -1;
    opacity: 0.5;
}

/* ==========================================
   Buttons
   ========================================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.btn-icon {
    font-size: 0.8em;
}

.btn-primary {
    background: linear-gradient(135deg, var(--cyan), var(--cyan-dim));
    color: var(--bg-darkest);
    box-shadow:
        0 0 20px var(--cyan-glow),
        inset 0 0 20px rgba(255, 255, 255, 0.1);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow:
        0 0 40px var(--cyan-glow),
        0 10px 30px rgba(0, 229, 255, 0.3),
        inset 0 0 20px rgba(255, 255, 255, 0.2);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--text-dim);
}

.btn-secondary:hover {
    border-color: var(--cyan);
    color: var(--cyan);
    box-shadow: 0 0 20px var(--cyan-glow);
}

.btn-discord {
    background: #5865F2;
    color: white;
    box-shadow: 0 0 20px rgba(88, 101, 242, 0.3);
}

.btn-discord:hover {
    background: #4752C4;
    transform: translateY(-2px);
    box-shadow:
        0 0 30px rgba(88, 101, 242, 0.5),
        0 10px 30px rgba(88, 101, 242, 0.3);
}

.discord-icon, .steam-icon {
    width: 20px;
    height: 20px;
}

/* ==========================================
   Section Titles
   ========================================== */
.section-title {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 900;
    text-align: center;
    margin-bottom: 20px;
    letter-spacing: 4px;
}

/* ==========================================
   Features / Game Modes
   ========================================== */
.features {
    padding: var(--section-padding);
    background: var(--bg-dark);
    position: relative;
}

.features::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--cyan-dim), transparent);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: var(--container-max);
    margin: 60px auto 0;
}

.feature-card {
    background: var(--bg-mid);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--bg-light);
    transition: all 0.3s;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--cyan);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 20px var(--cyan-glow);
}

.feature-card.locked {
    opacity: 0.7;
}

.feature-card.locked:hover {
    border-color: var(--amber);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 20px rgba(255, 176, 0, 0.3);
}

.feature-image {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.feature-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.4s ease, transform 0.3s ease;
    z-index: 1;
}

.feature-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

.feature-card.video-active .feature-img {
    opacity: 0;
}

.feature-card.video-active .feature-video {
    opacity: 1;
}

.feature-card:hover .feature-img {
    transform: scale(1.05);
}

.feature-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 6px 12px;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1px;
    border-radius: 4px;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.feature-badge.free {
    background: var(--acid-green);
    color: var(--bg-darkest);
}

.feature-badge.steam {
    background: var(--amber);
    color: var(--bg-darkest);
}

.feature-card h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.3rem;
    padding: 20px 20px 10px;
    letter-spacing: 2px;
}

.feature-card p {
    padding: 0 20px 20px;
    color: var(--text-secondary);
}

/* ==========================================
   Play Section
   ========================================== */
.play-section {
    padding: var(--section-padding);
    background: var(--bg-darkest);
}

.play-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.2rem;
    margin-bottom: 40px;
}

.game-container {
    max-width: 1000px;
    margin: 0 auto;
}

.game-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    background: var(--bg-dark);
    border-radius: 8px;
    border: 2px solid var(--bg-light);
    overflow: hidden;
    box-shadow:
        0 0 40px rgba(0, 0, 0, 0.5),
        inset 0 0 60px rgba(0, 229, 255, 0.05);
}

.game-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        linear-gradient(135deg, var(--bg-dark), var(--bg-mid)),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><rect fill="%230A0E1A" width="100" height="100"/><rect fill="%230F1420" x="10" y="10" width="30" height="30"/><rect fill="%230F1420" x="60" y="60" width="30" height="30"/></svg>');
}

.game-placeholder-content {
    text-align: center;
}

.loading-text {
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    font-weight: 900;
    color: var(--cyan);
    text-shadow: 0 0 20px var(--cyan-glow);
    margin-bottom: 20px;
    letter-spacing: 4px;
}

.game-placeholder p {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

#game-iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.game-controls {
    text-align: center;
    padding: 20px;
    color: var(--text-dim);
    font-size: 0.9rem;
}

.game-controls strong {
    color: var(--text-secondary);
}

/* ==========================================
   Stats Section
   ========================================== */
.stats-section {
    padding: 60px 5%;
    background: var(--bg-dark);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 40px;
    max-width: var(--container-max);
    margin: 0 auto;
    text-align: center;
}

.stat-number {
    font-family: 'Orbitron', sans-serif;
    font-size: 3rem;
    font-weight: 900;
    color: var(--cyan);
    text-shadow: 0 0 20px var(--cyan-glow);
}

.stat-label {
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    margin-top: 10px;
}

/* ==========================================
   Community Section
   ========================================== */
.community-section {
    padding: var(--section-padding);
    background: var(--bg-darkest);
    text-align: center;
    position: relative;
}

.community-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--cyan-dim), transparent);
}

.community-subtitle {
    color: var(--text-secondary);
    font-size: 1.2rem;
    margin-bottom: 40px;
}

.community-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* ==========================================
   Footer
   ========================================== */
.footer {
    padding: 60px 5%;
    background: var(--bg-dark);
    border-top: 1px solid var(--bg-light);
}

.footer-content {
    max-width: var(--container-max);
    margin: 0 auto;
    text-align: center;
}

.footer-logo {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--cyan);
}

.footer-copyright {
    color: var(--text-dim);
    font-size: 0.9rem;
}

/* ==========================================
   Responsive
   ========================================== */
@media (max-width: 968px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 100px;
    }

    .hero-description {
        margin: 0 auto 40px;
    }

    .hero-buttons {
        justify-content: center;
    }

    .nav-links {
        display: none;
    }
}

@media (max-width: 600px) {
    .hero-glitch {
        font-size: 2.5rem;
    }

    .hero-tagline {
        font-size: 1rem;
        letter-spacing: 4px;
    }

    .btn {
        padding: 12px 24px;
        font-size: 0.9rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .stat-number {
        font-size: 2rem;
    }
}

/* ==========================================
   Animations
   ========================================== */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* ==========================================
   Logo Styles
   ========================================== */
.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-logo-img {
    width: 40px;
    height: 40px;
    filter: drop-shadow(0 0 10px var(--cyan-glow));
}

.hero-logo-container {
    position: relative;
    max-width: 400px;
    width: 100%;
}

.hero-logo {
    width: 100%;
    filter: drop-shadow(0 0 30px var(--cyan-glow)) drop-shadow(0 10px 20px rgba(0, 0, 0, 0.5));
    animation: float 4s ease-in-out infinite;
    cursor: pointer;
    transition: transform 0.08s ease, filter 0.08s ease;
    user-select: none;
}

.hero-logo:active,
.hero-logo.pressed {
    transform: scale(0.92) translateY(6px) !important;
    filter: drop-shadow(0 0 15px var(--cyan-glow)) drop-shadow(0 2px 5px rgba(0, 0, 0, 0.3)) !important;
    animation: none !important;
}

.game-logo {
    width: 150px;
    height: 150px;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 20px var(--cyan-glow));
    animation: pulse 2s ease-in-out infinite;
}

@keyframes glow-pulse {
    0%, 100% { filter: drop-shadow(0 0 20px var(--cyan-glow)); }
    50% { filter: drop-shadow(0 0 40px var(--cyan)); }
}
