/* ==========================================================================
   MNPL.SPACE - POWERED BY MINI APP DESIGN SYSTEM
   Imports real CSS tokens, buttons, cards, and typography from app-mnpl-new
   ========================================================================== */

@import url('/static/css/app/index.css');

/* Landing layout overrides & desktop responsiveness */
html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
    font-size: 15px;
    line-height: 1.5;
    overflow-x: hidden;
    min-height: 100vh;
}

.site-container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

/* Subtle Stars */
.stars-background {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.star {
    position: absolute;
    background: #ffffff;
    border-radius: 50%;
    opacity: 0.35;
    animation: starPulse 2.5s infinite alternate;
}

@keyframes starPulse {
    0% { opacity: 0.15; }
    100% { opacity: 0.8; }
}

/* Header */
header.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 12px 0;
    background: rgba(8, 8, 8, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-primary);
    transition: transform var(--transition-base), background var(--transition-base);
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 700;
    font-size: 18px;
}

.logo-badge {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-md);
    background: var(--bg-tertiary);
    border: 1px solid var(--accent-pink-border);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.logo-badge img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.brand-title {
    display: flex;
    flex-direction: column;
}

.brand-name {
    line-height: 1.1;
    display: flex;
    align-items: center;
    gap: 5px;
}

.brand-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
}

.brand-tag {
    font-size: 10px;
    font-weight: 600;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 6px;
    list-style: none;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: var(--radius-full);
    transition: all 0.2s ease;
}

.nav-link:hover {
    color: var(--text-primary);
    background: var(--bg-tertiary);
}

.nav-link.active {
    color: var(--accent);
    background: var(--accent-muted);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.lang-switcher {
    display: flex;
    align-items: center;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-full);
    padding: 2px;
}

.lang-btn {
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 700;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s ease;
}

.lang-btn.active {
    background: var(--accent);
    color: #000000;
}

.btn-nav-play {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: var(--radius-full);
    background: var(--accent);
    color: #000000;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-nav-play:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
}

.mobile-toggle {
    display: none;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-sm);
    width: 38px;
    height: 38px;
    cursor: pointer;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.mobile-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
}

.mobile-drawer {
    display: none;
    position: fixed;
    top: 63px;
    left: 0;
    width: 100%;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-primary);
    padding: 20px;
    flex-direction: column;
    gap: 10px;
    z-index: 999;
}

.mobile-drawer.open {
    display: flex;
}

.mobile-nav-link {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    background: var(--bg-tertiary);
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 700;
}

.badge-accent {
    background: var(--accent-muted);
    color: var(--accent);
    border: 1px solid var(--accent-pink-border);
}

.badge-purple {
    background: var(--accent-purple-muted);
    color: var(--accent-purple);
    border: 1px solid rgba(184, 165, 212, 0.25);
}

.badge-gold {
    background: rgba(255, 215, 0, 0.12);
    color: var(--gold);
    border: 1px solid rgba(255, 215, 0, 0.25);
}

.badge-green {
    background: rgba(52, 199, 89, 0.12);
    color: var(--success);
    border: 1px solid rgba(52, 199, 89, 0.25);
}

.badge-live {
    background: rgba(52, 199, 89, 0.15);
    color: var(--success-light);
    border: 1px solid rgba(52, 199, 89, 0.3);
}

/* Sections */
section.site-section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 40px auto;
}

.section-tag {
    margin-bottom: 12px;
}

.section-title {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.section-subtitle {
    font-size: 15px;
    color: var(--text-secondary);
}

.gradient-text {
    color: var(--accent);
}

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

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

/* Hero Section */
.hero-section {
    padding-top: 130px;
    padding-bottom: 60px;
    text-align: center;
}

.hero-title {
    font-size: 42px;
    font-weight: 800;
    line-height: 1.15;
    margin: 18px 0 18px 0;
    color: var(--text-primary);
}

.hero-desc {
    font-size: 16px;
    color: var(--text-secondary);
    max-width: 660px;
    margin: 0 auto 28px auto;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.hero-actions .btn {
    padding: 13px 22px;
    font-size: 14px;
    text-decoration: none;
}

.btn-primary {
    background: var(--accent);
    color: #000000;
}

.btn-secondary {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border-primary);
}

.btn-ghost {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-primary);
}

.btn-icon {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

/* Metrics */
.metrics-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 40px;
}

.metric-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
    padding: 18px;
    text-align: left;
}

.metric-value {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 4px;
}

.metric-label {
    font-size: 12px;
    color: var(--text-tertiary);
}

/* Chart */
.chart-wrapper {
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.chart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border-primary);
}

.chart-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 600;
}

.chart-actions {
    display: flex;
    gap: 14px;
}

