/* 
 * SideHub Landing Page - Production Sync V6
 * EXACT TOKENS FROM CORE.JSX
 */

:root {
    --bg0: #000000;
    --surface: rgba(24, 24, 27, 0.6);
    --surface-soft: rgba(39, 39, 42, 0.4);
    --border: rgba(63, 63, 70, 0.5);
    --border-soft: rgba(63, 63, 70, 0.3);
    --text: #F8FAFC;
    --text-dim: #94A3B8;
    --text-faint: #64748B;
    --emerald: #22C55E;
    --orange: #F97316;
    --red: #EF4444;
    --blue: #3B82F6;
    --violet: #8B5CF6;
    --accent: #818cf8;
    --font-main: 'Inter', sans-serif;
    --font-mono: 'Roboto Mono', monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { background: var(--bg0); color: var(--text); font-family: var(--font-main); height: 14000px; overflow-x: hidden; }

/* Sticky Container */
.scrolly-viewport { position: sticky; top: 0; height: 100vh; overflow: hidden; background: var(--bg0); }
.wallpaper-bg { position: absolute; inset: 0; background-image: radial-gradient(rgba(148, 163, 184, 0.08) 1px, transparent 1px); background-size: 24px 24px; z-index: -1; }

/* 1:1 Top Bar Glass */
.top-bar-clone {
    position: absolute; top: -50px; left: 50%; transform: translateX(-50%);
    width: 600px; height: 44px; background: rgba(0,0,0,0.45);
    backdrop-filter: blur(24px); border: 1px solid var(--border-soft); border-radius: 0 0 14px 14px; z-index: 2000;
    display: flex; align-items: center; padding: 0 16px; box-shadow: 0 4px 24px rgba(0,0,0,0.5);
    transition: top 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.tb-pages { display: flex; gap: 4px; align-items: center; }
.tb-page-tab { padding: 4px 10px; border-radius: 8px; font-size: 12px; color: var(--text-dim); transition: 0.2s; cursor: pointer; }
.tb-page-tab.active { background: rgba(255,255,255,0.08); color: var(--text); }

.tb-actions { display: flex; gap: 4px; align-items: center; }
.tb-icon-btn { width: 30px; height: 30px; display: grid; place-items: center; color: var(--text-dim); border-radius: 8px; transition: 0.2s; }
.tb-agent-btn { display: flex; align-items: center; gap: 8px; padding: 0 12px; height: 30px; background: rgba(129, 140, 248, 0.1); border: 1px solid rgba(129,140,248,0.2); border-radius: 8px; color: var(--accent); font-size: 11px; font-weight: 600; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 8px var(--red); }
.status-dot.online { background: var(--emerald); box-shadow: 0 0 8px var(--emerald); }

/* 1:1 Widget Glass Structure */
.widget {
    position: absolute; background: var(--surface); backdrop-filter: blur(24px);
    border: 1px solid var(--border); border-radius: 18px; padding: 14px;
    display: flex; flex-direction: column; gap: 6px;
    transition: opacity 0.4s, transform 0.4s, border-color 0.3s, box-shadow 0.3s;
    pointer-events: none;
}

.widget-label { font-size: 11px; color: var(--text-dim); font-family: var(--font-mono); letter-spacing: 0.5px; }

/* 1:1 Widget Hover Overlay */
.widget-actions {
    position: absolute; top: 6px; right: 6px; display: flex; gap: 4px;
    background: rgba(0,0,0,0.4); backdrop-filter: blur(10px);
    border: 1px solid var(--border-soft); border-radius: 8px; padding: 3px;
    opacity: 0; transition: opacity 0.2s; z-index: 100;
}
.wa-btn { width: 22px; height: 22px; display: grid; place-items: center; color: var(--text-dim); border-radius: 5px; font-size: 11px; }

.widget.v-hover { border-color: rgba(255,255,255,0.4); box-shadow: 0 0 24px rgba(0,0,0,0.4); }
.widget.v-hover .widget-actions { opacity: 1; }

/* 1:1 Task Widget List */
.todo-item { display: flex; align-items: center; gap: 8px; }
.todo-check { width: 16px; height: 16px; border-radius: 4px; border: 1px solid var(--border); transition: 0.2s; flex-shrink: 0; display: grid; place-items: center; }
.todo-check.checked { background: var(--emerald); border-color: var(--emerald); }
.todo-text { flex: 1; font-size: 12px; color: var(--text); }
.todo-text.checked { text-decoration: line-through; color: var(--text-faint); }

/* Settings Panel Clone */
.settings-panel {
    position: absolute; inset: 0; background: rgba(0,0,0,0.85); backdrop-filter: blur(16px);
    border-radius: 18px; padding: 18px; z-index: 50; display: none; flex-direction: column;
}
.settings-panel.active { display: flex; }
.form-row { display: flex; flex-direction: column; gap: 4px; }
.form-row label { font-size: 9px; color: var(--text-faint); font-family: var(--font-mono); }
.form-row input, .form-row select { 
    background: rgba(255,255,255,0.04); border: 1px solid var(--border-soft); border-radius: 8px;
    padding: 8px 10px; color: var(--text); font-size: 12px; outline: none; font-family: inherit;
}

/* Agent Overlay */
.agent-offline-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.55); backdrop-filter: blur(4px); border-radius: 18px; display: flex; flex-direction: column; align-items: center; justify-content: center; z-index: 10; gap: 6px; transition: opacity 0.4s; }
.pulse-red { width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 8px var(--red); animation: pulse 2s infinite; }
@keyframes pulse { 0% { opacity: 0.4; } 50% { opacity: 1; } 100% { opacity: 0.4; } }
.offline-text { font-size: 10px; color: rgba(255,255,255,0.5); font-family: var(--font-mono); letter-spacing: 0.06em; text-align: center; }

/* Global Nav */
#global-header { position: fixed; top: 0; left: 0; width: 100%; height: 64px; background: rgba(0,0,0,0.4); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border-soft); display: flex; align-items: center; padding: 0 40px; z-index: 9999; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--text); text-decoration: none; }
.logo-icon { width: 28px; height: 28px; background: #fff; border-radius: 7px; display: grid; place-items: center; }
header nav { margin-left: auto; display: flex; gap: 32px; align-items: center; }
header nav a { text-decoration: none; color: var(--text-dim); font-size: 13px; font-weight: 500; }
.btn-cta { background: #fff; color: #000; padding: 8px 16px; border-radius: 8px; font-weight: 600; }

.virtual-cursor { position: absolute; z-index: 9999; pointer-events: none; opacity: 0; transition: transform 0.1s; }
.skip-btn { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); color: var(--text-dim); cursor: pointer; animation: bounce 2s infinite; z-index: 1000; }
@keyframes bounce { 0%, 20%, 50%, 80%, 100% { transform: translate(-50%, 0); } 40% { transform: translate(-50%, -10px); } 60% { transform: translate(-50%, -5px); } }
