/* ============================================
   NEXBUNNZ - Dark Bunny Cyberpunk Theme
   ============================================ */

:root {
    --red: #ff0040;
    --red-dim: #cc0033;
    --red-dark: #330010;
    --purple: #aa00ff;
    --purple-dim: #7700bb;
    --cyan: #00e5ff;
    --gold: #ffd700;
    --yellow: #ffff00;
    --magenta: #ff00ff;
    --bg-primary: #0a0a0a;
    --bg-secondary: #111111;
    --bg-card: #0d0d12;
    --border: #1a0a1a;
    --text: #c0c0c0;
    --text-dim: #666666;
    --font-pixel: 'Press Start 2P', monospace;
    --font-terminal: 'VT323', monospace;
    --font-mono: 'Share Tech Mono', monospace;
}

/* Reset */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg-primary);
    color: var(--text);
    font-family: var(--font-terminal);
    font-size: 18px;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Scanline overlay */
.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.15) 0px,
        rgba(0, 0, 0, 0.15) 1px,
        transparent 1px,
        transparent 3px
    );
}

/* Noise overlay */
.noise {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9998;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-repeat: repeat;
}

/* ---- NAVIGATION ---- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 40px;
    background: rgba(10, 10, 10, 0.92);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(10px);
}

.nav-logo {
    font-family: var(--font-pixel);
    font-size: 14px;
}

.logo-bracket {
    color: var(--red-dim);
}

.logo-text {
    color: var(--red);
    text-shadow: 0 0 10px var(--red), 0 0 20px var(--red-dark);
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    color: var(--text-dim);
    text-decoration: none;
    font-family: var(--font-mono);
    font-size: 14px;
    transition: color 0.3s, text-shadow 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-links a:hover {
    color: var(--red);
    text-shadow: 0 0 8px var(--red);
}

.nav-social {
    color: var(--cyan) !important;
    border: 1px solid var(--cyan);
    padding: 6px 16px !important;
    border-radius: 2px;
}

.nav-social:hover {
    background: rgba(0, 229, 255, 0.1);
    color: var(--cyan) !important;
    text-shadow: 0 0 8px var(--cyan) !important;
}

.nav-mobile-btn {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-mobile-btn span {
    width: 24px;
    height: 2px;
    background: var(--red);
}

/* ---- HERO ---- */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 120px 20px 60px;
    text-align: center;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(255, 0, 64, 0.05) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 50%, rgba(170, 0, 255, 0.04) 0%, transparent 60%);
    pointer-events: none;
}

/* Terminal Window */
.hero-terminal {
    width: 100%;
    max-width: 620px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 4px;
    margin-bottom: 40px;
    overflow: hidden;
    box-shadow: 0 0 30px rgba(255, 0, 64, 0.08);
}

.terminal-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: #1a1a1a;
    border-bottom: 1px solid var(--border);
}

.terminal-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.terminal-dot.red { background: #ff5f57; }
.terminal-dot.yellow { background: #ffbd2e; }
.terminal-dot.green { background: #28ca41; }

.terminal-title {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-dim);
    margin-left: 8px;
}

.terminal-body {
    padding: 20px;
    text-align: left;
}

.typing-line {
    font-family: var(--font-mono);
    font-size: 15px;
    margin-bottom: 8px;
    opacity: 0;
    animation: fadeInLine 0.4s forwards;
}

.line-1 { animation-delay: 0.3s; }
.line-2 { animation-delay: 0.8s; }
.line-3 { animation-delay: 1.3s; }
.line-4 { animation-delay: 1.8s; }
.line-5 { animation-delay: 2.3s; }

.prompt {
    color: var(--red);
    margin-right: 8px;
}

.cmd {
    color: var(--text);
}

/* Glitch effect */
.hero-title {
    font-family: var(--font-pixel);
    font-size: clamp(36px, 7vw, 72px);
    color: var(--red);
    text-shadow:
        0 0 10px var(--red),
        0 0 40px rgba(255, 0, 64, 0.4),
        0 0 80px rgba(255, 0, 64, 0.2);
    margin-bottom: 20px;
    position: relative;
    animation: glitch 3s infinite;
}

.hero-title::before,
.hero-title::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-title::before {
    color: var(--purple);
    animation: glitch-shift 3s infinite;
    clip-path: polygon(0 0, 100% 0, 100% 33%, 0 33%);
}

.hero-title::after {
    color: var(--cyan);
    animation: glitch-shift-2 3s infinite;
    clip-path: polygon(0 66%, 100% 66%, 100% 100%, 0 100%);
}

.hero-subtitle {
    font-family: var(--font-terminal);
    font-size: 22px;
    color: var(--text);
    margin-bottom: 50px;
    max-width: 600px;
    line-height: 1.5;
}

/* Stats Grid */
.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 700px;
    width: 100%;
}

.stat-box {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 24px 16px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.stat-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--red);
    box-shadow: 0 0 10px var(--red);
}

