:root {
    --bg-dark: #030409;
    --card-bg: rgba(255, 255, 255, 0.015);
    --border-subtle: rgba(255, 255, 255, 0.05);
    --border-hover: rgba(0, 240, 255, 0.3);
    
    --text-primary: #f0f0f5;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    --accent-glow: #00f0ff; /* Cyan */
    --accent-pink: #ff007f; /* Neon Pink */
    --discord-blurple: #5865f2;
    --font-heading: 'Outfit', 'Plus Jakarta Sans', sans-serif;
    --font-body: 'Inter', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; cursor: none; }
html, body { width: 100%; height: 100%; overflow: hidden; background: linear-gradient(135deg, var(--bg-dark) 0%, #080a13 100%); font-family: var(--font-body); color: var(--text-primary); -webkit-font-smoothing: antialiased; }

/* 3D Canvas Background */
#webgl-canvas { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; z-index: 1; pointer-events: none; mix-blend-mode: screen; opacity: 0.8; }

/* Custom Cursor */
#cursor-dot { position: fixed; width: 5px; height: 5px; background-color: var(--accent-glow); border-radius: 50%; pointer-events: none; z-index: 9999; transform: translate(-50%, -50%); box-shadow: 0 0 10px var(--accent-glow); transition: width 0.1s, height 0.1s; }
#cursor-ring { position: fixed; width: 36px; height: 36px; border: 1px solid rgba(0, 240, 255, 0.4); border-radius: 50%; pointer-events: none; z-index: 9998; transform: translate(-50%, -50%); transition: width 0.25s ease, height 0.25s ease, border-color 0.25s ease, background-color 0.25s ease; }
body.cursor-hover #cursor-ring { width: 52px; height: 52px; border-color: var(--accent-pink); background-color: rgba(255, 0, 127, 0.1); }

/* Vertical Dot Navigation */
.vertical-nav { position: fixed; right: 32px; top: 50%; transform: translateY(-50%); z-index: 90; display: flex; flex-direction: column; gap: 16px; }
.nav-dot { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.dot-label { font-family: var(--font-heading); font-size: 0.65rem; font-weight: 700; color: var(--text-muted); opacity: 0; transform: translateX(10px); transition: all 0.3s ease; }
.nav-dot:hover .dot-label, .nav-dot.active .dot-label { opacity: 1; transform: translateX(0); color: var(--text-primary); }
.dot-circle { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, 0.2); transition: all 0.3s ease; }
.nav-dot.active .dot-circle { background: #ffffff; box-shadow: 0 0 10px #ffffff; transform: scale(1.4); }

/* Glassmorphic Toast Notification */
.toast-container { position: fixed; bottom: 32px; right: 32px; z-index: 99; opacity: 0; transform: translateY(20px); pointer-events: none; transition: opacity 0.4s ease, transform 0.4s ease; }
.toast-container.active { opacity: 1; transform: translateY(0); pointer-events: auto; }
.toast-card { padding: 16px; display: flex; align-items: center; gap: 16px; max-width: 380px; border-radius: 16px; }
.toast-thumb { width: 56px; height: 56px; border-radius: 10px; overflow: hidden; border: 1px solid var(--border-subtle); flex-shrink: 0; }
.toast-thumb img { width: 100%; height: 100%; object-fit: cover; }
.toast-body { flex: 1; }
.toast-badge { font-size: 0.65rem; font-weight: 700; color: var(--accent-glow); margin-bottom: 2px; }
.toast-prompt { font-size: 0.85rem; font-weight: 600; color: var(--text-primary); margin-bottom: 4px; }
.toast-meta { font-size: 0.75rem; color: var(--text-muted); }
.font-green { color: #10b981; }
.font-purple { color: #8b5cf6; }

/* Login Modal Overlay */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: rgba(0, 0, 0, 0.75); backdrop-filter: blur(16px); z-index: 999; display: flex; justify-content: center; align-items: center; opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0.3s ease; }
.modal-overlay.active { opacity: 1; visibility: visible; }
.modal-close { position: absolute; top: 16px; right: 20px; background: transparent; border: none; color: var(--text-secondary); font-size: 1.8rem; transition: color 0.2s; }
.modal-close:hover { color: #fff; }

.login-card { position: relative; width: 90%; max-width: 440px; padding: 40px 32px; border-radius: 24px; text-align: center; }
.login-header { margin-bottom: 24px; }
.login-icon { width: 52px; height: 52px; border-radius: 14px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--border-subtle); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 16px; color: var(--accent-glow); }
.login-header h3 { font-family: var(--font-heading); font-size: 1.4rem; font-weight: 800; margin-bottom: 8px; }
.login-header p { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.5; }

.login-body { display: flex; flex-direction: column; gap: 16px; }
.btn-discord-oauth { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 14px; border-radius: 30px; background: var(--discord-blurple); color: #fff; border: none; font-family: var(--font-heading); font-size: 0.9rem; font-weight: 700; transition: filter 0.2s; }
.btn-discord-oauth:hover { filter: brightness(1.15); }
.login-divider { position: relative; text-align: center; margin: 4px 0; }
.login-divider::before { content: ''; position: absolute; top: 50%; left: 0; width: 100%; height: 1px; background: var(--border-subtle); z-index: 1; }
.login-divider span { position: relative; z-index: 2; background: #0c0c10; padding: 0 12px; font-size: 0.7rem; font-weight: 700; color: var(--text-muted); }
.quick-id-form { display: flex; gap: 8px; }
.quick-id-form input { flex: 1; padding: 10px 16px; border-radius: 20px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--border-subtle); color: #fff; font-size: 0.8rem; outline: none; }
.quick-id-form input:focus { border-color: var(--border-hover); }

/* User Dashboard Drawer */
.dashboard-drawer {
    position: fixed;
    top: 0;
    right: -420px;
    width: 380px;
    height: 100vh;
    z-index: 998;
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    border-radius: 24px 0 0 24px;
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: -20px 0 50px rgba(0, 0, 0, 0.8);
}
.dashboard-drawer.active { right: 0; }
.drawer-close { position: absolute; top: 20px; right: 20px; background: transparent; border: none; color: var(--text-secondary); font-size: 1.6rem; }
.drawer-user-header { display: flex; align-items: center; gap: 16px; padding-bottom: 20px; border-bottom: 1px solid var(--border-subtle); }
.user-avatar-lg { position: relative; width: 56px; height: 56px; border-radius: 50%; overflow: hidden; border: 2px solid var(--accent-glow); }
.user-avatar-lg img { width: 100%; height: 100%; object-fit: cover; }
.user-status-dot { position: absolute; bottom: 2px; right: 2px; width: 10px; height: 10px; background: #10b981; border-radius: 50%; border: 2px solid var(--bg-dark); }
.user-meta h3 { font-family: var(--font-heading); font-size: 1.1rem; font-weight: 800; }
.user-id-tag { font-size: 0.72rem; color: var(--text-muted); font-family: monospace; }

.drawer-section { display: flex; flex-direction: column; gap: 10px; }
.drawer-tag { font-size: 0.7rem; font-weight: 700; letter-spacing: 1px; color: var(--text-muted); }
.bond-card { padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.bond-header { display: flex; justify-content: space-between; font-size: 0.8rem; font-weight: 700; }
.bond-level { color: var(--accent-pink); text-shadow: 0 0 10px rgba(255, 0, 127, 0.3); }
.bond-xp { color: var(--text-muted); font-size: 0.75rem; }
.bond-bar-bg { width: 100%; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.bond-bar-fill { height: 100%; background: linear-gradient(90deg, var(--accent-glow), #ec4899); border-radius: 3px; transition: width 0.6s ease; }

.memory-list { display: flex; flex-direction: column; gap: 10px; max-height: 220px; overflow-y: auto; }
.memory-item { display: flex; gap: 10px; padding: 10px 12px; border-radius: 10px; background: rgba(255, 255, 255, 0.02); border: 1px solid rgba(255, 255, 255, 0.04); font-size: 0.8rem; color: var(--text-secondary); line-height: 1.4; }

.drawer-actions { display: flex; flex-direction: column; gap: 8px; }
.btn-invite { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 12px; border-radius: 16px; background: var(--discord-blurple); color: #fff; font-weight: 600; font-size: 0.85rem; text-decoration: none; transition: filter 0.2s; }
.btn-invite:hover { filter: brightness(1.15); }
.btn-dm { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 12px; border-radius: 16px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--border-subtle); color: var(--text-primary); font-weight: 600; font-size: 0.85rem; text-decoration: none; transition: background 0.2s; }
.btn-dm:hover { background: rgba(255, 255, 255, 0.1); border-color: var(--border-hover); }

.drawer-footer { margin-top: auto; }
.btn-logout { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 12px; border-radius: 20px; background: rgba(239, 68, 68, 0.1); border: 1px solid rgba(239, 68, 68, 0.2); color: #ef4444; font-weight: 600; font-size: 0.85rem; transition: background 0.2s; }
.btn-logout:hover { background: rgba(239, 68, 68, 0.2); }

/* Navbar */
.navbar { position: fixed; top: 0; left: 0; width: 100%; padding: 20px 40px; z-index: 100; background: rgba(7, 7, 9, 0.7); backdrop-filter: blur(20px); border-bottom: 1px solid var(--border-subtle); }
.nav-container { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; }
.nav-brand { display: flex; align-items: center; gap: 8px; }
.brand-logo { font-family: var(--font-heading); font-size: 1.2rem; font-weight: 800; color: var(--text-primary); }
.brand-tag { font-size: 0.68rem; font-weight: 600; padding: 2px 6px; border-radius: 4px; background: rgba(255, 255, 255, 0.05); color: var(--text-secondary); border: 1px solid var(--border-subtle); }
.nav-controls { display: flex; align-items: center; gap: 16px; }

.nav-auth-btn { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 20px; background: rgba(139, 92, 246, 0.12); border: 1px solid rgba(139, 92, 246, 0.3); color: var(--text-primary); font-size: 0.8rem; font-weight: 600; transition: all 0.2s ease; }
.nav-auth-btn:hover { background: rgba(139, 92, 246, 0.25); border-color: var(--accent-glow); }
.user-avatar-sm { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; }

.sfx-toggle-btn { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 20px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--border-subtle); color: var(--text-secondary); font-size: 0.75rem; font-weight: 600; transition: all 0.2s ease; }
.sfx-toggle-btn:hover { background: rgba(255, 255, 255, 0.08); color: var(--text-primary); }
.nav-btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border-radius: 20px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--border-subtle); color: var(--text-primary); font-size: 0.8rem; font-weight: 600; text-decoration: none; transition: all 0.2s ease; }
.nav-btn:hover { background: rgba(255, 255, 255, 0.1); border-color: var(--border-hover); }

/* Fullscreen Scroll-Snap Container */
.cinematic-container { width: 100vw; height: 100vh; overflow-y: scroll; scroll-snap-type: y mandatory; position: relative; z-index: 10; scroll-behavior: smooth; }
.snap-section { width: 100vw; height: 100vh; scroll-snap-align: start; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 80px 40px; position: relative; }

/* Glass Panels */
.glass-panel { background: var(--card-bg); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); border: 1px solid var(--border-subtle); border-radius: 20px; box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.06); transition: border-color 0.3s ease, transform 0.3s ease; }
.glass-panel:hover { border-color: var(--border-hover); }

/* Hero Section */
.hero-section { display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; }
.hero-content { max-width: 800px; margin-bottom: 40px; }
.pill-badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 20px; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--border-subtle); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.5px; color: var(--text-secondary); margin-bottom: 24px; }
.badge-dot { width: 6px; height: 6px; background-color: var(--accent-glow); border-radius: 50%; }
.hero-title { font-family: var(--font-heading); font-size: 4.5rem; font-weight: 800; line-height: 1.05; letter-spacing: -1.5px; margin-bottom: 24px; }
.gradient-text { background: linear-gradient(135deg, #ffffff 40%, var(--text-secondary) 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero-subhead { font-size: 1.2rem; color: var(--text-secondary); max-width: 600px; margin: 0 auto 36px; line-height: 1.6; }
.hero-actions { display: flex; justify-content: center; gap: 16px; }

/* Buttons */
.btn-primary { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 28px; background: linear-gradient(135deg, var(--accent-glow), var(--accent-pink)); color: var(--bg-dark); font-family: var(--font-heading); font-size: 0.95rem; font-weight: 700; border-radius: 30px; text-decoration: none; border: none; transition: transform 0.3s, box-shadow 0.3s, filter 0.3s; box-shadow: 0 4px 15px rgba(0, 240, 255, 0.3); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(255, 0, 127, 0.4); filter: brightness(1.1); }
.btn-secondary { display: flex; align-items: center; justify-content: center; padding: 14px 28px; background: rgba(255, 255, 255, 0.03); color: var(--text-primary); font-family: var(--font-heading); font-size: 0.95rem; font-weight: 700; border-radius: 30px; text-decoration: none; border: 1px solid var(--border-subtle); transition: all 0.3s ease; }
.btn-secondary:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.3); transform: translateY(-2px); }

/* Floating Entity Card */
.floating-entity-card { display: flex; align-items: center; gap: 16px; padding: 12px 20px; border-radius: 40px; }
.entity-avatar-box { position: relative; width: 44px; height: 44px; border-radius: 50%; overflow: hidden; border: 1px solid var(--border-subtle); }
.entity-avatar-box img { width: 100%; height: 100%; object-fit: cover; }
.avatar-status-dot { position: absolute; bottom: 2px; right: 2px; width: 8px; height: 8px; background: #10b981; border-radius: 50%; border: 2px solid var(--bg-dark); }
.entity-info-box { text-align: left; }
.entity-name { font-family: var(--font-heading); font-weight: 700; font-size: 0.9rem; }
.entity-desc { font-size: 0.75rem; color: var(--text-muted); }

/* Feature Cards */
.feature-card-center { width: 100%; max-width: 650px; padding: 48px 40px; text-align: center; }
.section-tag { font-size: 0.75rem; font-weight: 700; letter-spacing: 1.5px; color: var(--text-muted); margin-bottom: 12px; display: block; }
.feature-card-center h2 { font-family: var(--font-heading); font-size: 2.2rem; font-weight: 800; margin-bottom: 16px; line-height: 1.2; }
.feature-card-center p { font-size: 1.05rem; color: var(--text-secondary); line-height: 1.6; margin-bottom: 32px; }
.feature-card-center code { padding: 2px 8px; border-radius: 6px; background: rgba(255, 255, 255, 0.08); font-family: monospace; font-size: 0.9rem; color: var(--text-primary); }

.metrics-row { display: flex; justify-content: center; align-items: center; gap: 40px; padding-top: 24px; border-top: 1px solid var(--border-subtle); }
.metric-block { display: flex; flex-direction: column; }
.metric-num { font-family: var(--font-heading); font-size: 2rem; font-weight: 800; color: var(--text-primary); }
.metric-lbl { font-size: 0.8rem; color: var(--text-muted); }
.metric-divider { width: 1px; height: 40px; background: var(--border-subtle); }

.vector-test-box { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.test-chip-btn { padding: 10px 20px; border-radius: 20px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--border-subtle); color: var(--text-primary); font-size: 0.85rem; font-weight: 600; transition: all 0.2s; }
.test-chip-btn:hover { background: rgba(255, 255, 255, 0.1); border-color: var(--border-hover); }

.audio-wave-container { display: flex; justify-content: center; align-items: center; gap: 6px; height: 40px; margin-bottom: 32px; }
.audio-bar { width: 5px; height: 15px; background: var(--text-primary); border-radius: 3px; transition: height 0.15s ease; }
.btn-large { padding: 16px 36px; font-size: 0.95rem; }

/* Responsive */
@media (max-width: 768px) {
    .hero-title { font-size: 3rem; }
    .feature-card-center { padding: 32px 24px; }
    .snap-section { padding: 60px 20px; }
    .vertical-nav { display: none; }
    .dashboard-drawer { width: 100%; right: -100%; border-radius: 0; }
}
