:root {
    --bg-color: #000000;
    --text-main: #FFFFFF;
    --text-muted: #8E8E93;
    --gold: #D4AF37;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-hover: rgba(255, 255, 255, 0.08);
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6,
.logo {
    font-family: var(--font-heading);
    font-weight: 500;
}

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

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

/* NAVBAR */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    height: 80px;
    display: flex;
    align-items: center;
    z-index: 1000;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), transparent);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.navbar:hover {
    background: var(--bg-color);
    border-bottom: 1px solid var(--glass-border);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo img {
    height: 44px;
    width: auto;
    filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.4));
}

.brand-name {
    font-size: 24px; /* Reduced for better proportion with the large X */
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    font-family: 'Outfit', sans-serif;
    text-transform: uppercase;
}

.brand-x-svg {
    height: 45px; /* Standout dominance */
    width: auto;
    margin-right: -15px; /* Pulls "MANSA" under the swoosh tail */
    color: var(--gold);
    filter: drop-shadow(0 0 15px rgba(212, 175, 55, 0.7));
}

.brand-x-svg .swoosh {
    stroke-width: 2.5;
}

.brand-x-svg .swoosh {
    stroke-width: 2.5;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 40px;
}

nav ul a {
    text-decoration: none;
    color: var(--text-main);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 1px;
    transition: color 0.3s;
}

nav ul a:hover {
    color: var(--text-muted);
}

/* BUTTONS */
.btn {
    padding: 12px 28px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

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

.btn-solid:hover {
    background: #e0e0e0;
    border-color: #e0e0e0;
}

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

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
}

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

.btn-glass:hover {
    background: var(--glass-hover);
}

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

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Dark overlay for better text contrast */
.hero-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.7) 100%);
}

.hero h1 {
    font-size: clamp(40px, 8vw, 80px);
    font-weight: 600;
    letter-spacing: -2px;
    margin-bottom: 16px;
    animation: fadeInUp 1s ease forwards;
    opacity: 0;
    transform: translateY(30px);
}

.hero p {
    font-size: clamp(16px, 2vw, 24px);
    color: var(--text-main);
    font-weight: 300;
    max-width: 800px;
    margin-bottom: 0;
    animation: fadeInUp 1s ease 0.2s forwards;
    opacity: 0;
    transform: translateY(30px);
}

.hero-actions {
    position: absolute;
    bottom: 80px;
    display: flex;
    gap: 24px;
    animation: fadeInUp 1s ease 0.4s forwards;
    opacity: 0;
    transform: translateY(30px);
    width: 100%;
    justify-content: center;
    padding: 0 20px;
}

.hero-actions .btn {
    min-width: 260px;
    padding: 16px 32px;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* SECTION GLOBAL */
section {
    padding: 120px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-header h2 {
    font-size: 40px;
    font-weight: 500;
    letter-spacing: -1px;
    margin-bottom: 24px;
}

.section-header p {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* TOKENS SECTION (RWA Grid) */
.tokens {
    background-color: var(--bg-color);
}

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

.token-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(20px);
    border-radius: 12px;
    padding: 48px 40px;
    transition: transform 0.4s ease, border-color 0.4s ease;
    display: flex;
    flex-direction: column;
}

.token-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, 0.2);
    /* Subtle gold glow */
    box-shadow: 0 10px 40px rgba(212, 175, 55, 0.05);
}

.token-icon {
    font-size: 48px;
    margin-bottom: 24px;
}

.token-card h3 {
    font-size: 28px;
    margin-bottom: 16px;
    letter-spacing: 1px;
}

.token-card p {
    color: var(--text-muted);
    flex-grow: 1;
    margin-bottom: 32px;
    font-size: 16px;
    line-height: 1.6;
}

.token-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--glass-border);
    padding-top: 24px;
}

.token-stat-value {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 600;
}

.token-stat-label {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* SPLIT SECTIONS (Vision & Halal) */
.split-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.split-content h2 {
    font-size: 48px;
    margin-bottom: 32px;
    line-height: 1.1;
    letter-spacing: -1px;
}

.split-content p {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.feature-list {
    list-style: none;
}

.feature-list li {
    display: flex;
    gap: 24px;
    margin-bottom: 32px;
}

.feature-icon {
    width: 2px;
    background: var(--glass-border);
    position: relative;
    border-radius: 2px;
}

.feature-icon::after {
    content: '';
    position: absolute;
    top: 0;
    left: -1px;
    width: 4px;
    height: 40px;
    background: var(--text-main);
}

.feature-text h4 {
    font-size: 20px;
    margin-bottom: 8px;
}

.feature-text p {
    font-size: 15px;
    margin-bottom: 0;
}

.split-media {
    position: relative;
    height: 600px;
    border-radius: 12px;
    overflow: hidden;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    display: flex;
    justify-content: center;
    align-items: center;
}

.split-media img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.5));
}

/* CTA BLOCK */
.cta-block {
    text-align: center;
    padding: 120px 0;
    border-top: 1px solid var(--glass-border);
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.03) 0%, transparent 70%);
}

.cta-block h2 {
    font-size: 48px;
    margin-bottom: 24px;
}

.cta-block p {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 48px;
}

.cta-btns {
    display: flex;
    justify-content: center;
    gap: 24px;
}

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

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 80px;
    margin-bottom: 80px;
}

.footer-brand p {
    color: var(--text-muted);
    margin-top: 24px;
    max-width: 300px;
    font-size: 14px;
}

.footer-nav h5 {
    font-size: 14px;
    margin-bottom: 24px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.footer-nav ul {
    list-style: none;
}

.footer-nav li {
    margin-bottom: 16px;
}

.footer-nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 12px;
    border-top: 1px solid var(--glass-border);
    padding-top: 24px;
}


/* MODAL STYLES */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(40px);
    padding: 60px 40px;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    color: var(--text-muted);
    font-size: 28px;
    font-weight: 300;
    cursor: pointer;
    transition: color 0.3s;
}

.close-modal:hover {
    color: var(--text-main);
}

.modal-header {
    text-align: center;
    margin-bottom: 40px;
}

.modal-header h2 {
    font-size: 32px;
    margin-bottom: 12px;
    letter-spacing: -1px;
}

.modal-header p {
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1.5;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.form-group input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 4px;
    padding: 16px;
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 16px;
    transition: all 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--text-main);
    background: rgba(255, 255, 255, 0.1);
}

.form-message {
    margin-top: 20px;
    font-size: 14px;
    text-align: center;
    min-height: 20px;
}

.form-message.success {
    color: #4ADE80;
}

.form-message.error {
    color: #F87171;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@media (max-width: 992px) {
    .split-section {
        grid-template-columns: 1fr;
    }

    .hero-actions {
        flex-direction: column;
        bottom: 40px;
    }

    .hero-actions .btn {
        width: 100%;
        max-width: 400px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    nav ul {
        display: none;
        /* Hide nav on mobile for minimalist look, would need a hamburger */
    }

    .container {
        padding: 0 24px;
    }

    .hero h1 {
        font-size: 40px;
    }
}