.stat-value {
    display: block;
    font-family: var(--font-pixel);
    font-size: 20px;
    color: var(--red);
    margin-bottom: 8px;
}

.stat-label {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Progress Bar */
.mint-progress {
    width: 100%;
    max-width: 700px;
    margin-top: 24px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--red), var(--purple));
    border-radius: 4px;
    box-shadow: 0 0 12px var(--red);
    transition: width 1s ease;
}

.progress-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--text-dim);
}

/* Sold Out Banner */
.sold-out-banner {
    display: none;
    margin-top: 24px;
    font-family: var(--font-pixel);
    font-size: 28px;
    color: var(--red);
    text-shadow: 0 0 20px var(--red), 0 0 40px var(--red);
    animation: pulse-glow-text 1.5s ease-in-out infinite;
    padding: 16px 40px;
    border: 2px solid var(--red);
    background: rgba(255, 0, 64, 0.08);
}

.sold-out-banner.visible {
    display: block;
}

/* ---- SECTIONS ---- */
.section {
    padding: 100px 40px;
    max-width: 1100px;
    margin: 0 auto;
}

.section-title {
    font-family: var(--font-pixel);
    font-size: 24px;
    color: var(--red);
    margin-bottom: 16px;
    text-shadow: 0 0 10px var(--red);
}

.section-desc {
    font-family: var(--font-terminal);
    font-size: 20px;
    color: var(--text-dim);
    margin-bottom: 40px;
    max-width: 600px;
}

/* About Grid */
.about-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 40px;
}

.about-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 32px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.about-card:hover {
    border-color: var(--red-dim);
    box-shadow: 0 0 20px rgba(255, 0, 64, 0.1);
}

.card-icon {
    font-size: 32px;
    margin-bottom: 16px;
    filter: grayscale(50%);
}

.about-card h3 {
    font-family: var(--font-pixel);
    font-size: 12px;
    color: var(--red);
    margin-bottom: 12px;
}

.about-card p {
    color: var(--text-dim);
    font-size: 17px;
    line-height: 1.6;
}

/* Traits Grid */
.traits-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.trait-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 24px;
    transition: border-color 0.3s;
}

.trait-card:hover {
    border-color: var(--purple);
}

.trait-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.trait-name {
    font-family: var(--font-pixel);
    font-size: 11px;
    color: var(--red);
}

.trait-count {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--text-dim);
}

.trait-bar {
    width: 100%;
    height: 4px;
    background: var(--bg-primary);
    border-radius: 2px;
    margin-bottom: 8px;
    overflow: hidden;
}

.trait-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--red), var(--purple));
    border-radius: 2px;
    box-shadow: 0 0 8px var(--red);
}

.trait-rarity {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-dim);
}

