:root {
    --primary: #6366f1; /* Indigo */
    --primary-glow: #818cf8;
    --secondary: #fbbf24; /* Amber/Gold */
    --bg-dark: #030712;
    --text-white: #f9fafb;
    --text-muted: #9ca3af;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --radius-lg: 24px;
    --radius-md: 16px;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg-dark);
    color: var(--text-white);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

.mesh-bg {
    position: relative;
    background: radial-gradient(at 0% 0%, rgba(99, 102, 241, 0.15) 0px, transparent 50%),
                radial-gradient(at 100% 100%, rgba(251, 191, 36, 0.05) 0px, transparent 50%),
                var(--bg-dark);
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* --- Header --- */
header {
    position: fixed;
    top: 0;
    width: 100%;
    height: 80px;
    z-index: 1000;
    display: flex;
    align-items: center;
    background: rgba(3, 7, 18, 0.6);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--glass-border);
}

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

.logo {
    font-family: 'Outfit', sans-serif;
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: -0.05em;
    background: linear-gradient(135deg, #fff 0%, #6366f1 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.nav-link:hover {
    color: var(--text-white);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.75rem;
    border-radius: 99px;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-family: 'Outfit', sans-serif;
    letter-spacing: 0.02em;
    touch-action: manipulation;
}

.btn-sm { padding: 0.5rem 1.25rem; font-size: 0.85rem; }
.btn-xl { padding: 1.25rem 3rem; font-size: 1.15rem; }

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-glow);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 30px rgba(99, 102, 241, 0.4);
}

.btn-glow {
    position: relative;
    overflow: hidden;
}

.btn-glow::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 70%);
    opacity: 0;
    transition: var(--transition);
}

.btn-glow:hover::after { opacity: 1; }

.btn-glass {
    background: var(--glass-bg);
    color: white;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--text-white);
}

/* --- Hero Section --- */
.hero-section {
    position: relative;
    padding-top: 180px;
    padding-bottom: 120px;
    overflow: hidden;
}

.hero-noise {
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.03;
    pointer-events: none;
}

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

.hero-title {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(3.5rem, 8vw, 5.5rem);
    font-weight: 900;
    line-height: 0.95;
    margin-bottom: 2rem;
    letter-spacing: -0.04em;
    animation: fadeInUp 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.hero-title .accent {
    color: var(--primary);
    background: linear-gradient(to right, var(--primary), #a5b4fc);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 99px;
    color: var(--primary-glow);
    font-weight: 800;
    font-size: 0.75rem;
    margin-bottom: 1.5rem;
    letter-spacing: 0.1em;
}

.hero-description {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 600px;
    margin-bottom: 3rem;
    animation: fadeInUp 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
    animation: fadeInUp 1.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.visual-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    transform: perspective(1000px) rotateY(-15deg) rotateX(5deg);
    box-shadow: -40px 40px 80px rgba(0, 0, 0, 0.5);
    transition: var(--transition);
}

.visual-card:hover {
    transform: perspective(1000px) rotateY(-5deg) rotateX(2deg);
}

.floating-img {
    width: 100%;
    display: block;
    animation: float 6s ease-in-out infinite;
}

.visual-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, rgba(99, 102, 241, 0.1), transparent);
}

.hero-fade-bottom {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 200px;
    background: linear-gradient(to bottom, transparent, var(--bg-dark));
    pointer-events: none;
}

/* --- Features --- */
.features-section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.section-title {
    font-family: 'Outfit', sans-serif;
    font-size: 3.5rem;
    font-weight: 900;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.2rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.glass {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(16px);
}

.feature-card {
    padding: 3rem;
    border-radius: var(--radius-lg);
    transition: var(--transition);
}

.feature-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(99, 102, 241, 0.4);
    transform: translateY(-10px);
}

.feature-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 2rem;
    background: var(--primary);
    border-radius: 12px;
    position: relative;
}

.ico-map { background: linear-gradient(135deg, #6366f1, #a855f7); }
.ico-swords { background: linear-gradient(135deg, #f59e0b, #ef4444); }
.ico-star { background: linear-gradient(135deg, #10b981, #3b82f6); }

.feature-card h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--text-muted);
}

/* --- Characters --- */
.character-section {
    padding: 100px 0;
}

.character-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
}

.char-card {
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    position: relative;
    overflow: hidden;
}

.char-rank {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 0.7rem;
    font-weight: 900;
    color: var(--text-muted);
    border: 1px solid var(--glass-border);
    padding: 2px 8px;
    border-radius: 4px;
}

.char-heading {
    font-family: 'Outfit', sans-serif;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.char-tag {
    display: block;
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--secondary);
    letter-spacing: 0.2em;
    margin-bottom: 1.5rem;
}

.char-card p {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.stat-bars {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stat-item .label {
    width: 40px;
    font-size: 0.7rem;
    font-weight: 900;
}

.bar {
    flex: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
    overflow: hidden;
}

.fill { height: 100%; border-radius: 3px; }
.hero-atk { width: 90%; background: #f87171; }
.hero-def { width: 65%; background: #fbbf24; }
.mage-mag { width: 95%; background: #6366f1; }
.mage-spd { width: 80%; background: #60a5fa; }
.sup-heal { width: 95%; background: #34d399; }
.sup-mana { width: 90%; background: #a78bfa; }

/* --- Console Section --- */
.launch-section {
    padding: 150px 0;
    position: relative;
}

.launch-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.console-wrapper {
    max-width: 900px;
    margin: 0 auto;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.15);
    overflow: hidden;
    background: #000;
}

.console-header {
    background: #111;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #222;
}

.console-controls {
    display: flex;
    gap: 0.5rem;
}

.dot { width: 12px; height: 12px; border-radius: 50%; }
.red { background: #ef4444; }
.yellow { background: #f59e0b; }
.green { background: #10b981; }

.console-title {
    margin-left: 2rem;
    font-size: 0.75rem;
    font-weight: 800;
    color: #444;
    letter-spacing: 0.15em;
}

.console-body {
    min-height: 512px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, #0a0a0a 0%, #000 100%);
}

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

.status-box {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    border: 1px solid #10b981;
    color: #10b981;
    font-size: 0.8rem;
    font-weight: 900;
    margin-bottom: 2.5rem;
    letter-spacing: 0.2em;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.2);
}

.hint {
    margin-top: 1.5rem;
    font-size: 0.85rem;
    color: #333;
}

/* --- Footer --- */
footer {
    padding: 80px 0;
    border-top: 1px solid var(--glass-border);
}

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

.logo-f {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
}

.footer-links p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* --- Animations --- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

@media (max-width: 900px) {
    .hero-section::before {
        content: '';
        position: absolute;
        inset: 0;
        background: url('assets/bg.png') center/cover no-repeat;
        opacity: 0.15;
        z-index: -1;
    }
    .hero-grid { grid-template-columns: 1fr; text-align: center; }
    .hero-cta { justify-content: center; }
    .hero-description { margin-inline: auto; }
    .hero-visual { display: none; }
    .footer-content { flex-direction: column; gap: 2rem; text-align: center; }

    /* Header Mobile Adjustments */
    header {
        height: auto;
        padding: 1rem 0;
    }

    .nav-container {
        flex-direction: column;
        gap: 1.5rem;
    }

    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }

    .nav-link {
        font-size: 0.8rem;
    }
}
