@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&family=VT323&display=swap');

:root {
    --bg-dark: #0a0a0a;
    --bg-darker: #050505;
    --text-primary: #00ff00;
    --text-secondary: #00cc00;
    --text-accent: #ffff00;
    --border-color: #00ff00;
    --shadow-color: #00ff0080;
    --scanline-color: rgba(0, 255, 0, 0.03);
    --grid-color: rgba(0, 255, 0, 0.1);
}

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

body {
    font-family: 'VT323', monospace;
    background: var(--bg-darker);
    color: var(--text-primary);
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
}

.crt-screen {
    position: relative;
    min-height: 100vh;
    background: linear-gradient(to bottom, 
        var(--bg-dark) 0%, 
        var(--bg-darker) 50%, 
        var(--bg-dark) 100%);
    padding: 2rem;
    animation: flicker 0.15s infinite linear;
}

.crt-screen::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        repeating-linear-gradient(
            0deg,
            rgba(0, 0, 0, 0.15),
            rgba(0, 0, 0, 0.15) 1px,
            transparent 1px,
            transparent 2px
        );
    pointer-events: none;
    z-index: 1000;
    animation: scanlines 8s linear infinite;
}

.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        transparent 50%,
        var(--scanline-color) 50%
    );
    background-size: 100% 4px;
    pointer-events: none;
    z-index: 1001;
    animation: scanlines 8s linear infinite;
}

@keyframes flicker {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.98; }
}

@keyframes scanlines {
    0% { transform: translateY(0); }
    100% { transform: translateY(4px); }
}

.content {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
}

.retro-header {
    text-align: center;
    padding: 3rem 0 2rem;
    border-bottom: 3px solid var(--border-color);
    margin-bottom: 3rem;
    position: relative;
}

.glitch {
    font-family: 'Press Start 2P', monospace;
    font-size: 3rem;
    color: var(--text-primary);
    text-shadow: 
        4px 4px 0px var(--text-secondary),
        8px 8px 0px rgba(0, 255, 0, 0.3),
        -2px -2px 0px rgba(255, 0, 0, 0.5),
        2px 2px 0px rgba(0, 0, 255, 0.5);
    letter-spacing: 0.5rem;
    margin-bottom: 1rem;
    animation: glitch-text 2s infinite;
    position: relative;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch::before {
    animation: glitch-anim-1 0.5s infinite;
    color: #ff00ff;
    z-index: -1;
}

.glitch::after {
    animation: glitch-anim-2 0.5s infinite;
    color: #00ffff;
    z-index: -2;
}

@keyframes glitch-text {
    0%, 100% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(2px, -2px); }
}

@keyframes glitch-anim-1 {
    0%, 100% { clip-path: inset(40% 0 61% 0); transform: translate(0); }
    20% { clip-path: inset(92% 0 1% 0); transform: translate(2px, 2px); }
    40% { clip-path: inset(43% 0 1% 0); transform: translate(-2px, 2px); }
    60% { clip-path: inset(25% 0 58% 0); transform: translate(2px, -2px); }
    80% { clip-path: inset(54% 0 7% 0); transform: translate(-2px, -2px); }
}

@keyframes glitch-anim-2 {
    0%, 100% { clip-path: inset(80% 0 1% 0); transform: translate(0); }
    20% { clip-path: inset(90% 0 1% 0); transform: translate(-2px, -2px); }
    40% { clip-path: inset(43% 0 1% 0); transform: translate(2px, 2px); }
    60% { clip-path: inset(25% 0 58% 0); transform: translate(-2px, 2px); }
    80% { clip-path: inset(54% 0 7% 0); transform: translate(2px, -2px); }
}

.tagline {
    font-size: 1.5rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.3rem;
}

.hero {
    position: relative;
    padding: 3rem 2rem;
    margin: 3rem 0;
    border: 2px solid var(--border-color);
    background: rgba(0, 255, 0, 0.05);
    box-shadow: 
        0 0 20px var(--shadow-color),
        inset 0 0 20px rgba(0, 255, 0, 0.1);
}

