/* =========================================
   1. VARIABLES & RESET
========================================= */
:root {
    --bg-main: #060913;
    --bg-darker: #03050a;
    --bg-glass: rgba(15, 23, 42, 0.6);
    --bg-glass-hover: rgba(30, 41, 59, 0.8);
    
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    
    --color-primary: #38bdf8; /* Cyan */
    --color-accent: #818cf8;  /* Indigo */
    --color-success: #10b981; /* Green */
    --color-danger: #f43f5e;  /* Red */
    
    --border-glass: 1px solid rgba(255, 255, 255, 0.08);
    --glow-primary: 0 0 24px rgba(56, 189, 248, 0.25);
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', system-ui, sans-serif;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.6;
    scroll-behavior: smooth;
}

/* Background Gradients */
body::before {
    content: ''; position: fixed; top: -20%; left: -10%;
    width: 60%; height: 60%;
    background: radial-gradient(circle, rgba(56,189,248,0.06) 0%, transparent 60%);
    z-index: -1; pointer-events: none;
}
body::after {
    content: ''; position: fixed; bottom: -20%; right: -10%;
    width: 60%; height: 60%;
    background: radial-gradient(circle, rgba(129,140,248,0.05) 0%, transparent 60%);
    z-index: -1; pointer-events: none;
}

/* Utilities */
.hidden { display: none !important; }
.fade-out { opacity: 0; visibility: hidden; pointer-events: none; }
.text-gradient {
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.text-green { color: var(--color-success); }
.text-cyan { color: var(--color-primary); }

/* =========================================
   2. LOADING SCREEN
========================================= */
#loading {
    position: fixed; inset: 0;
    background: var(--bg-darker);
    display: flex; justify-content: center; align-items: center;
    z-index: 9999; transition: opacity 0.8s ease;
}
.nebula {
    position: absolute; width: 300px; height: 300px;
    background: radial-gradient(circle, rgba(56,189,248,0.15), transparent 70%);
    filter: blur(40px); animation: pulseNebula 4s infinite alternate;
}
.loading-core {
    position: relative; z-index: 2;
    display: flex; flex-direction: column; align-items: center; gap: 20px;
}
.loader-logo {
    width: 120px;
    filter: drop-shadow(0 0 20px rgba(56,189,248,0.4));
    animation: pulseLogo 2s infinite;
}
.loading-text {
    color: var(--color-primary); font-size: 13px; font-weight: 600;
    letter-spacing: 2px; text-transform: uppercase;
}
.dots i {
    width: 4px; height: 4px; background: currentColor;
    border-radius: 50%; display: inline-block; margin-left: 3px;
    animation: dotBlink 1.4s infinite;
}
.dots i:nth-child(2) { animation-delay: 0.2s; }
.dots i:nth-child(3) { animation-delay: 0.4s; }

@keyframes pulseLogo { 0%, 100% { transform: scale(0.95); opacity: 0.9; } 50% { transform: scale(1.05); opacity: 1; } }
@keyframes pulseNebula { 0% { transform: scale(0.8); opacity: 0.5; } 100% { transform: scale(1.2); opacity: 1; } }
@keyframes dotBlink { 0%, 100% { opacity: 0; } 50% { opacity: 1; } }

/* =========================================
   3. NAVBAR
========================================= */
.navbar {
    position: fixed; top: 0; width: 100%; z-index: 100;
    padding: 20px 0; transition: var(--transition);
}
.navbar.scrolled {
    padding: 15px 0; background: rgba(6, 9, 19, 0.85);
    backdrop-filter: blur(16px); border-bottom: var(--border-glass);
}
.nav-container {
    max-width: 1300px; margin: 0 auto; padding: 0 5%;
    display: flex; justify-content: space-between; align-items: center;
}
.brand {
    display: flex; align-items: center; gap: 12px;
    font-size: 20px; font-weight: 800; letter-spacing: 1px; color: #fff;
}
.brand-logo { width: 42px; height: auto; filter: drop-shadow(0 0 10px rgba(56,189,248,0.3)); }

