/* ============================================
   ABSTRACT SURREAL COLORING GAME
   Terminal Design System
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
    --primary: #0a0f0a;
    --primary-light: #0d140d;
    --primary-dark: #050805;
    --secondary: #00ff41;
    --secondary-dim: #00cc34;
    --secondary-dark: #009926;
    --secondary-glow: rgba(0, 255, 65, 0.15);
    --secondary-glow-strong: rgba(0, 255, 65, 0.35);
    --accent: #ff8c00;
    --accent-dim: #cc7000;
    --accent-glow: rgba(255, 140, 0, 0.15);
    --text-primary: #00ff41;
    --text-secondary: #00cc34;
    --text-dim: #007a20;
    --text-muted: #005a18;
    --text-white: #e0ffe8;
    --text-legal: #c8e6c9;
    --red: #ff3333;
    --red-dim: #cc2929;
    --yellow: #ffcc00;
    --border-color: #00ff41;
    --border-dim: #005a18;
    --border-accent: #ff8c00;
    --terminal-bg: rgba(10, 15, 10, 0.92);
    --terminal-header: #0d140d;
    --scanline-color: rgba(0, 255, 65, 0.03);
    --font-mono: 'Fira Code', 'Courier New', 'Lucida Console', monospace;
    --glow-green: 0 0 10px rgba(0, 255, 65, 0.5), 0 0 20px rgba(0, 255, 65, 0.3), 0 0 40px rgba(0, 255, 65, 0.1);
    --glow-green-strong: 0 0 10px rgba(0, 255, 65, 0.7), 0 0 30px rgba(0, 255, 65, 0.5), 0 0 60px rgba(0, 255, 65, 0.2);
    --glow-amber: 0 0 10px rgba(255, 140, 0, 0.5), 0 0 20px rgba(255, 140, 0, 0.3);
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.6s ease;
    --z-overlay: 9999;
    --z-cookie: 10000;
    --z-lightbox: 10001;
    --z-header: 1000;
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-mono);
    background-color: var(--primary);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--primary-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--secondary-dark);
    border: 1px solid var(--border-dim);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-dim);
}

/* --- Selection --- */
::selection {
    background: var(--secondary);
    color: var(--primary);
}

/* --- CRT Overlay Effects --- */
.crt-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: var(--z-overlay);
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        var(--scanline-color) 2px,
        var(--scanline-color) 4px
    );
}

.crt-flicker {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: calc(var(--z-overlay) - 1);
    animation: crt-flicker 0.15s infinite;
    opacity: 0.02;
    background: var(--secondary);
}

@keyframes crt-flicker {
    0% { opacity: 0.02; }
    5% { opacity: 0.03; }
    10% { opacity: 0.02; }
    15% { opacity: 0.04; }
    20% { opacity: 0.02; }
    100% { opacity: 0.02; }
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-mono);
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-primary);
}

p {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    line-height: 1.8;
}

a {
    color: var(--secondary);
    text-decoration: none;
    transition: color var(--transition-fast), text-shadow var(--transition-fast);
}

a:hover,
a:focus {
    color: var(--accent);
    text-shadow: var(--glow-amber);
    outline: none;
}

a:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

strong {
    color: var(--text-white);
    font-weight: 600;
}

/* --- Utility Classes --- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 100px 0;
    position: relative;
}

.glow-text {
    text-shadow: var(--glow-green);
}

.amber-text {
    color: var(--accent) !important;
}

.link-green {
    color: var(--secondary);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.link-green:hover {
    color: var(--accent);
}

.prompt {
    color: var(--accent);
    font-weight: 700;
    margin-right: 6px;
    user-select: none;
}

.prompt-symbol {
    color: var(--accent);
    font-weight: 700;
    font-size: 1.2em;
}

.required-mark {
    color: var(--red);
    font-weight: 700;
}

/* --- Cursor Blink --- */
.cursor-blink {
    animation: cursor-blink 1s step-end infinite;
    color: var(--secondary);
    font-weight: 400;
}

@keyframes cursor-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* --- Glitch Text --- */
.glitch-text {
    position: relative;
}

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

.glitch-text::before {
    animation: glitch-1 3s infinite linear alternate-reverse;
    clip-path: inset(0 0 80% 0);
    color: var(--red);
    opacity: 0.7;
}