.pixel-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(var(--grid-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.3;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero h2 {
    font-family: 'Press Start 2P', monospace;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 0px var(--text-secondary);
    line-height: 1.6;
}

.description {
    font-size: 1.3rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 4rem 0;
}

.feature-card {
    border: 2px solid var(--border-color);
    padding: 2rem;
    background: rgba(0, 255, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 255, 0, 0.1) 0%, transparent 70%);
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 30px var(--shadow-color);
    border-color: var(--text-accent);
}

.card-header {
    font-family: 'Press Start 2P', monospace;
    font-size: 1rem;
    color: var(--text-accent);
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.feature-card p {
    font-size: 1.2rem;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

.downloads {
    margin: 5rem 0;
}

.section-title {
    font-family: 'Press Start 2P', monospace;
    font-size: 2rem;
    text-align: center;
    margin-bottom: 3rem;
    text-shadow: 3px 3px 0px var(--text-secondary);
    color: var(--text-accent);
}

.download-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.download-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 2rem;
    border: 3px solid var(--border-color);
    background: rgba(0, 255, 0, 0.05);
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.download-card:hover {
    transform: scale(1.05);
    box-shadow: 
        0 0 30px var(--shadow-color),
        inset 0 0 30px rgba(0, 255, 0, 0.2);
    border-color: var(--border-color);
}

.platform-icon {
    width: 80px;
    height: 80px;
    object-fit: contain;
    filter: drop-shadow(0 0 10px var(--text-primary));
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.download-card:hover .platform-icon {
    transform: scale(1.1) rotate(5deg);
}

.platform-name {
    font-family: 'Press Start 2P', monospace;
    font-size: 0.9rem;
    position: relative;
    z-index: 1;
    text-align: center;
}

.download-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
}

.download-badge {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    border: 2px solid var(--border-color);
    background: rgba(0, 255, 0, 0.1);
    font-size: 1rem;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: var(--text-primary);
    text-align: center;
}

.download-badge:hover {
    background: var(--text-accent);
    color: var(--bg-dark);
    border-color: var(--text-accent);
}

.download-badge.coming-soon {
    opacity: 0.5;
    cursor: not-allowed;
    background: transparent;
}

.download-badge.coming-soon:hover {
    background: transparent;
    color: var(--text-primary);
    border-color: var(--border-color);
}

/* Cargo card specific styles */
.cargo-card {
    cursor: default;
}

.cargo-icon {
    width: 80px;
    height: 80px;
    object-fit: contain;
    filter: drop-shadow(0 0 10px var(--text-primary));
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.cargo-card:hover .cargo-icon {
    transform: scale(1.1) rotate(5deg);
}

.cargo-install {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
    position: relative;
    z-index: 1;
}

.cargo-command {
    display: block;
    padding: 0.75rem 1rem;
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid var(--border-color);
    color: var(--text-primary);
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    text-align: center;
    word-break: break-all;
    line-height: 1.4;
}

.copy-btn {
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    background: rgba(0, 255, 0, 0.1);
    color: var(--text-primary);
    font-family: 'Press Start 2P', monospace;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.copy-btn:hover {
    background: var(--text-accent);
    color: var(--bg-dark);
    border-color: var(--text-accent);
    transform: scale(1.05);
}

.copy-btn:active {
    transform: scale(0.98);
}

/* Linux card specific styles */
.linux-card {
    cursor: default;
}

.linux-downloads {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
    position: relative;
    z-index: 1;
}

.linux-download-btn {
    display: block;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s ease;
    width: 100%;
}

.linux-download-btn .download-badge {
    display: block;
    text-align: center;
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.85rem;
    cursor: pointer;
}

.linux-download-btn:hover .download-badge {
    background: var(--text-accent);
    color: var(--bg-dark);
    border-color: var(--text-accent);
    transform: scale(1.05);
}

.linux-card:hover .platform-icon {
    transform: scale(1.1) rotate(5deg);
}

.retro-footer {
    text-align: center;
    padding: 3rem 0;
    margin-top: 5rem;
    border-top: 2px solid var(--border-color);
    font-size: 1.2rem;
    color: var(--text-secondary);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.github-link {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--border-color);
    background: rgba(0, 255, 0, 0.05);
    color: var(--text-primary);
    text-decoration: none;
    font-family: 'Press Start 2P', monospace;
    font-size: 0.75rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.github-link:hover {
    background: rgba(0, 255, 0, 0.15);
    border-color: var(--text-accent);
    box-shadow: 0 0 20px var(--shadow-color);
    transform: scale(1.05);
}

.github-link:active {
    transform: scale(0.98);
}

.github-icon {
    width: 24px;
    height: 24px;
    filter: drop-shadow(0 0 5px var(--text-primary));
    transition: transform 0.3s ease;
}

.github-link:hover .github-icon {
    transform: rotate(360deg) scale(1.1);
}

@media (max-width: 768px) {
    .crt-screen {
        padding: 1rem;
    }
    
    .retro-header {
        padding: 2rem 0 1.5rem;
        margin-bottom: 2rem;
    }
    
    .glitch {
        font-size: 2rem;
        letter-spacing: 0.3rem;
    }
    
    .tagline {
        font-size: 1.2rem;
    }
    
    .hero {
        padding: 2rem 1rem;
        margin: 2rem 0;
    }
    
    .hero h2 {
        font-size: 1.2rem;
    }
    
    .description {
        font-size: 1.1rem;
    }
    
    .features {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin: 3rem 0;
    }
    
    .feature-card {
        padding: 1.5rem;
    }
    
    .downloads {
        margin: 3rem 0;
    }
    
    .download-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .download-card {
        padding: 1.5rem;
    }
    
    .section-title {
        font-size: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .retro-footer {
        padding: 2rem 0;
        margin-top: 3rem;
        gap: 1rem;
    }
    
    .github-link {
        padding: 0.6rem 1.2rem;
        font-size: 0.7rem;
    }
    
    .github-icon {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 480px) {
    .crt-screen {
        padding: 0.75rem;
    }
    
    .retro-header {
        padding: 1.5rem 0 1rem;
        margin-bottom: 1.5rem;
    }
    
    .glitch {
        font-size: 1.5rem;
        letter-spacing: 0.2rem;
    }
    
    .tagline {
        font-size: 1rem;
    }
    
    .hero {
        padding: 1.5rem 0.75rem;
        margin: 1.5rem 0;
    }
    
    .hero h2 {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
    
    .description {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    .features {
        gap: 1rem;
        margin: 2rem 0;
    }
    
    .feature-card {
        padding: 1rem;
    }
    
    .card-header {
        font-size: 0.85rem;
        margin-bottom: 0.75rem;
    }
    
    .feature-card p {
        font-size: 1rem;
    }
    
    .downloads {
        margin: 2rem 0;
    }
    
    .download-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .download-card {
        padding: 1.25rem;
        gap: 0.75rem;
    }
    
    .platform-icon {
        width: 60px;
        height: 60px;
    }
    
    .platform-name {
        font-size: 0.75rem;
    }
    
    .download-badge {
        padding: 0.4rem 1rem;
        font-size: 0.85rem;
    }
    
    .cargo-icon {
        width: 60px;
        height: 60px;
    }
    
    .cargo-command {
        font-size: 0.75rem;
        padding: 0.6rem 0.75rem;
    }
    
    .copy-btn {
        font-size: 0.6rem;
        padding: 0.6rem 0.75rem;
    }
    
    .section-title {
        font-size: 1.2rem;
        margin-bottom: 1.5rem;
    }
    
    .retro-footer {
        padding: 1.5rem 0;
        margin-top: 2rem;
        font-size: 1rem;
        gap: 0.75rem;
    }
    
    .github-link {
        padding: 0.5rem 1rem;
        font-size: 0.6rem;
    }
    
    .github-icon {
        width: 18px;
        height: 18px;
    }
}

