/* ================================
   HARRAGA - FULL BLACK / PIXEL ART
   ================================ */
@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&family=Inter:wght@300;400;600;700&display=swap');

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

:root {
    --bg: #000000;
    --bg2: #080808;
    --bg3: #0f0f0f;
    --border: #1a1a1a;
    --border-h: #2a2a2a;
    --accent: #c8c8c8;
    --accent-b: #ffffff;
    --dim: #555;
    --dim2: #333;
    --red: #ff2222;
    --red-dim: #661111;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg);
    color: var(--accent);
    overflow-x: hidden;
}

/* NAVBAR */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    display: flex; justify-content: space-between; align-items: center;
    padding: 0.8rem 3rem;
    background: rgba(0,0,0,0.95);
    border-bottom: 1px solid var(--border);
}

.nav-brand {
    font-family: 'Press Start 2P', monospace;
    font-size: 0.9rem;
    color: var(--accent-b);
    letter-spacing: 4px;
}

/* NAV LINKS */
.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a { color: var(--dim); text-decoration: none; font-size: 0.8rem; letter-spacing: 1px; transition: color 0.3s; }
.nav-links a:hover { color: var(--accent-b); }
.nav-btn { color: var(--accent-b) !important; border: 1px solid var(--border-h); padding: 0.4rem 1.2rem; font-size: 0.75rem; letter-spacing: 1px; }
.nav-btn:hover { border-color: var(--accent); }

/* HERO */
.hero { min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); padding-top: 50px; }

#pixelScene {
    width: 100%;
    height: 70vh;
    min-height: 400px;
    display: block;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
}

/* HERO CONTENT */
.hero-content {
    flex: 1; display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    padding: 2rem; text-align: center;
}

.hero-title {
    font-family: 'Press Start 2P', monospace;
    font-size: 2.5rem; color: var(--accent-b);
    letter-spacing: 8px; margin-bottom: 1rem;
}

.hero-tagline { font-size: 1rem; color: var(--dim); line-height: 1.8; margin-bottom: 0.5rem; }
.hero-joke { font-size: 0.65rem; color: var(--dim2); font-style: italic; margin-bottom: 1.5rem; letter-spacing: 1px; }
.highlight { color: var(--accent-b); }

.hero-buttons { display: flex; gap: 1rem; margin-bottom: 2rem; }

.btn {
    display: inline-block; padding: 0.7rem 1.8rem;
    text-decoration: none; font-size: 0.8rem; font-weight: 600;
    letter-spacing: 1px; transition: all 0.3s; cursor: pointer; border: none;
}

.btn-primary { background: var(--accent-b); color: var(--bg); }
.btn-primary:hover { background: var(--accent); }
.btn-outline { background: transparent; color: var(--accent); border: 1px solid var(--border-h); }
.btn-outline:hover { border-color: var(--accent-b); color: var(--accent-b); }
.btn-full { width: 100%; text-align: center; }

.hero-stats { display: flex; gap: 3rem; }
.stat { display: flex; flex-direction: column; align-items: center; }
.stat-num { font-family: 'Press Start 2P', monospace; font-size: 0.9rem; color: var(--accent-b); }
.stat-lbl { font-size: 0.65rem; color: var(--dim); text-transform: uppercase; letter-spacing: 2px; margin-top: 0.4rem; }

/* PRODUCTS */
.products { padding: 5rem 2rem; background: var(--bg); }

.section-title {
    font-family: 'Press Start 2P', monospace;
    font-size: 1.1rem; text-align: center;
    color: var(--accent-b); margin-bottom: 0.5rem;
    letter-spacing: 3px;
}

.section-sub { text-align: center; color: var(--dim); margin-bottom: 3rem; font-size: 0.85rem; }

.products-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem; max-width: 1400px; margin: 0 auto;
}
.products-grid--5 {
    grid-template-columns: repeat(3, 1fr);
    max-width: 1100px;
}

