/* --- VARIABLES --- */
:root {
    --bg-color: #050505;
    --neon-blue: #0000BB;
    --neon-green: #00FF41;
    --neon-cyan: #00FFFF;
    --neon-magenta: #FF00FF;
    --text-white: #E0E0E0;
    
    --qrstu-cyan: #22D3EE;
    --qrstu-gold: #FACC15;
    
    --font-head: 'VT323', monospace;
    --font-body: 'Fira Code', monospace;
}

/* --- RESET --- */
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
    background-color: var(--bg-color);
    color: var(--text-white);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }

/* --- BACKGROUND FX --- */
.scanlines {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
    background-size: 100% 2px, 3px 100%;
    pointer-events: none; z-index: 999;
}
.noise-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none; z-index: 998;
    opacity: 0.05;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* --- LAYOUT --- */
.container {
    width: 90%; max-width: 1200px; margin: 0 auto;
    min-height: 100vh; display: flex; flex-direction: column;
    padding-bottom: 2rem;
}

/* --- NAV --- */
nav {
    display: flex; justify-content: space-between; align-items: center;
    padding: 2rem 0; font-family: var(--font-head);
    border-bottom: 2px solid #333;
    margin-bottom: 2rem;
}
.logo-text {
    font-size: 2rem; color: var(--neon-green);
    text-shadow: 2px 2px 0px var(--neon-blue);
    cursor: pointer;
}
.logo-text span { color: var(--neon-cyan); }
.logo-sub { font-size: 0.9rem; letter-spacing: 2px; opacity: 0.7; margin-top: -5px; color: var(--neon-cyan); }

.nav-links { display: flex; gap: 2rem; }
.nav-item {
    font-size: 1.25rem; color: #888; transition: 0.3s;
    text-transform: uppercase;
}
.nav-item:hover, .nav-item.active {
    color: var(--neon-green);
    text-shadow: 0 0 8px var(--neon-green);
}

/* --- HERO SECTION (SPLIT) --- */
.hero-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    min-height: 60vh;
}

/* Left: Text */
.glitch-title {
    font-family: var(--font-head);
    font-size: 4.5rem; line-height: 0.9;
    position: relative;
    color: var(--text-white);
}
.glitch-title.sub { color: var(--neon-cyan); margin-bottom: 2rem; }

.terminal-box {
    border-left: 3px solid var(--neon-green);
    padding-left: 1rem;
    font-size: 1.1rem;
    color: #aaa;
    margin-bottom: 2rem;
}
.highlight-cyan { color: var(--neon-cyan); font-weight: bold; }
.blink { animation: blinker 1s infinite; color: var(--neon-green); }
@keyframes blinker { 50% { opacity: 0; } }

/* Right: QRSTU Card (The Star) */
.qrstu-showcase-card {
    position: relative;
    transform-style: preserve-3d;
    perspective: 1000px;
    animation: floatCard 6s ease-in-out infinite;
}
@keyframes floatCard {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

.card-glass {
    background: rgba(10, 10, 20, 0.8);
    border: 1px solid var(--neon-cyan);
    border-radius: 20px;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.card-scanline {
    position: absolute; top: 0; left: 0; width: 100%; height: 5px;
    background: rgba(34, 211, 238, 0.5);
    animation: scanDown 3s linear infinite;
    box-shadow: 0 0 10px var(--qrstu-cyan);
}
@keyframes scanDown {
    0% { top: -10%; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { top: 110%; opacity: 0; }
}

.card-content { text-align: center; position: relative; z-index: 2; }
.app-logo-wrapper { width: 70px; margin: 0 auto 1rem; }
.qrstu-svg { width: 100%; height: auto; filter: drop-shadow(0 0 8px var(--qrstu-cyan)); }

.qrstu-showcase-card h2 {
    font-family: 'Inter', sans-serif;
    font-weight: 800; font-size: 2rem;
    margin-bottom: 0.2rem; letter-spacing: -1px;
}
.app-tagline { font-size: 0.9rem; color: #888; margin-bottom: 1.5rem; }

.stats-row {
    display: flex; justify-content: center; gap: 2rem;
    margin-bottom: 2rem;
    background: rgba(255,255,255,0.05);
    padding: 0.5rem; border-radius: 8px;
}
.stat { display: flex; flex-direction: column; }
.stat span { font-size: 0.7rem; color: #666; }
.stat strong { color: var(--qrstu-gold); font-family: var(--font-head); font-size: 1.2rem; }

.btn-download-glitch {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
    width: 100%;
    padding: 1rem;
    background: var(--neon-cyan);
    color: #000;
    font-weight: bold; font-family: 'Inter', sans-serif;
    text-transform: uppercase;
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
    transition: 0.2s;
}
.btn-download-glitch:hover {
    background: var(--text-white);
    transform: scale(1.02);
    box-shadow: 0 0 20px var(--neon-cyan);
}

/* --- FEATURES GRID --- */
.features-grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 2rem; margin-top: 4rem;
}
.feature-item {
    border: 1px dashed #333; padding: 1.5rem;
    text-align: center; transition: 0.3s;
}
.feature-item:hover {
    border-color: var(--neon-green);
    background: rgba(0, 255, 65, 0.05);
}
.f-icon { font-size: 2.5rem; display: block; margin-bottom: 1rem; }
.feature-item h3 { color: var(--neon-cyan); font-family: var(--font-head); font-size: 1.5rem; margin-bottom: 0.5rem; }
.feature-item p { font-size: 0.9rem; color: #999; }

/* --- OTHER SECTIONS --- */
section { display: none; padding-top: 2rem; animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1); }
section.active-view { display: block; }
@keyframes slideUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

.retro-card {
    border: 2px solid var(--neon-blue);
    padding: 2rem; background: #080808;
    max-width: 800px; margin: 0 auto;
}
.retro-card-header {
    display: flex; justify-content: space-between;
    border-bottom: 1px solid var(--neon-blue);
    padding-bottom: 1rem; margin-bottom: 1.5rem;
    font-family: var(--font-head); font-size: 1.2rem;
}
.status-badge { background: var(--neon-green); color: black; padding: 2px 8px; font-weight: bold; }
.contact-link { font-size: 1.2rem; margin-top: 1rem; }
.glitch-link { color: var(--neon-cyan); text-decoration: underline; }

/* Privacy Policy Specifics */
.terminal-view { border-color: var(--neon-magenta); }
.close-btn { background: none; border: 1px solid var(--neon-magenta); color: var(--neon-magenta); padding: 5px 10px; cursor: pointer; }
.close-btn:hover { background: var(--neon-magenta); color: black; }
.highlight-text { border-left: 2px solid red; padding-left: 1rem; margin: 1rem 0; color: #ddd; }

/* --- FOOTER --- */
footer { margin-top: auto; padding: 2rem 0; text-align: center; color: #555; font-size: 0.8rem; }
.footer-tiny { opacity: 0.3; transition: 0.3s; }
.footer-tiny:hover { opacity: 1; color: var(--neon-cyan); }

/* --- MOBILE RESPONSIVE --- */
@media (max-width: 768px) {
    .container { width: 95%; }
    
    nav { flex-direction: column; gap: 1rem; text-align: center; }
    
    .hero-split { grid-template-columns: 1fr; gap: 2rem; text-align: center; }
    
    .glitch-title { font-size: 2.8rem; }
    .terminal-box { text-align: left; }
    
    .features-grid { grid-template-columns: 1fr; gap: 1rem; }
    
    .qrstu-showcase-card { margin: 0 auto; max-width: 350px; }
}