:root {
    --bg-dark: #000000;
    --neon-pink: #ff00ff;
    --neon-cyan: #00ffff;
    --neon-yellow: #ffff00;
    --text-main: #ffffff;
    --text-muted: #aaaaaa;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Press Start 2P', cursive;
    background-color: var(--bg-dark);
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.8;
    font-size: 14px;
    image-rendering: pixelated;
    /* Crucial for 8-bit style */
}

/* Background Effects */
.pixel-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #000;
    background-image: 
        linear-gradient(#222 4px, transparent 4px),
        linear-gradient(90deg, #222 4px, transparent 4px);
    background-size: 32px 32px;
    z-index: -2;
}

/* Typography & Utilities */
.text-neon {
    color: var(--neon-pink);
}

.text-center {
    text-align: center;
}

/* Buttons - Blocky with hard shadows */
.btn {
    display: inline-block;
    padding: 1rem 1.5rem;
    font-family: 'Press Start 2P', cursive;
    text-decoration: none;
    cursor: pointer;
    text-transform: uppercase;
    font-size: 12px;
    border: 4px solid #fff;
    background: #000;
    color: #fff;
    box-shadow: 4px 4px 0 var(--neon-cyan);
    transition: transform 0.1s, box-shadow 0.1s;
}

.btn:active {
    transform: translate(4px, 4px);
    box-shadow: 0 0 0 var(--neon-cyan);
}

.btn-primary {
    border-color: var(--neon-cyan);
    color: var(--neon-cyan);
    box-shadow: 4px 4px 0 var(--neon-pink);
}

.btn-primary:hover {
    background: var(--neon-cyan);
    color: #000;
}

.btn-secondary {
    border-color: var(--neon-pink);
    color: var(--neon-pink);
    box-shadow: 4px 4px 0 var(--neon-cyan);
}

.btn-secondary:hover {
    background: var(--neon-pink);
    color: #000;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    background: #000;
    border-bottom: 4px solid var(--neon-cyan);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    font-size: 1.5rem;
    color: #fff;
}

.logo img {
    animation: flipLogo 5s infinite;
    transform-style: preserve-3d;
}

@keyframes flipLogo {

    0%,
    42.5% {
        transform: rotateZ(0deg);
    }

    50%,
    92.5% {
        transform: rotateZ(180deg);
    }

    100% {
        transform: rotateZ(360deg);
    }
}

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

.nav-links a {
    color: #fff;
    text-decoration: none;
    font-size: 12px;
    padding: 0.8rem 1.2rem;
    border: 2px solid #fff;
    background: rgba(0, 0, 0, 0.5);
    box-shadow: 3px 3px 0 var(--neon-pink);
    transition: all 0.1s;
    display: inline-block;
    text-transform: uppercase;
}

.nav-links a:hover {
    color: var(--neon-yellow);
    border-color: var(--neon-yellow);
    box-shadow: 3px 3px 0 var(--neon-cyan);
    transform: translate(-2px, -2px);
    background: #000;
}

.nav-links a:active {
    transform: translate(3px, 3px);
    box-shadow: 0 0 0 var(--neon-cyan);
}

/* Hero Section */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5%;
    position: relative;
    overflow: hidden;
}

.hero-content {
    flex: 1;
    max-width: 600px;
    z-index: 10;
}

.blink-text {
    font-size: 3rem;
    margin-bottom: 2rem;
    line-height: 1.2;
    animation: blink 1s step-end infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.subtitle {
    font-size: 1rem;
    color: var(--neon-cyan);
    margin-bottom: 1rem;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    margin-top: 3rem;
}

.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 5;
}

.pixel-art-image {
    max-width: 100%;
    height: auto;
    border: 4px solid #fff;
    box-shadow: 8px 8px 0 var(--neon-pink);
    object-fit: cover;
    max-height: 70vh;
    image-rendering: pixelated;
    animation: floatBlocky 2s steps(4) infinite;
    scale: 1.5;
}

