/* =========================================
   VARIABLES & THEME SETUP
   ========================================= */
:root {
    --primary: #d4d4d8;
    --secondary: #27272a;
    --accent: #ccff00; /* Neon Acid Green */
    --background: #09090b; /* Deep Asphalt */
    --background-alt: #18181b; /* Dark Grey Noise */
    --text-primary: #e4e4e7;
    --text-secondary: #a1a1aa;
    --text-muted: #52525b;
    
    --font-heading: 'Black Ops One', cursive;
    --font-body: 'JetBrains Mono', monospace;
    
    --border-width: 1px;
    --border-radius: 0px; /* Brutalist/Sharp */
    
    --grid-color: rgba(204, 255, 0, 0.1);
}

/* =========================================
   RESET & BASE STYLES
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
    background-color: var(--background);
}

body {
    font-family: var(--font-body);
    color: var(--text-primary);
    background-color: var(--background);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-width: 100%;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    line-height: 1.2;
}

p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

a {
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* =========================================
   OVERLAY EFFECTS (THEME)
   ========================================= */
/* CRT Scanlines */
.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: repeating-linear-gradient(
        to bottom,
        transparent 0px,
        transparent 2px,
        rgba(0, 0, 0, 0.1) 3px,
        rgba(0, 0, 0, 0.1) 4px
    );
    pointer-events: none;
    z-index: 9000;
}

/* Noise Texture */
.noise-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    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)' opacity='0.05'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 8999;
}

/* Vignette */
.vignette {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle, transparent 50%, rgba(0,0,0,0.8) 100%);
    pointer-events: none;
    z-index: 8998;
}

/* =========================================
   SECTION STYLING - MANDATORY
   ========================================= */
section, .section, #playground, #how-to-use, #gallery, #testimonials, #faq {
    padding: 5rem 2rem;
    position: relative;
    border-bottom: 1px solid var(--secondary);
}

section:nth-child(odd) {
    background-color: var(--background);
}

section:nth-child(even) {
    background-color: var(--background-alt);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: clamp(1.8rem, 4vw, 3rem);
    color: var(--text-primary);
    border-bottom: 2px solid var(--accent);
    display: inline-block;
    padding-bottom: 0.5rem;
}

.separator-line {
    height: 1px;
    background: var(--secondary);
    width: 100%;
    margin: 2rem 0;
    position: relative;
}

.separator-line::after {
    content: '///';
    position: absolute;
    right: 0;
    top: -10px;
    background: var(--background);
    padding: 0 10px;
    color: var(--accent);
    font-family: var(--font-body);
}

/* =========================================
   HEADER & NAV
   ========================================= */
header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    padding: 1rem 2rem;
    background: rgba(9, 9, 11, 0.95);
    border-bottom: 2px solid var(--accent);
    display: flex;
    justify-content: space-between;
    align-items: center;
    backdrop-filter: blur(5px);
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.accent-icon {
    color: var(--accent);
}

header nav {
    display: flex;
    gap: 2rem;
}

header nav a {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--text-primary) !important;
    letter-spacing: 1px;
    position: relative;
}

header nav a:hover {
    color: var(--accent) !important;
    text-shadow: 0 0 5px var(--accent);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.8rem;
    cursor: pointer;
}

/* =========================================
   HERO SECTION
   ========================================= */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 6rem 2rem 4rem 2rem;
}

.hero-bg-image {
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: 0.3;
    filter: grayscale(100%) contrast(1.2);
}

.hero-bg-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Grid Scanner Animation */
.hero-bg-animation {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: 
        linear-gradient(90deg, transparent 98%, var(--grid-color) 100%),
        linear-gradient(0deg, transparent 98%, var(--grid-color) 100%);
    background-size: 50px 50px;
    animation: gridScan 20s linear infinite;
    pointer-events: none;
}

