/* DESIGN TOKENS */
:root {
	--bg:        #0a0a0a;
	--surface:   #111111;
	--surface2:  #161616;
	--surface3:  #1c1c1c;
	--line:      rgba(255,255,255,0.07);
	--line2:     rgba(255,255,255,0.04);
	--accent:    #0000ff;
	--accent-dim: rgba(0,0,255,0.10);
	--accent-border: rgba(0,0,255,0.30);
	--accent-text: #7777ff;
	--text-0:    #f0f0f0;
	--text-1:    #888888;
	--text-2:    #4a4a4a;
	--mono:      'IBM Plex Mono', 'SF Mono', Menlo, monospace;
	--sans:      'IBM Plex Sans', -apple-system, sans-serif;
}

/* RESET & BASE */
* { margin: 0; padding: 0; box-sizing: border-box; }

body, html {
	width: 100%;
	height: 100%;
	background-color: var(--bg);
	color: var(--text-0);
	font-family: var(--sans);
	overflow: hidden; 
}

a { text-decoration: none; color: inherit; }

/* ANIMATIONS */
@keyframes systemReveal {
	0% { opacity: 0; transform: translateY(12px); }
	100% { opacity: 1; transform: translateY(0); }
}

.animate-reveal {
	opacity: 0; 
	animation: systemReveal 0.4s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

/* BOOT SEQUENCE */
.boot-sequence {
	position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
	background-color: var(--bg); z-index: 9999;
	display: flex; justify-content: center; align-items: center;
	transition: opacity 0.3s ease;
}

.boot-sequence.grid-bg {
	background-image: 
		linear-gradient(rgba(255,255,255,0.015) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255,255,255,0.015) 1px, transparent 1px);
	background-size: 40px 40px;
}

.orbs {
	position: absolute; width: 100%; height: 100%;
	overflow: hidden; z-index: 1; pointer-events: none;
}
.orb {
	position: absolute; width: 400px; height: 400px;
	border-radius: 50%; background: var(--accent);
	filter: blur(80px); opacity: 0; transition: opacity 0.5s ease;
}
.orb-1 { top: -100px; left: -100px; }
.orb-2 { bottom: -100px; right: -100px; }

.boot-content { position: relative; z-index: 2; width: 450px; font-family: var(--mono); }
.boot-logo {
	font-size: 32px; font-weight: 600; letter-spacing: 0.18em;
	text-transform: uppercase; text-align: center; margin-bottom: 30px;
	opacity: 0; transition: opacity 0.5s ease;
}
.boot-subtitle { font-size: 12px; color: var(--text-1); letter-spacing: 0.1em; }
.boot-progress { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; font-size: 12px; color: var(--text-1); }
.progress-bar-container { flex-grow: 1; height: 4px; background: var(--surface2); }
.progress-bar { height: 100%; width: 0%; background: var(--accent); }
.terminal { font-size: 12px; color: var(--text-1); line-height: 1.6; height: 120px; }

/* BENTO DASHBOARD ARCHITECTURE */
.bento-dashboard {
	display: flex;
	height: 100vh;
	width: 100vw;
}

/* GLOBAL NAV (LEFT SIDEBAR) */
.global-nav {
	width: 320px;
	background-color: var(--surface);
	border-right: 1px solid var(--line);
	display: flex;
	flex-direction: column;
	padding: 30px 0;
	flex-shrink: 0;
	z-index: 20;
}