.rarity-legend {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.rarity {
    font-family: var(--font-pixel);
    font-size: 9px;
    padding: 6px 14px;
    border: 1px solid;
    border-radius: 2px;
}

.rarity.common { color: #888; border-color: #444; }
.rarity.uncommon { color: #66cc66; border-color: #224422; }
.rarity.rare { color: var(--cyan); border-color: #004455; }
.rarity.legendary { color: var(--gold); border-color: #443300; }
.rarity.mythic { color: var(--purple); border-color: #440066; }
.rarity.one-of-one { color: var(--red); border-color: var(--red-dark); text-shadow: 0 0 6px var(--red); }

/* Steps / How It Works */
.steps {
    display: flex;
    flex-direction: column;
    gap: 32px;
    margin-top: 40px;
}

.step {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 32px;
    transition: border-color 0.3s;
}

.step:hover {
    border-color: var(--red-dim);
}

.step-number {
    font-family: var(--font-pixel);
    font-size: 28px;
    color: var(--red);
    text-shadow: 0 0 10px var(--red);
    min-width: 60px;
    line-height: 1;
}

.step-content h3 {
    font-family: var(--font-pixel);
    font-size: 12px;
    color: var(--purple);
    margin-bottom: 10px;
}

.step-content p {
    color: var(--text-dim);
    font-size: 17px;
    line-height: 1.6;
    margin-bottom: 12px;
}

.step-content code {
    color: var(--gold);
    background: rgba(255, 215, 0, 0.05);
    padding: 2px 6px;
    border-radius: 2px;
    font-family: var(--font-mono);
}

.step-code {
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--red-dim);
    background: var(--bg-primary);
    padding: 10px 16px;
    border: 1px solid var(--border);
    border-radius: 2px;
    overflow-x: auto;
}

/* FAQ */
.faq-list {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.faq-item {
    border: 1px solid var(--border);
    background: var(--bg-card);
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    color: var(--text);
    font-family: var(--font-terminal);
    font-size: 20px;
    padding: 20px 24px;
    text-align: left;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: color 0.3s;
}

.faq-question:hover {
    color: var(--red);
}

.faq-arrow {
    color: var(--red);
    font-size: 12px;
    transition: transform 0.3s;
}

.faq-item.active .faq-arrow {
    transform: rotate(90deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 300px;
    padding: 0 24px 20px 48px;
}

.faq-answer p {
    color: var(--text-dim);
    font-size: 17px;
    line-height: 1.6;
}

/* Footer */
.footer {
    border-top: 1px solid var(--border);
    padding: 60px 40px;
    text-align: center;
}

.footer-content {
    max-width: 600px;
    margin: 0 auto;
}

.footer-logo {
    font-family: var(--font-pixel);
    font-size: 12px;
    margin-bottom: 24px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-bottom: 24px;
}

.footer-links a {
    color: var(--text-dim);
    text-decoration: none;
    font-family: var(--font-mono);
    font-size: 14px;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--red);
}

.footer-copy {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--text-dim);
    margin-bottom: 8px;
}

.footer-tagline {
    font-family: var(--font-mono);
    font-size: 12px;
    color: #333;
    font-style: italic;
}

/* ---- UTILITY CLASSES ---- */
.text-red { color: var(--red) !important; }
.text-cyan { color: var(--cyan) !important; }
.text-gold { color: var(--gold) !important; }
.text-purple { color: var(--purple) !important; }
.text-yellow { color: var(--yellow) !important; }
.text-magenta { color: var(--magenta) !important; }

/* ---- ANIMATIONS ---- */
@keyframes fadeInLine {
    from { opacity: 0; transform: translateX(-10px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes glitch {
    0%, 90%, 100% { transform: none; }
    91% { transform: skewX(-1deg); }
    92% { transform: skewX(1deg); }
    93% { transform: none; }
}

@keyframes glitch-shift {
    0%, 90%, 100% { transform: none; }
    91% { transform: translateX(-3px); }
    93% { transform: translateX(3px); }
    94% { transform: none; }
}

@keyframes glitch-shift-2 {
    0%, 88%, 100% { transform: none; }
    89% { transform: translateX(3px); }
    91% { transform: translateX(-3px); }
    92% { transform: none; }
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 5px var(--red); }
    50% { box-shadow: 0 0 20px var(--red), 0 0 40px rgba(255, 0, 64, 0.3); }
}

@keyframes pulse-glow-text {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; text-shadow: 0 0 30px var(--red), 0 0 60px var(--red); }
}

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .nav-mobile-btn { display: flex; }

    .nav-links.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(10, 10, 10, 0.95);
        padding: 20px 40px;
        border-bottom: 1px solid var(--border);
        gap: 16px;
    }

    .hero { padding: 100px 16px 40px; }
    .hero-stats { grid-template-columns: repeat(2, 1fr); }

    .section { padding: 60px 16px; }
    .about-grid { grid-template-columns: 1fr; }
    .traits-grid { grid-template-columns: repeat(2, 1fr); }

    .step { flex-direction: column; gap: 12px; }
    .step-number { font-size: 22px; }

    .rarity-legend { justify-content: center; }

    .footer-links { flex-direction: column; gap: 12px; }
}

@media (max-width: 480px) {
    .hero-stats { grid-template-columns: 1fr 1fr; gap: 12px; }
    .stat-value { font-size: 16px; }
    .hero-title { margin-bottom: 12px; }
    .traits-grid { grid-template-columns: 1fr; }
    .sold-out-banner { font-size: 20px; padding: 12px 24px; }
}
