/* Root Variables */
:root {
    --bg-main: #06070a;
    --bg-card: #0f111a;
    --bg-header: rgba(15, 17, 26, 0.7);
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    /* Neon Gradients */
    --gradient-primary: linear-gradient(135deg, #818cf8, #c084fc, #e879f9);
    --gradient-purple: linear-gradient(135deg, #7c3aed, #4f46e5);
    --gradient-gold: linear-gradient(135deg, #fbbf24, #f59e0b, #d97706);
    --gradient-green: linear-gradient(135deg, #34d399, #059669);
    --gradient-blue: linear-gradient(135deg, #3b82f6, #1d4ed8);
    
    --border-color: rgba(255, 255, 255, 0.08);
    --shadow-main: 0 10px 30px -10px rgba(0, 0, 0, 0.7);
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.max-width-md {
    max-width: 800px;
}

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

/* Typography & General Classes */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin-bottom: 16px;
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.5rem;
    position: relative;
    display: inline-block;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 12px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 48px;
}

p {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 24px;
}

a {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s ease;
}

/* Header & Nav */
.header-main {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--bg-header);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    padding: 16px 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: -0.03em;
}

.logo-accent {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

.nav-links a {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.nav-links a:hover {
    color: var(--text-primary);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
}

.btn-nav {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-size: 0.9rem;
    padding: 8px 20px;
}

.btn-nav:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-primary {
    background: var(--gradient-primary);
    color: #000;
    box-shadow: 0 0 20px rgba(192, 132, 252, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(192, 132, 252, 0.6);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* Hero Section */
.hero-section {
    padding: 160px 0 100px;
    position: relative;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
}

.badge-free {
    display: inline-block;
    background: rgba(129, 140, 248, 0.15);
    color: #818cf8;
    border: 1px solid rgba(129, 140, 248, 0.3);
    padding: 6px 16px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    margin-bottom: 24px;
}

.hero-lead {
    font-size: 1.2rem;
    margin-bottom: 40px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 60px;
}

.hero-stats {
    display: flex;
    gap: 48px;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-num {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Showcase Card (Hero Visual) */
.hero-visual {
    display: flex;
    justify-content: center;
}

.card-legendary-showcase {
    position: relative;
    width: 320px;
    background: var(--bg-card);
    border-radius: 24px;
    border: 1px solid var(--border-color);
    padding: 16px;
    box-shadow: var(--shadow-main);
    animation: floatCard 6s ease-in-out infinite;
}

.card-glow {
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: var(--gradient-gold);
    filter: blur(25px);
    opacity: 0.25;
    z-index: -1;
    border-radius: 30px;
}

.hero-showcase-img {
    width: 100%;
    border-radius: 18px;
    image-rendering: pixelated;
    display: block;
    margin-bottom: 16px;
}

.card-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
}

.card-rarity-badge {
    background: rgba(251, 191, 36, 0.15);
    color: #fbbf24;
    border: 1px solid rgba(251, 191, 36, 0.3);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
}

/* Animations */
@keyframes floatCard {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-15px) rotate(1deg);
    }
}

/* Legendary Showcase Section */
.legendary-showcase-section {
    padding: 100px 0;
    border-top: 1px solid var(--border-color);
    background: radial-gradient(circle at 50% 0%, rgba(251, 191, 36, 0.05), transparent 70%);
}

.legendary-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 40px;
}

.legendary-card-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 16px;
    box-shadow: var(--shadow-main);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.legendary-card-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-gold);
}

.legendary-card-item:hover {
    transform: translateY(-8px);
    border-color: rgba(251, 191, 36, 0.4);
    box-shadow: 0 12px 30px rgba(251, 191, 36, 0.15);
}

.legendary-card-item img {
    width: 100%;
    border-radius: 16px;
    image-rendering: pixelated;
    margin-bottom: 16px;
}

.legendary-card-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.legendary-card-details h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0;
}

.badge-legendary {
    background: rgba(251, 191, 36, 0.15);
    color: #fbbf24;
    border: 1px solid rgba(251, 191, 36, 0.3);
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
}

/* Categorized Gallery/Carousels Section */
.gallery-section {
    padding: 100px 0;
    border-top: 1px solid var(--border-color);
}

.carousel-group {
    margin-bottom: 60px;
}

.category-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 24px;
    border-left: 4px solid #c084fc;
    padding-left: 12px;
}

.carousel-container-outer {
    position: relative;
    display: flex;
    align-items: center;
}

.carousel-track-container {
    overflow: hidden;
    width: 100%;
    padding: 10px 0;
}

.carousel-track {
    display: flex;
    gap: 24px;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-card {
    min-width: calc(25% - 18px);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 12px;
    text-align: left;
    box-shadow: var(--shadow-main);
    transition: all 0.3s ease;
}

.carousel-card:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
}

.carousel-card img {
    width: 100%;
    border-radius: 14px;
    image-rendering: pixelated;
    margin-bottom: 12px;
}

.carousel-card h4 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0;
}

.carousel-btn {
    position: absolute;
    background: rgba(15, 17, 26, 0.8);
    border: 1px solid var(--border-color);
    color: white;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.carousel-btn:hover {
    background: var(--gradient-primary);
    color: black;
    border-color: transparent;
}

.btn-prev {
    left: -24px;
}

.btn-next {
    right: -24px;
}

/* Rarity Tiers Section */
.rarity-section {
    padding: 100px 0;
    background: radial-gradient(circle at 50% 50%, rgba(129, 140, 248, 0.05), transparent 70%);
}

.rarity-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.rarity-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 32px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-main);
}