.chart-link {
    font-size: 12px;
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

.chart-iframe-container {
    width: 100%;
    height: 440px;
}

.chart-iframe-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Hub Cards */
.links-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.hub-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
    padding: 20px;
    text-decoration: none;
    color: var(--text-primary);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 140px;
    transition: all 0.2s ease;
}

.hub-card:hover {
    border-color: var(--accent-pink-border);
    transform: translateY(-2px);
}

.hub-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.hub-card-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    background: var(--bg-tertiary);
    border: 1px solid var(--border-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
}

.hub-card-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.hub-arrow-icon {
    width: 18px;
    height: 18px;
    color: var(--text-tertiary);
}

.hub-card-title {
    font-size: 15px;
    font-weight: 700;
    display: block;
    margin-bottom: 4px;
}

.hub-card-desc {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* Roadmap */
.roadmap-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.roadmap-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
    padding: 20px;
}

.roadmap-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 12px;
    margin-bottom: 14px;
    border-bottom: 1px solid var(--border-primary);
}

.roadmap-quarter {
    font-size: 18px;
    font-weight: 700;
}

.roadmap-milestones {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.roadmap-milestone {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.milestone-month {
    font-size: 13px;
    font-weight: 700;
    color: var(--accent);
}

.milestone-text {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* Tokenomics */
.tokenomics-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 28px;
    align-items: center;
}

.tokenomics-chart-panel {
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-xl);
    padding: 28px;
    text-align: center;
}

.chart-donut-wrapper {
    position: relative;
    max-width: 280px;
    max-height: 280px;
    margin: 0 auto;
}

.chart-center-info {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.chart-center-symbol {
    font-size: 24px;
    font-weight: 800;
}

.chart-center-sub {
    font-size: 11px;
    color: var(--text-tertiary);
}

.tokenomics-info-panel {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.tokenomics-summary-card {
    background: var(--bg-secondary);
    border: 1px solid var(--accent-pink-border);
    border-radius: var(--radius-lg);
    padding: 18px;
}

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

.supply-title {
    font-size: 12px;
    color: var(--text-tertiary);
    text-transform: uppercase;
}

.supply-amount {
    font-size: 20px;
    font-weight: 800;
}

.supply-sub {
    font-size: 13px;
    color: var(--text-secondary);
}

.pools-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pool-row {
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.pool-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.pool-details {
    flex-grow: 1;
}

.pool-name {
    font-size: 13px;
    font-weight: 700;
    display: block;
}

.pool-desc {
    font-size: 11px;
    color: var(--text-tertiary);
}

.pool-amount {
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.tokenomics-links {
    display: flex;
    gap: 10px;
}

.tokenomics-links .btn {
    text-decoration: none;
    padding: 12px 16px;
    font-size: 13px;
}

/* Game Features */
.game-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 30px;
}

.feature-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.feature-icon-wrap {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-md);
    background: var(--accent-muted);
    border: 1px solid var(--accent-pink-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.feature-title {
    font-size: 16px;
    font-weight: 700;
}

.feature-text {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.feature-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: auto;
}

.game-cta-banner {
    background: var(--bg-secondary);
    border: 1px solid var(--accent-pink-border);
    border-radius: var(--radius-xl);
    padding: 28px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.cta-banner-text h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 6px;
}

.cta-banner-text p {
    font-size: 14px;
    color: var(--text-secondary);
}

/* Footer */
footer.site-footer {
    border-top: 1px solid var(--border-primary);
    background: var(--bg-secondary);
    padding: 40px 0 24px 0;
}

.footer-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-primary);
    flex-wrap: wrap;
}

.footer-desc {
    font-size: 12px;
    color: var(--text-tertiary);
    margin-top: 6px;
}

.footer-nav {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.footer-nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
}

.footer-nav a:hover {
    color: var(--accent);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 20px;
    font-size: 12px;
    color: var(--text-tertiary);
    flex-wrap: wrap;
    gap: 12px;
}

.footer-copy a {
    color: var(--accent);
    text-decoration: none;
}

.btn-scroll-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    border: 1px solid var(--accent-pink-border);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: all 0.2s ease;
    z-index: 900;
}

.btn-scroll-top.visible {
    opacity: 1;
    pointer-events: auto;
}

/* Responsive */
@media (max-width: 1024px) {
    .metrics-strip,
    .links-grid,
    .roadmap-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .game-features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .tokenomics-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-menu, .btn-nav-play {
        display: none;
    }
    .mobile-toggle {
        display: flex;
    }
    .hero-title {
        font-size: 30px;
    }
    .metrics-strip,
    .links-grid,
    .roadmap-grid,
    .game-features-grid {
        grid-template-columns: 1fr;
    }
    .game-cta-banner {
        flex-direction: column;
        text-align: center;
    }
    .tokenomics-links {
        flex-direction: column;
    }
}
