/* ==========================================================================
   MALIAXIA — Design System & Stylesheet
   Palette:
   - Deep Night Blue : #071426
   - Tech Blue       : #168BDE
   - Luminous Cyan   : #36B9FF
   - White           : #FFFFFF
   ========================================================================== */

:root {
    --bg-night: #071426;
    --bg-night-elevated: #0c1f38;
    --bg-night-deep: #040c18;
    --accent-blue: #168BDE;
    --accent-cyan: #36B9FF;
    --text-white: #FFFFFF;
    --text-muted: #9FB6D1;
    --text-soft: #C7DAEE;
    --glass-bg: rgba(13, 33, 61, 0.56);
    --glass-bg-hover: rgba(18, 46, 84, 0.78);
    --glass-border: rgba(54, 185, 255, 0.18);
    --glass-border-hover: rgba(54, 185, 255, 0.45);
    --shadow-soft: 0 18px 45px rgba(2, 9, 20, 0.45);
    --shadow-glow: 0 0 32px rgba(54, 185, 255, 0.24);
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 22px;
    --transition: 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body.mx-body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-night);
    color: var(--text-white);
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .mx-brand {
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    letter-spacing: -0.02em;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

.mx-container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ==================== GLASSMORPHISM & COMMON ==================== */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    transition: transform var(--transition), border-color var(--transition), background var(--transition), box-shadow var(--transition);
}

.glass-card:hover {
    transform: translateY(-5px);
    background: var(--glass-bg-hover);
    border-color: var(--glass-border-hover);
    box-shadow: var(--shadow-soft), var(--shadow-glow);
}

.mx-section {
    position: relative;
    padding: 96px 0;
}

.mx-section-alt {
    background: linear-gradient(180deg, rgba(10, 27, 50, 0.55) 0%, rgba(7, 20, 38, 0.92) 100%);
    border-top: 1px solid rgba(54, 185, 255, 0.08);
    border-bottom: 1px solid rgba(54, 185, 255, 0.08);
}

.mx-section-head {
    max-width: 740px;
    margin: 0 auto 56px;
    text-align: center;
}

.mx-eyebrow {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent-cyan);
    margin-bottom: 12px;
}

.mx-section-title {
    font-size: clamp(2rem, 3.6vw, 2.85rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 14px;
    color: var(--text-white);
}

.mx-section-desc {
    font-size: 1.05rem;
    color: var(--text-muted);
}

.mx-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--accent-cyan);
    background: rgba(22, 139, 222, 0.14);
    border: 1px solid rgba(54, 185, 255, 0.25);
    margin-bottom: 18px;
}

/* ==================== BUTTONS ==================== */
.mx-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 10px 18px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.92rem;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
}

.mx-btn-lg {
    padding: 14px 24px;
    font-size: 0.98rem;
    border-radius: 12px;
}

.mx-btn-block {
    width: 100%;
}

.mx-btn-primary {
    background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-cyan) 100%);
    color: #041020;
    font-weight: 700;
    box-shadow: 0 8px 24px rgba(22, 139, 222, 0.35);
}

.mx-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(54, 185, 255, 0.48);
}

.mx-btn-ghost {
    color: var(--text-white);
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.14);
}

.mx-btn-ghost:hover {
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
}

.mx-btn-glass {
    color: var(--text-white);
    background: rgba(13, 33, 61, 0.65);
    border-color: rgba(54, 185, 255, 0.32);
    backdrop-filter: blur(10px);
}

.mx-btn-glass:hover {
    background: rgba(22, 139, 222, 0.18);
    border-color: var(--accent-cyan);
    transform: translateY(-2px);
}

.mx-btn-outline {
    color: var(--accent-cyan);
    background: transparent;
    border-color: rgba(54, 185, 255, 0.4);
}

.mx-btn-outline:hover {
    background: rgba(54, 185, 255, 0.12);
    transform: translateY(-2px);
}

/* ==================== HEADER ==================== */
.mx-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(7, 20, 38, 0.72);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(54, 185, 255, 0.12);
    transition: background var(--transition), box-shadow var(--transition);
}

.mx-header.scrolled {
    background: rgba(4, 12, 24, 0.92);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.mx-nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 76px;
    gap: 16px;
}

.mx-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.mx-logo-img {
    height: 38px;
    width: auto;
    object-fit: contain;
}

.mx-logo-fallback {
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1.2rem;
    letter-spacing: 0.08em;
}

.mx-logo-mark {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
    box-shadow: 0 0 14px var(--accent-cyan);
}

