:root {
    --bg-dark: #070314;
    --bg-card: #180d35;
    --bg-card-hover: #1e1142;
    --bg-nav: #140b2e;
    
    --neon: #d4ff00;
    --neon-hover: #e2ff4d;
    --neon-glow: rgba(212, 255, 0, 0.4);
    
    --text-main: #ffffff;
    --text-muted: #bdaed6;
    --text-dark: #000000;
    
    --border-light: rgba(255, 255, 255, 0.05);
    --border-card: #2e1e54;
    
    --radius-lg: 24px;
    --radius: 12px;
    --radius-sm: 8px;
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    position: relative;
}

/* Background Radial Glow */
.bg-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120vh;
    background: radial-gradient(ellipse 80% 80% at 50% -20%, rgba(62, 23, 148, 0.6) 0%, transparent 100%);
    z-index: -1;
    pointer-events: none;
}

h1, h2, h3, h4 {
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.04em;
}

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Typography Classes */
.neon-text {
    color: var(--neon);
}

.glow {
    text-shadow: 0 0 32px var(--neon-glow);
}

.sub-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 12px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 100px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-sm {
    padding: 10px 20px;
    font-size: 0.9rem;
}

.btn-neon {
    background: var(--neon);
    color: var(--text-dark);
    box-shadow: 0 4px 20px rgba(212, 255, 0, 0.15);
}

.btn-neon:hover {
    background: var(--neon-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--neon-glow);
}

.btn-dark {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-main);
}

.btn-dark:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.4);
}

/* Navbar */
.nav-wrapper {
    padding-top: 24px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 24px;
    background: var(--bg-nav);
    border-radius: 100px;
    border: 1px solid var(--border-light);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    transition: var(--transition);
    font-family: 'Outfit', sans-serif;
}

.navbar-left {
    flex: 1 1 0%;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.navbar-logo {
    height: 72px;
    width: auto;
}

.navbar-center {
    flex: 1 1 0%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.navbar-right {
    flex: 1 1 0%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.navbar-brand-text {
    font-weight: 400; 
    font-size: 1.4rem; 
    white-space: nowrap;
    color: var(--text-main);
    letter-spacing: -0.02em;
}

.navbar-brand-text span {
    font-weight: 800;
    color: #ffd32a;
    text-shadow: 0 0 20px rgba(255, 211, 42, 0.4);
}

.navbar.scrolled {
    background: rgba(20, 11, 46, 0.9);
    backdrop-filter: blur(12px);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--text-main);
    text-decoration: none;
    letter-spacing: -0.02em;
}

.nav-links {
    display: flex;
    gap: 32px;
}

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

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

/* Hero Section */
.hero {
    padding-top: 120px;
    padding-bottom: 140px;
    position: relative;
}

.bento-hero {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 32px;
    align-items: center;
}

.headline-massive {
    font-size: clamp(3rem, 8vw, 6.5rem);
    text-transform: uppercase;
    line-height: 0.9;
    margin-bottom: 24px;
}

.hero-subtext {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin-bottom: 40px;
}

.hero-actions {
    display: flex;
    gap: 16px;
}

.hero-metrics {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 24px;
    padding: 40px;
    height: 100%;
}

.metric-row {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.metric-title {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.metric-value {
    font-size: 1.5rem;
    font-weight: 800;
}
.text-white { color: var(--text-main); }

/* Features */
.features {
    padding-bottom: 120px;
}

.section-header-left {
    margin-bottom: 48px;
}

.section-header-left h2 {
    font-size: 2.5rem;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: minmax(280px, auto);
    gap: 24px;
}

.terms-grid {
    grid-template-columns: repeat(2, 1fr);
}

.bento-card {
    background: rgba(20, 11, 46, 0.45);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    border-left: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    border-radius: var(--radius-lg);
    transition: var(--transition);
    overflow: hidden;
    position: relative;
}

.bento-card:hover {
    background: rgba(30, 18, 65, 0.55);
    border-color: rgba(255, 255, 255, 0.15);
    border-top: 1px solid rgba(255, 255, 255, 0.25);
    border-left: 1px solid rgba(255, 255, 255, 0.2);
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
}

.card-inner {
    padding: 32px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.flex-row {
    flex-direction: row;
    align-items: center;
    gap: 24px;
}

.tall-card {
    grid-row: span 2;
}

.wide-card {
    grid-column: span 2;
}

.icon-box {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: var(--text-main);
    transition: var(--transition);
    flex-shrink: 0;
}

.bento-card:hover .icon-box {
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
}

.bento-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.bento-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.bento-chart {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    margin-top: auto;
    padding-top: 32px;
    height: 120px;
}

.bar {
    width: 25%;
    background: var(--border-card);
    border-radius: 4px 4px 0 0;
    transition: all 0.5s ease;
}

.bar-1 { height: 30%; }
.bar-2 { height: 50%; }
.bar-3 { height: 40%; }
.bar-4 { height: 80%; }
.active-bar { background: var(--neon); }

.bento-card:hover .bar-1 { height: 50%; }
.bento-card:hover .bar-2 { height: 80%; }
.bento-card:hover .bar-3 { height: 60%; }
.bento-card:hover .bar-4 { height: 100%; box-shadow: 0 0 20px var(--neon-glow); }

/* Challenges/Competition Section */
.challenges {
    padding-bottom: 120px;
    position: relative;
}

.challenges-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 0;
}

/* Sidebar */
.challenges-sidebar {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-right: -1px;
    z-index: 2;
    padding-top: 24px;
}

.tab-btn {
    background: rgba(20, 11, 46, 0.25);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-card);
    padding: 18px 24px;
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
    color: var(--text-muted);
    font-family: inherit;
    text-align: left;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
}

.tab-btn:hover {
    background: rgba(30, 18, 65, 0.4);
    border-color: rgba(255, 255, 255, 0.1);
}

.tab-btn.active {
    background: rgba(30, 18, 65, 0.6);
    border-color: var(--border-card) transparent var(--border-card) var(--neon);
    border-left: 3px solid var(--neon);
    color: var(--text-main);
}

.tier-info { 
    display: flex; 
    flex-direction: column; 
    gap: 4px; 
}
.t-name { 
    font-weight: 700; 
    font-size: 1.05rem; 
}
.t-desc { 
    font-size: 0.8rem; 
    opacity: 0.7; 
}

/* Panel */
.challenges-panel {
    background: rgba(20, 11, 46, 0.1);
    border: 1px solid var(--border-card);
    border-radius: 0 var(--radius-lg) var(--radius-lg) var(--radius-lg);
    padding: 48px;
    position: relative;
    z-index: 1;
}

.tab-content {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.panel-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 48px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--border-light);
}

.header-stat {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.text-right {
    text-align: right;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 700;
    letter-spacing: 0.05em;
}

.stat-main {
    font-size: 3rem;
    font-weight: 900;
    line-height: 1;
}

.stat-sub {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-muted);
    margin-top: 14px;
}

/* Metrics Grid inside panel */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 48px;
}

.metric-box {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-sm);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.m-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.m-val {
    font-size: 1.25rem;
    font-weight: 700;
}

/* Panel Footer */
.panel-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 32px;
    border-top: 1px solid var(--border-light);
}

