:root {
    --bg-color: #0b100c;
    --crt-glow: #24ff6a;
    --text-color: #33ff66;
    --dim-text: #1b8a3e;
    --bright-text: #a6ffb8;
    --amber: #ffb000;
    --c64-cyan: #7868ff;
    --border-color: #226633;
    --card-bg: rgba(14, 26, 17, 0.88);
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: "Courier New", Courier, "Lucida Console", monospace;
    line-height: 1.55;
    padding: 1.5rem 1rem 3rem 1rem;
    min-height: 100vh;
    background-image: 
        linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.35) 50%),
        linear-gradient(90deg, rgba(255, 0, 0, 0.03), rgba(0, 255, 0, 0.01), rgba(0, 0, 255, 0.03));
    background-size: 100% 3px, 4px 100%;
}

.wrapper {
    max-width: 980px;
    margin: 0 auto;
}

header {
    border: 2px solid var(--border-color);
    background: var(--card-bg);
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 0 20px rgba(51, 255, 102, 0.12);
}

.sys-prompt {
    color: var(--c64-cyan);
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.header-bar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 1rem;
}

h1 {
    font-size: clamp(1.5rem, 3.5vw, 2.2rem);
    color: var(--bright-text);
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 8px rgba(51, 255, 102, 0.6);
}

.lang-switch {
    display: inline-flex;
    gap: 0.4rem;
    font-size: 0.85rem;
    background: #060e07;
    border: 1px solid var(--border-color);
    padding: 0.25rem 0.6rem;
}

.lang-switch a {
    color: var(--dim-text);
    text-decoration: none;
    font-weight: bold;
}

.lang-switch a.active {
    color: var(--amber);
    text-shadow: 0 0 6px rgba(255, 176, 0, 0.5);
}

.tagline {
    color: var(--amber);
    font-size: 0.95rem;
    margin-top: 0.35rem;
}

nav {
    margin-bottom: 1.75rem;
    padding: 0.75rem 1rem;
    background: #081409;
    border-left: 4px solid var(--text-color);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
    font-size: 0.9rem;
}

nav a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: bold;
}

nav a:hover, nav a.current {
    color: #fff;
    text-decoration: underline;
    text-shadow: 0 0 8px var(--crt-glow);
}

section {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 1.75rem;
    margin-bottom: 1.75rem;
}

h2 {
    font-size: 1.3rem;
    color: var(--bright-text);
    border-bottom: 1px dashed var(--dim-text);
    padding-bottom: 0.4rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

h3 {
    font-size: 1.05rem;
    color: var(--amber);
    margin: 1.25rem 0 0.35rem 0;
}

p {
    margin-bottom: 0.85rem;
    font-size: 0.95rem;
    color: #d1f7d6;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.25rem;
    margin-top: 1rem;
}

.card {
    border: 1px solid #1c4524;
    padding: 1.25rem;
    background: rgba(8, 18, 10, 0.95);
}

.card-title {
    font-weight: bold;
    color: var(--bright-text);
    font-size: 1.05rem;
    display: block;
    margin-bottom: 0.25rem;
}

.specs {
    font-size: 0.8rem;
    color: var(--dim-text);
    font-family: monospace;
    border-bottom: 1px dotted #1c4524;
    padding-bottom: 0.4rem;
    margin-bottom: 0.75rem;
}

ul {
    list-style: none;
    padding-left: 0;
}

ul li {
    position: relative;
    padding-left: 1.25rem;
    margin-bottom: 0.45rem;
    font-size: 0.9rem;
}

ul li::before {
    content: ">";
    position: absolute;
    left: 0;
    color: var(--amber);
    font-weight: bold;
}

blockquote {
    background: #060e07;
    border-left: 3px solid var(--amber);
    padding: 0.75rem 1rem;
    margin: 1rem 0;
    font-style: italic;
    color: #b0e8ba;
    font-size: 0.9rem;
}

.cursor {
    display: inline-block;
    width: 8px;
    height: 1em;
    background-color: var(--text-color);
    vertical-align: middle;
    animation: blink 1s step-start infinite;
    margin-left: 4px;
}

@keyframes blink { 50% { opacity: 0; } }

.link-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.75rem;
    margin-top: 1rem;
}

.link-card {
    border: 1px solid var(--border-color);
    padding: 0.75rem;
    background: #081409;
    text-decoration: none;
    color: var(--text-color);
    display: block;
    transition: all 0.15s ease;
}

.link-card:hover {
    border-color: var(--bright-text);
    background: #112814;
    color: #fff;
    transform: translateY(-2px);
}

.link-card strong {
    display: block;
    color: var(--amber);
    font-size: 0.95rem;
}

.link-card span {
    font-size: 0.8rem;
    color: #8dc296;
}

footer {
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
    margin-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--dim-text);
}

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

footer a:hover {
    text-decoration: underline;
}
