/* ── Variables ── */
:root {
    --primary-color: #00ff00;
    --secondary-color: #005500;
    --bg-color: #000000;
    --text-dim: #ccffcc;
    --banner-bg: #003300;
}

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

body {
    background-color: var(--bg-color);
    font-family: 'Share Tech Mono', 'Cascadia Code', Menlo, Monaco, 'Courier New', monospace;
    color: var(--primary-color);
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* ── Top header (light section, not fixed) ── */
.site-header {
    background: transparent;
    width: 100%;
    padding: 16px 0;
    border-bottom: none;
}

.header-content {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.logo img {
    max-width: 100%;
    height: auto;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

nav ul li a {
    color: #111;
    text-decoration: none;
    font-size: 1rem;
    letter-spacing: 0.05em;
    font-family: 'Share Tech Mono', monospace;
    transition: color 0.2s;
}

nav ul li a:hover {
    color: var(--secondary-color);
}

/* ── Banner ── */
.banner {
    width: 100%;
    background: linear-gradient(to bottom, #e8e8e8, #003300 60%, ##003300);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    border-top: none;
    border-bottom: none;
}

.banner img {
    width: 100%;
    max-width: 1200px;
    height: auto;
    filter: drop-shadow(0 0 8px var(--primary-color));
}

/* ── Animated grid background ── */
.grid-container {
    --grid: 10rem;
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    transform-style: preserve-3d;
    perspective: 100rem;
    z-index: -1;
    pointer-events: none;
}

.plane {
    --dir: 1;
    width: 300%;
    height: 150%;
    min-height: 70rem;
    position: absolute;
    bottom: 0;
    transform-style: preserve-3d;
    transform-origin: bottom center;
    transform: translateX(-50%) rotateX(85deg);
}

.plane:last-child {
    --dir: -1;
    top: unset;
    bottom: 100%;
    transform-origin: bottom center;
    transform: translateX(-50%) rotateX(5deg);
}

.plane > * {
    transform-style: preserve-3d;
    height: 100%;
    width: 100%;
    position: absolute;
}

.plane > *::before,
.plane > *::after {
    content: '';
    display: block;
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.plane > *::before {
    background-image:
        repeating-linear-gradient(to left, var(--primary-color), var(--primary-color) 4px, transparent 4px, transparent var(--grid)),
        repeating-linear-gradient(to bottom, var(--primary-color), var(--primary-color) 4px, transparent 4px, transparent var(--grid));
    animation: move 1s linear infinite;
}

.plane > *::after {
    background-image: linear-gradient(to bottom, rgba(0,0,0,1) var(--grid), rgba(0,0,0,0));
    z-index: 1;
    transform: translateZ(1px);
}

.glow {
    filter: blur(1rem);
    z-index: 1;
    mix-blend-mode: plus-lighter;
}

/* ── Keyframes ── */
@keyframes move {
    from { transform: translateY(0); }
    to   { transform: translateY(calc(var(--grid) * var(--dir))) translateZ(0); }
}

@keyframes blink {
    0%, 50%   { visibility: visible; }
    51%, 100% { visibility: hidden; }
}

/* ── Main content ── */
main {
    position: relative;
    z-index: 1;
}

section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
}

.content-box {
    max-width: 700px;
    width: 100%;
    background: rgba(0,0,0,0.75);
    border: 2px solid var(--primary-color);
    box-shadow: 0 0 20px var(--primary-color);
    padding: 2.5rem;
}

/* ── Typography ── */
h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 0 5px currentColor);
    letter-spacing: 0.05em;
}

h2::after {
    content: '';
    display: inline-block;
    width: 0.18em;
    height: 0.75em;
    background-color: currentColor;
    margin-left: 0.12em;
    animation: blink 1s linear infinite;
    vertical-align: baseline;
}

p, li {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-dim);
}

ul {
    list-style: none;
    margin: 0.8rem 0;
}

ul li::before {
    content: '> ';
    color: var(--primary-color);
}

p + p,
ul + p {
    margin-top: 0.8rem;
}

/* ── Connect links ── */
.links {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-top: 0.5rem;
}

.links a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 1.1rem;
    transition: text-shadow 0.2s, letter-spacing 0.2s;
}

.links a::before {
    content: '→ ';
}

.links a:hover {
    text-shadow: 0 0 8px var(--primary-color);
    letter-spacing: 0.05em;
}
