/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;700&family=Orbitron:wght@400;600;700;900&family=Rajdhani:wght@400;600;700&display=swap');

:root {
    --color-primary: #5A2D82;
    --color-secondary: #FF6B00;
    --color-bg-start: #0A0A0F;
    --color-bg-end: #1A0A2E;
    --color-text: #E8E4F0;
    --color-glow-purple: #8B5CF6;
    --color-glow-orange: #FF8C00;

    --font-main: 'Orbitron', sans-serif;
    --font-body: 'Rajdhani', sans-serif;
    --font-cn: 'Noto Sans SC', sans-serif;
}

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

body {
    font-family: var(--font-body);
    background: linear-gradient(to bottom, var(--color-bg-start), var(--color-bg-end));
    color: var(--color-text);
    overflow-x: hidden;
    min-height: 100vh;
}

/* Canvas Background */
#starfield {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    transition: background 0.3s;
}

nav.scrolled {
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(10px);
}

.logo {
    font-family: var(--font-main);
    font-weight: 900;
    font-size: 24px;
    letter-spacing: 2px;
    color: #fff;
    text-shadow: 0 0 10px var(--color-glow-purple);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-logo-img {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    object-fit: contain;
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

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

.nav-link:hover {
    color: var(--color-secondary);
    text-shadow: 0 0 8px var(--color-glow-orange);
}

.lang-switch {
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 5px 15px;
    border-radius: 20px;
    font-family: var(--font-main);
    font-size: 12px;
    transition: all 0.3s;
}

.lang-switch:hover {
    border-color: var(--color-secondary);
    background: rgba(255, 107, 0, 0.1);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    padding: 20px;
}

/* Hero Glow Background */
.hero-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 800px;
    height: 800px;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(90, 45, 130, 0.3) 0%, rgba(255, 107, 0, 0.1) 30%, transparent 70%);
    animation: glow-pulse 6s ease-in-out infinite;
    pointer-events: none;
    z-index: -1;
}

@keyframes glow-pulse {

    0%,
    100% {
        opacity: 0.6;
        transform: translate(-50%, -50%) scale(1);
    }

    50% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

.molt-logo-container {
    width: 180px;
    height: 180px;
    margin-bottom: 30px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-logo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: contain;
    z-index: 10;
    filter: drop-shadow(0 0 20px var(--color-glow-purple)) drop-shadow(0 0 40px var(--color-glow-orange));
}

/* Orbiting Elements */
.orbit {
    position: absolute;
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 50%;
    animation: orbit-spin 10s linear infinite;
}

.orbit-1 {
    width: 140%;
    height: 140%;
    animation-duration: 8s;
}

.orbit-2 {
    width: 180%;
    height: 180%;
    animation-duration: 12s;
    animation-direction: reverse;
}

.orbit-3 {
    width: 220%;
    height: 220%;
    animation-duration: 16s;
}

.orbit-dot {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: var(--color-secondary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--color-secondary), 0 0 20px var(--color-secondary);
}

@keyframes orbit-spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Logo Pulse Effect */
.logo-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid var(--color-glow-purple);
    animation: pulse-ring 2s ease-out infinite;
}

@keyframes pulse-ring {
    0% {
        transform: scale(0.8);
        opacity: 1;
    }

    100% {
        transform: scale(2);
        opacity: 0;
    }
}

.x-symbol {
    font-family: var(--font-main);
    font-size: 100px;
    font-weight: 900;
    background: linear-gradient(135deg, #fff 0%, var(--color-secondary) 50%, var(--color-glow-purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 30px var(--color-glow-purple));
    animation: pulse-glow 4s infinite ease-in-out;
    position: relative;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero h1 {
    font-family: var(--font-main);
    font-size: 5rem;
    font-weight: 900;
    margin-bottom: 15px;
    letter-spacing: 8px;
    background: linear-gradient(135deg, #fff 0%, var(--color-text) 50%, var(--color-glow-purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 60px rgba(139, 92, 246, 0.5);
}

.hero h2 {
    font-size: 1.4rem;
    font-weight: 400;
    margin-bottom: 15px;
    color: var(--color-glow-purple);
    text-transform: uppercase;
    letter-spacing: 3px;
}

.tagline {
    font-family: var(--font-main);
    font-size: 1.1rem;
    margin-bottom: 40px;
    opacity: 0.7;
    letter-spacing: 2px;
}

/* Hero Stats */
.hero-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin-bottom: 40px;
    padding: 25px 50px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 100px;
    backdrop-filter: blur(10px);
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.stat-value {
    font-family: var(--font-main);
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-secondary);
    text-shadow: 0 0 20px rgba(255, 107, 0, 0.5);
}

.stat-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.2), transparent);
}

.cta-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
    width: 100%;
}

.btn-explorer {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    border: none;
    padding: 16px 40px;
    font-family: var(--font-main);
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #fff;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    clip-path: polygon(15px 0, 100% 0, 100% calc(100% - 15px), calc(100% - 15px) 100%, 0 100%, 0 15px);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-explorer:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(90, 45, 130, 0.4), 0 0 30px rgba(255, 107, 0, 0.3);
}

.btn-icon {
    transition: transform 0.3s;
}

.btn-explorer:hover .btn-icon {
    transform: translateX(5px);
}

.btn-explorer::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shine 3s infinite;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--color-glow-purple);
    padding: 16px 40px;
    font-family: var(--font-main);
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #fff;
    cursor: pointer;
    clip-path: polygon(15px 0, 100% 0, 100% calc(100% - 15px), calc(100% - 15px) 100%, 0 100%, 0 15px);
    transition: all 0.3s;
}

