:root {
    --bg-color: #0A0A1A; /* Midnight blue */
    --pixel-red: #FF004D;
    --pixel-blue: #00E5FF;
    --pixel-dark-blue: #0055FF;
    --text-color: #FFFFFF;
    --text-light: #CCCCCC;
    --white: #FFFFFF;
    --border-color: #333355;
    --pixel-shadow: 4px 4px 0px 0px #000;
}

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


/* Skip Link */
.skip-link {
    position: absolute;
    top: -50px;
    left: 0;
    background: var(--pixel-red);
    color: var(--white);
    padding: 10px 20px;
    z-index: 9999;
    text-decoration: none;
    font-weight: bold;
    font-family: monospace;
}
.skip-link:focus {
    top: 0;
}

body {
    font-family: 'Courier New', 'Microsoft YaHei', 'PingFang SC', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

/* Background Canvas */
#pixelStars {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    z-index: -1; pointer-events: none;
}

/* Base Layout (Strictly preserving original grid) */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }
.grid-3 { 
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; 
    perspective: 1200px; /* For 3D layout illusion */
}

/* Header */
.header {
    background: rgba(10, 10, 26, 0.95);
    border-bottom: 4px solid var(--pixel-dark-blue);
    position: sticky; top: 0; z-index: 100;
}
.header-container { display: flex; justify-content: space-between; align-items: center; height: 70px; }
.logo { 
    font-size: 1.2rem; color: var(--pixel-blue); 
    text-shadow: 3px 3px 0 var(--pixel-dark-blue); 
}
.nav-menu { display: flex; gap: 20px; }
.nav-menu a { color: var(--white); text-decoration: none; font-size: 0.7rem; transition: 0.2s; }
.nav-menu a:hover { color: var(--pixel-red); }

/* Buttons (Game Controller Style) */
.btn {
    display: inline-block;
    padding: 12px 20px;
    background: var(--pixel-dark-blue);
    color: var(--white);
    text-decoration: none;
    font-size: 0.8rem;
    text-align: center;
    cursor: pointer;
    box-shadow: inset -4px -4px 0px 0px rgba(0,0,0,0.5), inset 4px 4px 0px 0px rgba(255,255,255,0.4), 0 0 0 4px #000;
    margin: 4px;
    text-transform: uppercase;
    transition: transform 0.1s;
}
.btn::before { content: '[A] '; color: #FF0; font-size: 0.7rem; }
.btn:hover { background: var(--pixel-red); }
.btn:active {
    box-shadow: inset 4px 4px 0px 0px rgba(0,0,0,0.5), inset -4px -4px 0px 0px rgba(255,255,255,0.4), 0 0 0 4px #000;
    transform: translateY(4px);
}
.btn-primary { background: var(--pixel-red); }
.btn-primary:hover { background: var(--pixel-dark-blue); }
.btn-outline { background: transparent; color: var(--pixel-blue); box-shadow: 0 0 0 4px var(--pixel-blue); }
.btn-outline::before { content: '[START] '; color: var(--pixel-red); }

/* Typography */
h1, h2, h3, h4 { text-shadow: 2px 2px 0 #000; color: var(--white); margin-bottom: 20px; }
.section-title { text-align: center; font-size: 1.5rem; color: var(--pixel-red); margin-bottom: 50px; text-shadow: 4px 4px 0 var(--pixel-dark-blue); }

/* Global Section Spacing */
section { padding: 80px 0; scroll-margin-top: 80px; }

/* Hero Section */
.hero { padding: 80px 0; border-bottom: 4px dashed var(--border-color); }
.hero-content { display: flex; align-items: center; justify-content: space-between; }
.hero-text { flex: 1; }
.hero .headline { font-size: 2.2rem; color: var(--pixel-blue); line-height: 1.5; margin-bottom: 20px; text-shadow: 4px 4px 0 var(--pixel-dark-blue); }
.hero .subtitle { font-family: 'Courier New', Courier, monospace; font-size: 1.1rem; color: var(--text-light); margin-bottom: 40px; font-weight: bold; }
.hero-visual { width: 300px; height: 300px; animation: itemBounce 2s infinite cubic-bezier(0.28, 0.84, 0.42, 1); }
@keyframes itemBounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-20px); } }

/* Cards (8-bit Pixel Borders) */
.card {
    background: #111126;
    padding: 30px;
    border: 4px solid var(--white);
    box-shadow: 8px 8px 0px 0px var(--pixel-dark-blue);
    transition: all 0.3s ease;
    position: relative;
}
.card:hover {
    transform: translate(-4px, -4px) !important;
    box-shadow: 12px 12px 0px 0px var(--pixel-red);
    border-color: var(--pixel-blue);
}
.card h3 { color: var(--pixel-blue); font-size: 1rem; }
.card p { font-family: 'Courier New', Courier, monospace; color: var(--text-light); font-size: 0.9rem; font-weight: bold; line-height: 1.5; }

/* Features & Icons */
.features .icon { font-size: 2.5rem; margin-bottom: 15px; text-shadow: 3px 3px 0 var(--pixel-red); }

/* Pricing Section - Fake 3D Carousel within grid-3 */
.pricing { padding: 80px 0; }
.pricing-card { text-align: center; }