@keyframes gridScan {
    0% { background-position: 0 0; }
    100% { background-position: 50px 50px; }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    border: 1px solid var(--secondary);
    background: rgba(9, 9, 11, 0.8);
    padding: 3rem;
    box-shadow: 0 0 30px rgba(0,0,0,0.8);
}

.hero-badge {
    display: inline-block;
    background: var(--secondary);
    color: var(--accent);
    padding: 0.25rem 0.75rem;
    font-family: var(--font-body);
    font-size: 0.8rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--accent);
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 5rem);
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 0px #000;
}

.accent-text {
    color: var(--accent);
    text-shadow: 0 0 10px rgba(204, 255, 0, 0.4);
}

.hero p {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 2.5rem auto;
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-family: var(--font-heading);
    text-transform: uppercase;
    font-size: 1.1rem;
    letter-spacing: 1px;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-primary {
    background-color: var(--accent);
    color: #000;
    border: 1px solid var(--accent);
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--accent);
    box-shadow: 0 0 15px rgba(204, 255, 0, 0.3);
}

/* =========================================
   PLAYGROUND (LOCKED)
   ========================================= */
.locked-container {
    max-width: 700px;
    margin: 0 auto;
    background: rgba(0,0,0,0.5);
    border: 1px solid var(--secondary);
    padding: 4rem 2rem;
    text-align: center;
    position: relative;
    /* Hazard stripes border top */
    background-image: repeating-linear-gradient(
        45deg,
        var(--secondary),
        var(--secondary) 10px,
        var(--background) 10px,
        var(--background) 20px
    );
    background-size: 100% 5px;
    background-repeat: no-repeat;
    background-position: top;
}

.locked-container::after {
    /* Hazard stripes bottom */
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 5px;
    background-image: repeating-linear-gradient(
        45deg,
        var(--secondary),
        var(--secondary) 10px,
        var(--background) 10px,
        var(--background) 20px
    );
}

.lock-icon-wrapper {
    font-size: 4rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    animation: pulse 3s infinite;
}

@keyframes pulse {
    0% { opacity: 0.3; }
    50% { opacity: 0.7; }
    100% { opacity: 0.3; }
}

.locked-title {
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.locked-message {
    color: var(--text-secondary);
    margin-bottom: 3rem;
}

.progress-wrapper {
    text-align: left;
    background: var(--background);
    padding: 1.5rem;
    border: 1px solid var(--secondary);
}

.progress-label {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-body);
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.progress-track {
    width: 100%;
    height: 8px;
    background: var(--secondary);
    margin-bottom: 1rem;
    position: relative;
}

.progress-bar {
    height: 100%;
    background: var(--accent);
    position: relative;
    box-shadow: 0 0 10px rgba(204, 255, 0, 0.3);
}

.progress-status {
    font-family: var(--font-body);
    font-size: 0.75rem;
    color: var(--accent);
    text-align: right;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* =========================================
   HOW TO USE (PROTOCOL)
   ========================================= */
.steps-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.step-card {
    background: var(--background-alt);
    border: 1px solid var(--secondary);
    padding: 2.5rem 2rem;
    position: relative;
    transition: transform 0.3s ease;
}

.step-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
}

.step-number {
    font-family: var(--font-heading);
    font-size: 4rem;
    color: var(--secondary);
    opacity: 0.3;
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    z-index: 0;
}

.step-icon {
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.step-card h3 {
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.step-card p {
    position: relative;
    z-index: 1;
    margin-bottom: 0;
}

/* =========================================
   GALLERY (EVIDENCE)
   ========================================= */
.gallery-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    aspect-ratio: 1/1;
    overflow: hidden;
    border: 1px solid var(--secondary);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    filter: grayscale(40%);
}

.gallery-item:hover img {
    transform: scale(1.05);
    filter: grayscale(0%);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.8);
    padding: 0.5rem;
    text-align: center;
    border-top: 1px solid var(--accent);
}

.gallery-overlay span {
    font-family: var(--font-body);
    font-size: 0.8rem;
    color: var(--accent);
}

/* =========================================
   TESTIMONIALS
   ========================================= */
.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.testimonial-card {
    background: var(--background);
    border: 1px solid var(--secondary);
    padding: 2.5rem;
    position: relative;
}

.quote-icon {
    font-family: var(--font-heading);
    font-size: 4rem;
    color: var(--secondary);
    position: absolute;
    top: 1rem;
    left: 1.5rem;
    line-height: 1;
}

.quote {
    margin-top: 2rem;
    font-style: italic;
    color: var(--text-primary);
}

.author {
    margin-top: 1.5rem;
    border-top: 1px solid var(--secondary);
    padding-top: 1rem;
    font-family: var(--font-body);
    font-size: 0.9rem;
}

.author .name {
    color: var(--accent);
    font-weight: bold;
    margin-right: 0.5rem;
}

/* =========================================
   FAQ
   ========================================= */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--secondary);
    margin-bottom: 1rem;
}

