:root {
    --bg: #0a0a0c;
    --primary: #00ff41; /* Arcade Green */
    --secondary: #bc13fe; /* Neon Purple */
    --accent: #1389ff; /* Electric Blue */
    --warning: #ffb000; /* Amber Warning */
    --text: #e0e0e0;
    --text-dim: #888888;
    --glass: rgba(20, 20, 25, 0.9);
    --border: rgba(255, 255, 255, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: 'JetBrains Mono', monospace;
    line-height: 1.6;
    overflow-x: hidden;
}

/* CRT Filters */
.crt-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle, rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 100%),
                linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.1) 50%),
                linear-gradient(90deg, rgba(255, 0, 0, 0.05), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.05));
    background-size: 100% 100%, 100% 4px, 6px 100%;
    z-index: 1000;
    pointer-events: none;
}

.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(to bottom, transparent 50%, rgba(0, 0, 0, 0.1) 50%);
    background-size: 100% 4px;
    z-index: 999;
    pointer-events: none;
    animation: scan 10s linear infinite;
}

@keyframes scan {
    from { background-position: 0 0; }
    to { background-position: 0 100%; }
}

/* Navigation */
.arcade-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 4rem;
    border-bottom: 2px solid var(--primary);
    background: var(--bg);
    box-shadow: 0 0 15px var(--primary);
}

.nav-brand {
    font-family: 'Press Start 2P', cursive;
    color: var(--primary);
    font-size: 1.2rem;
    text-shadow: 0 0 8px var(--primary);
}

.status-bar {
    display: flex;
    gap: 2rem;
    font-weight: 700;
}

.blink {
    animation: blink 1s step-end infinite;
    color: var(--warning);
}

@keyframes blink {
    50% { opacity: 0; }
}

/* Hero Section */
.hero {
    padding: 8rem 2rem 4rem;
    text-align: center;
    background: linear-gradient(0deg, var(--bg) 0%, rgba(0, 255, 65, 0.05) 100%);
}

.hero-content h1 {
    font-size: 6rem;
    font-family: 'Press Start 2P', cursive;
    color: var(--text);
    margin-bottom: 1rem;
    letter-spacing: -2px;
}

.glitch {
    position: relative;
    text-shadow: 0.05em 0 0 rgba(255, 0, 0, 0.75),
                -0.025em -0.05em 0 rgba(0, 255, 0, 0.75),
                0.025em 0.05em 0 rgba(0, 0, 255, 0.75);
    animation: glitch 500ms infinite;
}

@keyframes glitch {
    0% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(2px, -2px); }
    100% { transform: translate(0); }
}

.subtitle {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 4rem;
    text-transform: uppercase;
    font-weight: 700;
}

/* Hero Frame */
.hero-frame {
    max-width: 900px;
    margin: 0 auto;
    border: 4px solid var(--text);
    border-radius: 12px;
    padding: 10px;
    background: #000;
    box-shadow: 0 0 50px rgba(0, 255, 65, 0.2);
}

.terminal-shot {
    width: 100%;
    display: block;
    border-radius: 4px;
}

/* Bento Grid */
.content-grid {
    max-width: 1200px;
    margin: 4rem auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding: 0 2rem;
}

.bento-card {
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.bento-card:hover {
    border-color: currentColor;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.bento-card.x2 { grid-column: span 2; }

/* Themes */
.green { color: var(--primary); }
.purple { color: var(--secondary); }
.blue { color: var(--accent); }
.orange { color: var(--warning); }

.tag {
    font-size: 0.7rem;
    font-weight: 800;
    padding: 4px 10px;
    border: 1px solid currentColor;
    border-radius: 100px;
    display: inline-block;
    margin-bottom: 1rem;
}

h2 {
    font-family: 'Press Start 2P', cursive;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}

p { color: var(--text-dim); font-size: 1rem; }

.feature-img {
    width: 100%;
    border-radius: 8px;
    margin-top: auto;
    border: 1px solid rgba(255,255,255,0.1);
}

/* Flex Row Variant */
.flex-row {
    flex-direction: row;
    gap: 3rem;
    align-items: center;
}

.side-img {
    width: 40%;
    border-radius: 12px;
}

.terminal-list {
    list-style: none;
    margin-top: 1.5rem;
}

.terminal-list li::before {
    content: "> ";
    font-weight: 900;
}

/* Footer */
.arcade-footer {
    text-align: center;
    padding: 4rem 0;
    border-top: 1px solid var(--border);
    color: var(--text-dim);
    font-size: 0.8rem;
}

@media (max-width: 1000px) {
    .content-grid { grid-template-columns: 1fr; }
    .bento-card.x2 { grid-column: span 1; }
    .flex-row { flex-direction: column; }
    .side-img { width: 100%; }
    .hero-content h1 { font-size: 3rem; }
    .arcade-nav { padding: 1.5rem 2rem; }
}