.glitch-text::after {
    animation: glitch-2 3s infinite linear alternate-reverse;
    clip-path: inset(80% 0 0 0);
    color: var(--accent);
    opacity: 0.7;
}

@keyframes glitch-1 {
    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); }
}

@keyframes glitch-2 {
    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); }
}

/* --- Terminal Window Component --- */
.terminal-window {
    background: var(--terminal-bg);
    border: 1px solid var(--border-dim);
    border-radius: 0;
    overflow: hidden;
    position: relative;
}

.terminal-window::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        180deg,
        rgba(0, 255, 65, 0.02) 0%,
        transparent 50%,
        rgba(0, 255, 65, 0.01) 100%
    );
    pointer-events: none;
    z-index: 1;
}

.terminal-titlebar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: var(--terminal-header);
    border-bottom: 1px solid var(--border-dim);
    position: relative;
    z-index: 2;
}

.terminal-dot {
    width: 10px;
    height: 10px;
    display: inline-block;
    border-radius: 0;
}

.dot-red {
    background: var(--red);
    box-shadow: 0 0 4px rgba(255, 51, 51, 0.5);
}

.dot-yellow {
    background: var(--yellow);
    box-shadow: 0 0 4px rgba(255, 204, 0, 0.5);
}

.dot-green {
    background: var(--secondary);
    box-shadow: 0 0 4px rgba(0, 255, 65, 0.5);
}

.terminal-title {
    color: var(--text-dim);
    font-size: 0.75rem;
    font-weight: 400;
    margin-left: auto;
    user-select: none;
}

.terminal-body {
    padding: 20px;
    position: relative;
    z-index: 2;
}

.terminal-line {
    font-size: 0.88rem;
    margin-bottom: 8px;
    line-height: 1.7;
}

/* --- Section Headers --- */
.section-header {
    margin-bottom: 50px;
}

.section-title-window {
    display: inline-block;
    min-width: 300px;
}

.section-title {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.sub-title {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 20px;
}

/* ============================================
   HEADER / NAVIGATION
   ============================================ */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: var(--z-header);
    background: rgba(10, 15, 10, 0.95);
    border-bottom: 1px solid var(--border-dim);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: background var(--transition-normal), border-color var(--transition-normal);
}

.main-header.scrolled {
    background: rgba(5, 8, 5, 0.98);
    border-bottom-color: var(--secondary-dark);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 60px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 1.3rem;
    font-weight: 700;
}

.nav-logo .logo-link {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--text-primary);
    text-decoration: none;
}

.nav-logo .logo-link:hover {
    text-shadow: var(--glow-green);
}

.logo-text {
    color: var(--secondary);
    text-shadow: var(--glow-green);
    letter-spacing: 2px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
}

.nav-link {
    display: block;
    padding: 8px 14px;
    font-size: 0.82rem;
    color: var(--text-secondary);
    transition: color var(--transition-fast), background var(--transition-fast), text-shadow var(--transition-fast);
    border: 1px solid transparent;
    text-decoration: none;
    white-space: nowrap;
}

.nav-link:hover,
.nav-link:focus {
    color: var(--secondary);
    background: var(--secondary-glow);
    border-color: var(--border-dim);
    text-shadow: var(--glow-green);
}

.nav-link.active {
    color: var(--secondary);
    border-color: var(--secondary-dark);
    background: var(--secondary-glow);
    text-shadow: var(--glow-green);
}

.nav-link.nav-cta {
    color: var(--primary);
    background: var(--secondary);
    border-color: var(--secondary);
    font-weight: 600;
    text-shadow: none;
}

.nav-link.nav-cta:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--primary);
    text-shadow: none;
}