.product-card {
    background: var(--bg2); border: 1px solid var(--border);
    padding: 1.5rem; position: relative; transition: all 0.3s;
}
.product-card:hover { border-color: var(--border-h); }
.product-card h3 { font-family: 'Press Start 2P', monospace; font-size: 0.8rem; color: var(--accent-b); margin-bottom: 0.8rem; }

.card-top {
    position: absolute; top: 0.8rem; right: 0.8rem;
    font-size: 0.55rem; font-family: 'Press Start 2P', monospace;
    color: var(--accent-b); border: 1px solid var(--border-h);
    padding: 0.2rem 0.5rem; letter-spacing: 1px;
}
.card-top.new { color: var(--accent); border-color: var(--dim2); }
.card-top.hot { color: #ff9900; border-color: #ff9900; }
.card-top.shield { color: #44aaff; border-color: #44aaff; }

.card-desc { color: var(--dim); font-size: 0.8rem; margin-bottom: 1rem; line-height: 1.5; }

.product-card ul { list-style: none; margin-bottom: 1.2rem; }
.product-card li {
    padding: 0.3rem 0; font-size: 0.78rem; color: var(--accent);
    border-bottom: 1px solid var(--border);
}
.product-card li::before { content: "> "; color: var(--dim); }
.product-card li:last-child { border-bottom: none; }

.prices { display: flex; gap: 0.5rem; margin-bottom: 1.2rem; }
.price-box {
    flex: 1; text-align: center; padding: 0.6rem 0.3rem;
    border: 1px solid var(--border); transition: all 0.3s; cursor: pointer;
}
.price-box:hover, .price-box.sel { border-color: var(--accent-b); }
.dur { display: block; font-size: 0.6rem; color: var(--dim); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 0.3rem; }
.amt { display: block; font-family: 'Press Start 2P', monospace; font-size: 0.9rem; color: var(--accent-b); }

/* FEATURES */
.features { padding: 5rem 2rem; background: var(--bg2); }
.features-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem; max-width: 900px; margin: 0 auto;
}
.feat {
    padding: 1.2rem; border: 1px solid var(--border); transition: border-color 0.3s;
}
.feat:hover { border-color: var(--border-h); }
.feat h4 { font-family: 'Press Start 2P', monospace; font-size: 0.6rem; color: var(--accent-b); margin-bottom: 0.6rem; letter-spacing: 1px; }
.feat p { font-size: 0.8rem; color: var(--dim); line-height: 1.5; }

/* FAQ */
.faq { padding: 5rem 2rem; background: var(--bg); }
.faq-list { max-width: 650px; margin: 0 auto; }
.faq-item { border: 1px solid var(--border); margin-bottom: 0.5rem; cursor: pointer; transition: border-color 0.3s; }
.faq-item:hover { border-color: var(--border-h); }
.faq-q {
    display: flex; justify-content: space-between; align-items: center;
    padding: 0.8rem 1rem; font-size: 0.8rem; color: var(--accent);
}
.arrow { color: var(--dim); font-family: 'Press Start 2P', monospace; font-size: 0.7rem; transition: transform 0.3s; }
.faq-item.active .arrow { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq-item.active .faq-a { max-height: 150px; }
.faq-a p { padding: 0 1rem 0.8rem; font-size: 0.78rem; color: var(--dim); line-height: 1.6; }

/* FOOTER */
.footer { padding: 2rem; background: var(--bg); border-top: 1px solid var(--border); }
.footer-top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; max-width: 800px; margin: 0 auto 1rem; }
.footer-brand { font-family: 'Press Start 2P', monospace; font-size: 0.7rem; color: var(--accent-b); letter-spacing: 3px; }
.footer-tag { font-size: 0.75rem; color: var(--dim); }
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { color: var(--dim); text-decoration: none; font-size: 0.75rem; transition: color 0.3s; }
.footer-links a:hover { color: var(--accent-b); }
.footer-bot { text-align: center; padding-top: 1rem; border-top: 1px solid var(--border); font-size: 0.65rem; color: var(--dim2); }

/* PAYMENT POPUP */
.popup-overlay {
    display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.92); z-index: 2000;
    align-items: center; justify-content: center;
}
.popup-overlay.active { display: flex; }

