:root {
    --primary: #414141;
    --gold: #D4AF37;
    --gold-deep: #b38b47;
    --gold-light: #f1d38e;
    --gold-gradient: linear-gradient(135deg, #d4af37 0%, #f1d38e 50%, #b38b47 100%);
    --bg-white: #ffffff;
    --slate: #f8fafc;
    --text-main: #1a1a1a;
    --text-muted: #64748b;
    --radius: 16px;
    --transition: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base Styles */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    background: var(--bg-white);
    line-height: 1.7;
    overflow-x: hidden;
}

/* Reveal Animation Styles */
.reveal { opacity: 0; transform: translateY(30px); transition: var(--transition); }
.reveal.active { opacity: 1; transform: translateY(0); }

/* ================= NAVIGATION ================= */
.nav {
    position: fixed;
    width: 100%; top: 0; left: 0;
    padding: 30px 8%;
    display: flex; justify-content: space-between; align-items: center;
    z-index: 1000;
    transition: var(--transition);
    background: transparent;
}

.nav.shrink {
    padding: 15px 8%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    box-shadow: 0 4px 30px rgba(0,0,0,0.03);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.logo {
    display: flex; align-items: center;
    text-decoration: none; font-weight: 700;
    color: var(--primary); font-family: 'Poppins';
}

.logo-icon { width: 35px; margin-right: 12px; }

.nav-actions a {
    margin-left: 30px; text-decoration: none;
    font-size: 0.85rem; font-weight: 600; text-transform: uppercase;
    color: var(--text-main); transition: 0.3s;
}

.nav-actions a:hover { color: var(--gold); }

/* ================= BUTTONS ================= */
.btn-primary {
    background: var(--gold-gradient);
    color: white !important;
    padding: 14px 32px;
    border-radius: 4px;
    border: none;
    font-weight: 700;
    text-transform: uppercase;
    box-shadow: 0 10px 20px rgba(197, 160, 89, 0.2);
    cursor: pointer; transition: var(--transition);
    display: inline-block;
}

.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 15px 30px rgba(197, 160, 89, 0.4); }

.btn-outline {
    border: 2px solid var(--primary);
    padding: 12px 30px;
    border-radius: 4px;
    color: var(--primary) !important;
}

.btn-outline:hover { background: var(--primary); color: white !important; }

/* ================= HERO ================= */
.hero {
    padding: 180px 8% 120px;
    text-align: center;
    background: radial-gradient(circle at top right, rgba(212, 175, 55, 0.05), transparent 40%),
                radial-gradient(circle at bottom left, rgba(212, 175, 55, 0.03), transparent 40%);
}

.hero-logo img {
    width: 180px; height: 180px;
    margin-bottom: 40px;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.1));
    animation: float 4s ease-in-out infinite;
}

@keyframes float { 
    0%, 100% { transform: translateY(0); } 
    50% { transform: translateY(-15px); } 
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-family: 'Poppins'; font-weight: 700;
    background: linear-gradient(to bottom, #1a1a1a, #4a4a4a);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    letter-spacing: -1px;
}

.hero h2 {
    font-size: 1.2rem; font-weight: 700; color: var(--gold);
    letter-spacing: 8px; margin-bottom: 20px; text-transform: uppercase;
}

.hero-actions {
    display: flex;
    justify-content: center; /* Keeps them centered in the hero */
    gap: 20px;               /* Adjust this value for more or less space */
    margin-top: 20px;        /* Optional: adds space above the buttons */
}

.hero p { color: var(--text-muted); max-width: 600px; margin: 0 auto 40px; font-size: 1.1rem; }

/* ================= SECTIONS ================= */
section { padding: 100px 8%; }

.sub-label {
    display: block; color: var(--gold);
    font-weight: 700; text-transform: uppercase;
    letter-spacing: 3px; font-size: 0.75rem; margin-bottom: 15px;
}

.about-container, .features-container {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 80px; align-items: center;
}

.about-image img, .features-image img {
    width: 100%; border-radius: var(--radius);
    box-shadow: 0 40px 100px rgba(0,0,0,0.08);
}

.features-list { list-style: none; margin-top: 30px; }
.features-list li {
    padding: 15px 0; border-bottom: 1px solid rgba(0,0,0,0.05);
    display: flex; align-items: center; font-weight: 600;
}
.features-list li::before {
    content: '✓'; color: var(--gold); margin-right: 15px; font-weight: 900;
}

/* ================= OBJECTIVES ================= */
.section-header { text-align: center; margin-bottom: 60px; }
.objectives-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }

.objective-card {
    background: #fff; border-radius: var(--radius); overflow: hidden;
    text-decoration: none; color: inherit; border: 1px solid rgba(0,0,0,0.05);
    transition: var(--transition);
}

.objective-card:hover { transform: translateY(-10px); box-shadow: 0 30px 60px rgba(0,0,0,0.06); }
.card-img-wrapper { height: 400px; overflow: hidden; }
.card-img-wrapper img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
.objective-card:hover img { transform: scale(1.1); }
.objective-card h3 { padding: 25px 25px 10px; color: var(--primary); }
.objective-card p { padding: 0 25px 30px; color: var(--text-muted); font-size: 0.95rem; }