/* Mobile menu toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: 1px solid var(--border-dim);
    padding: 8px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
}

.hamburger-line {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--secondary);
    transition: transform var(--transition-normal), opacity var(--transition-normal);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 10px 22px;
    border: 1px solid var(--border-dim);
    background: transparent;
    color: var(--text-primary);
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
    white-space: nowrap;
    text-align: center;
    line-height: 1.5;
    border-radius: 0;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn:active {
    transform: translateY(0);
}

.btn-green {
    background: var(--secondary);
    color: var(--primary);
    border-color: var(--secondary);
    text-shadow: none;
}

.btn-green:hover {
    background: var(--text-white);
    color: var(--primary);
    border-color: var(--text-white);
    box-shadow: var(--glow-green-strong);
    text-shadow: none;
}

.btn-amber {
    background: var(--accent);
    color: var(--primary);
    border-color: var(--accent);
    text-shadow: none;
}

.btn-amber:hover {
    background: var(--yellow);
    color: var(--primary);
    border-color: var(--yellow);
    box-shadow: var(--glow-amber);
    text-shadow: none;
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border-color: var(--border-color);
}

.btn-outline:hover {
    background: var(--secondary-glow);
    color: var(--secondary);
    text-shadow: var(--glow-green);
}

.btn-lg {
    padding: 14px 30px;
    font-size: 0.95rem;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 100px 24px 60px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(0, 255, 65, 0.05) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 30%, rgba(255, 140, 0, 0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    position: relative;
    z-index: 1;
}

.hero-window {
    border-color: var(--secondary-dark);
}

.hero-body {
    padding: 30px;
}

.hero-ascii-art {
    margin-bottom: 20px;
    overflow: hidden;
}

.hero-ascii-art pre {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    line-height: 1.2;
    color: var(--text-dim);
    text-shadow: 0 0 5px rgba(0, 255, 65, 0.3);
    white-space: pre;
}

.hero-line {
    margin-bottom: 16px;
    font-size: 0.95rem;
}

.hero-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 16px;
    text-shadow: var(--glow-green-strong);
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 30px 0;
    padding: 16px 0;
    border-top: 1px solid var(--border-dim);
    border-bottom: 1px solid var(--border-dim);
}

.stat-block {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-dim);
}

.stat-value {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--accent);
    text-shadow: var(--glow-amber);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 20px;
}

/* Hero Image Side */
.hero-image-side {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.image-frame {
    border-color: var(--secondary-dark);
}

.image-body {
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-game-icon {
    width: 100%;
    max-width: 400px;
    height: auto;
    display: block;
    border: 1px solid var(--border-dim);
    filter: saturate(0.85) contrast(1.05);
    transition: filter var(--transition-normal);
}

.hero-game-icon:hover {
    filter: saturate(1) contrast(1.1);
}

.image-caption {
    font-size: 0.75rem;
    color: var(--text-dim);
    margin-top: 10px;
    text-align: center;
}

/* Social Proof Ticker */
.ticker-window {
    border-color: var(--accent-dim);
}

.ticker-body {
    padding: 12px 16px;
    min-height: 44px;
}

.ticker-line {
    font-size: 0.82rem;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ticker-content {
    transition: opacity 0.4s ease;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-dim);
    animation: scroll-bounce 2s infinite;
    z-index: 1;
}

.scroll-arrow {
    margin-top: 4px;
    font-size: 1rem;
    color: var(--secondary);
}

@keyframes scroll-bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 50px;
}

.about-screenshot {
    width: 100%;
    height: auto;
    display: block;
    border: 1px solid var(--border-dim);
    filter: saturate(0.85);
    transition: filter var(--transition-normal);
}

.about-screenshot:hover {
    filter: saturate(1);
}

/* Trust Block */
.trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.trust-item {
    text-align: center;
    padding: 20px 10px;
    border: 1px solid var(--border-dim);
    background: rgba(0, 255, 65, 0.02);
    transition: border-color var(--transition-fast), background var(--transition-fast);
}

.trust-item:hover {
    border-color: var(--secondary-dark);
    background: var(--secondary-glow);
}

.trust-icon {
    display: block;
    font-size: 1.2rem;
    color: var(--accent);
    margin-bottom: 10px;
    font-weight: 700;
}

.trust-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.trust-desc {
    font-size: 0.78rem;
    color: var(--text-secondary);
}

/* ============================================
   GALLERY / SCREENSHOTS SECTION
   ============================================ */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.gallery-item {
    cursor: pointer;
    transition: transform var(--transition-fast);
}

.gallery-item:hover {
    transform: translateY(-3px);
}

.gallery-frame {
    border-color: var(--border-dim);
    transition: border-color var(--transition-fast);
}

.gallery-item:hover .gallery-frame {
    border-color: var(--secondary-dark);
}

.gallery-frame .image-body img {
    width: 100%;
    height: auto;
    display: block;
    border: 1px solid var(--border-dim);
    filter: saturate(0.8) contrast(1.05);
    transition: filter var(--transition-normal);
}

.gallery-item:hover .gallery-frame .image-body img {
    filter: saturate(1) contrast(1.1);
}

.gallery-caption {
    font-size: 0.75rem;
    color: var(--text-dim);
    margin-top: 8px;
    text-align: center;
}

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: var(--z-lightbox);
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 8, 5, 0.92);
    cursor: pointer;
}