.rarity-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
}

.rarity-prob {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.rarity-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.rarity-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.rarity-footer {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-top: 1px solid var(--border-color);
    padding-top: 16px;
}

/* Card Rarity Custom Borders & Texts */
.card-common .rarity-prob { color: #3b82f6; }
.card-common { border-top: 4px solid #3b82f6; }

.card-rare .rarity-prob { color: #8b5cf6; }
.card-rare { border-top: 4px solid #8b5cf6; }

.card-epic .rarity-prob { color: #10b981; }
.card-epic { border-top: 4px solid #10b981; }

.card-legendary .rarity-prob { color: #fbbf24; }
.card-legendary { border-top: 4px solid #fbbf24; }

/* Evolution Section */
.evolution-section {
    padding: 100px 0;
    border-top: 1px solid var(--border-color);
}

.evolution-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 40px;
}

.evo-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 12px;
    text-align: center;
    box-shadow: var(--shadow-main);
}

.evo-card img {
    width: 100%;
    border-radius: 14px;
    image-rendering: pixelated;
    margin-bottom: 12px;
}

.evo-info h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.evo-info span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* FAQ Section */
.faq-section {
    padding: 100px 0;
    border-top: 1px solid var(--border-color);
}

.faq-accordion {
    margin-top: 40px;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    margin-bottom: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-question {
    width: 100%;
    padding: 20px 24px;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question::after {
    content: '+';
    font-size: 1.4rem;
    color: var(--text-muted);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question::after {
    transform: rotate(45deg);
}

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

.faq-item.active .faq-answer {
    max-height: 200px;
    padding-bottom: 20px;
}

.faq-answer p {
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* CTA Section */
.cta-section {
    padding: 100px 0;
    background: linear-gradient(180deg, transparent, rgba(129, 140, 248, 0.05));
    border-top: 1px solid var(--border-color);
}

.cta-section h2 {
    font-size: 2.8rem;
    margin-bottom: 16px;
}

.cta-section p {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 32px;
}

/* Footer */
.footer-main {
    background: #020305;
    border-top: 1px solid var(--border-color);
    padding: 60px 0 30px;
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.footer-brand p {
    font-size: 0.85rem;
    max-width: 320px;
    margin-top: 8px;
    margin-bottom: 0;
}

.footer-socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.footer-socials a:hover {
    background: var(--gradient-primary);
    color: black;
    border-color: transparent;
}

.footer-copy p {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0;
}

/* Responsive queries */
@media (max-width: 992px) {
    h1 {
        font-size: 2.8rem;
    }
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 48px;
        text-align: center;
    }
    .hero-actions {
        justify-content: center;
    }
    .hero-stats {
        justify-content: center;
    }
    .legendary-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .carousel-card {
        min-width: calc(50% - 12px);
    }
    .evolution-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    .legendary-grid {
        grid-template-columns: 1fr;
    }
    .carousel-card {
        min-width: 100%;
    }
    .footer-grid {
        flex-direction: column;
        gap: 24px;
        text-align: center;
    }
    .footer-brand p {
        margin: 8px auto 0;
    }
}