@keyframes floatBlocky {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* Features Section */
.features-section {
    padding: 6rem 5%;
    position: relative;
    z-index: 10;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 4rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
}

.feature-card {
    background: #000;
    border: 4px solid var(--neon-yellow);
    padding: 2.5rem;
    box-shadow: 8px 8px 0 var(--neon-cyan);
    transition: transform 0.1s;
}

.feature-card:hover {
    transform: translate(-4px, -4px);
    box-shadow: 12px 12px 0 var(--neon-pink);
    border-color: var(--neon-pink);
}

.feature-icon {
    font-size: 2rem;
    color: var(--neon-cyan);
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #fff;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 10px;
    line-height: 2;
}

/* Wizards Section */
.wizards-section {
    padding: 6rem 5%;
    position: relative;
    z-index: 10;
    background: #111;
    border-top: 4px solid var(--neon-cyan);
    border-bottom: 4px solid var(--neon-pink);
}

.wizards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 4rem;
    max-width: 1000px;
    margin: 0 auto;
}

.wizard-card {
    background: #000;
    border: 4px solid #fff;
    padding: 2rem;
    box-shadow: 8px 8px 0 var(--neon-pink);
    text-align: center;
    transition: transform 0.2s;
}

.wizard-card:hover {
    transform: translateY(-10px);
    border-color: var(--neon-cyan);
    box-shadow: 12px 12px 0 var(--neon-yellow);
}

.wizard-image-container {
    width: 100%;
    height: 250px;
    margin-bottom: 2rem;
    border: 4px solid #222;
    overflow: hidden;
    background: #000;
}

.wizard-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    image-rendering: pixelated;
    transition: transform 0.3s;
}

.wizard-card:hover .wizard-image {
    transform: scale(1.1);
}

.wizard-card h3 {
    font-size: 1.5rem;
    color: var(--neon-yellow);
    margin-bottom: 0.5rem;
}

.wizard-type {
    font-size: 10px;
    color: var(--text-muted);
    margin-bottom: 2rem;
    letter-spacing: 1px;
}

.wizard-feature {
    font-size: 12px;
    line-height: 1.6;
    color: #fff;
    text-align: left;
    background: #222;
    padding: 1rem;
    border-left: 4px solid var(--neon-cyan);
}

/* CTA Section */
.cta-section {
    padding: 5rem 5%;
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 10;
}

.cta-box {
    background: #000;
    border: 4px solid var(--neon-pink);
    padding: 4rem;
    text-align: center;
    max-width: 800px;
    width: 100%;
    box-shadow: 12px 12px 0 var(--neon-yellow);
}

.cta-box h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--neon-cyan);
}

.cta-box p {
    margin-bottom: 3rem;
    font-size: 12px;
}

.newsletter-form {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.newsletter-form input {
    padding: 1rem;
    border: 4px solid #fff;
    background: #000;
    color: white;
    font-family: 'Press Start 2P', cursive;
    width: 100%;
    max-width: 300px;
    outline: none;
    font-size: 12px;
}

.newsletter-form input:focus {
    border-color: var(--neon-cyan);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(4px);
}

.modal.show {
    display: flex;
}

.modal .modal-content {
    position: relative;
    max-width: 600px;
    width: 90%;
    margin: 0;
    animation: popIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes popIn {
    0% { transform: scale(0.8); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 20px;
    color: var(--neon-pink);
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.1s;
}

.close-btn:hover {
    color: var(--neon-cyan);
}

/* Footer */
footer {
    padding: 2rem 5%;
    border-top: 4px solid #fff;
    background: #000;
    text-align: center;
    position: relative;
    z-index: 10;
}

.footer-content p {
    color: var(--text-muted);
    margin-top: 1rem;
    font-size: 10px;
}

/* Responsive */
@media (max-width: 768px) {
    .navbar {
        padding: 1rem 5%;
    }

    .logo img {
        width: 140px;
        height: auto;
    }

    .navbar .btn {
        padding: 0.8rem 1rem;
        font-size: 10px;
    }

    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 3rem;
    }

    .hero-content {
        margin-bottom: 3rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }

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

    .blink-text {
        font-size: 1.8rem;
    }

    .pixel-art-image {
        scale: 1;
        max-height: 45vh;
    }

    .nav-links {
        display: none;
    }

    .features-section,
    .wizards-section,
    .cta-section {
        padding: 4rem 5%;
    }

    .section-title {
        font-size: 1.5rem;
        margin-bottom: 2.5rem;
    }

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

    .wizards-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .feature-card,
    .wizard-card {
        padding: 1.5rem;
    }

    .wizard-image-container {
        height: 200px;
    }

    .cta-box {
        padding: 2.5rem 1.5rem;
    }

    .cta-box h2 {
        font-size: 1.3rem;
    }

    .newsletter-form {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }

    .newsletter-form input {
        max-width: 100%;
    }
}