.faq-question {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 1.5rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 1.1rem;
    color: var(--text-primary);
    transition: color 0.3s;
}

.faq-question:hover {
    color: var(--accent);
}

.faq-question i {
    transition: transform 0.3s;
    font-size: 0.8rem;
    color: var(--accent);
}

.faq-question.active i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-answer p {
    padding: 0 0 1.5rem 0;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* =========================================
   FOOTER & MODALS
   ========================================= */
footer {
    background: var(--background-alt);
    border-top: 2px solid var(--secondary);
    padding: 4rem 0 2rem;
    font-family: var(--font-body);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    text-align: center;
}

.footer-brand {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    border-bottom: 1px solid transparent;
}

.footer-links a:hover {
    color: var(--accent);
    border-color: var(--accent);
}

.copyright {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-top: 2rem;
}

/* Modals */
.modal {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.85);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(5px);
}

.modal.hidden {
    opacity: 0;
    pointer-events: none;
}

.modal-content {
    background: var(--background);
    border: 1px solid var(--accent);
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 0 30px rgba(0,0,0,0.7);
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--secondary);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--background-alt);
}

.modal-header h3 {
    margin: 0;
    font-size: 1.2rem;
    color: var(--accent);
}

.close-modal {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 2rem;
    cursor: pointer;
    line-height: 0.5;
}

.modal-body {
    padding: 2rem;
    overflow-y: auto;
}

.modal-body h4 {
    color: var(--accent);
    margin-top: 1.5rem;
    font-size: 1.1rem;
    font-family: var(--font-body);
    font-weight: bold;
}

.modal-body ul {
    list-style: square;
    margin-left: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.modal-body li {
    margin-bottom: 0.5rem;
}

/* =========================================
   RESPONSIVE
   ========================================= */

/* Mobile (Base is already mobile-first, but enforcing specifics) */
@media (max-width: 767px) {
    .menu-toggle { display: block; }
    
    header nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--background);
        flex-direction: column;
        padding: 2rem;
        border-bottom: 2px solid var(--accent);
        box-shadow: 0 10px 20px rgba(0,0,0,0.5);
    }
    
    header nav.active { display: flex; }
    
    .hero h1 { font-size: 2.2rem; }
    
    section { padding: 3rem 1.5rem; }
    
    .footer-links { gap: 1rem; flex-direction: column; }
}

/* Tablet */
@media (min-width: 768px) {
    .steps-grid { grid-template-columns: repeat(3, 1fr); }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
    
    .hero-content { padding: 4rem; }
}

/* Desktop */
@media (min-width: 1024px) {
    .gallery-grid { grid-template-columns: repeat(3, 1fr); }
    section { padding: 6rem 3rem; }
}

/* Animation Utilities */
.fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
    transform: translateY(20px);
}

@keyframes fadeInUp {
    to { opacity: 1; transform: translateY(0); }
}