/* 3D tilt effect on the 3 columns to simulate a 360 carousel curve */
@media (min-width: 900px) {
    .pricing .grid-3 .card:nth-child(1) { transform: rotateY(15deg) translateZ(-20px); }
    .pricing .grid-3 .card:nth-child(2) { transform: translateZ(20px); z-index: 2; border-color: var(--pixel-red); box-shadow: 8px 8px 0px 0px var(--pixel-red); }
    .pricing .grid-3 .card:nth-child(3) { transform: rotateY(-15deg) translateZ(-20px); }
}

.pricing-card .price { font-size: 1.5rem; color: var(--pixel-red); margin: 20px 0; text-shadow: 2px 2px 0 #000; }
.pricing-card .price span { font-size: 0.8rem; color: var(--white); }
.pricing-card ul { list-style: none; margin-bottom: 30px; font-family: 'Courier New', monospace; font-weight: bold; text-align: left; }
.pricing-card ul li { padding: 10px 0; border-bottom: 2px dotted #444; color: #ddd; font-size: 0.9rem; }
.pricing-card ul li::before { content: '>'; color: var(--pixel-blue); margin-right: 10px; }
.pricing-card .badge { 
    position: absolute; top: -15px; left: 50%; transform: translateX(-50%); 
    background: var(--pixel-blue); color: #000; padding: 5px 10px; 
    font-size: 0.7rem; border: 2px solid var(--white); font-weight: bold;
}

/* FAQ */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item { 
    background: #15152A; border: 4px solid var(--border-color); 
    padding: 20px; margin-bottom: 20px; 
    box-shadow: 4px 4px 0px 0px #000;
}
.faq-item h4 { font-size: 0.85rem; color: var(--pixel-blue); margin-bottom: 10px; line-height: 1.5; }
.faq-item p { margin-bottom: 0; }

/* Arcade Marquee / Ticker */
.marquee-container {
    background: #000;
    border-top: 4px solid var(--pixel-red);
    border-bottom: 4px solid var(--pixel-red);
    overflow: hidden;
    padding: 12px 0;
    white-space: nowrap;
    position: relative;
    z-index: 10;
}
.marquee-content {
    display: inline-block;
    animation: scroll 15s linear infinite;
    font-size: 0.85rem;
    color: #0f0;
}
.marquee-content span { margin-right: 50px; }
.blink-ready { color: #ff0; animation: blinkFast 1s steps(2, start) infinite; }
.blink-online { color: #0f0; animation: blinkFast 1.5s steps(2, start) infinite; }
@keyframes scroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
@keyframes blinkFast { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

/* Footer */
.footer { 
    background: #050510; padding: 40px 0; text-align: center; 
    border-top: 4px solid var(--pixel-dark-blue); position: relative; z-index: 2; 
}
.footer-links { margin-bottom: 20px; }
.footer-links a { color: var(--text-light); margin: 0 15px; font-size: 0.7rem; text-decoration: none; transition: 0.2s; }
.footer-links a:hover { color: var(--pixel-red); }
.copyright { font-size: 0.6rem; color: #555; }

/* Responsive adjustments */
@media (max-width: 900px) {
    .grid-3 { grid-template-columns: repeat(2, 1fr); transform: none; }
    .hero-content { flex-direction: column; text-align: center; }
    .hero-visual { margin-top: 40px; }
    .pricing .grid-3 .card { transform: none !important; }
}
@media (max-width: 768px) {
    .grid-2, .grid-3 { grid-template-columns: 1fr; }
    .hero .headline { font-size: 1.5rem; }
    .nav-menu { display: none; } /* Hide on mobile for strict layout */
}

/* Subpages & Articles (.page-content) */
.page-content {
    background: #111126;
    border: 4px solid var(--white);
    box-shadow: 8px 8px 0px 0px var(--pixel-dark-blue);
    padding: 40px;
    margin: 40px 0;
    position: relative;
    z-index: 2;
}
.page-content h1 {
    font-size: 1.5rem;
    color: var(--pixel-blue);
    margin-bottom: 30px;
    line-height: 1.6;
    text-shadow: 3px 3px 0 var(--pixel-dark-blue);
}
.page-content h2 {
    font-size: 1.2rem;
    text-align: left;
    color: var(--pixel-red);
    margin-top: 40px;
    margin-bottom: 20px;
    text-shadow: 2px 2px 0 #000;
}
.page-content p {
    font-family: 'Courier New', 'Microsoft YaHei', sans-serif;
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 20px;
    font-weight: bold;
    color: var(--text-light);
}
.page-content ul {
    margin-left: 20px;
    margin-bottom: 20px;
    font-family: 'Courier New', 'Microsoft YaHei', sans-serif;
    font-weight: bold;
    color: var(--text-light);
    line-height: 1.8;
}
.page-content li { margin-bottom: 10px; }
.page-content a { color: var(--pixel-blue); font-weight: bold; text-decoration: none; border-bottom: 2px dashed var(--pixel-blue); }
.page-content a:hover { color: var(--pixel-red); border-color: var(--pixel-red); }

details.faq-item {
    background: #15152A; border: 4px solid var(--border-color);
    padding: 15px; margin-bottom: 20px;
    box-shadow: 4px 4px 0px 0px #000;
}
details.faq-item summary {
    font-size: 0.95rem; color: var(--pixel-blue);
    font-weight: bold; cursor: pointer;
}
details.faq-item p {
    margin-top: 15px; font-size: 0.85rem; color: #ccc; margin-bottom: 0;
}