.mx-nav {
    display: flex;
    align-items: center;
    gap: 22px;
}

.mx-nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-soft);
    position: relative;
    padding: 4px 0;
    transition: color var(--transition);
}

.mx-nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-cyan));
    transition: width var(--transition);
}

.mx-nav-link:hover {
    color: var(--text-white);
}

.mx-nav-link:hover::after {
    width: 100%;
}

.mx-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mx-lang-switcher {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(54, 185, 255, 0.22);
    border-radius: 8px;
    padding: 2px;
}

.mx-lang-btn {
    font-size: 0.76rem;
    font-weight: 700;
    padding: 5px 8px;
    border-radius: 6px;
    color: var(--text-muted);
    transition: all var(--transition);
}

.mx-lang-btn.active {
    background: var(--accent-blue);
    color: var(--text-white);
}

/* Burger */
.mx-burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(54, 185, 255, 0.22);
    border-radius: 10px;
    cursor: pointer;
    padding: 0 9px;
}

.mx-burger span {
    display: block;
    height: 2px;
    width: 100%;
    background: var(--text-white);
    border-radius: 2px;
    transition: transform var(--transition), opacity var(--transition);
}

.mx-burger.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.mx-burger.open span:nth-child(2) {
    opacity: 0;
}

.mx-burger.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.mx-mobile-drawer {
    display: none;
    flex-direction: column;
    gap: 18px;
    padding: 20px 24px 28px;
    background: rgba(6, 17, 33, 0.97);
    border-bottom: 1px solid rgba(54, 185, 255, 0.2);
}

.mx-mobile-drawer.open {
    display: flex;
}

.mx-mobile-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mx-mobile-link {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-soft);
    padding: 6px 0;
}

.mx-mobile-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* ==================== HERO ==================== */
.mx-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 112px;
    padding-bottom: 72px;
    overflow: hidden;
    background: radial-gradient(circle at 50% 25%, rgba(22, 139, 222, 0.22) 0%, rgba(7, 20, 38, 0.96) 68%, var(--bg-night) 100%);
}

.mx-hero-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.mx-hero-glow {
    position: absolute;
    width: 480px;
    height: 480px;
    border-radius: 50%;
    filter: blur(120px);
    pointer-events: none;
    z-index: 0;
}

.mx-glow-left {
    top: 12%;
    left: -120px;
    background: rgba(22, 139, 222, 0.22);
}

.mx-glow-right {
    bottom: 8%;
    right: -120px;
    background: rgba(54, 185, 255, 0.2);
}

.mx-hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    text-align: center;
    margin: 0 auto;
}

.mx-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    border-radius: 999px;
    background: rgba(22, 139, 222, 0.14);
    border: 1px solid rgba(54, 185, 255, 0.35);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--accent-cyan);
    margin-bottom: 24px;
}

.mx-badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-cyan);
    box-shadow: 0 0 12px var(--accent-cyan);
    animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.35); opacity: 0.65; }
}

.mx-hero-title {
    font-size: clamp(2.5rem, 6vw, 4.4rem);
    font-weight: 800;
    line-height: 1.08;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #FFFFFF 0%, #D9F1FF 58%, var(--accent-cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.mx-hero-subtitle {
    font-size: clamp(1.05rem, 1.8vw, 1.25rem);
    color: var(--text-soft);
    max-width: 740px;
    margin: 0 auto 18px;
}

.mx-hero-tagline {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent-cyan);
    margin-bottom: 34px;
}

.mx-hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    margin-bottom: 48px;
}

.mx-hero-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    max-width: 780px;
    margin: 0 auto;
}

.mx-metric-card {
    padding: 18px 20px;
    text-align: left;
}

.mx-metric-val {
    display: block;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--accent-cyan);
}

.mx-metric-lbl {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ==================== GRIDS & CARDS ==================== */
.mx-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.mx-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.mx-pillar-card,
.mx-info-card,
.mx-profile-card,
.mx-about-card {
    padding: 28px 24px;
}

.mx-pillar-card h3,
.mx-info-card h3,
.mx-profile-card h3,
.mx-about-card h3 {
    font-size: 1.15rem;
    margin-bottom: 10px;
}

.mx-pillar-card p,
.mx-info-card p,
.mx-profile-card p,
.mx-about-card p {
    font-size: 0.94rem;
    color: var(--text-muted);
}

/* Ecosystem 4 Pillars */
.mx-ecosystem-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 26px;
}

.mx-eco-card {
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
}