.nav-links { display: flex; gap: 32px; }
.nav-item {
    color: var(--text-muted); text-decoration: none; font-size: 15px;
    font-weight: 600; transition: var(--transition);
}
.nav-item:hover { color: #fff; text-shadow: 0 0 10px rgba(255,255,255,0.3); }

.nav-actions { display: flex; align-items: center; gap: 16px; }
.lang-btn {
    background: transparent; border: 1px solid rgba(255,255,255,0.2);
    color: var(--text-main); padding: 8px 14px; border-radius: 8px;
    font-size: 13px; font-weight: 600; cursor: pointer; transition: var(--transition);
}
.lang-btn:hover { background: rgba(255,255,255,0.1); }
.btn-launch {
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    color: #fff; text-decoration: none; padding: 10px 24px;
    border-radius: 12px; font-weight: 700; font-size: 14px;
    box-shadow: var(--glow-primary); transition: var(--transition);
}
.btn-launch:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(56,189,248,0.4); }

/* =========================================
   4. HERO SECTION (Split Layout)
========================================= */
.hero {
    min-height: 100vh; display: flex; align-items: center;
    padding: 120px 5% 60px; position: relative;
}
.hero-container {
    max-width: 1300px; margin: 0 auto;
    display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 60px; align-items: center;
}
.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(56, 189, 248, 0.1); border: 1px solid rgba(56, 189, 248, 0.2);
    padding: 8px 16px; border-radius: 50px; color: var(--color-primary);
    font-size: 13px; font-weight: 600; margin-bottom: 24px;
}
.hero h1 { font-size: 64px; font-weight: 800; line-height: 1.15; margin-bottom: 24px; }
.hero p { font-size: 18px; color: var(--text-muted); margin-bottom: 40px; max-width: 580px; }

