@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&family=VT323&display=swap');

:root {
    --primary: #52a535;
    --primary-dark: #3b8526;
    --primary-light: #7cd67c;
    --primary-rgb: 82, 165, 53;
    --secondary: #ff8fba;
    --secondary-dark: #e0709a;
    --secondary-rgb: 255, 143, 186;
    --dark: #0a0a0a;
    --darker: #050505;
    --card-bg: rgba(10, 20, 10, 0.58);
    --card-border: rgba(82, 165, 53, 0.3);
    --text: #ffffff;
    --text-muted: #cccccc;
    --success: #52a535;
    --error: #ef4444;
    --glow-primary: 0 0 20px rgba(82, 165, 53, 0.5);
    --glow-secondary: 0 0 20px rgba(255, 143, 186, 0.5);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) var(--darker);
    overflow-x: hidden;
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--darker); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 0; }

body {
    font-family: 'VT323', monospace;
    background: var(--darker);
    color: var(--text);
    overflow-x: hidden;
    font-size: 18px;
    line-height: 1.6;
}

.pixel-font { font-family: 'Press Start 2P', cursive; }

/* ===== ANIMATED BACKGROUND ===== */
.bg-animated {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    z-index: -3;
    background: linear-gradient(135deg, #020d02 0%, #0a1a0a 25%, #050f15 50%, #0a0a1a 75%, #0d020d 100%);
    background-size: 400% 400%;
    animation: gradientShift 20s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.bg-gif-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    z-index: -2;
    opacity: var(--gif-opacity, 0.45);
    background-size: cover;
    background-position: center;
    mix-blend-mode: screen;
}

.particles-canvas {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    z-index: -1; pointer-events: none;
}

.pixel-grid {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    z-index: -1; pointer-events: none;
    background-image:
        linear-gradient(rgba(82,165,53,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(82,165,53,0.03) 1px, transparent 1px);
    background-size: 20px 20px;
}

/* ===== NAVBAR ===== */
.navbar {
    position: fixed; top: 0; width: 100%;
    z-index: 1000;
    background: rgba(5, 10, 5, 0.96);
    backdrop-filter: blur(20px);
    border-bottom: 2px solid var(--card-border);
    padding: 0 2rem;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.nav-container {
    max-width: 1200px; margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between;
    height: 60px;
}

.nav-logo {
    display: flex; align-items: center;
    text-decoration: none;
}

.nav-logo-icon {
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    background: none;
}

.nav-logo-icon img {
    display: block;
    width: 52px; height: 52px;
    max-width: 52px; max-height: 52px;
    object-fit: contain;
    image-rendering: pixelated;
}

.nav-logo-text {
    display: none;
}

.nav-links {
    display: flex; gap: 6px; list-style: none; align-items: center;
}

.nav-links a {
    color: var(--text); text-decoration: none;
    padding: 8px 14px;
    font-family: 'Press Start 2P', cursive;
    font-size: 8px; letter-spacing: 1px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.nav-links a:hover {
    color: var(--primary-light);
    border-color: var(--primary-light);
    background: rgba(var(--primary-rgb), 0.1);
    text-shadow: var(--glow-primary);
}

.nav-lang-btn {
    background: rgba(var(--secondary-rgb), 0.15) !important;
    border: 2px solid var(--secondary) !important;
    color: var(--secondary) !important;
    cursor: pointer;
}

.nav-lang-btn:hover {
    background: var(--secondary) !important;
    color: #fff !important;
    box-shadow: var(--glow-secondary);
}

.nav-mobile-toggle {
    display: none;
    background: none;
    border: 2px solid var(--primary);
    color: var(--primary);
    font-size: 24px; padding: 4px 10px;
    cursor: pointer;
    font-family: 'Press Start 2P', cursive;
}

/* ===== HERO ===== */
.hero {
    min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    text-align: center;
    padding: 120px 2rem 80px;
}

.hero-content {
    max-width: 900px;
    animation: fadeInUp 1s ease;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-badge {
    display: inline-block;
    font-family: 'Press Start 2P', cursive;
    font-size: 9px;
    color: var(--secondary);
    border: 2px solid var(--secondary);
    padding: 8px 20px;
    margin-bottom: 30px;
    animation: borderGlow 2s ease-in-out infinite alternate;
    letter-spacing: 2px;
}

@keyframes borderGlow {
    from { box-shadow: 0 0 5px rgba(var(--secondary-rgb), 0.3); }
    to { box-shadow: 0 0 25px rgba(var(--secondary-rgb), 0.6); }
}

.hero h1 {
    font-family: 'Press Start 2P', cursive;
    font-size: clamp(22px, 5vw, 48px);
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: textShine 4s linear infinite;
    margin-bottom: 20px; line-height: 1.4;
}

@keyframes textShine {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

.hero h2 {
    font-family: 'Press Start 2P', cursive;
    font-size: clamp(9px, 1.8vw, 14px);
    color: var(--text-muted);
    margin-bottom: 30px; letter-spacing: 3px;
}

.hero p {
    font-size: 22px; color: var(--text);
    max-width: 700px; margin: 0 auto 40px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex; gap: 20px; justify-content: center; flex-wrap: wrap;
}

/* ===== BUTTONS ===== */
.btn {
    font-family: 'Press Start 2P', cursive;
    font-size: 10px; padding: 15px 30px;
    border: 3px solid; text-decoration: none;
    display: inline-block; cursor: pointer;
    transition: all 0.3s ease; letter-spacing: 1px;
    position: relative; overflow: hidden; text-transform: uppercase;
}

.btn::before {
    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:hover::before { left: 100%; }

.btn-primary {
    background: var(--primary); border-color: var(--primary); color: #fff;
}
.btn-primary:hover {
    background: var(--primary-dark);
    box-shadow: var(--glow-primary);
    transform: translateY(-3px);
}

.btn-secondary {
    background: var(--secondary); border-color: var(--secondary); color: #fff;
}
.btn-secondary:hover {
    background: var(--secondary-dark);
    box-shadow: var(--glow-secondary);
    transform: translateY(-3px);
}

.btn-outline {
    background: transparent; border-color: var(--primary); color: var(--primary);
}
.btn-outline:hover {
    background: rgba(var(--primary-rgb), 0.15);
    box-shadow: var(--glow-primary);
    transform: translateY(-3px);
}

/* ===== STATS ===== */
.stats-bar {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 20px; max-width: 700px; margin: 60px auto 0;
}

.stat-item {
    text-align: center; padding: 20px;
    border: 2px solid rgba(var(--primary-rgb), 0.2);
    background: var(--card-bg);
    transition: all 0.3s ease;
}
.stat-item:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: var(--glow-primary);
}

.stat-number {
    font-family: 'Press Start 2P', cursive;
    font-size: 26px; color: var(--primary-light);
    display: block; margin-bottom: 8px;
}

.stat-label {
    font-family: 'Press Start 2P', cursive;
    font-size: 7px; color: var(--text-muted);
    letter-spacing: 2px; text-transform: uppercase;
}

/* ===== SECTIONS ===== */
.section { padding: 100px 2rem; position: relative; }

.section-header { text-align: center; margin-bottom: 60px; }

.section-header h2 {
    font-family: 'Press Start 2P', cursive;
    font-size: clamp(14px, 3vw, 26px);
    color: var(--primary-light);
    margin-bottom: 16px;
    text-shadow: 0 0 20px rgba(var(--primary-rgb), 0.3);
}

.section-header p {
    font-size: 20px; color: var(--text-muted);
    max-width: 600px; margin: 0 auto;
}

.section-divider {
    width: 80px; height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    margin: 16px auto;
}

/* ===== FEATURES GRID ===== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px; max-width: 1200px; margin: 0 auto;
}

.feature-card {
    background: var(--card-bg);
    border: 2px solid rgba(var(--primary-rgb), 0.15);
    padding: 28px;
    transition: all 0.4s ease;
    position: relative; overflow: hidden;
    cursor: pointer;
}

.feature-card::before {
    content: ''; position: absolute; top: 0; left: 0;
    width: 100%; height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transform: scaleX(0); transform-origin: left;
    transition: transform 0.4s ease;
}
.feature-card:hover::before, .feature-card.expanded::before {
    transform: scaleX(1);
}

.feature-card:hover {
    border-color: var(--primary);
    box-shadow: 0 8px 30px rgba(0,0,0,0.3), var(--glow-primary);
}

.feature-card.expanded {
    border-color: var(--primary);
    box-shadow: 0 8px 30px rgba(0,0,0,0.3), var(--glow-primary);
}

.feature-icon {
    width: 52px; height: 52px;
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.2), rgba(var(--secondary-rgb), 0.2));
    border: 2px solid var(--primary);
    display: flex; align-items: center; justify-content: center;
    font-size: 22px; margin-bottom: 16px;
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon, .feature-card.expanded .feature-icon {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    box-shadow: var(--glow-primary);
}

.feature-card h3 {
    font-family: 'Press Start 2P', cursive;
    font-size: 10px; color: var(--secondary);
    margin-bottom: 12px; letter-spacing: 1px;
}

.feature-card .feat-desc {
    color: var(--text-muted); font-size: 17px; line-height: 1.7;
}

.feature-card .feat-hint {
    font-family: 'Press Start 2P', cursive;
    font-size: 7px; color: var(--primary-light);
    margin-top: 12px; letter-spacing: 1px;
    transition: color 0.3s;
    opacity: 0.7;
}
.feature-card:hover .feat-hint { opacity: 1; }

.feature-card .feat-detail {
    max-height: 0; overflow: hidden;
    transition: max-height 0.5s ease, margin-top 0.3s ease, opacity 0.4s ease;
    opacity: 0; margin-top: 0;
}

.feature-card.expanded .feat-detail {
    max-height: 500px; opacity: 1; margin-top: 16px;
}

.feature-card.expanded .feat-hint { display: none; }

.feat-detail-content {
    padding-top: 14px;
    border-top: 1px solid rgba(var(--primary-rgb), 0.2);
}

.feat-detail-item {
    display: inline-block;
    background: rgba(var(--primary-rgb), 0.1);
    border: 1px solid rgba(var(--primary-rgb), 0.25);
    padding: 5px 12px; margin: 3px 4px;
    font-size: 15px; color: var(--text);
    transition: all 0.3s;
}

.feat-detail-item:hover {
    background: rgba(var(--primary-rgb), 0.25);
    border-color: var(--primary);
}

/* ===== PRODUCTS ===== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 30px; max-width: 900px; margin: 0 auto;
}

.product-card {
    background: var(--card-bg);
    border: 2px solid rgba(var(--primary-rgb), 0.2);
    transition: all 0.4s ease;
    position: relative; overflow: hidden;
    display: flex; flex-direction: column;
}

.product-card.featured {
    border-color: var(--primary);
    box-shadow: var(--glow-primary);
}

.product-card.featured::after {
    content: '★ TOP'; position: absolute;
    top: 18px; right: -28px;
    background: var(--primary); color: #fff;
    font-family: 'Press Start 2P', cursive;
    font-size: 7px; padding: 5px 36px;
    transform: rotate(45deg); letter-spacing: 1px;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.4), var(--glow-primary);
}

.product-header {
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.15), rgba(var(--secondary-rgb), 0.08));
    padding: 30px 24px; text-align: center;
    border-bottom: 2px solid rgba(var(--primary-rgb), 0.15);
}

.product-card.featured .product-header {
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.25), rgba(var(--secondary-rgb), 0.15));
}

.product-price {
    font-family: 'Press Start 2P', cursive;
    font-size: 20px; color: var(--primary-light);
    margin-bottom: 6px;
}

.product-price .period {
    font-size: 10px; color: var(--text-muted);
}

.product-header h3 {
    font-family: 'Press Start 2P', cursive;
    font-size: 11px; color: var(--secondary);
    margin-bottom: 8px;
}

.product-header p { color: var(--text-muted); font-size: 16px; }

.product-features { padding: 24px; flex-grow: 1; }

.product-features li {
    list-style: none; padding: 9px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    font-size: 17px; color: var(--text);
    display: flex; align-items: center; gap: 10px;
}
.product-features li::before {
    content: '✦'; color: var(--secondary); font-size: 12px;
}

.product-footer { padding: 0 24px 24px; }

.product-footer .btn {
    width: 100%; text-align: center;
    font-size: 9px; padding: 13px 18px;
}

.contact-methods {
    padding: 0 24px 24px;
}

.contact-methods-title {
    font-family: 'Press Start 2P', cursive;
    font-size: 8px; color: var(--secondary);
    letter-spacing: 1px;
    margin-bottom: 10px;
    padding-top: 16px;
    border-top: 1px solid rgba(var(--primary-rgb), 0.15);
}

.contact-list {
    list-style: none; padding: 0; margin: 0;
}

.contact-list li {
    padding: 9px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    font-size: 17px; color: var(--text);
    display: flex; align-items: center; gap: 10px;
}

.contact-list li::before {
    content: '✦'; color: var(--secondary); font-size: 12px;
}

.contact-list a {
    color: var(--text); text-decoration: none;
    transition: color 0.3s;
}

.contact-list a:hover {
    color: var(--secondary);
}

/* ===== LICENSE FORM ===== */
.license-section { background: rgba(5, 10, 5, 0.4); }

.license-container {
    max-width: 580px; margin: 0 auto;
    background: var(--card-bg);
    border: 2px solid var(--card-border);
    padding: 44px; position: relative; overflow: hidden;
}

.license-container::before {
    content: ''; position: absolute; top: 0; left: 0;
    width: 100%; height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.form-group { margin-bottom: 22px; }

.form-group label {
    display: block;
    font-family: 'Press Start 2P', cursive;
    font-size: 9px; color: var(--secondary);
    margin-bottom: 10px; letter-spacing: 1px;
}

.form-group input {
    width: 100%; padding: 13px 16px;
    background: rgba(0,0,0,0.4);
    border: 2px solid rgba(var(--primary-rgb), 0.3);
    color: var(--text);
    font-family: 'VT323', monospace;
    font-size: 20px;
    transition: all 0.3s ease; outline: none;
}
.form-group input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(var(--primary-rgb), 0.3);
}
.form-group input::placeholder { color: rgba(255,255,255,0.2); }

.form-help {
    font-size: 14px; color: var(--text-muted);
    margin-top: 8px; font-style: italic;
}

.form-submit { width: 100%; margin-top: 10px; }

.alert {
    padding: 14px 18px; margin-bottom: 22px;
    font-family: 'Press Start 2P', cursive;
    font-size: 8px; letter-spacing: 1px;
    border: 2px solid;
    animation: fadeInUp 0.5s ease;
}
.alert-success {
    background: rgba(82, 165, 53, 0.15);
    border-color: var(--success); color: var(--success);
}
.alert-error {
    background: rgba(239, 68, 68, 0.15);
    border-color: var(--error); color: var(--error);
}

/* ===== GALLERY ===== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px; max-width: 1200px; margin: 0 auto;
}

.gallery-item {
    border: 2px solid rgba(var(--primary-rgb), 0.2);
    overflow: hidden;
    transition: all 0.4s ease;
    cursor: pointer;
    aspect-ratio: 16/9;
}

.gallery-item:hover {
    border-color: var(--primary);
    transform: scale(1.03);
    box-shadow: var(--glow-primary);
}

.gallery-item img {
    width: 100%; height: 100%;
    object-fit: cover;
    image-rendering: auto;
    transition: transform 0.4s ease;
}

.gallery-item:hover img { transform: scale(1.1); }

.gallery-lightbox {
    display: none; position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.92);
    z-index: 2000;
    align-items: center; justify-content: center;
    cursor: pointer;
}

.gallery-lightbox.active { display: flex; }

.gallery-lightbox img {
    max-width: 90%; max-height: 90vh;
    border: 3px solid var(--primary);
    box-shadow: var(--glow-primary);
}

/* ===== FOOTER ===== */
.footer {
    background: rgba(5, 10, 5, 0.95);
    border-top: 2px solid rgba(var(--primary-rgb), 0.2);
    padding: 40px 2rem; text-align: center;
}

.footer-logo {
    font-family: 'Press Start 2P', cursive;
    font-size: 13px; color: var(--primary-light);
    margin-bottom: 16px;
    text-shadow: 0 0 10px rgba(var(--primary-rgb), 0.3);
}

.footer p {
    color: var(--text-muted); font-size: 15px; margin-bottom: 8px;
}

.footer-links {
    margin-top: 16px;
    display: flex; gap: 20px; justify-content: center;
}

.footer-links a {
    color: var(--text-muted); text-decoration: none;
    font-size: 15px; transition: color 0.3s;
}
.footer-links a:hover { color: var(--primary-light); }

/* ===== ANIMATIONS ===== */
.reveal {
    opacity: 0; transform: translateY(40px);
    transition: all 0.8s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ===== LOADING ===== */
.loading-screen {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: var(--darker); z-index: 9999;
    display: flex; align-items: center; justify-content: center;
    flex-direction: column; gap: 30px;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}
.loading-screen.hidden { opacity: 0; visibility: hidden; }

.loading-bar-container {
    width: 300px; height: 18px;
    border: 3px solid var(--primary); padding: 3px;
}

.loading-bar {
    height: 100%;
    background: var(--primary);
    animation: loadBar 1.5s ease forwards;
}

@keyframes loadBar { from { width: 0; } to { width: 100%; } }

.loading-text {
    font-family: 'Press Start 2P', cursive;
    font-size: 11px; color: var(--primary-light);
    animation: blink 0.8s ease infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; } 50% { opacity: 0.3; }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .nav-links {
        display: none; position: absolute; top: 70px; left: 0; width: 100%;
        background: rgba(5, 10, 5, 0.98);
        flex-direction: column; padding: 20px;
        border-bottom: 2px solid var(--card-border);
    }
    .nav-links.active { display: flex; }
    .nav-mobile-toggle { display: block; }
    .stats-bar { grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
    .features-grid { grid-template-columns: 1fr; }
    .products-grid { grid-template-columns: 1fr; min-width: 0; }
    .gallery-grid { grid-template-columns: 1fr; }
    .license-container { padding: 24px 18px; }
    .hero h1 { font-size: 22px; }
    .hero p { font-size: 18px; }
    .btn { font-size: 8px; padding: 12px 18px; }
    .section { padding: 60px 1rem; }
    .product-card { min-width: 0; }
}

@media (max-width: 480px) {
    .stats-bar { grid-template-columns: 1fr; gap: 10px; }
    .stat-number { font-size: 20px; }
    .nav-logo-text { font-size: 9px; }
    .hero-badge { font-size: 7px; padding: 6px 12px; }
    .hero-buttons { flex-direction: column; align-items: center; }
    .btn { width: 100%; text-align: center; }
}

.counter { display: inline-block; }

/* ===== LEGAL MODALS ===== */
.legal-modal {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.85); z-index: 3000;
    display: none; align-items: center; justify-content: center;
    padding: 20px;
}
.legal-modal.active { display: flex; }
.legal-modal-content {
    background: var(--card-bg); border: 2px solid var(--primary);
    max-width: 700px; width: 100%; max-height: 80vh;
    overflow-y: auto; padding: 36px 32px; position: relative;
    box-shadow: 0 0 40px rgba(82,165,53,0.3);
}
.legal-modal-close {
    position: absolute; top: 12px; right: 16px;
    background: none; border: none; color: var(--secondary);
    font-family: 'Press Start 2P', cursive; font-size: 16px;
    cursor: pointer; transition: color 0.2s;
}
.legal-modal-close:hover { color: var(--primary-light); }
.legal-modal-content h2 {
    font-family: 'Press Start 2P', cursive; font-size: 14px;
    color: var(--primary-light); margin-bottom: 20px;
    border-bottom: 2px solid var(--card-border); padding-bottom: 12px;
}
.legal-body h3 {
    font-family: 'Press Start 2P', cursive; font-size: 10px;
    color: var(--secondary); margin: 18px 0 8px;
}
.legal-body p {
    font-family: 'VT323', monospace; font-size: 18px;
    color: var(--text); line-height: 1.5; margin-bottom: 10px;
}
.legal-modal-content::-webkit-scrollbar { width: 6px; }
.legal-modal-content::-webkit-scrollbar-track { background: var(--darker); }
.legal-modal-content::-webkit-scrollbar-thumb { background: var(--primary); }
@media (max-width: 768px) {
    .legal-modal-content { padding: 24px 16px; max-height: 85vh; }
    .legal-modal-content h2 { font-size: 11px; }
    .legal-body h3 { font-size: 8px; }
    .legal-body p { font-size: 16px; }
}
