:root {
    --terminal-bg: #0a0a0a;
    --terminal-text: #00ff00;
    --accent-color: #00cc00;
    --border-color: #005500;
    --highlight-bg: rgba(0, 100, 0, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--terminal-bg);
    color: var(--terminal-text);
    font-family: 'Courier New', monospace;
    line-height: 1.6;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
    background-image: 
        linear-gradient(rgba(10, 10, 10, 0.9), rgba(10, 10, 10, 0.9)),
        url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="40" height="40" viewBox="0 0 40 40"><rect width="40" height="40" fill="%23001100"/><text x="5" y="20" font-family="monospace" font-size="8" fill="%23003300">@%#*+=-:.</text></svg>');
    background-attachment: fixed;
}

header {
    text-align: center;
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 30px;
}

.ascii-logo {
    font-size: 18px;
    line-height: 1.2;
    color: var(--accent-color);
    text-shadow: 0 0 5px var(--accent-color);
    margin-bottom: 15px;
}

nav {
    margin-top: 10px;
    font-size: 18px;
}

nav a {
    color: var(--terminal-text);
    text-decoration: none;
    margin: 0 10px;
    transition: all 0.3s;
    position: relative;
}

nav a:hover {
    color: var(--accent-color);
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--accent-color);
    opacity: 0;
    transition: opacity 0.3s;
}

nav a:hover::after {
    opacity: 1;
}

.lang-switch {
    margin-top: 15px;
}

.lang-switch button {
    background: var(--terminal-bg);
    border: 1px solid var(--border-color);
    color: var(--terminal-text);
    padding: 5px 12px;
    margin: 0 5px;
    font-family: monospace;
    cursor: pointer;
    transition: all 0.3s;
}

.lang-switch button:hover {
    background: var(--highlight-bg);
    border-color: var(--accent-color);
}

/* Accessibility utility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

main {
    padding: 20px;
}

h1, h2, h3 {
    color: var(--accent-color);
    margin-bottom: 20px;
    text-shadow: 0 0 3px rgba(0, 204, 0, 0.5);
}

.terminal-window {
    background: rgba(0, 20, 0, 0.7);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    padding: 20px;
    margin: 25px 0;
    box-shadow: 0 0 10px rgba(0, 100, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.terminal-window::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #ff0000, #ffff00, #00ff00);
}

.terminal-header {
    font-weight: bold;
    color: #ffcc00;
    margin-bottom: 15px;
    padding-bottom: 5px;
    border-bottom: 1px dashed var(--border-color);
}

.terminal-content {
    margin: 10px 0;
    line-height: 1.8;
}

.highlight {
    color: #ff9900;
    font-weight: bold;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.feature-card {
    border: 1px solid var(--border-color);
    padding: 20px;
    border-radius: 5px;
    transition: all 0.3s;
    background: rgba(0, 30, 0, 0.5);
}

.feature-card:hover {
    border-color: var(--accent-color);
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 100, 0, 0.5);
}

.ascii-art {
    font-size: 24px;
    text-align: center;
    color: var(--accent-color);
    margin: 15px 0;
    line-height: 1.2;
}

.download-section {
    text-align: center;
    padding: 30px;
    background: rgba(0, 30, 0, 0.6);
    border-radius: 8px;
    margin: 30px 0;
}

.file-icon {
    font-size: 20px;
    margin: 20px auto;
    color: #00ccff;
    text-align: center;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(180deg,#004400,#002200);
    color: var(--accent-color);
    padding: 12px 22px;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
    border: 2px solid var(--accent-color);
    border-radius: 8px;
    margin: 20px 0;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.download-btn:hover {
    background: rgba(0, 204, 0, 0.2);
    box-shadow: 0 0 15px var(--accent-color);
}

.download-btn::before {
    content: '⤓';
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    opacity: 0.9;
    color: var(--accent-color);
}

.download-btn:hover::before {
    transform: translateY(-50%) scale(1.06);
    opacity: 1;
}

@keyframes shine {
    to {
        transform: rotate(30deg) translateX(100%);
    }
}

.file-info {
    color: #aaa;
    margin-top: 10px;
    font-style: italic;
}

.terminal {
    background: #001100;
    border: 1px solid var(--border-color);
    padding: 15px;
    font-family: monospace;
    margin: 20px 0;
    overflow-x: auto;
    color: #00ff00;
}

.code-section {
    margin: 30px 0;
}

.code-block {
    background: rgba(0, 20, 0, 0.8);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    padding: 20px;
    margin: 25px 0;
    position: relative;
}

.code-block pre {
    background: #000;
    padding: 15px;
    border-radius: 3px;
    overflow-x: auto;
    font-size: 16px;
}

.annotation {
    margin-top: 10px;
    padding-left: 20px;
    border-left: 3px solid var(--accent-color);
    font-style: italic;
    color: #aaa;
}

.architecture-diagram {
    text-align: center;
    margin: 40px 0;
}

.diagram {
    display: inline-block;
    background: #000;
    padding: 20px;
    border: 1px solid var(--border-color);
    font-size: 14px;
    line-height: 1.4;
    color: #00ccff;
}

.diagram-caption {
    margin-top: 10px;
    font-style: italic;
    color: #aaa;
}

.optimization-notes {
    background: rgba(30, 0, 0, 0.3);
    border-left: 3px solid #cc0000;
    padding: 20px;
    margin: 30px 0;
}

.optimization-notes ul {
    padding-left: 20px;
    margin-top: 15px;
}

.optimization-notes li {
    margin: 10px 0;
}

footer {
    text-align: center;
    padding: 30px 0;
    margin-top: 40px;
    border-top: 1px solid var(--border-color);
    color: #aaa;
    font-size: 14px;
}

.footer-art {
    font-size: 14px;
    color: var(--accent-color);
    margin-bottom: 15px;
    opacity: 0.8;
}

@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .ascii-logo {
        font-size: 14px;
    }
    
    nav {
        font-size: 16px;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* Version / animation helpers */