.mx-eco-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.mx-eco-badge {
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    color: var(--accent-cyan);
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(54, 185, 255, 0.1);
    border: 1px solid rgba(54, 185, 255, 0.25);
}

.mx-eco-card h3 {
    font-size: 1.4rem;
    margin-bottom: 8px;
}

.mx-eco-lead {
    color: var(--text-soft);
    font-size: 0.96rem;
    margin-bottom: 18px;
}

.mx-eco-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 24px;
    flex: 1;
}

.mx-eco-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.88rem;
    color: var(--text-muted);
}

.mx-eco-list li i {
    color: var(--accent-cyan);
    margin-top: 4px;
    font-size: 0.78rem;
}

.mx-eco-link,
.mx-inline-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 0.92rem;
    color: var(--accent-cyan);
    transition: gap var(--transition);
}

.mx-eco-link:hover,
.mx-inline-link:hover {
    gap: 13px;
}

/* Opportunities */
.mx-opp-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.mx-opp-card {
    padding: 24px 20px;
}

.mx-opp-icon {
    font-size: 1.35rem;
    color: var(--accent-cyan);
    margin-bottom: 14px;
    display: block;
}

.mx-opp-card h3 {
    font-size: 1.05rem;
    margin-bottom: 8px;
}

.mx-opp-card p {
    font-size: 0.88rem;
    color: var(--text-muted);
}

/* Why Maliaxia */
.mx-why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.mx-why-card {
    padding: 26px 22px;
}

.mx-why-num {
    display: inline-block;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.75rem;
    font-weight: 800;
    color: rgba(54, 185, 255, 0.35);
    margin-bottom: 10px;
}

.mx-why-card h3 {
    font-size: 1.08rem;
    margin-bottom: 8px;
}

.mx-why-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* News */
.mx-news-card {
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
}

.mx-news-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    font-size: 0.78rem;
}

.mx-news-tag {
    font-weight: 700;
    color: var(--accent-cyan);
    letter-spacing: 0.08em;
}

.mx-news-date {
    color: var(--text-muted);
}

.mx-news-card h3 {
    font-size: 1.15rem;
    margin-bottom: 10px;
}

.mx-news-card p {
    font-size: 0.92rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    flex: 1;
}

/* About */
.mx-about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 22px;
}

/* CTA Section */
.mx-cta-box {
    padding: 56px 32px;
    text-align: center;
    background: linear-gradient(135deg, rgba(22, 139, 222, 0.16) 0%, rgba(12, 31, 56, 0.85) 100%);
}

.mx-cta-desc {
    margin: 0 auto 30px;
}

.mx-cta-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
}

/* ==================== FOOTER ==================== */
.mx-footer {
    background: var(--bg-night-deep);
    border-top: 1px solid rgba(54, 185, 255, 0.14);
    padding: 72px 0 32px;
}

.mx-footer-grid {
    display: grid;
    grid-template-columns: 1.6fr repeat(4, 1fr);
    gap: 32px;
    margin-bottom: 48px;
}

.mx-footer-text {
    margin-top: 16px;
    font-size: 0.9rem;
    color: var(--text-muted);
    max-width: 320px;
}

.mx-footer-heading {
    font-size: 0.92rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-white);
    margin-bottom: 16px;
}

.mx-footer-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.mx-footer-list a:hover {
    color: var(--accent-cyan);
}

.mx-footer-email {
    display: inline-block;
    font-weight: 600;
    color: var(--accent-cyan);
    margin-bottom: 16px;
    font-size: 0.95rem;
}

.mx-socials {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.mx-socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(54, 185, 255, 0.2);
    font-size: 1.1rem;
    transition: all var(--transition);
}

.mx-socials a:hover {
    color: var(--accent-cyan);
    border-color: var(--accent-cyan);
    transform: translateY(-2px);
}

.mx-footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ==================== SCROLL REVEAL ==================== */
.reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1), transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1080px) {
    .mx-nav {
        display: none;
    }

    .mx-burger {
        display: flex;
    }

    .mx-grid-4,
    .mx-opp-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .mx-footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .mx-section {
        padding: 72px 0;
    }

    .mx-hero-metrics,
    .mx-grid-3,
    .mx-ecosystem-grid,
    .mx-grid-4,
    .mx-opp-grid {
        grid-template-columns: 1fr;
    }

    .mx-header-actions .mx-btn-ghost {
        display: none;
    }
}

@media (max-width: 520px) {
    .mx-header-actions .mx-btn-primary {
        padding: 9px 12px;
        font-size: 0.82rem;
    }

    .mx-footer-grid {
        grid-template-columns: 1fr;
    }
}