.nav-header { padding: 0 30px; margin-bottom: 50px; }
.nav-logo {
	font-family: var(--mono); font-size: 20px; font-weight: 600;
	letter-spacing: 0.18em; color: var(--text-0); margin-bottom: 15px;
}
.nav-status {
	display: flex; align-items: center; font-family: var(--mono);
	font-size: 10px; color: var(--text-2); letter-spacing: 0.1em;
}
.status-dot {
	width: 6px; height: 6px; background-color: #00ff00; border-radius: 50%;
	margin-right: 8px; box-shadow: 0 0 5px rgba(0,255,0,0.5);
	animation: pulse 2s infinite cubic-bezier(0.4, 0, 0.6, 1);
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

.nav-menu { display: flex; flex-direction: column; flex-grow: 1; }
.menu-item {
	font-family: var(--mono); font-size: 14px; letter-spacing: 0.1em;
	padding: 15px 30px; color: var(--text-1); border-left: 3px solid transparent;
	display: flex; align-items: center; transition: all 0.2s; cursor: pointer;
}
.menu-idx { font-size: 10px; color: var(--text-2); margin-right: 15px; transition: color 0.2s; }

.menu-item:hover { color: var(--text-0); background-color: rgba(255,255,255,0.02); }
.menu-item.active {
	color: var(--accent-text); background-color: var(--accent-dim);
	border-left-color: var(--accent);
}
.menu-item.active .menu-idx { color: var(--accent-text); opacity: 0.5; }

.nav-footer { padding: 0 30px; margin-top: auto; }
.nav-cta {
	display: block; width: 100%; text-align: center; font-family: var(--mono);
	font-size: 13px; background-color: var(--accent); color: rgba(255,255,255,0.9);
	padding: 12px; border-radius: 4px; text-transform: uppercase; letter-spacing: 0.1em;
	transition: background-color 0.2s, transform 0.1s; margin-bottom: 15px;
}
.nav-cta:hover { background-color: #3333ff; }
.nav-cta:active { transform: scale(0.98); }
.nav-versions { font-family: var(--mono); font-size: 10px; color: var(--text-2); text-align: center; }

/* BENTO CANVAS (RIGHT SIDE) */
.bento-canvas {
	flex-grow: 1;
	position: relative;
	display: flex;
	flex-direction: column;
	background-image: 
		linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
	background-size: 40px 40px;
	overflow-y: auto; 
	overflow-x: hidden;
}

.crosshair { position: absolute; width: 15px; height: 15px; pointer-events: none; }
.crosshair::before, .crosshair::after { content: ''; position: absolute; background-color: var(--text-2); }
.crosshair::before { width: 100%; height: 1px; top: 7px; left: 0; }
.crosshair::after { width: 1px; height: 100%; top: 0; left: 7px; }
.crosshair.top-left { top: 40px; left: 40px; }
.crosshair.top-right { top: 40px; right: 40px; }
.crosshair.bottom-left { bottom: 40px; left: 40px; }
.crosshair.bottom-right { bottom: 40px; right: 40px; }

.toolbar {
	height: 45px; border-bottom: 1px solid var(--line); display: flex;
	align-items: center; padding: 0 40px; background: rgba(10, 10, 10, 0.8);
	backdrop-filter: blur(5px); position: sticky; top: 0; z-index: 10;
}
#toolbar-path { font-family: var(--mono); font-size: 11px; color: var(--text-1); letter-spacing: 0.05em; text-transform: uppercase; }

/* BENTO GRID SYSTEM */
.bento-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	grid-auto-rows: min-content;
	gap: 20px;
	padding: 40px;
	width: 100%;
	max-width: 1600px;
	margin: 0 auto;
}

.bento-box {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: 4px;
	padding: 35px;
	display: flex;
	flex-direction: column;
	transition: border-color 0.2s, background-color 0.2s;
}

.bento-box:hover {
	border-color: var(--accent-border);
	background: var(--surface2);
}

.box-title {
	font-family: var(--mono);
	font-size: 11px;
	color: var(--text-2);
	letter-spacing: 0.1em;
	text-transform: uppercase;
	margin-bottom: 25px;
	border-bottom: 1px solid var(--line);
	padding-bottom: 12px;
}

.box-content {
	font-family: var(--mono);
	font-size: 13px;
	line-height: 1.6;
	color: var(--text-0);
	white-space: pre-wrap;
	flex-grow: 1;
}

/* List / Badge styles for upcoming apps/assets */
.hub-tag {
	display: inline-block;
	font-family: var(--mono);
	font-size: 9px;
	background: var(--surface3);
	color: var(--text-1);
	padding: 2px 6px;
	border-radius: 2px;
	border: 1px solid var(--line);
	text-transform: uppercase;
	margin-left: 10px;
}
.hub-tag.active {
	color: var(--accent-text);
	background: var(--accent-dim);
	border-color: var(--accent-border);
}

/* Specs & Rows inside Bento */
.spec-row { display: flex; margin-bottom: 12px; font-size: 12px; }
.spec-label { width: 120px; color: var(--text-2); flex-shrink: 0; }
.spec-value { color: var(--text-1); }

/* Grid Interno para elementos de lista */
.bento-list-item {
	padding: 10px 0;
	border-bottom: 1px solid var(--line2);
	display: flex;
	justify-content: space-between;
	align-items: center;
}
.bento-list-item:last-child { border-bottom: none; }

/* RESPONSIVE DESIGN */
@media (max-width: 1100px) {
	.bento-grid { grid-template-columns: repeat(2, 1fr); }
	.span-3 { grid-column: span 2; }
}

@media (max-width: 800px) {
	.bento-dashboard { flex-direction: column; }
	
	.global-nav {
		width: 100%; padding: 20px; border-right: none; border-bottom: 1px solid var(--line);
	}
	
	.nav-header { margin-bottom: 20px; display: flex; justify-content: space-between; align-items: center; padding: 0; }
	.nav-logo { margin-bottom: 0; }
	
	.nav-menu { flex-direction: row; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
	.menu-item {
		padding: 10px; border-left: none; border-bottom: 2px solid transparent; flex: 1 1 45%; justify-content: center;
	}
	.menu-item.active { border-left: none; border-bottom-color: var(--accent); }
	.menu-idx { display: none; }
	
	.nav-footer { padding: 0; }
	
	.bento-grid { grid-template-columns: 1fr; padding: 20px; }
	.span-2, .span-3, .row-span-2 { grid-column: span 1; grid-row: span 1; }
	
	.crosshair { display: none; }
	.toolbar { padding: 0 20px; }
}