.release-banner {
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(90deg, rgba(0,40,0,0.6), rgba(0,20,20,0.45));
    padding: 18px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 20px;
}
.release-info { flex: 1; }
.release-cta { margin-left: 20px; }

.version-compare {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    margin: 20px 0 40px 0;
}
.version-card {
    background: rgba(0,0,0,0.6);
    border: 1px solid var(--border-color);
    padding: 14px;
    border-radius: 6px;
    flex: 1;
}
.version-card h4 { margin-bottom: 8px; color: var(--accent-color); }
.version-diff { color: #ddd; font-size: 14px; line-height: 1.5 }

/* Animations */
.ascii-logo.animate { animation: glow 3.5s ease-in-out infinite; }
@keyframes glow {
    0% { text-shadow: 0 0 3px rgba(0,204,0,0.2); transform: translateY(0); }
    50% { text-shadow: 0 0 18px rgba(0,204,0,0.8); transform: translateY(-3px); }
    100% { text-shadow: 0 0 3px rgba(0,204,0,0.2); transform: translateY(0); }
}

.float { animation: float 6s ease-in-out infinite; }
@keyframes float { 0% { transform: translateY(0); } 50% { transform: translateY(-8px); } 100% { transform: translateY(0); } }

.fade-in { opacity: 0; transform: translateY(12px); transition: all 420ms ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

.pulse { animation: pulse 2.4s infinite; }
@keyframes pulse { 0% { transform: scale(1); } 50% { transform: scale(1.03); } 100% { transform: scale(1); } }

/* Install steps styling */
.install-steps { text-align: left; max-width: 720px; margin: 10px auto; }
.install-steps ol { padding-left: 18px; color: #cfeecf; }
.install-steps li { margin: 10px 0; }
.install-note { color: #aaa; font-size: 13px; margin-top: 8px; }

@media (max-width: 768px) {
    .version-compare { flex-direction: column; }
    .release-banner { flex-direction: column; align-items: flex-start; }
}