/* ================= TOKEN USE CASE & BUTTON SPACING ================= */
.token-usecase { 
    background: var(--slate); 
    border-radius: 40px; 
    margin: 0 8% 100px; /* Added bottom margin to separate from next section */
}

.token-glass-card { 
    text-align: center; 
    padding: 100px 40px; /* Increased vertical padding */
}

.token-glass-card h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
}

.token-glass-card p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 40px; /* Space between text and button */
}

/* Specific spacing for the YouTube button */
.token-glass-card .btn-primary {
    margin-top: 10px; 
    padding: 16px 40px; /* Slightly larger for emphasis */
}

.cta-card {
    background: var(--primary); color: #fff;
    padding: 100px 40px; border-radius: 40px; text-align: center;
}
.cta-card h2 { font-size: 3rem; margin-bottom: 20px; }
.cta-card p { opacity: 0.7; margin-bottom: 40px; }

/* ================= PERFECTLY CENTERED OVERLAY ================= */
#loading-overlay {
    position: fixed;
    inset: 0;
    background: #ffffff; /* Using pure white for the luxury look */
    display: flex;
    align-items: center;    /* Vertical Center */
    justify-content: center; /* Horizontal Center */
    z-index: 9999;
    transition: opacity 0.8s ease, visibility 0.8s;
}

.overlay-content {
    display: flex;
    flex-direction: column; /* Stacks logo on top of text */
    align-items: center;    /* Ensures both children are centered horizontally */
    text-align: center;
}

.loading-logo {
    width: 110px;          /* Slightly larger for better presence */
    height: auto;
    margin-bottom: 30px;    /* Generous space between logo and label */
    filter: drop-shadow(0 10px 20px rgba(212, 175, 55, 0.2));
    animation: breathe 2s infinite ease-in-out;
}

.overlay-label {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    color: #D4AF37;         /* Match your gold accent */
    text-transform: uppercase;
    letter-spacing: 12px;
    
    /* THE FIX: text-indent offsets the extra spacing on the last letter 
       to ensure the text is mathematically centered */
    text-indent: 12px; 
    white-space: nowrap;
}

@keyframes breathe {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.08); opacity: 0.8; }
}
/* ================= CENTERED FOOTER ================= */
.site-footer {
    padding: 80px 8% 40px;
    text-align: center; /* Ensures text is centered */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-top: 1px solid rgba(0,0,0,0.05);
    background: #fff;
}

.site-footer p {
    color: var(--text-muted);
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 15px; /* Spacing between copyright and phone number */
}

/* ================= MOBILE ================= */
/* Base Nav Toggle Styles (Hidden on Desktop) */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1001; /* Keeps it above the mobile menu */
}

.nav-toggle span {
    width: 25px; 
    height: 3px; 
    background: var(--primary);
    transition: 0.3s ease-in-out;
    border-radius: 3px;
}

@media (max-width: 900px) {
    /* 1. Global Padding Adjustments for smaller screens */
    section { padding: 60px 5%; }
    
    /* 2. Hero Section Adjustments */
    .hero { padding: 140px 5% 80px; }
    .hero h1 { font-size: 2.5rem; }
    .hero h2 { font-size: 1rem; letter-spacing: 4px; }
    .hero-actions { 
        flex-direction: column; /* Stacks buttons on top of each other */
        gap: 15px; 
        padding: 0 20px;
    }
    .hero-actions .btn-primary { width: 100%; }

    /* 3. Grid Adjustments */
    .about-container, .features-container { 
        grid-template-columns: 1fr; 
        gap: 40px; 
        text-align: center; 
    }
    
    /* Reverses order so image shows first on mobile for features */
    .features-container { display: flex; flex-direction: column-reverse; }
    .features-list li { justify-content: center; }

    /* 4. Mobile Navigation Menu */
    .nav-toggle { display: flex; }
    
    .nav-actions {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--bg-white);
        flex-direction: column;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease-in-out, padding 0.4s ease-in-out;
        box-shadow: 0 10px 20px rgba(0,0,0,0.05);
        border-bottom: 1px solid rgba(0,0,0,0.05);
    }

    /* Activated state triggered by your existing JavaScript */
    .nav-actions.active {
        max-height: 300px; /* Expands the menu */
        padding: 20px 0;
        display: flex; /* Ensures items arrange in a column */
    }

    .nav-actions a {
        margin: 10px 0;
        text-align: center;
        width: max-content;
        align-self: center;
    }

    /* Hamburger Animation to 'X' */
    .nav-toggle.open span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
    .nav-toggle.open span:nth-child(2) { opacity: 0; }
    .nav-toggle.open span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

    /* 5. Call to Action Card Adjustments */
    .cta-card { 
        padding: 50px 20px; 
        border-radius: 20px; 
    }
    .cta-card h2 { font-size: 2rem; }
}

/* Responsive adjustment for footer on small screens */
@media (max-width: 600px) {
    .site-footer p {
        flex-direction: column;
        gap: 10px;
    }
}

@keyframes breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.1); } }