.btn-outline:hover {
    background: rgba(90, 45, 130, 0.3);
    border-color: var(--color-secondary);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.3);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0.5;
    animation: scroll-bounce 2s ease-in-out infinite;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--color-secondary), transparent);
}

.scroll-indicator span {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.5);
}

@keyframes scroll-bounce {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
        opacity: 0.5;
    }

    50% {
        transform: translateX(-50%) translateY(10px);
        opacity: 0.8;
    }
}



/* X-Trail Animation */
.x-trail {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    pointer-events: none;
    z-index: -1;
}

.x-trail::before,
.x-trail::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 400px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--color-secondary), var(--color-primary), transparent);
    animation: trail-spin 10s linear infinite;
}

.x-trail::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.x-trail::after {
    transform: translate(-50%, -50%) rotate(-45deg);
    animation-direction: reverse;
}

/* Sections General */
section {
    padding: 120px 20px;
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.section-badge {
    display: inline-block;
    font-family: var(--font-main);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--color-secondary);
    padding: 8px 20px;
    border: 1px solid var(--color-secondary);
    border-radius: 30px;
    margin-bottom: 20px;
}

.section-title {
    text-align: center;
    font-family: var(--font-main);
    font-size: 3rem;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #fff 0%, var(--color-glow-purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 60px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Core Value - 3D Cards */
.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    perspective: 1000px;
}

.space-card {
    background: linear-gradient(135deg, rgba(90, 45, 130, 0.1), rgba(255, 107, 0, 0.05));
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 40px 30px;
    border-radius: 16px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    overflow: hidden;
    cursor: default;
}

.space-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-secondary), var(--color-primary), transparent);
}

.space-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 0%, rgba(255, 107, 0, 0.1), transparent 60%);
    pointer-events: none;
}

.card-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    color: var(--color-secondary);
    filter: drop-shadow(0 0 10px rgba(255, 107, 0, 0.5));
}

.card-icon svg {
    width: 100%;
    height: 100%;
}

.card-badge {
    display: inline-block;
    font-family: var(--font-main);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-glow-purple);
    padding: 4px 12px;
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 20px;
    margin-bottom: 15px;
}

.space-card h3 {
    font-family: var(--font-main);
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: #fff;
}

.space-card p {
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.7;
    margin-bottom: 25px;
    font-size: 0.95rem;
}

.card-stat {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.card-stat .stat-num {
    font-family: var(--font-main);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-secondary);
}

.card-stat .stat-text {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 1px;
}



/* Blueprint Section */
.blueprint-container {
    display: flex;
    flex-direction: column;
    gap: 40px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 20px;
    border: 1px solid rgba(90, 45, 130, 0.3);
    position: relative;
}

.blueprint-node {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.02);
    border-left: 2px solid var(--color-primary);
    transition: all 0.3s;
    cursor: pointer;
}

.blueprint-node:hover {
    background: rgba(90, 45, 130, 0.2);
    border-left-color: var(--color-secondary);
    padding-left: 30px;
}

.node-icon {
    width: 20px;
    height: 20px;
    background: var(--color-primary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--color-primary);
}

.node-content h4 {
    font-family: var(--font-main);
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.node-content p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

/* Benefits Section */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 20px;
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.02), transparent);
    transition: border-color 0.3s;
}

.benefit-item:hover {
    border-color: var(--color-secondary);
}

.star {
    color: var(--color-secondary);
    font-size: 1.2rem;
}

.benefit-text h4 {
    font-family: var(--font-main);
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.benefit-text p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

/* Community & Footer */
.community-section {
    text-align: center;
    margin-bottom: 80px;
}

.community-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.social-link {
    color: #fff;
    font-family: var(--font-main);
    text-decoration: none;
    font-size: 1.2rem;
    padding: 10px 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    transition: all 0.3s;
}

.social-link:hover {
    background: var(--color-secondary);
    border-color: var(--color-secondary);
    box-shadow: 0 0 15px var(--color-glow-orange);
    transform: scale(1.1);
}

footer {
    text-align: center;
    padding: 40px;
    background: rgba(0, 0, 0, 0.5);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.4);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-links {
    margin: 10px 0;
    font-family: var(--font-main);
    word-spacing: 10px;
}

/* Animations Keyframes */
@keyframes pulse-glow {

    0%,
    100% {
        filter: drop-shadow(0 0 15px var(--color-glow-purple));
        transform: scale(1);
    }

    50% {
        filter: drop-shadow(0 0 30px var(--color-glow-purple));
        transform: scale(1.05);
    }
}

@keyframes shine {
    100% {
        left: 100%;
    }
}

@keyframes trail-spin {
    0% {
        opacity: 0.5;
        filter: blur(2px);
    }

    50% {
        opacity: 1;
        filter: blur(0);
    }

    100% {
        opacity: 0.5;
        filter: blur(2px);
    }
}

/* Response Fixes */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .x-trail {
        width: 200px;
        height: 200px;
    }

    .nav-links {
        display: none;
    }

    /* Simplified for now, real mobile nav usually requires hamburger */
    .lang-switch {
        display: block;
        position: absolute;
        top: 20px;
        right: 20px;
    }

    /* Mobile nav override for implementation simplicity */
    nav {
        justify-content: center;
    }

    .logo {
        margin-right: auto;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
    }
}