.lightbox-content {
    position: relative;
    z-index: 2;
    max-width: 90vw;
    max-height: 90vh;
    width: 800px;
}

.lightbox-window {
    border-color: var(--secondary);
    box-shadow: var(--glow-green);
}

.lightbox-window .terminal-titlebar {
    position: relative;
}

.lightbox-close {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: 1px solid var(--red-dim);
    color: var(--red);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    cursor: pointer;
    padding: 2px 8px;
    transition: all var(--transition-fast);
}

.lightbox-close:hover {
    background: var(--red);
    color: var(--primary);
}

.lightbox-body {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 10px;
}

.lightbox-image {
    max-width: 100%;
    max-height: 70vh;
    display: block;
    border: 1px solid var(--border-dim);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--terminal-bg);
    border: 1px solid var(--border-dim);
    color: var(--secondary);
    font-family: var(--font-mono);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 10px 14px;
    transition: all var(--transition-fast);
    z-index: 3;
}

.lightbox-nav:hover {
    background: var(--secondary);
    color: var(--primary);
    border-color: var(--secondary);
}

.lightbox-prev {
    left: 10px;
}

.lightbox-next {
    right: 10px;
}

/* ============================================
   FEATURES SECTION
   ============================================ */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.feature-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.feature-card .terminal-window {
    height: 100%;
    border-color: var(--border-dim);
    transition: border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.feature-card:hover .terminal-window {
    border-color: var(--secondary-dark);
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.08);
}

.feature-icon-text {
    font-size: 1.4rem;
    color: var(--accent);
    font-weight: 700;
    margin-bottom: 14px;
    text-shadow: var(--glow-amber);
}

.feature-title {
    font-size: 1.1rem;
    margin-bottom: 12px;
}

.feature-desc {
    font-size: 0.82rem;
    color: var(--text-secondary);
    margin-bottom: 14px;
}

.feature-code {
    font-size: 0.75rem;
    padding: 8px;
    background: rgba(255, 140, 0, 0.05);
    border: 1px solid rgba(255, 140, 0, 0.15);
}

/* ============================================
   FAQ SECTION
   ============================================ */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.faq-item {
    border: 1px solid var(--border-dim);
    background: var(--terminal-bg);
    transition: border-color var(--transition-fast);
}

.faq-item.open {
    border-color: var(--secondary-dark);
}

.faq-question {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 16px 20px;
    background: none;
    border: none;
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    text-align: left;
    transition: background var(--transition-fast), color var(--transition-fast);
}

.faq-question:hover {
    background: var(--secondary-glow);
}

.faq-q-text {
    flex: 1;
}

.faq-toggle {
    color: var(--accent);
    font-weight: 700;
    font-size: 1rem;
    transition: transform var(--transition-normal);
    flex-shrink: 0;
}

.faq-item.open .faq-toggle {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, padding 0.3s ease;
}

.faq-item.open .faq-answer {
    max-height: 600px;
}

.faq-answer .terminal-window {
    margin: 0 16px 16px;
    border-color: var(--border-dim);
}

/* ============================================
   REGISTRATION SECTION
   ============================================ */
.register-section {
    background:
        linear-gradient(180deg, var(--primary) 0%, var(--primary-light) 50%, var(--primary) 100%);
}

.register-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: start;
}

.benefits-list {
    list-style: none;
    margin-bottom: 30px;
}

.benefits-list li {
    margin-bottom: 10px;
    font-size: 0.88rem;
}

.register-counter {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-dim);
}

.counter-display {
    font-size: 1rem;
    color: var(--text-secondary);
}

