/* css/style.css — Robinhood Chain L2 Ecosystem Bespoke Design System */
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;700&family=Outfit:wght@400;500;600;700;800;900&display=swap');

:root {
    --bg-dark: #030712;
    --bg-surface: #0b0f19;
    --bg-card: #0d1322;
    --bg-card-hover: #131b2e;
    
    --gold: #fbbf24;
    --gold-dark: #d97706;
    --gold-glow: rgba(251, 191, 36, 0.2);
    
    --emerald: #00ff88;
    --emerald-glow: rgba(0, 255, 136, 0.2);
    
    --cyan: #00f0ff;
    --purple: #a855f7;
    
    --border: rgba(255, 255, 255, 0.1);
    --border-gold: rgba(251, 191, 36, 0.4);
    --border-emerald: rgba(0, 255, 136, 0.4);
    
    --text-main: #ffffff;
    --text-muted: #cbd5e1;
    --text-sub: #94a3b8;
    
    --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 9999px;
    
    --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.4);
    --shadow-gold: 0 0 25px rgba(251, 191, 36, 0.2);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: var(--font-sans);
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
    position: relative;
}

/* Background 3D Telemetry Canvas */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
    opacity: 0.85;
}

/* Top Marquee Banner */
.ticker-bar {
    background: #030712;
    border-bottom: 1px solid var(--border);
    height: 36px;
    display: flex;
    align-items: center;
    overflow: hidden;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    font-family: var(--font-mono);
    font-size: 12px;
}

.ticker-track {
    display: flex;
    white-space: nowrap;
    animation: tickerAnim 40s linear infinite;
}

.ticker-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-right: 32px;
    color: var(--text-muted);
}

.ticker-item span.highlight {
    color: var(--gold);
    font-weight: 700;
}

.ticker-item span.up {
    color: var(--emerald);
}

@keyframes tickerAnim {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Global Navbar */
.navbar {
    position: fixed;
    top: 36px;
    left: 0;
    width: 100%;
    height: 72px;
    background: #080d1a;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 4%;
    z-index: 99;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-main);
}

.brand-logo {
    width: 40px;
    height: 40px;
    background: var(--gold);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 20px;
    color: #000;
    box-shadow: var(--shadow-gold);
}

.brand-text {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.brand-badge {
    background: rgba(251, 191, 36, 0.15);
    color: var(--gold);
    border: 1px solid var(--border-gold);
    padding: 2px 8px;
    border-radius: var(--radius-full);
    font-size: 10px;
    font-weight: 700;
    font-family: var(--font-mono);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
}

.nav-item a {
    text-decoration: none;
    color: var(--text-muted);
    padding: 8px 14px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 600;
    transition: background 0.15s ease, color 0.15s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-item a:hover, .nav-item a.active {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.08);
}

.nav-item a.active {
    color: var(--gold);
    border: 1px solid var(--border-gold);
}

.nav-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Mode Switch Toggle Pill */
.mode-switch-pill {
    display: flex;
    align-items: center;
    background: #030712;
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    padding: 3px 6px;
    cursor: pointer;
    font-size: 12px;
    font-family: var(--font-mono);
    font-weight: 700;
    user-select: none;
}

.mode-switch-pill .mode-badge {
    padding: 4px 10px;
    border-radius: var(--radius-full);
    color: var(--text-muted);
}

.mode-switch-pill .mode-badge.active-web3 {
    background: rgba(0, 240, 255, 0.2);
    color: var(--cyan);
    border: 1px solid var(--cyan);
}

.mode-switch-pill .mode-badge.active-paper {
    background: rgba(0, 255, 136, 0.2);
    color: var(--emerald);
    border: 1px solid var(--emerald);
}

.btn-wallet {
    background: var(--gold);
    color: #000;
    border: none;
    padding: 10px 20px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.15s ease, background 0.15s ease;
    font-family: var(--font-mono);
}

.btn-wallet:hover {
    background: #f59e0b;
    transform: translateY(-1px);
}

/* Page Layout Container */
.main-wrapper {
    margin-top: 108px;
    padding: 40px 4% 80px 4%;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 60px 20px 40px 20px;
    position: relative;
}

.hero-title {
    font-size: 56px;
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -1.5px;
    margin-bottom: 24px;
    color: #ffffff;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 760px;
    margin: 0 auto 36px auto;
    font-weight: 400;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-primary {
    background: var(--gold);
    color: #000;
    border: none;
    padding: 14px 28px;
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.15s ease, background 0.15s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary:hover {
    background: #f59e0b;
    transform: translateY(-2px);
}

.btn-secondary {
    background: #111827;
    color: var(--text-main);
    border: 1px solid var(--border);
    padding: 14px 28px;
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.15s ease, border-color 0.15s ease;
}

.btn-secondary:hover {
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* Stats Banner */
.stats-banner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin: 40px 0;
}

.stat-box {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 20px;
    text-align: center;
}

.stat-label {
    font-size: 12px;
    color: var(--text-sub);
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.stat-value {
    font-size: 28px;
    font-weight: 800;
    color: var(--gold);
    font-family: var(--font-mono);
}

/* Card Surface Grid */
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }

.card-surface {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: transform 0.15s ease, border-color 0.15s ease;
    box-shadow: var(--shadow-card);
}

.card-surface:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-gold);
    transform: translateY(-3px);
}

.card-badge {
    display: inline-block;
    background: rgba(251, 191, 36, 0.12);
    color: var(--gold);
    border: 1px solid var(--border-gold);
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    font-size: 11px;
    font-weight: 700;
    font-family: var(--font-mono);
    margin-bottom: 16px;
}

.card-title {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 12px;
    color: #ffffff;
}

.card-desc {
    font-size: 15px;
    color: var(--text-muted);
    margin-bottom: 24px;
    line-height: 1.6;
}

footer {
    border-top: 1px solid var(--border);
    padding: 40px 4%;
    text-align: center;
    color: var(--text-sub);
    font-size: 14px;
    background: #030712;
}

footer a {
    color: var(--gold);
    text-decoration: none;
    font-weight: 600;
}
