/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Fredoka+One:wght@400&display=swap');

:root {
    /* Light mode colors */
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-tertiary: #e9ecef;
    --text-primary: #000000;
    --text-secondary: #333333;
    --text-muted: #666666;
    --text-light: #999999;
    --border-color: #e9ecef;
    --border-light: #e5e5e5;
    --card-bg: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
    --hero-bg: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

body.dark-mode {
    /* Dark mode colors */
    --bg-primary: #1a1a1a;
    --bg-secondary: #2d2d2d;
    --bg-tertiary: #404040;
    --text-primary: #ffffff;
    --text-secondary: #e0e0e0;
    --text-muted: #b0b0b0;
    --text-light: #888888;
    --border-color: #404040;
    --border-light: #333333;
    --card-bg: linear-gradient(145deg, #2d2d2d 0%, #1a1a1a 100%);
    --hero-bg: linear-gradient(135deg, #2d2d2d 0%, #1a1a1a 100%);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    font-size: 16px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header and Navigation */
.header {
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-light);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-brand h1 {
    font-family: 'Fredoka One', cursive;
    font-size: 1.8rem;
    font-weight: 400;
    margin: 0;
    text-transform: none;
    letter-spacing: 1px;
    color: #ffcb05;
    text-shadow: 
        3px 3px 0px #3d7dca,
        -1px -1px 0px #3d7dca,
        1px -1px 0px #3d7dca,
        -1px 1px 0px #3d7dca,
        1px 1px 0px #3d7dca,
        2px 2px 4px rgba(0,0,0,0.3);
    position: relative;
}

.tagline {
    font-size: 0.875rem;
    color: #666;
    font-weight: 400;
    margin-left: 0.5rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 400;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: var(--text-primary);
}

.enter-app-btn {
    background: #000;
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: background-color 0.2s ease;
}

.enter-app-btn:hover {
    background: #333;
}

.dark-mode-toggle {
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.dark-mode-toggle:hover {
    background: var(--bg-tertiary);
    transform: scale(1.1);
}

.toggle-icon {
    transition: transform 0.3s ease;
}

.dark-mode-toggle:hover .toggle-icon {
    transform: rotate(20deg);
}

.mobile-menu {
    display: none;
    color: #666;
    font-size: 0.9rem;
}

/* Hero Section */
.hero {
    padding: 4rem 0 6rem;
    background: var(--hero-bg);
    transition: background 0.3s ease;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-text {
    text-align: left;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
    line-height: 1.1;
    transition: color 0.3s ease;
}

.hero-tagline {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
    transition: color 0.3s ease;
}

.highlight {
    color: var(--text-primary);
    font-weight: 700;
    transition: color 0.3s ease;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
    transition: color 0.3s ease;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.pokemon-showcase {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    perspective: 1000px;
}

.pokemon-card-display {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
}

.pokemon-card-display:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.pokemon-card-display.featured {
    transform: scale(1.05);
    border-color: #ffd700;
    box-shadow: 0 12px 40px rgba(255, 215, 0, 0.3);
}

.card-container {
    text-align: center;
}

.pokemon-card-image {
    width: 120px;
    height: auto;
    border-radius: 8px;
    margin-bottom: 1rem;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2));
}

.psa-grade {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.card-info h3 {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    transition: color 0.3s ease;
}

.card-info p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.card-value {
    font-weight: 700;
    color: #27ae60;
    font-size: 1.1rem;
}

.btn-primary {
    background: #000;
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

.btn-primary:hover {
    background: #333;
}

.btn-secondary {
    background: transparent;
    color: #000;
    padding: 0.75rem 1.5rem;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    background: #f8f9fa;
    border-color: #000;
}

/* Features Section */
.features-section {
    padding: 6rem 0;
    background: var(--bg-primary);
    transition: background-color 0.3s ease;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.feature-card {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 2rem;
    background: var(--card-bg);
    border-radius: 16px;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: #667eea;
}

.feature-visual {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-image {
    width: 60px;
    height: auto;
    border-radius: 8px;
}

.psa-slab {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
    padding: 0.5rem;
    border-radius: 8px;
    text-align: center;
    font-weight: 700;
    font-size: 0.8rem;
    width: 60px;
}

.slab-header {
    font-size: 0.7rem;
    margin-bottom: 0.25rem;
}

.slab-grade {
    font-size: 1.5rem;
    margin: 0.25rem 0;
}

.slab-body {
    font-size: 0.6rem;
}

.blockchain-visual {
    display: flex;
    gap: 0.25rem;
    align-items: center;
}

.chain-link {
    width: 16px;
    height: 16px;
    border: 2px solid #667eea;
    border-radius: 4px;
    background: transparent;
}

.feature-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    transition: color 0.3s ease;
}

.feature-content p {
    color: var(--text-secondary);
    line-height: 1.6;
    transition: color 0.3s ease;
}

/* Mechanism Section */
.mechanism-section {
    padding: 6rem 0;
    background: var(--bg-secondary);
    transition: background-color 0.3s ease;
}

.section-title {
    font-size: 3rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--text-primary);
    line-height: 1.2;
    transition: color 0.3s ease;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 4rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    transition: color 0.3s ease;
}

.mechanism-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 4rem;
}

.step {
    text-align: center;
}

.step-number {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.step-content p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    transition: color 0.3s ease;
}

.mechanism-actions {
    text-align: center;
}

/* Cards Section */
.cards-section {
    padding: 6rem 0;
    background: var(--bg-primary);
    transition: background-color 0.3s ease;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.pokemon-card-item {
    background: var(--card-bg);
    border-radius: 16px;
    overflow: hidden;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
}

.pokemon-card-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.card-image {
    position: relative;
    height: 250px;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    transition: background-color 0.3s ease;
}

.card-img {
    width: 150px;
    height: auto;
    border-radius: 12px;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2));
}

.card-grade {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.card-grade.psa {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
}

.card-grade.bgs {
    background: linear-gradient(135deg, #4834d4, #686de0);
    color: white;
}

.card-details {
    padding: 1.5rem;
}

.card-details h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    transition: color 0.3s ease;
}

.card-details p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    transition: color 0.3s ease;
}

.card-price {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.card-status {
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    display: inline-block;
}

.card-status.projected {
    color: #667eea;
    background: #e8f2ff;
}

.card-status.strategy {
    color: #e67e22;
    background: #fdf2e9;
}

.cards-actions {
    text-align: center;
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Protocol Section */
.protocol-section {
    padding: 6rem 0;
    background: var(--bg-secondary);
    transition: background-color 0.3s ease;
}

.protocol-stats {
    text-align: center;
    margin: 3rem 0;
}

.stat-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.125rem;
}

.stat-label {
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.stat-value {
    font-weight: 700;
    color: var(--text-primary);
    transition: color 0.3s ease;
}

.governance-info {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 2rem;
    margin: 3rem 0;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
}

.governance-info h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    text-align: center;
    transition: color 0.3s ease;
}

.governance-info p {
    font-size: 1rem;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 1.5rem;
    transition: color 0.3s ease;
}

.governance-info ul {
    list-style: none;
    padding: 0;
    max-width: 600px;
    margin: 0 auto;
}

.governance-info li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.95rem;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.governance-info li:last-child {
    border-bottom: none;
}

.governance-info strong {
    color: #667eea;
    font-weight: 600;
}

.protocol-description {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    transition: color 0.3s ease;
}

/* Footer */
.footer {
    padding: 3rem 0 2rem;
    background: var(--bg-primary);
    border-top: 1px solid var(--border-light);
    transition: all 0.3s ease;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--text-primary);
}

.footer-disclaimer {
    text-align: center;
    color: var(--text-light);
    font-size: 0.8rem;
    line-height: 1.5;
    transition: color 0.3s ease;
}

.footer-disclaimer p {
    margin-bottom: 0.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    
    .nav-links {
        display: none;
    }
    
    .mobile-menu {
        display: block;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .hero-text {
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .pokemon-showcase {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .pokemon-card-display.featured {
        transform: none;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .feature-card {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .mechanism-steps {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .cards-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-actions,
    .cards-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero {
        padding: 4rem 0 5rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .mechanism-section,
    .cards-section,
    .protocol-section {
        padding: 4rem 0;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Focus styles for accessibility */
.nav-link:focus,
.enter-app-btn:focus,
.btn-primary:focus,
.btn-secondary:focus {
    outline: 2px solid #4285f4;
    outline-offset: 2px;
}