.footer-stat {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.f-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}

.f-val {
    font-size: 1.25rem;
    font-weight: 700;
}

/* Footer */
.footer {
    padding: 64px 24px;
    border-top: 1px solid var(--border-card);
}

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

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

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

.disclaimer {
    color: #61567a;
    font-size: 0.8rem;
}

.disclaimer p {
    margin-bottom: 12px;
}

/* Responsive */
@media (max-width: 900px) {
    .nav-links.navbar-center { display: none; }
    .navbar-left, .navbar-right { flex: auto; }

    .headline-massive { font-size: 3.5rem; }
    
    .bento-hero {
        grid-template-columns: 1fr;
    }

    .bento-grid, .terms-grid {
        grid-template-columns: 1fr;
    }
    
    .tall-card { grid-row: auto; }
    .wide-card { grid-column: auto; }
    .flex-row { flex-direction: column; align-items: flex-start; }

    .challenges-layout {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .challenges-sidebar {
        flex-direction: row;
        overflow-x: auto;
        padding-top: 0;
        margin-right: 0;
        padding-bottom: 8px;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    
    .challenges-sidebar::-webkit-scrollbar {
        display: none;
    }
    
    .tab-btn {
        min-width: 200px;
        border-radius: var(--radius-sm);
    }
    
    .tab-btn.active {
        border-color: var(--border-card) var(--border-card) var(--neon) var(--border-card);
        border-left: 1px solid var(--border-card);
        border-bottom: 3px solid var(--neon);
    }
    
    .challenges-panel {
        border-radius: var(--radius-lg);
    }
    
    .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .navbar { padding: 12px 16px; }
    .navbar-brand-text { display: none; }
    .navbar-logo { height: 48px; }
    
    .hero { 
        padding-top: 60px; 
        padding-bottom: 80px; 
    }
    .headline-massive { font-size: 2.8rem; }
    .hero-actions { flex-direction: column; gap: 12px; }
    .hero-actions .btn { width: 100%; }

    .features, .challenges { padding-bottom: 80px; }
    .card-inner { padding: 24px; }
    
    .challenges-panel { padding: 24px; }
    .panel-header { 
        flex-direction: column; 
        gap: 20px; 
        margin-bottom: 24px; 
        padding-bottom: 24px; 
    }
    .panel-header .text-right { text-align: left; }
    .stat-main { font-size: 2.5rem; }
    .stat-sub { font-size: 1.2rem; margin-top: 6px; }
    
    .metrics-grid { grid-template-columns: 1fr; gap: 12px; margin-bottom: 32px; }
    
    .panel-footer {
        flex-direction: column;
        align-items: stretch;
        gap: 24px;
        padding-top: 24px;
    }
    
    .panel-footer .btn { width: 100%; }
    
    .footer { padding: 40px 24px; }
    .footer-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
    }
}