.hero-buttons { display: flex; gap: 20px; }
.btn {
    padding: 16px 32px; border: none; border-radius: 12px;
    font-size: 16px; font-weight: 700; cursor: pointer; transition: var(--transition);
    display: inline-flex; align-items: center; gap: 10px;
}
.btn.primary { background: #fff; color: var(--bg-main); }
.btn.primary:hover { background: var(--color-primary); color: #fff; box-shadow: var(--glow-primary); transform: translateY(-3px); }
.btn.secondary { background: rgba(255,255,255,0.05); color: #fff; border: var(--border-glass); }
.btn.secondary:hover { background: rgba(255,255,255,0.1); transform: translateY(-3px); }

.hero-visual { position: relative; display: flex; justify-content: center; }
.glow-backdrop {
    position: absolute; width: 300px; height: 300px;
    background: radial-gradient(circle, rgba(56,189,248,0.3), transparent 70%);
    filter: blur(50px); z-index: 1;
}
.floating-logo {
    width: 100%; 
    max-width: 450px; 
    position: relative; 
    z-index: 2;
    filter: drop-shadow(0 0 30px rgba(56, 189, 248, 0.4));
    animation: floatLogo 6s ease-in-out infinite;
}
@keyframes floatLogo {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* =========================================
   5. SECTIONS & GRID SYSTEM
========================================= */
.section { padding: 100px 5%; max-width: 1300px; margin: 0 auto; }
.bg-dark {
    background: linear-gradient(180deg, transparent 0%, rgba(15,23,42,0.3) 50%, transparent 100%);
    border-top: var(--border-glass); border-bottom: var(--border-glass);
}
.section-heading { text-align: center; margin-bottom: 60px; }
.section-heading h2 { font-size: 38px; font-weight: 700; margin-bottom: 16px; }
.section-heading p { font-size: 17px; color: var(--text-muted); max-width: 600px; margin: 0 auto; }

.grid-layout { display: grid; gap: 24px; }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-2 { grid-template-columns: 1fr 1fr; gap: 60px; }
.align-items-center { align-items: center; }

/* =========================================
   6. GLASS CARDS
========================================= */
.glass-card {
    background: var(--bg-glass); border: var(--border-glass);
    padding: 32px; border-radius: 24px; backdrop-filter: blur(12px);
    transition: var(--transition);
}
.glass-card:hover { transform: translateY(-8px); background: var(--bg-glass-hover); border-color: rgba(255,255,255,0.15); }

.card-icon {
    width: 54px; height: 54px; border-radius: 16px; display: flex; justify-content: center; align-items: center;
    font-size: 24px; margin-bottom: 24px;
}
.card-icon.cyan { background: rgba(56,189,248,0.1); color: var(--color-primary); }
.card-icon.purple { background: rgba(129,140,248,0.1); color: var(--color-accent); }
.card-icon.red { background: rgba(244,63,94,0.1); color: var(--color-danger); }
.card-icon.green { background: rgba(16,185,129,0.1); color: var(--color-success); }

.glass-card h3 { font-size: 20px; font-weight: 700; margin-bottom: 12px; }
.glass-card p { color: var(--text-muted); font-size: 15px; line-height: 1.7; }

/* =========================================
   7. STAKING & ADMIN (Specific Layout)
========================================= */
.staking-info-list { display: flex; flex-direction: column; gap: 32px; }
.info-item { display: flex; gap: 20px; }
.icon-accent { font-size: 28px; color: var(--color-primary); background: rgba(56,189,248,0.1); padding: 12px; border-radius: 12px; height: fit-content; }
.info-item h4 { font-size: 20px; margin-bottom: 8px; }
.info-item p { color: var(--text-muted); font-size: 15px; }

.standout { border: 1px solid rgba(56,189,248,0.3); background: linear-gradient(180deg, rgba(15,23,42,0.8), rgba(3,5,10,0.9)); }
.panel-header { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; font-size: 24px; color: var(--color-primary); }
.panel-desc { color: var(--text-muted); font-size: 15px; margin-bottom: 24px; }
.admin-features { list-style: none; display: flex; flex-direction: column; gap: 16px; }
.admin-features li { display: flex; align-items: center; gap: 12px; font-size: 15px; font-weight: 500; background: rgba(255,255,255,0.03); padding: 12px 16px; border-radius: 12px; }

/* =========================================
   8. SECURITY BANNER
========================================= */
.flex-between { display: flex; justify-content: space-between; align-items: center; gap: 40px; }
.security-banner { background: linear-gradient(90deg, rgba(16,185,129,0.05) 0%, rgba(15,23,42,0.5) 100%); border-color: rgba(16,185,129,0.2); }
.sec-text { flex: 1; }
.sec-text h2 { font-size: 32px; margin-bottom: 16px; }
.sec-text p { color: var(--text-muted); font-size: 16px; line-height: 1.8; }
.sec-graphic i { font-size: 100px; color: var(--color-success); opacity: 0.8; }

/* =========================================
   9. FOOTER
========================================= */
footer { padding: 40px 5%; border-top: var(--border-glass); background: #020408; margin-top: 50px; }
.footer-container { max-width: 1300px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; }
.footer-container .brand { font-size: 16px; color: var(--text-muted); }
.copyright { color: var(--text-muted); font-size: 14px; }
.footer-links { display: flex; gap: 24px; }
.footer-links a { color: var(--text-muted); text-decoration: none; font-size: 14px; transition: var(--transition); }
.footer-links a:hover { color: var(--color-primary); }

/* =========================================
   10. RESPONSIVE DESIGN
========================================= */
@media (max-width: 1024px) {
    .hero-container { grid-template-columns: 1fr; text-align: center; gap: 40px; }
    .hero h1 { font-size: 52px; }
    .hero p { margin: 0 auto 30px; }
    .hero-buttons { justify-content: center; }
    .hero-visual { order: -1; } 
    .floating-logo { max-width: 300px; }
    .grid-2 { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .nav-container { flex-direction: column; gap: 16px; padding-bottom: 15px; }
    .nav-links { width: 100%; justify-content: center; gap: 15px; flex-wrap: wrap; }
    .nav-actions { width: 100%; justify-content: center; margin-top: 5px; }
    
    /* CRITICAL FIX: Push the hero content down so the tall navbar doesn't cover it */
    .hero { padding-top: 240px; } 
    .hero h1 { font-size: 38px; }
    .hero p { font-size: 15px; }
    
    .hero-buttons { flex-direction: column; }
    .btn { width: 100%; justify-content: center; }
    
    /* Move the logo above the text but give it breathing room */
    .hero-visual { order: -1; margin-bottom: 30px; } 
    .floating-logo { max-width: 220px; } 
    
    .flex-between { flex-direction: column; text-align: center; }
    .sec-graphic { display: none; } 
    .footer-container { flex-direction: column; gap: 20px; text-align: center; }
    .glass-card { padding: 20px; }
}