.popup {
    background: var(--bg2); border: 1px solid var(--border-h);
    padding: 2rem; max-width: 420px; width: 90%;
    position: relative;
    animation: popIn 0.3s ease;
}

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

.popup-close {
    position: absolute; top: 0.8rem; right: 1rem;
    background: none; border: none; color: var(--dim);
    font-size: 1.2rem; cursor: pointer;
    font-family: 'Press Start 2P', monospace;
}
.popup-close:hover { color: var(--accent-b); }

.popup h3 {
    font-family: 'Press Start 2P', monospace;
    font-size: 0.7rem; color: var(--accent-b);
    margin-bottom: 0.5rem; letter-spacing: 2px;
}

.popup-product { color: var(--dim); font-size: 0.8rem; margin-bottom: 0.3rem; }
.popup-plan { color: var(--accent-b); font-family: 'Press Start 2P', monospace; font-size: 1rem; margin-bottom: 1.5rem; }

.popup-divider { border: none; border-top: 1px solid var(--border); margin: 1rem 0; }

.crypto-options { display: flex; flex-direction: column; gap: 0.6rem; margin-bottom: 1.2rem; }

.crypto-btn {
    display: flex; align-items: center; gap: 0.8rem;
    padding: 0.7rem 1rem; background: var(--bg);
    border: 1px solid var(--border); cursor: pointer;
    transition: all 0.3s; text-decoration: none;
}
.crypto-btn:hover { border-color: var(--accent-b); }
.crypto-btn .crypto-icon { font-size: 1.2rem; width: 28px; text-align: center; }
.crypto-btn .crypto-name { font-size: 0.75rem; color: var(--accent); font-weight: 600; }
.crypto-btn .crypto-tag { font-size: 0.6rem; color: var(--dim); margin-left: auto; }

.popup-addr {
    display: none; margin-top: 1rem;
    animation: popIn 0.2s ease;
}
.popup-addr.active { display: block; }
.popup-addr label { font-size: 0.6rem; color: var(--dim); display: block; margin-bottom: 0.4rem; font-family: 'Press Start 2P', monospace; letter-spacing: 1px; }
.addr-box {
    display: flex; align-items: center; gap: 0.5rem;
    background: var(--bg); border: 1px solid var(--border); padding: 0.6rem;
}
.addr-box code { font-size: 0.65rem; color: var(--accent); word-break: break-all; flex: 1; font-family: monospace; }
.addr-copy {
    background: none; border: 1px solid var(--border); color: var(--dim);
    padding: 0.3rem 0.6rem; font-size: 0.6rem; cursor: pointer;
    font-family: 'Press Start 2P', monospace; transition: all 0.3s;
}
.addr-copy:hover { border-color: var(--accent-b); color: var(--accent-b); }
.addr-copy.copied { color: #4a4; border-color: #4a4; }

.popup-note { font-size: 0.65rem; color: var(--dim2); margin-top: 1rem; line-height: 1.5; }

/* Pixel animation in popup */
.popup-pixel-bar {
    height: 4px; background: var(--border); margin-top: 1rem; position: relative; overflow: hidden;
}
.popup-pixel-bar::after {
    content: ''; position: absolute; top: 0; left: -30%;
    width: 30%; height: 100%; background: var(--accent-b);
    animation: pixelSlide 2s linear infinite;
}
@keyframes pixelSlide {
    0% { left: -30%; }
    100% { left: 100%; }
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .navbar { padding: 0.8rem 1.5rem; }
    .nav-links { display: none; }
    .hero-title { font-size: 1.5rem; letter-spacing: 4px; }
    #pixelScene { height: 50vh; min-height: 280px; }
    .products-grid { grid-template-columns: 1fr; }
    .features-grid { grid-template-columns: 1fr; }
    .footer-top { flex-direction: column; text-align: center; }
    .popup { padding: 1.5rem; }
}