.big-counter {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent);
    text-shadow: var(--glow-amber);
}

/* Form */
.form-window {
    border-color: var(--secondary-dark);
}

.register-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.form-input {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    padding: 12px 16px;
    background: var(--primary-dark);
    border: 1px solid var(--border-dim);
    color: var(--text-primary);
    outline: none;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
    border-radius: 0;
}

.form-input::placeholder {
    color: var(--text-muted);
}

.form-input:focus {
    border-color: var(--secondary);
    box-shadow: 0 0 10px rgba(0, 255, 65, 0.15);
}

.form-input.error {
    border-color: var(--red);
    box-shadow: 0 0 10px rgba(255, 51, 51, 0.15);
}

.form-error {
    font-size: 0.78rem;
    color: var(--red);
    min-height: 18px;
}

/* Checkbox */
.form-checkbox-group {
    flex-direction: row;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.checkbox-custom {
    display: inline-block;
    width: 18px;
    height: 18px;
    min-width: 18px;
    border: 1px solid var(--border-dim);
    background: var(--primary-dark);
    position: relative;
    margin-top: 2px;
    transition: all var(--transition-fast);
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom {
    background: var(--secondary);
    border-color: var(--secondary);
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom::after {
    content: 'X';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--primary);
    font-size: 0.7rem;
    font-weight: 700;
    font-family: var(--font-mono);
}

.checkbox-label input[type="checkbox"]:focus-visible + .checkbox-custom {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.checkbox-text {
    flex: 1;
}

.form-actions {
    margin-top: 10px;
}

.btn-submit {
    width: 100%;
    position: relative;
    overflow: hidden;
}

.btn-submit::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.btn-submit:hover::after {
    left: 100%;
}

.btn-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.form-note {
    font-size: 0.75rem;
    color: var(--text-dim);
}

/* Success message */
.form-success {
    text-align: center;
    padding: 20px 0;
}

.success-ascii {
    font-family: var(--font-mono);
    font-size: 0.5rem;
    line-height: 1.2;
    color: var(--secondary);
    text-shadow: var(--glow-green);
    margin-bottom: 20px;
    white-space: pre;
    overflow-x: auto;
}

.success-text {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 16px;
}

/* ============================================
   COOKIE CONSENT BANNER
   ============================================ */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: var(--z-cookie);
    padding: 20px;
    animation: cookie-slide-up 0.5s ease;
}

@keyframes cookie-slide-up {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.cookie-inner {
    max-width: 800px;
    margin: 0 auto;
}

.cookie-terminal {
    border-color: var(--accent);
    box-shadow: var(--glow-amber);
}

.cookie-body {
    padding: 16px 20px;
}

.cookie-text {
    font-size: 0.82rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.6;
}

.cookie-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.cookie-actions .btn {
    font-size: 0.78rem;
    padding: 8px 16px;
}

/* ============================================
   FOOTER
   ============================================ */
.main-footer {
    padding: 60px 0 30px;
    border-top: 1px solid var(--border-dim);
    background: var(--primary-dark);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 30px;
    margin-bottom: 40px;
}

.footer-terminal .terminal-body {
    padding: 14px;
}

.footer-logo {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.footer-heading {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-link {
    font-size: 0.82rem;
    color: var(--text-secondary);
    transition: color var(--transition-fast);
    text-decoration: none;
}

.footer-link:hover {
    color: var(--secondary);
    text-shadow: var(--glow-green);
}

.footer-bottom {
    border-top: 1px solid var(--border-dim);
    padding-top: 20px;
}

.footer-bottom-terminal {
    border-color: var(--border-dim);
}

.footer-bottom-terminal .terminal-body {
    padding: 14px 20px;
    text-align: center;
}

.footer-address,
.footer-copy,
.footer-responsible {
    font-size: 0.78rem;
    margin-bottom: 4px;
}

/* ============================================
   LEGAL PAGES
   ============================================ */
.legal-page {
    padding-top: 100px;
    padding-bottom: 80px;
    min-height: 80vh;
}

.legal-content {
    margin-top: 20px;
}

.legal-window {
    border-color: var(--secondary-dark);
}

.legal-body {
    padding: 30px;
}

.legal-heading {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--secondary);
    text-shadow: var(--glow-green);
    margin-top: 36px;
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-dim);
}

.legal-subheading {
    font-size: 1rem;
    font-weight: 600;
    color: var(--accent);
    margin-top: 24px;
    margin-bottom: 10px;
}

.legal-text {
    font-size: 0.88rem;
    color: var(--text-legal);
    margin-bottom: 12px;
    line-height: 1.8;
}

.legal-list {
    list-style: none;
    margin-bottom: 16px;
    padding-left: 0;
}

.legal-list li {
    font-size: 0.85rem;
    color: var(--text-legal);
    margin-bottom: 8px;
    padding-left: 4px;
    line-height: 1.7;
}

.legal-footer-block {
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid var(--border-dim);
}

.legal-footer-block .terminal-line {
    font-size: 0.82rem;
    color: var(--text-dim);
}

/* ============================================
   REVEAL ON SCROLL ANIMATION
   ============================================ */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger delays for features */
.feature-card:nth-child(1) { transition-delay: 0s; }
.feature-card:nth-child(2) { transition-delay: 0.1s; }
.feature-card:nth-child(3) { transition-delay: 0.2s; }
.feature-card:nth-child(4) { transition-delay: 0.3s; }
.feature-card:nth-child(5) { transition-delay: 0.4s; }
.feature-card:nth-child(6) { transition-delay: 0.5s; }

/* ============================================
   BACKGROUND NOISE TEXTURE
   ============================================ */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: calc(var(--z-overlay) - 2);
    opacity: 0.015;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 256px 256px;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Tablet */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .hero-image-side {
        order: -1;
    }

    .hero-title {
        font-size: 1.6rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .trust-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .register-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background: rgba(10, 15, 10, 0.98);
        border-bottom: 1px solid var(--border-dim);
        flex-direction: column;
        padding: 10px 0;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-link {
        padding: 12px 24px;
        border: none;
        border-bottom: 1px solid var(--border-dim);
    }

    .nav-link:last-child {
        border-bottom: none;
    }

    .hero-section {
        padding: 80px 16px 40px;
        min-height: auto;
    }

    .hero-title {
        font-size: 1.3rem;
    }

    .hero-ascii-art pre {
        font-size: 0.45rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 12px;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .btn {
        width: 100%;
        text-align: center;
    }

    .section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 1.1rem;
    }

    .section-title-window {
        min-width: auto;
        width: 100%;
    }

    .trust-grid {
        grid-template-columns: 1fr;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .cookie-actions {
        flex-direction: column;
    }

    .cookie-actions .btn {
        width: 100%;
    }

    .lightbox-content {
        width: 95vw;
    }

    .lightbox-nav {
        padding: 6px 10px;
        font-size: 1rem;
    }

    .lightbox-prev {
        left: 4px;
    }

    .lightbox-next {
        right: 4px;
    }

    .legal-body {
        padding: 16px;
    }

    .success-ascii {
        font-size: 0.35rem;
    }

    .container {
        padding: 0 16px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    html {
        font-size: 14px;
    }

    .hero-title {
        font-size: 1.15rem;
    }

    .hero-ascii-art {
        display: none;
    }

    .terminal-body {
        padding: 14px;
    }

    .terminal-titlebar {
        padding: 6px 10px;
    }

    .big-counter {
        font-size: 1.5rem;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .crt-flicker {
        display: none;
    }

    .glitch-text::before,
    .glitch-text::after {
        display: none;
    }

    .feature-card,
    .reveal-on-scroll {
        opacity: 1;
        transform: none;
    }
}

/* High Contrast */
@media (prefers-contrast: high) {
    :root {
        --text-primary: #00ff41;
        --text-secondary: #00ff41;
        --text-dim: #00cc34;
        --border-dim: #00ff41;
    }
}

/* Print */
@media print {
    .crt-overlay,
    .crt-flicker,
    .cookie-banner,
    .main-header,
    .scroll-indicator,
    .social-proof-ticker {
        display: none !important;
    }

    body {
        background: white;
        color: black;
    }

    body::after {
        display: none;
    }

    .terminal-window {
        border: 1px solid #333;
        background: white;
    }

    .glow-text,
    .glitch-text {
        text-shadow: none;
    }
}
```

Now the JavaScript:

```js